Microsoft Certified: Azure Developer Associate (AZ-204)Monitor, troubleshoot, and optimize Azure solutionsHard
A global e-commerce platform uses Azure Front Door to route traffic to its backend web applications. They have configured an Azure Function App to handle user authentication requests. During peak traffic events, the Function App experiences high CPU utilization and occasional HTTP 503 errors. The team needs to ensure the Function App can scale rapidly and predictably to handle sudden spikes in authentication requests, while minimizing cold start times. Which Azure Functions hosting plan is most suitable for this requirement?
- ADedicated (App Service) plan
- BPremium plan
- CConsumption plan
- DKubernetes plan
Show answer & explanationAnswer & explanation
Correct answer: B. Premium plan
The Azure Functions Premium plan offers pre-warmed instances to minimize cold starts and provides dedicated compute resources that scale rapidly and predictably, making it ideal for high-demand scenarios with variable traffic and low latency requirements like authentication services.
Why the other options are wrong
- A. Dedicated (App Service) plan provides fixed capacity, which offers predictable performance but requires manual scaling and can be less cost-effective for highly variable, burstable workloads.
- C. Consumption plan is cost-effective for infrequent workloads but can experience cold starts and less predictable scaling under sudden high load.
- D. Kubernetes plan (Azure Functions on Kubernetes with KEDA) offers flexibility but adds operational complexity and might not be the most straightforward solution for minimizing cold starts and rapid scaling within Azure PaaS offerings for this specific scenario.
Azure Functions Premium Plan
A hosting plan for Azure Functions that provides pre-warmed instances to eliminate cold starts, dedicated compute resources, and VNet connectivity, suitable for high-demand, low-latency workloads.
- Eliminates cold starts due to pre-warmed instances.
- Provides dedicated compute resources for predictable performance.
- Supports VNet integration and longer run durations.
Memory trick: Premium for speed, Consumption for savings, Dedicated for control!