AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 171
A company builds an application that uses an Application Load Balancer in front of Amazon EC2 instances that are in an Auto Scaling group. The application is stateless. The Auto Scaling group uses a custom AMI that is fully prebuilt. The EC2 instances do not have a custom bootstrapping process.
The AMI that the Auto Scaling group uses was recently deleted. The Auto Scaling group's scaling activities show failures because the AMI ID does not exist.
Which combination of steps should a DevOps engineer take to meet these requirements? (Choose three.)
Answer options
- A. Create a new launch template that uses the new AMI.
- B. Update the Auto Scaling group to use the new launch template.
- C. Reduce the Auto Scaling group's desired capacity to 0.
- D. Increase the Auto Scaling group's desired capacity by 1.
- E. Create a new AMI from a running EC2 instance in the Auto Scaling group.
- F. Create a new AMI by copying the most recent public AMI of the operating system that the EC2 instances use.
Correct answer: A, B, E
Explanation
The correct steps involve creating a new launch template with the new AMI and updating the Auto Scaling group to use it, which allows the group to function again. Creating a new AMI from a running EC2 instance ensures that the newly launched instances will have the correct configuration. Reducing the desired capacity to 0 or increasing it by 1 does not address the issue of the missing AMI and would not resolve the scaling failures.