An enterprise is designing a deployment pipeline for a web application running on Amazon EC2 instances in an Auto Scaling group behind an Application Load Balancer (ALB). The deployment strategy must meet the following requirements:
* Shift exactly of live traffic to the new version of the application.
* Validate the performance of the new version for minutes using Amazon CloudWatch alarms.
* Immediately roll back of traffic to the current version if any alarms are triggered.
* Shift the remaining of traffic to the new version if no alarms are triggered.
Which combination of actions should the Solutions Architect recommend to achieve these requirements? (Select TWO.)
- Configure the Application Load Balancer (ALB) listener to route traffic to separate target groups (representing the current and new Auto Scaling groups) using weighted routing rules.Cevap
- Implement a pipeline workflow using an AWS Lambda function to update the ALB listener rule weights from to , monitor the CloudWatch alarms for minutes, and then shift the weights to or revert to if an alarm is triggered.Cevap
- CConfigure an AWS CodeDeploy deployment group with a Blue/Green deployment type, select the Auto Scaling group, and use the `CodeDeployDefault.EC2Canary10Percent15Minutes` deployment configuration.
- DConfigure the Auto Scaling group with an AWS CloudFormation `UpdatePolicy` using `AutoScalingRollingUpdate` with `MinInstancesInService` set to of the capacity, and configure CloudWatch alarm rollbacks.
- EDeploy separate Application Load Balancers (one for each Auto Scaling group), and configure an Amazon Route 53 weighted routing policy with a weight split of and to route traffic.
Cevap
Configure the Application Load Balancer listener to route traffic using weighted routing rules to two separate target groups, and implement a pipeline workflow using an AWS Lambda function to adjust the listener weights, monitor CloudWatch alarms, and execute rollbacks.
To achieve the deployment objectives, you must split traffic at the Application Load Balancer level using weighted target groups and separate Auto Scaling groups. A programmatic orchestrator, such as an AWS Lambda function, must manage the transition of target group weights, monitor CloudWatch alarms during the validation window, and revert the weights to the original configuration if an alarm is triggered. This combination allows for precise traffic management, validation, and instantaneous rollback without relying on DNS changes or facing CodeDeploy limitations on EC2.
Adım Adım Çözüm
Anahtar Kavram
Orchestrating canary deployments on EC2 using Application Load Balancer weighted target groups when CodeDeploy limitations apply.
Tahmini Süre:2m 0s