You manage an inventory synchronization service named InventoryProcessor that runs on an Azure App Service Web App. The web app currently uses a Basic (B1) App Service plan.
The application experiences intermittent CPU spikes during inventory updates. You must configure the application to automatically scale out when CPU utilization exceeds , and scale in when CPU utilization drops. You must also ensure that the autoscale configuration does not cause rapid, repeated scale-out and scale-in actions (flapping).
Which two actions should you perform to meet these requirements?
- Scale up the App Service plan to the Standard (S1) tier.Answer
- Configure a scale-out rule with a CPU threshold of and a scale-in rule with a CPU threshold of .Answer
- CEnable autoscaling directly on the Basic (B1) plan using the Azure CLI.
- DConfigure a scale-out rule with a CPU threshold of and a scale-in rule with a CPU threshold of .
Answer
Scale up the App Service plan to the Standard (S1) tier, and configure a scale-out rule with a CPU threshold of and a scale-in rule with a CPU threshold of .
Scaling up the App Service plan to the Standard (S1) tier is necessary because autoscale rules are not supported on the Basic tier. Additionally, configuring the scale-out rule at and the scale-in rule at ensures that the thresholds are separated by a margin wide enough to prevent autoscale flapping.
Step-by-Step Solution
Key Concept
App Service plan pricing tiers and autoscale flapping prevention