AZ-304 Exam QuestionsBrowse all questions from this exam

AZ-304 Exam - Question 194


You have an Azure subscription that contains a storage account.

An application sometimes writes duplicate files to the storage account.

You have a PowerShell script that identifies and deletes duplicate files in the storage account. Currently, the script is run manually after approval from the operations manager.

You need to recommend a serverless solution that performs the following actions:

✑ Runs the script once an hour to identify whether duplicate files exist

✑ Sends an email notification to the operations manager requesting approval to delete the duplicate files

✑ Processes an email response from the operations manager specifying whether the deletion was approved

✑ Runs the script if the deletion was approved

What should you include in the recommendation?

Show Answer
Correct Answer: A

To implement a serverless solution that runs a PowerShell script, manages approval workflow via email, and executes the script upon approval, you can utilize Azure Logic Apps and Azure Functions. Azure Logic Apps can be used to define the workflow, including scheduling the script to run once an hour and handling email communications. Azure Functions can execute the PowerShell script when required. This combination provides a scalable, serverless approach to automate the identification and deletion of duplicate files, with necessary email approvals integrated seamlessly.

Discussion

6 comments
Sign in to comment
mchint01
Oct 7, 2020

correct

syu31svc
Oct 5, 2021

Azure Logic Apps and Azure Functions are serverless services. Use Azure Logic Apps to define the workflow and Azure Functions to execute scripts. A is correct

Azurefox79
Dec 17, 2021

Excellent explanation!!

leo_az300
Sep 25, 2021

Connect Logic App with outlook, regularly calling function app to do duplication check then send email, use webhook action in logic app wait for approval email from outlook. A is correct

gssd4scoder
Aug 24, 2021

Correct. The Azure Function will be implemented with Blog storage bindings: https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob.

AhmedAL
Nov 3, 2020

not sure about the answer. Its a PowerShell script that already exists. I don't see the need for new coding.Wouldn't C complete the solution without new funtions

magazin80
Nov 4, 2020

Could it be because we need to process the manager's response?

pentum7
Nov 8, 2020

Yes, since the PS script only does one part of the whole workflow "PowerShell script that identifies and deletes duplicate files in the storage account". We do need to code to process the manager's response still

pentum7
Nov 8, 2020

Yes, since the PS script only does one part of the whole workflow "PowerShell script that identifies and deletes duplicate files in the storage account". We do need to code to process the manager's response still

moota
May 9, 2021

What is Event Grid for?

salm990
Apr 7, 2021

if you didn't have PowerShell script that identify and delete duplicate file then answer would be logic app with even grid.

salm990
Apr 7, 2021

Also PowerShell can bee added only in function when we select runtime while creating it. runtime will be PowerShell

addam23
Aug 19, 2021

You have logic app and function. Function execute ps and is executed by schedule. Logic app can handle email response triggering and execute again function which will execute ps

addam23
Aug 19, 2021

You have logic app and function. Function execute ps and is executed by schedule. Logic app can handle email response triggering and execute again function which will execute ps