nerdexam
Microsoft

AZ-305 · Question #65

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…

The correct answer is A. Azure Logic Apps and Azure Functions. 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…

Submitted by noor.lb· Mar 6, 2026Design infrastructure solutions

Question

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?

Options

  • AAzure Logic Apps and Azure Functions
  • BAzure Pipelines and Azure Service Fabric
  • CAzure Logic Apps and Azure Event Grid
  • DAzure Functions and Azure Batch

How the community answered

(37 responses)
  • A
    81% (30)
  • B
    5% (2)
  • C
    11% (4)
  • D
    3% (1)

Explanation

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. https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-azure-functions

Community Discussion

No community discussion yet for this question.

Full AZ-305 Practice