An operations team is configuring autoscale rules for an Azure App Service Plan hosting a web application. They define the following rules:
* Scale-out Rule 1: Increase the instance count by 1 if the average CPU Percentage is greater than 80%.
* Scale-out Rule 2: Increase the instance count by 1 if the average Memory Percentage is greater than 85%.
* Scale-in Rule 1: Decrease the instance count by 1 if the average CPU Percentage is less than 40%.
* Scale-in Rule 2: Decrease the instance count by 1 if the average Memory Percentage is less than 50%.
Under which condition will the App Service Plan scale in?
- Only when the CPU Percentage is less than 40% and the Memory Percentage is less than 50%Answer
- BWhen either the CPU Percentage is less than 40% or the Memory Percentage is less than 50%
- CWhen the average of the CPU Percentage and Memory Percentage is less than 45%
- DWhen the CPU Percentage is less than 40%, regardless of the Memory Percentage
Answer
Only when the CPU Percentage is less than 40% and the Memory Percentage is less than 50%
In Azure Monitor autoscale engine, when multiple scale-in rules are defined, they are evaluated using a logical AND operation. This means the autoscale engine will only decrease the instance count if all scale-in conditions are met. In this scenario, both the CPU Percentage must be below 40% and the Memory Percentage must be below 50% for scale-in to occur.
Step-by-Step Solution
Key Concept
Azure App Service Autoscale Rule Evaluation Logic