A company has a website that runs on four Amazon EC2 instances that are behind an Application Load Balancer (ALB). When the ALB detects that an EC2 instance is no longer available, an Amazon CloudWatch alarm enters the ALARM state. A member of the company's operations team then manually adds a new EC2 instance behind the ALB. A solutions architect needs to design a highly available solution that automatically handles the replacement of EC2 instances. The company needs to minimize downtime during the switch to the new solution. Which set of steps should the solutions architect take to meet these requirements?
Select one answer.
Marked answer: B
Community Discussion
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
Chose B2
B is the correct choice. It introduces an Auto Scaling group to handle automatic instance replacement. Uses a launch template for new instances. Keeps the existing ALB to minimize downtime. Allows attaching existing instances to the ASG.
Chose D1
B and D are similar but B is wrong since you cannot add ec2 instances to autoscaling group. You can only add ec2 to ALB target group.