0
0
AWScloud~20 mins

Minimum, maximum, and desired capacity in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Auto Scaling Capacity Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Auto Scaling Group Capacity Settings

An Auto Scaling Group (ASG) in AWS has the following settings:

  • Minimum capacity: 2
  • Maximum capacity: 5
  • Desired capacity: 4

What happens if the desired capacity is set to 6?

AThe ASG will launch 6 instances, exceeding the maximum capacity.
BThe ASG will launch 5 instances, respecting the maximum capacity limit.
CThe ASG will launch 4 instances, ignoring the desired capacity change.
DThe ASG will shut down instances to maintain the minimum capacity.
Attempts:
2 left
💡 Hint

Remember that the maximum capacity limits the number of instances the ASG can have.

service_behavior
intermediate
2:00remaining
Behavior When Desired Capacity is Lower Than Minimum Capacity

An Auto Scaling Group has minimum capacity 3, maximum capacity 6, and desired capacity 4.

What happens if you set the desired capacity to 2?

AThe ASG will launch 3 instances, respecting the minimum capacity.
BThe ASG will launch 2 instances, below the minimum capacity.
CThe ASG will launch 4 instances, ignoring the desired capacity change.
DThe ASG will shut down all instances.
Attempts:
2 left
💡 Hint

The minimum capacity is the lowest number of instances the ASG maintains.

Architecture
advanced
2:30remaining
Designing an Auto Scaling Group for Variable Traffic

You want to design an Auto Scaling Group that can handle traffic spikes up to 10 instances but normally runs with 3 instances. The minimum capacity should ensure availability, and the maximum capacity should prevent excessive costs.

Which configuration best fits this requirement?

AMinimum capacity: 3, Desired capacity: 3, Maximum capacity: 10
BMinimum capacity: 10, Desired capacity: 3, Maximum capacity: 10
CMinimum capacity: 3, Desired capacity: 10, Maximum capacity: 10
DMinimum capacity: 1, Desired capacity: 3, Maximum capacity: 10
Attempts:
2 left
💡 Hint

Minimum capacity should ensure availability during low traffic.

security
advanced
2:30remaining
Security Implications of Auto Scaling Group Capacity Settings

An Auto Scaling Group is configured with minimum capacity 0, desired capacity 0, and maximum capacity 5. What is a potential security risk of this configuration?

AThe ASG will always run 5 instances, increasing attack surface.
BNo instances will run, so the application is unavailable and secure.
CInstances may launch unexpectedly if scaling policies trigger, possibly exposing unpatched instances.
DThe ASG will shut down instances randomly, causing security alerts.
Attempts:
2 left
💡 Hint

Think about what happens when scaling policies trigger from zero instances.

Best Practice
expert
3:00remaining
Optimizing Auto Scaling Group Capacity for Cost and Performance

You manage an Auto Scaling Group with minimum capacity 2, maximum capacity 8, and desired capacity 5. You want to optimize for cost without sacrificing performance during peak hours.

Which strategy is best?

ASet desired capacity to 8 permanently to handle all peaks without scaling.
BSet maximum capacity to 2 to reduce costs and rely on instance performance.
CDisable scaling policies to keep capacity fixed at desired value.
DSet minimum capacity to 5 during peak hours and 2 during off-peak hours using scheduled scaling.
Attempts:
2 left
💡 Hint

Think about adjusting capacity based on predictable traffic patterns.