
AWS Certified Developer - Associate
Get started today
Ultimate access to all questions.
Your current setup has an Auto Scaling group with a set minimum capacity of 1 instance and a maximum capacity of 5 instances, and it's designed to distribute EC2 instances across 3 different Availability Zones. However, during a period of low utilization, one of the Availability Zones became unavailable, resulting in downtime for your application.
What steps can you take to maintain high availability for your application?
Your current setup has an Auto Scaling group with a set minimum capacity of 1 instance and a maximum capacity of 5 instances, and it's designed to distribute EC2 instances across 3 different Availability Zones. However, during a period of low utilization, one of the Availability Zones became unavailable, resulting in downtime for your application.
What steps can you take to maintain high availability for your application?
Explanation:
Increase the minimum instance capacity of the Auto Scaling Group to 2 -
You configure the size of your Auto Scaling group by setting the minimum, maximum, and desired capacity. The minimum and maximum capacity are required to create an Auto Scaling group, while the desired capacity is optional. If you do not define your desired capacity upfront, it defaults to your minimum capacity.
Since a minimum capacity of 1 was defined, an instance was launched in only one AZ. This AZ went down, taking the application with it. If the minimum capacity is set to 2. As per Auto Scale AZ configuration, it would have launched 2 instances- one in each AZ, making the architecture disaster-proof and hence highly available.