Soru

Zorluk: OrtaDeployment Strategies and Execution

A SysOps Administrator is setting up a blue/green deployment for an Amazon ECS service using AWS CodeDeploy. The deployment must shift 10% of the traffic to the new version initially, wait 10 minutes, and then route the remaining 90% of the traffic to the new version. If the new version fails any health checks or triggers standard error rate alarms during the test period, the deployment must automatically roll back. Which TWO configuration steps should the administrator take to meet these requirements?

  1. Select the CodeDeployDefault.ECSCanary10Percent10Minutes deployment configuration in the deployment group settings.Cevap
  2. Add CloudWatch alarms to the deployment group's rollback configuration to monitor for errors during the deployment.Cevap
  3. C
    Use an Application Load Balancer with dynamic listener rules to swap the target groups manually after 10 minutes.
  4. D
    Create a Route 53 weighted record set pointing to two different load balancers and configure Route 53 health checks to trigger rollbacks.
  5. E
    Grant the CodeDeploy deployment group the iam:AssumeRole permission for the ECS task execution role to pass the role to ECS.

Cevap

The SysOps Administrator should select the CodeDeployDefault.ECSCanary10Percent10Minutes deployment configuration in the deployment group settings, and add CloudWatch alarms to the deployment group's rollback configuration to monitor for errors during the deployment.
The correct strategy uses AWS CodeDeploy's native ECS integration. The preconfigured setting shifts a small portion of traffic (10%) to the replacement task set for a brief trial period (10 minutes) before completing the shift to 100%. To implement automatic rollback, CloudWatch alarms must be attached to the deployment group. If the alarms trigger during the deployment, CodeDeploy will roll back to the original task set.

Adım Adım Çözüm

1
Configure AWS CodeDeploy deployment group traffic shifting behavior.
The traffic routing is defined as a canary shift where 10% of traffic goes to the replacement task set first.
To meet the exact traffic shifting requirements without custom script development.
2
Configure CloudWatch alarm tracking within the CodeDeploy deployment group.
The deployment group will monitor specified metrics such as target response times or error rates.
To trigger automatic rollbacks without manual intervention if metrics degrade during the 10-minute testing phase.

Anahtar Kavram

AWS CodeDeploy integration with Amazon ECS for automated canary deployments and rollbacks.
Bu soruyu puanla