A company is designing a deployment process for a critical customer-facing web application. The application runs on Amazon EC2 instances within an Auto Scaling group behind an Application Load Balancer (ALB). The infrastructure is managed using AWS CloudFormation templates. The deployment strategy must satisfy the following requirements:
- Perform a blue/green deployment where the new version (green) is fully provisioned alongside the existing version (blue).
- Shift production traffic to the new version, but allow for an immediate rollback (in less than 60 seconds) to the old version if post-deployment smoke tests fail.
- Do not use AWS CodeDeploy or external orchestration tools.
- Keep the deployment process entirely within AWS CloudFormation capabilities.
Which combination of actions should the Solutions Architect include in the design to meet these requirements? (Select two.)
- Define a second Auto Scaling group and a new target group in the CloudFormation template to represent the green environment, while keeping the blue Auto Scaling group and target group intact.Answer
- Configure the ALB listener rule's action to use a ForwardConfig containing both the blue and green target groups, and update the CloudFormation stack to shift traffic weights between them.Answer
- CApply an AutoScalingRollingUpdate policy on the existing Auto Scaling group to perform an in-place rolling update of the EC2 instances using the new AMI.
- DCreate a separate ALB for the green environment, and configure Amazon Route 53 weighted routing records with a 60-second TTL to shift traffic from the blue ALB to the green ALB.
- EUpdate the existing launch template with the new AMI, manually terminate the blue EC2 instances using the console to trigger immediate replacement, and run CloudFormation drift detection to synchronize the state.