You manage a vehicle telematics API named VeloTrack that is hosted on an Azure App Service Web App. The web app currently runs on a Standard (S1) App Service plan with a default instance count of 1. You need to configure metric-based autoscale settings to handle CPU spikes and prevent autoscale flapping. Which two configurations should you select to meet these requirements? (Choose two.)
- A scale-out rule that increases the instance count by 1 when the CPU Percentage is greater than 80%.Answer
- A scale-in rule that decreases the instance count by 1 when the CPU Percentage is less than 35%.Answer
- CA scale-in rule that decreases the instance count by 1 when the CPU Percentage is less than 60%.
- DScale the App Service plan to the Shared (D1) tier before applying the CPU-based autoscale settings.
Answer
To configure autoscale rules that handle CPU spikes and prevent flapping, you must define a scale-out rule to add an instance when CPU Percentage is greater than 80%, and a scale-in rule to remove an instance only when CPU Percentage falls below 35%.
The correct configurations are the rules that scale out at 80% CPU and scale in at 35% CPU. With a single instance at 80% CPU, scaling out to two instances halves the load to 40% CPU per instance. Setting the scale-in threshold to 35% ensures that the new load level (40%) does not trigger an immediate scale-in. Additionally, the Standard (S1) plan supports autoscale.
Step-by-Step Solution
Key Concept
Autoscale flapping occurs when a scale-in threshold is set too close to the scale-out threshold, causing the post-scale metric to immediately trigger the opposite scaling action.