AWS Certified DevOps Engineer – Professional — Question 70

A company's application is running on Amazon EC2 instances in an Auto Scaling group. A DevOps engineer needs to ensure there are at least four application servers running at all times. Whenever an update has to be made to the application, the engineer creates a new AMI with the updated configuration and updates the AWS CloudFormation template with the new AMI ID. After the stack update finishes, the engineer manually terminates the old instances one by one, verifying that the new instance is operational before proceeding. The engineer needs to automate this process.

Which action will allow for the LEAST number of manual steps moving forward?

Answer options

Correct answer: A

Explanation

The correct answer is A because utilizing the AutoScalingRollingUpdate policy allows for a smoother update process by replacing instances gradually while ensuring that the desired capacity is maintained. Option B would cause additional downtime by replacing instances rather than updating them in place. Options C and D introduce unnecessary complexity by requiring extra checks that do not streamline the update process.