A company is deploying a new version of a critical web application that runs on Amazon ECS with the AWS Fargate launch type. The application is behind an Application Load Balancer (ALB). The application handles multi-step transactions and maintains state using session affinity (sticky sessions) stored in the local memory of the containers. The transaction workflow can take up to 20 minutes to complete. The deployment strategy for the new version must meet the following requirements:
* Shift traffic gradually to the new version to minimize the blast radius of potential issues.
* Ensure that users with active sessions are not routed to the new version mid-transaction, which would break their session state.
* Automatically roll back the deployment if the HTTP 5XX error rate or the target response time of the new version exceeds defined thresholds.
Which combination of actions will meet these requirements? (Select TWO.)
- Configure AWS CodeDeploy with a canary deployment configuration (such as CodeDeployDefault.ECSCanary10Percent5Minutes) to route traffic to the green target group, and specify CloudWatch alarms based on the ALB HTTPCode_Target_5XX_Count and TargetResponseTime metrics as rollback triggers in the deployment group.Cevap
- Enable target group stickiness on the ALB listener rule that routes traffic to the blue and green target groups, and set the stickiness duration to 25 minutes.Cevap
- CConfigure the ECS service deployment controller to use ECS rolling updates (ECS), set the minimum healthy percent to 100%, enable ECS deployment circuit breakers with rollback, and use target group stickiness on the ALB.
- DConfigure AWS CodeDeploy with the CodeDeployDefault.ECSAllAtOnce deployment configuration, enable target-level stickiness on both the blue and green target groups, and configure a CloudWatch alarm on the ALB ActiveConnectionCount metric to trigger rollback.
- ECreate a secondary Application Load Balancer for the new ECS service version, configure Amazon Route 53 with weighted routing to split traffic between the two load balancers, and enable Route 53 target health evaluation for automated rollback.