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 an option, then click Submit answer.
Reference / correct answer:
Create an Auto Scaling group that is configured to handle the web application traffic. Attach a new launch template to the Auto Scaling group. Attach the Auto Scaling group to the existing ALAttach the existing EC2 instances to the Auto Scaling group.
Most accepted answer: B. Create an Auto Scaling group that is configured to handle the web application traffic. Attach a new launch template to the Auto Scaling group. Attach the Auto Scaling group to the existing ALAttach the existing EC2 instances to the Auto Scaling group.
Community votes: B=9, D=2
Selected Answer: B Deleting the ALB will increase downtime, so A & C eliminated. B & D are similar but D suggests wait for ALB to register EC2 instances, again causing delay so eliminated upvoted 12 times kejam 2 years, 6 months ago Agreed https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-from-instance.html#create-asg-from-instance-console upvoted 1 times ...
Agreed https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-from-instance.html#create-asg-from-instance-console upvoted 1 times
Selected Answer: B 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. upvoted 2 times
Selected Answer: D 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. upvoted 1 times kgpoj 1 year, 11 months ago You are wrong. Don't misguide others here with wrong argument. You can attach EC2 to ASG for sure https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-detach-attach-instances.html just simply google `attach ec2 to asg` and you will find the doc above. I don't understand why ppl just make random wrong assumptions and misguide others while it only take a few seconds to verify on google/chatgpt upvoted 9 times ... helloworldabc 1 year, 11 months ago Just B upvoted 2 times ...
You are wrong. Don't misguide others here with wrong argument. You can attach EC2 to ASG for sure https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-detach-attach-instances.html just simply google `attach ec2 to asg` and you will find the doc above. I don't understand why ppl just make random wrong assumptions and misguide others while it only take a few seconds to verify on google/chatgpt upvoted 9 times