0
0
Azurecloud~20 mins

Auto scaling App Service in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Azure App Service Auto Scaling Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
How does Azure App Service auto scaling react to CPU usage?

You configure auto scaling rules for an Azure App Service based on CPU usage. The rule states: "Scale out by 1 instance when average CPU usage is above 70% for 5 minutes." What happens when the CPU usage spikes to 75% for 6 minutes?

AThe App Service scales out by adding one instance after 5 minutes of sustained CPU above 70%.
BThe App Service immediately adds one instance as soon as CPU usage exceeds 70%.
CThe App Service does not scale out because CPU usage must be above 80%.
DThe App Service scales in by removing one instance due to high CPU usage.
Attempts:
2 left
💡 Hint

Think about the condition duration and threshold in the scaling rule.

Configuration
intermediate
2:00remaining
Which JSON snippet correctly configures a scale-out rule based on HTTP queue length?

You want to auto scale your Azure App Service when the HTTP queue length exceeds 100 requests for 10 minutes. Which JSON snippet correctly defines this rule?

A{ "metricTrigger": { "metricName": "HttpQueueLength", "threshold": 100, "timeAggregation": "Average", "operator": "GreaterThan", "duration": "PT10M" }, "scaleAction": { "direction": "Increase", "value": "1", "type": "ChangeCount", "cooldown": "PT5M" } }
B{ "metricTrigger": { "metricName": "HttpQueueLength", "threshold": 100, "timeAggregation": "Total", "operator": "LessThan", "duration": "PT10M" }, "scaleAction": { "direction": "Decrease", "value": "1", "type": "ChangeCount", "cooldown": "PT5M" } }
C{ "metricTrigger": { "metricName": "HttpQueueLength", "threshold": 50, "timeAggregation": "Average", "operator": "GreaterThan", "duration": "PT5M" }, "scaleAction": { "direction": "Increase", "value": "2", "type": "ChangeCount", "cooldown": "PT10M" } }
D{ "metricTrigger": { "metricName": "HttpQueueLength", "threshold": 100, "timeAggregation": "Average", "operator": "GreaterThanOrEqual", "duration": "PT15M" }, "scaleAction": { "direction": "Increase", "value": "1", "type": "ChangeCount", "cooldown": "PT5M" } }
Attempts:
2 left
💡 Hint

Check the metric name, operator, threshold, and duration carefully.

Architecture
advanced
2:00remaining
What is the best architecture to ensure zero downtime during App Service scale-out?

You want to scale out your Azure App Service without causing downtime or dropped requests. Which architectural approach ensures this?

ADisable the load balancer during scaling to prevent routing issues.
BScale out by replacing the existing instance with a new one immediately, causing a brief downtime.
CUse a single instance and increase its size instead of scaling out horizontally.
DUse multiple instances behind the built-in load balancer with health probes to route traffic only to healthy instances.
Attempts:
2 left
💡 Hint

Think about how traffic is managed during scaling.

security
advanced
2:00remaining
What security risk can arise if auto scaling triggers too frequently on an App Service?

If your Azure App Service auto scaling triggers scale-out and scale-in actions very frequently, what security risk might this cause?

ANo security risk because scaling only affects performance, not security.
BIncreased attack surface due to frequent instance creation and deletion, possibly exposing misconfigured instances.
CAutomatic disabling of firewall rules during scaling events.
DData loss due to instance termination during scale-in.
Attempts:
2 left
💡 Hint

Consider what happens when new instances are created rapidly.

Best Practice
expert
2:00remaining
Which strategy best prevents scale-out storms in Azure App Service auto scaling?

You notice your Azure App Service scales out rapidly multiple times in a short period, causing instability. Which strategy best prevents this 'scale-out storm'?

ADisable auto scaling and scale manually only during peak hours.
BSet the scale-out threshold to a very low value to trigger scaling earlier.
CConfigure a cooldown period after each scale action to delay subsequent scaling operations.
DIncrease the maximum number of instances to allow unlimited scaling.
Attempts:
2 left
💡 Hint

Think about how to control the frequency of scaling actions.