AWS Certified DevOps Engineer – Professional — Question 17

A DevOps Engineer manages a web application that runs on Amazon EC2 instances behind an Application Load Balancer (ALB). The instances run in an EC2
Auto Scaling group across multiple Availability Zones. The engineer needs to implement a deployment strategy that:
✑ Launches a second fleet of instances with the same capacity as the original fleet.
✑ Maintains the original fleet unchanged while the second fleet is launched.
✑ Transitions traffic to the second fleet when the second fleet is fully deployed.
✑ Terminates the original fleet automatically 1 hour after transition.
Which solution will satisfy these requirements?

Answer options

Correct answer: C

Explanation

Option C is correct because AWS CodeDeploy allows for blue/green deployments and can be configured to terminate the original instances after a specified waiting period, which meets all the requirements. Option A does not address the traffic transition process correctly, while Option B uses Elastic Beanstalk, which is not necessary for this scenario. Option D also does not align with the requirements as it does not manage instance termination in the same effective manner as CodeDeploy.