QuestionQ47

VerifiedResilient Cloud Solutions

A DevOps engineer operates a web application running on Amazon EC2 instances behind an Application Load Balancer (ALB). The instances are in an EC2 Auto Scaling group spanning multiple Availability Zones. The engineer must implement a deployment strategy that:

  • Launches a second instance fleet with the same capacity as the original fleet.
  • Leaves the original fleet unchanged while the second fleet launches.
  • Shifts traffic to the second fleet after it is fully deployed.
  • Automatically terminates the original fleet 1 hour after the transition.

Which solution meets these requirements?

Explanation

AWS CodeDeploy blue/green deployments for EC2 can automatically copy an EC2 Auto Scaling group to provision a replacement fleet. After the replacement instances are deployed, CodeDeploy reroutes load-balancer traffic to them and can terminate the original instances after a configured waiting period of 1 hour.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!