You are developing a new event-driven Azure Function that will process messages from an Azure Queue Storage queue. The message traffic is highly irregular with long periods of inactivity. To minimize costs, you require a hosting plan that scales to zero instances when idle and charges you only for the resources consumed during execution.
Which hosting plan should you select?
- Consumption planAnswer
- BPremium plan
- CDedicated (App Service) plan
- DBasic App Service plan
Answer
Consumption plan
The Consumption plan is the correct choice because it automatically scales instances based on demand, scales down to zero when there is no traffic, and bills only for active executions.
Step-by-Step Solution
Key Concept
Selecting the appropriate Azure Functions hosting plan based on scaling requirements and billing models.
Estimated Time:45s