An App Service plan hosts a web API that experiences unpredictable traffic spikes during business hours. You need to minimize cost overnight while ensuring the API scales out quickly when either CPU exceeds 70% or memory exceeds 75% for 10 minutes. During business hours (8 AM–6 PM), maintain a minimum of 3 instances; off-hours maintain 1 instance; and never exceed 10 instances. What configurations should you implement?
Choose an answer
Tap an option to check your answer.
Correct answer: Create an autoscale setting on the App Service plan with two scheduled profiles: business hours (min 3, max 10, default 3) and off-hours (min 1, max 10, default 1)., Add an autoscale scale-out rule: when Average CPU percentage > 70% for 10 minutes, increase instance count by 2; add a corresponding scale-in rule when CPU < 50% for 10 minutes., Add an autoscale scale-out rule: when Average Memory percentage > 75% for 10 minutes, increase instance count by 2; add a corresponding scale-in rule when Memory < 60% for 10 minutes..
Why this is the answer
The correct options collectively address all requirements. Creating an autoscale setting with two scheduled profiles (business hours and off-hours) allows for different minimum instance counts based on time, fulfilling the cost minimization and minimum instance requirements. The business hours profile sets a minimum of 3 instances and a default of 3, while off-hours sets a minimum of 1 and a default of 1. Both profiles enforce a maximum of 10 instances. Adding scale-out rules for CPU exceeding 70% and Memory exceeding 75% for 10 minutes ensures the API scales quickly based on performance metrics. Corresponding scale-in rules are necessary to reduce instances when demand decreases, optimizing cost. Manually scaling or scaling up the SKU would not provide the dynamic, cost-effective scaling required.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed