exam questions

Exam AZ-304 All Questions

View all questions & answers for the AZ-304 exam

Exam AZ-304 topic 5 question 40 discussion

Actual exam question from Microsoft's AZ-304
Question #: 40
Topic #: 5
[All AZ-304 Questions]

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?

  • A. Azure Logic Apps and Azure Functions
  • B. Azure Pipelines and Azure Service Fabric
  • C. Azure Logic Apps and Azure Event Grid
  • D. Azure Functions and Azure Batch
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
You can schedule a powershell script with Azure Logic Apps.
When you want to run code that performs a specific job in your logic apps, you can create your own function by using Azure Functions. This service helps you create Node.js, C#, and F# functions so you don't have to build a complete app or infrastructure to run code. You can also call logic apps from inside Azure functions. Azure Functions provides serverless computing in the cloud and is useful for performing tasks such as these examples:
Reference:
https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-azure-functions

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
mchint01
Highly Voted 4 years, 7 months ago
correct
upvoted 27 times
...
syu31svc
Highly Voted 3 years, 7 months ago
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
upvoted 18 times
Azurefox79
3 years, 4 months ago
Excellent explanation!!
upvoted 4 times
...
...
leo_az300
Most Recent 3 years, 7 months ago
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
upvoted 5 times
...
gssd4scoder
3 years, 8 months ago
Correct. The Azure Function will be implemented with Blog storage bindings: https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob.
upvoted 4 times
...
salm990
4 years, 1 month ago
if you didn't have PowerShell script that identify and delete duplicate file then answer would be logic app with even grid.
upvoted 2 times
salm990
4 years, 1 month ago
Also PowerShell can bee added only in function when we select runtime while creating it. runtime will be PowerShell
upvoted 2 times
addam23
3 years, 8 months ago
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
upvoted 1 times
...
...
...
AhmedAL
4 years, 6 months ago
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
upvoted 3 times
magazin80
4 years, 6 months ago
Could it be because we need to process the manager's response?
upvoted 3 times
pentum7
4 years, 6 months ago
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
upvoted 5 times
...
...
moota
4 years ago
What is Event Grid for?
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago