0
0
Azurecloud~20 mins

VM Scale Sets for auto scaling in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
VM Scale Sets Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
How does Azure VM Scale Sets handle instance health during auto scaling?

When Azure VM Scale Sets automatically scale out or in, how does it manage the health of individual VM instances?

AIt requires manual intervention to remove unhealthy instances before scaling.
BIt automatically replaces unhealthy instances with new ones to maintain the desired capacity.
CIt ignores instance health and only scales based on CPU usage thresholds.
DIt pauses scaling operations until all instances report healthy status manually.
Attempts:
2 left
💡 Hint

Think about how auto scaling ensures service availability without manual steps.

Configuration
intermediate
2:00remaining
Which JSON snippet correctly configures a VM Scale Set with automatic scaling based on CPU usage?

Identify the correct JSON snippet to configure an Azure VM Scale Set to scale out when average CPU usage exceeds 70% and scale in when below 30%.

A{ "autoscaleSettings": { "profiles": [{ "name": "AutoScaleProfile", "capacity": { "minimum": "2", "maximum": "10", "default": "5" }, "rules": [{ "metricTrigger": { "metricName": "CPU Usage", "threshold": 80, "operator": "GreaterThan", "timeAggregation": "Average", "timeWindow": "PT10M" }, "scaleAction": { "direction": "Increase", "type": "PercentChange", "value": "10", "cooldown": "PT10M" } }] }] } }
B{ "autoscaleSettings": { "profiles": [{ "name": "AutoScaleProfile", "capacity": { "minimum": "1", "maximum": "5", "default": "2" }, "rules": [{ "metricTrigger": { "metricName": "Percentage CPU", "threshold": 70, "operator": "LessThan", "timeAggregation": "Average", "timeWindow": "PT5M" }, "scaleAction": { "direction": "Increase", "type": "ChangeCount", "value": "1", "cooldown": "PT5M" } }] }] } }
C{ "autoscaleSettings": { "profiles": [{ "name": "AutoScaleProfile", "capacity": { "minimum": "1", "maximum": "3", "default": "1" }, "rules": [{ "metricTrigger": { "metricName": "Percentage CPU", "threshold": 50, "operator": "GreaterThan", "timeAggregation": "Average", "timeWindow": "PT1M" }, "scaleAction": { "direction": "Increase", "type": "ChangeCount", "value": "2", "cooldown": "PT2M" } }] }] } }
D{ "autoscaleSettings": { "profiles": [{ "name": "AutoScaleProfile", "capacity": { "minimum": "1", "maximum": "5", "default": "2" }, "rules": [{ "metricTrigger": { "metricName": "Percentage CPU", "threshold": 70, "operator": "GreaterThan", "timeAggregation": "Average", "timeWindow": "PT5M" }, "scaleAction": { "direction": "Increase", "type": "ChangeCount", "value": "1", "cooldown": "PT5M" } }, { "metricTrigger": { "metricName": "Percentage CPU", "threshold": 30, "operator": "LessThan", "timeAggregation": "Average", "timeWindow": "PT5M" }, "scaleAction": { "direction": "Decrease", "type": "ChangeCount", "value": "1", "cooldown": "PT5M" } }] }] } }
Attempts:
2 left
💡 Hint

Look for correct metric names, thresholds, and scale directions for both scale out and scale in.

Architecture
advanced
2:00remaining
What is the best architecture to ensure zero downtime during VM Scale Set upgrades?

You want to upgrade your VM Scale Set instances without any downtime. Which architecture approach achieves this?

AManually stop all VMs, update the image, then start them again at once.
BDelete all instances and recreate them with the new image simultaneously.
CUse rolling upgrades with health probes and automatic instance replacement to update VMs gradually.
DDisable auto scaling during upgrade and update instances one by one without health checks.
Attempts:
2 left
💡 Hint

Think about how to keep some instances running while others update.

security
advanced
2:00remaining
Which practice secures VM Scale Sets against unauthorized SSH access?

To protect your VM Scale Set instances from unauthorized SSH access, which practice is most effective?

AUse Azure Network Security Groups to restrict SSH access to specific IP addresses only.
BOpen SSH port 22 to all IP addresses for easy access from anywhere.
CDisable SSH and rely only on RDP for all instances.
DUse default usernames and passwords for quick setup.
Attempts:
2 left
💡 Hint

Consider how to limit who can connect via SSH.

Best Practice
expert
2:00remaining
What is the recommended approach to manage stateful applications on VM Scale Sets?

VM Scale Sets are designed for stateless workloads. How should you manage stateful applications that require persistent data?

AUse external storage services like Azure Files or Azure Managed Disks to store application state separately from VMs.
BStore all application data locally on each VM instance's OS disk.
CDisable auto scaling to keep state consistent across instances.
DUse VM Scale Sets without any storage configuration and rely on instance memory.
Attempts:
2 left
💡 Hint

Think about separating data from compute to allow scaling.