A company is designing a deployment pipeline for a web application running on Amazon EC2 instances managed by an Auto Scaling group behind an Application Load Balancer (ALB). The infrastructure is managed using AWS CloudFormation. A solutions architect must design a deployment strategy that meets the following requirements:
- Production traffic must be shifted gradually to the new version: 10% of the traffic must be routed to the new version for a 15-minute evaluation period, followed by 100% of the traffic if no errors are detected.
- If any application errors or high latency are detected during the deployment or the evaluation period, traffic must be rolled back immediately with zero downtime and without waiting to launch or provision new instances.
- The entire deployment and rollback process must be fully automated and defined as infrastructure as code.
Which two actions should the solutions architect combine to meet these requirements? (Select two.)
- Configure the Application Load Balancer listener rule with two target groups (blue and green) and use AWS CloudFormation to shift traffic weights from 90:10 to 0:100.Answer
- Define AWS CloudFormation rollback triggers linked to Amazon CloudWatch alarms monitoring application error metrics to automatically revert the stack update if issues occur during the evaluation period.Answer
- CConfigure the Auto Scaling group with an Instance Refresh policy set to a 90% minimum healthy percentage and a 15-minute warm-up period, and configure CloudFormation to roll back on failure.
- DUse AWS CodeDeploy with a blue/green deployment group and select the predefined CodeDeployDefault.EC2Canary10Percent15Minutes deployment configuration.
- EConfigure Amazon Route 53 with weighted routing records pointing to two separate Auto Scaling groups, set a low TTL, and use Route 53 DNS failover to route traffic back to the primary group upon health check failure.