Microsoft Certified: Azure Developer Associate (AZ-204)Develop Azure compute solutionsEasy
A manufacturing company uses an Azure App Service web application to display real-time production metrics. During peak shifts, the application experiences high load, requiring increased compute capacity. The company wants to automatically adjust the number of instances based on CPU utilization to ensure responsiveness and optimize costs. Which App Service feature should be configured?
- AAlways On
- BTraffic Manager
- CAutoscaling
- DDeployment Slots
Show answer & explanationAnswer & explanation
Correct answer: C. Autoscaling
Autoscaling in Azure App Service allows you to automatically adjust the number of instances for your application based on predefined metrics like CPU utilization, ensuring performance during peak loads and cost optimization during low periods.
Why the other options are wrong
- A. Always On keeps the application loaded in memory to ensure it's always ready to respond to requests, but it does not scale the number of instances.
- B. Traffic Manager is a DNS-based traffic load balancer that distributes traffic across multiple endpoints, typically across different regions or services, not for scaling instances within a single App Service plan.
- D. Deployment Slots are used for staging and testing new versions of an application before swapping them into production, not for scaling compute capacity.
Azure App Service Autoscaling
A feature that automatically adjusts the number of instances (scale out/in) for an App Service app based on demand or a schedule.
- Increases/decreases instances automatically
- Based on metrics (e.g., CPU, memory, HTTP queue)
- Ensures performance and cost optimization
- Configurable rules and schedules
Memory trick: Auto Scales for Peak Performance and Cost Savings