An organization runs a web API on an Azure App Service plan that currently has a capacity of instances. You need to configure Azure Monitor autoscale rules to scale the application. The scale-out rule must add instances when the average CPU percentage over a -minute time window exceeds . To prevent resource flapping while optimizing costs, you must configure a scale-in rule that decreases the instance count by when CPU usage drops. Which configuration successfully supports custom autoscale rules and prevents rule flapping?
- AHost the application on a Standard (S1) App Service plan. Set the scale-out threshold to CPU to add instances, and set the scale-in threshold to CPU to decrease the instance count by .
- BHost the application on a Basic (B1) App Service plan. Set the scale-out threshold to CPU to add instances, and set the scale-in threshold to CPU to decrease the instance count by .
- Host the application on a Standard (S1) App Service plan. Set the scale-out threshold to CPU to add instances, and set the scale-in threshold to CPU to decrease the instance count by .Answer
- DHost the application on a Standard (S1) App Service plan. Set the scale-out threshold to CPU to add instances, and set the scale-in threshold to CPU to decrease the instance count by .
Answer
Host the application on a Standard (S1) App Service plan. Set the scale-out threshold to CPU to add instances, and set the scale-in threshold to CPU to decrease the instance count by .
The correct configuration uses the Standard (S1) App Service plan, which supports custom autoscale rules. It also prevents autoscale flapping by setting the scale-in threshold to . At the scale-out threshold of , the instances have a total CPU load of . Adding instances increases the total to instances, reducing the average CPU per instance to . A scale-in threshold of is below this post-scale average, ensuring that scaling in is not triggered immediately after scaling out.
Step-by-Step Solution
Key Concept
Preventing autoscale flapping and choosing the correct hosting tier for Azure Monitor autoscale rules.