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?
Remember that the maximum capacity limits the number of instances the ASG can have.
The desired capacity cannot exceed the maximum capacity. If you set desired capacity to 6 but maximum is 5, the ASG will launch only 5 instances.
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?
The minimum capacity is the lowest number of instances the ASG maintains.
The ASG will not go below the minimum capacity. Setting desired capacity below minimum causes the ASG to maintain the minimum number of instances.
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?
Minimum capacity should ensure availability during low traffic.
Setting minimum capacity to 3 ensures at least 3 instances always run. Desired capacity 3 matches normal load. Maximum 10 allows scaling up during spikes.
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?
Think about what happens when scaling policies trigger from zero instances.
With minimum and desired capacity zero, no instances run initially. But scaling policies can launch instances automatically, which if not properly secured or patched, can expose vulnerabilities.
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?
Think about adjusting capacity based on predictable traffic patterns.
Scheduled scaling allows adjusting minimum capacity to meet peak demand and reduce costs during off-peak times by lowering minimum capacity.