Microsoft Certified: Azure Developer Associate (AZ-204)Develop Azure compute solutionsMedium

A logistics company uses an Azure App Service web application to track shipments. During peak hours, the application experiences slow response times due to increased user traffic. The company wants to ensure consistent performance during these spikes without over-provisioning resources during off-peak hours. Which App Service feature should be configured to address this requirement efficiently?

  1. AAutoscaling
  2. BAlways On
  3. CTraffic Manager
  4. DDeployment Slots
Show answer & explanation

Correct answer: A. Autoscaling

Autoscaling for Azure App Service allows you to automatically adjust the number of instances running your application based on demand or a schedule. This ensures that the application can handle increased load during peak times and reduces costs by scaling down during off-peak hours, directly addressing the need for consistent performance without over-provisioning.

Why the other options are wrong

  • B. Always On keeps the application loaded in the server's memory to prevent cold starts, but it does not scale the number of instances to handle increased traffic.
  • C. Azure Traffic Manager is a DNS-based traffic load balancer that distributes traffic across multiple endpoints globally, but it does not automatically scale the underlying App Service instances.
  • D. Deployment Slots are used for staging and testing new versions of an application before swapping them into production, not for dynamic performance scaling.

App Service Autoscaling

Automatically adjusts the number of App Service instances based on metrics (CPU, memory, HTTP queue length) or a predefined schedule.

  • Vertical (scale up/down) and Horizontal (scale out/in) options
  • Ensures consistent performance during traffic fluctuations
  • Optimizes costs by scaling down during low demand

Memory trick: Autoscaling automatically adjusts to demand, saving costs.

More Develop Azure compute solutions questions