Soru

Zorluk: OrtaDeployment Strategies

A developer is setting up a blue/green deployment for a containerized application running on Amazon ECS using AWS CodeDeploy. The deployment must route 10%10\% of the production traffic to the new version of the application immediately. The remaining 90%90\% of the traffic must be routed to the new version only after a 1515-minute validation period, during which the application's health is monitored. If any errors occur during this period, CodeDeploy must automatically roll back the deployment.

Which pre-defined CodeDeploy deployment configuration should the developer use to meet these requirements?

  1. CodeDeployDefault.ECSCanary10Percent15MinutesCevap
  2. B
    CodeDeployDefault.ECSCanary10Percent5Minutes
  3. C
    CodeDeployDefault.ECSLinear10PercentEvery15Minutes
  4. D
    CodeDeployDefault.LambdaCanary10Percent15Minutes

Cevap

CodeDeployDefault.ECSCanary10Percent15Minutes
The configuration CodeDeployDefault.ECSCanary10Percent15Minutes is correct because it is a pre-defined CodeDeploy deployment configuration designed for Amazon ECS. It shifts 10%10\% of traffic to the replacement task set immediately, waits for 1515 minutes for validation and monitoring, and then routes the remaining 90%90\% of traffic to the new version.

Adım Adım Çözüm

1
Identify the target compute platform.
The application runs on Amazon ECS, so the configuration name must begin with CodeDeployDefault.ECS.
CodeDeploy has separate pre-defined configurations for ECS, Lambda, and EC2/On-Premises.
2
Determine the traffic shifting pattern.
The requirement is to shift a small portion (10%10\%) and then the rest after a delay, which corresponds to a Canary deployment pattern.
Linear configurations shift traffic in equal increments at regular intervals, whereas Canary configurations shift an initial percentage, wait for a specified time, and then shift all remaining traffic.
3
Match the specified percentage and time interval parameters.
The parameters are 10%10\% traffic shifted immediately and a 1515-minute wait time, which matches CodeDeployDefault.ECSCanary10Percent15Minutes.
This is a standard pre-defined deployment configuration provided by AWS CodeDeploy for ECS.

Anahtar Kavram

AWS CodeDeploy deployment configurations for ECS Blue/Green deployments control how traffic is shifted from the old task set to the new task set, allowing canary testing with built-in validation periods.
Bu soruyu puanla