0
0
AWScloud~20 mins

Auto Scaling groups in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Auto Scaling Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
How does an Auto Scaling group handle instance health checks?

An Auto Scaling group monitors the health of its instances. What happens when an instance fails a health check?

AThe instance is terminated and replaced with a new one automatically.
BThe instance is rebooted but not replaced.
CThe instance is left running but marked unhealthy in the console.
DThe Auto Scaling group pauses scaling activities until manual intervention.
Attempts:
2 left
💡 Hint

Think about how Auto Scaling keeps your application healthy without manual work.

Architecture
intermediate
2:00remaining
What is the effect of setting the minimum size to 3 and maximum size to 5 in an Auto Scaling group?

You configure an Auto Scaling group with a minimum size of 3 and a maximum size of 5. What does this configuration guarantee?

AThe group will launch exactly 4 instances at all times.
BThe group will always have at least 3 instances and never more than 5 instances running.
CThe group can scale down to zero instances if demand is low.
DThe group will launch 5 instances immediately and never scale down.
Attempts:
2 left
💡 Hint

Minimum and maximum sizes define the boundaries for scaling.

security
advanced
2:00remaining
Which IAM permission is required to allow an Auto Scaling group to launch EC2 instances?

To enable an Auto Scaling group to launch EC2 instances, which IAM permission must be granted to the Auto Scaling service role?

Aautoscaling:UpdateAutoScalingGroup
Bautoscaling:CreateLaunchConfiguration
Cec2:RunInstances
Dec2:TerminateInstances
Attempts:
2 left
💡 Hint

Launching instances requires permission to start EC2 instances.

Configuration
advanced
2:00remaining
What happens if you set the desired capacity higher than the maximum size in an Auto Scaling group?

You configure an Auto Scaling group with a desired capacity of 6 but set the maximum size to 5. What will be the actual number of instances running?

AThe group will launch 1 instance and wait for manual scaling.
BThe group will launch 6 instances, ignoring the maximum size.
CThe group will launch 0 instances due to configuration conflict.
DThe group will launch 5 instances, respecting the maximum size limit.
Attempts:
2 left
💡 Hint

Maximum size limits the upper bound of instances regardless of desired capacity.

Best Practice
expert
3:00remaining
Which strategy best ensures zero downtime during Auto Scaling group instance replacement?

You want to replace instances in an Auto Scaling group without causing downtime. Which approach achieves this?

AUse rolling updates with a health check grace period and minimum healthy percentage set above 50%.
BTerminate all instances at once and then launch new ones immediately.
CManually stop instances one by one without updating the Auto Scaling group.
DSet desired capacity to zero before launching new instances.
Attempts:
2 left
💡 Hint

Think about how to keep enough healthy instances running during updates.