Microsoft Azure Architect Technologies (legacy) — Question 56
You are building a custom Azure function app to connect to Azure Event Grid.
You need to ensure that resources are allocated dynamically to the function app. Billing must be based on the executions of the app.
What should you configure when you create the function app?
Answer options
- A. the Windows operating system and the App Service plan hosting plan
- B. the Docker container and an App Service plan that uses the B1 pricing tier
- C. the Windows operating system and the Consumption plan hosting plan
- D. the Docker container and an App Service plan that uses the S1 pricing tier
Correct answer: C
Explanation
The correct choice is C because the Consumption plan allows for dynamic resource allocation and charges based on the actual executions of the function app, which meets the requirements. Options A and D use App Service plans that do not provide dynamic billing based on executions, while option B's B1 pricing tier does not align with the need for dynamic resource allocation.