Soru

Zorluk: ZorDeployment Strategies

A developer is configuring a blue/green deployment for a microservice hosted on Amazon Elastic Container Service (Amazon ECS) using AWS CodeDeploy. The deployment must meet the following operational requirements:

* Traffic must be shifted in two increments: 10%10\% of traffic must be routed to the new task set immediately, followed by the remaining 90%90\% after a 1515-minute evaluation period.
* The original task set must remain active for exactly 11 hour (6060 minutes) after traffic is fully routed to the new task set to allow for manual rollback if issues arise, after which the original task set should be automatically terminated.

Which two configurations will satisfy these requirements? (Select TWO.)

  1. Configure the deployment settings in the deployment group to use the Canary10Percent15Minutes deployment configuration.Cevap
  2. Configure the deployment group's blue/green deployment settings to wait 60 minutes before terminating the original task set.Cevap
  3. C
    Configure the deployment settings in the deployment group to use the Linear10Percent15Minutes deployment configuration.
  4. D
    Configure the deployment settings in the deployment group to use the Canary10Percent5Minutes deployment configuration.
  5. E
    Add an ApplicationStop lifecycle hook in the AppSpec file with a script that pauses execution for 3600 seconds.

Cevap

Configure the deployment settings in the deployment group to use the Canary10Percent15Minutes deployment configuration, and configure the deployment group's blue/green deployment settings to wait 60 minutes before terminating the original task set.
To shift 10%10\% of traffic immediately and the remaining 90%90\% after a 1515-minute evaluation period, the Canary10Percent15Minutes configuration is required. To retain the original task set for 11 hour after traffic shifting completes, the developer must specify a termination wait time of 6060 minutes in the deployment group settings.

Adım Adım Çözüm

1
Analyze traffic shifting requirements to choose the correct CodeDeploy configuration.
The requirement calls for shifting 10%10\% of traffic immediately and the remaining 90%90\% after a 1515-minute window. This represents a canary deployment pattern with a 1515-minute evaluation interval, pointing to Canary10Percent15Minutes.
Linear configurations shift traffic incrementally over multiple steps (e.g., 10%10\% every 1515 minutes), which does not match the two-increment canary requirement.
2
Determine the proper mechanism for delaying the termination of the old task set.
Identify that the CodeDeploy deployment group settings contain a specific configuration for specifying the termination wait time of the original (blue) task set.
Configuring this to 6060 minutes allows the old task set to remain active for exactly 11 hour after traffic is fully shifted, facilitating manual rollback if needed.
3
Evaluate AppSpec lifecycle hooks to identify incorrect configuration options.
Verify that ECS deployments support specific hooks (such as BeforeInstall, AfterInstall, AfterAllowTestTraffic, BeforeAllowTraffic, and AfterAllowTraffic) but do not support EC2 hooks like ApplicationStop.
Attempting to use ApplicationStop in an ECS AppSpec file will cause deployment validation errors.

Anahtar Kavram

AWS CodeDeploy deployment configurations and task set lifecycle management for ECS blue/green deployments.
Bu soruyu puanla