A SysOps Administrator is designing a deployment process for a stateless web application hosted on Amazon EC2 instances in an Auto Scaling group (ASG) behind an Application Load Balancer (ALB). The update process must meet the following operational requirements:
1. The application's total serving capacity must not decrease during the deployment.
2. A small, controlled percentage () of live production traffic must be routed to the new version to perform canary testing.
3. If target group errors or latency metrics exceed predefined Amazon CloudWatch thresholds, the deployment must automatically roll back within minutes.
4. Active user sessions on the stable version must not be disconnected, terminated, or disrupted during the rollback process.
Which two deployment actions or configurations should the SysOps Administrator implement to achieve these requirements? (Select two.)
- Deploy the new version of the application to a new, separate Auto Scaling group registered to a new ALB target group, and configure the ALB listener rules to use weighted target groups to route of traffic to the new target group and to the original target group.Cevap
- Create a CloudWatch alarm for the new target group's HTTP metric that triggers an AWS Lambda function to update the ALB listener rule weights, shifting of traffic back to the original target group if thresholds are exceeded.Cevap
- CUse AWS CodeDeploy with a Blue/Green deployment type, and select a canary deployment configuration (such as CodeDeployDefault.EC2.Canary10Percent10Minutes) to gradually shift traffic to the new Auto Scaling group.
- DConfigure an Amazon Route 53 weighted routing policy with a TTL of seconds pointing to two separate ALBs (one for each application version), and configure Route 53 DNS failover to automatically route traffic away from the new version if health checks fail.
- EUse AWS CloudFormation with a rolling update policy (AutoScalingRollingUpdate) on the existing Auto Scaling group, setting MinInstancesInService to match the desired capacity, and configuring AutoScalingRollbackRecommendation to revert the stack if CloudWatch alarms are triggered.