A developer is configuring an AWS CodeDeploy Blue/Green deployment for a critical web application. The application runs on Amazon EC2 instances managed by an Auto Scaling group behind an Application Load Balancer. The deployment must satisfy the following constraints:
- If any issues are detected after shifting traffic to the new (Green) fleet, the application must be rolled back to the original (Blue) fleet within a -hour window.
- The rollback must be nearly instantaneous, avoiding the time required to provision new EC2 instances or initialize the application.
- To control costs, all resources from the original fleet must be automatically terminated after the -hour window if no issues are detected.
Which configuration settings in the CodeDeploy deployment group will meet these requirements?
- Configure the deployment group to redirect traffic immediately, set the action on the original instances to keep them running, and specify a rerun transition wait time of hour before termination.Cevap
- BConfigure the deployment group to terminate the original Auto Scaling group immediately after traffic redirection, and set up an automatic rollback policy to launch a new Blue Auto Scaling group from the original launch template.
- CConfigure the deployment group to perform an in-place deployment with a custom deployment configuration of CodeDeployDefault.OneAtATime, and set the rollback to trigger on CloudWatch alarms.
- DConfigure the deployment group to use Route 53 weighted routing policy to shift traffic, and use an AWS Lambda function triggered by a CloudWatch alarm to delete the original Auto Scaling group after hour.