Designing an Azure Data Solution (legacy) — Question 20
You are designing a real-time stream solution based on Azure Functions. The solution will process data uploaded to Azure Blob Storage.
The solution requirements are as follows:
✑ Support up to 1 million blobs.
✑ Scaling must occur automatically.
✑ Costs must be minimized.
What should you recommend?
Answer options
- A. Deploy the Azure Function in an App Service plan and use a Blob trigger.
- B. Deploy the Azure Function in a Consumption plan and use an Event Grid trigger.
- C. Deploy the Azure Function in a Consumption plan and use a Blob trigger.
- D. Deploy the Azure Function in an App Service plan and use an Event Grid trigger.
Correct answer: C
Explanation
The correct answer is C because deploying the Azure Function in a Consumption plan allows for automatic scaling and cost efficiency, as you only pay for the resources used during execution. Using a Blob trigger enables the solution to directly respond to new blobs in Azure Blob Storage. Options A and D involve an App Service plan, which does not support automatic scaling as effectively, and option B uses an Event Grid trigger that is not as suitable for Blob processing.