DVA-C02 · Question #95
A company is planning to use AWS CodeDeploy to deploy an application to Amazon Elastic Container Service (Amazon ECS). During the deployment of a new version of the application, the company initially
The correct answer is A. CodeDeployDefault.ECSCanary10Percent15Minutes. CodeDeployDefault.ECSCanary10Percent15Minutes shifts 10% of traffic to the new task set immediately, waits 15 minutes, then routes the remaining 90% - exactly matching the stated canary deployment requirement.
Question
A company is planning to use AWS CodeDeploy to deploy an application to Amazon Elastic Container Service (Amazon ECS). During the deployment of a new version of the application, the company initially must expose only 10% of live traffic to the new version of the deployed application. Then, after 15 minutes elapse, the company must route all the remaining live traffic to the new version of the deployed application. Which CodeDeploy predefined configuration will meet these requirements?
Options
- ACodeDeployDefault.ECSCanary10Percent15Minutes
- BCodeDeployDefault.LambdaCanary10Percent5Minutes
- CCodeDeployDefault.LambdaCanary10Percentl15Minutes
- DCodeDeployDefault.ECSLinear10PercentEvery1Minutes
How the community answered
(31 responses)- A90% (28)
- C6% (2)
- D3% (1)
Why each option
CodeDeployDefault.ECSCanary10Percent15Minutes shifts 10% of traffic to the new task set immediately, waits 15 minutes, then routes the remaining 90% - exactly matching the stated canary deployment requirement.
The ECSCanary10Percent15Minutes predefined configuration is purpose-built for Amazon ECS deployments using a canary strategy. It initially routes 10% of production traffic to the new version, holds that state for 15 minutes to allow monitoring and validation, and then completes the deployment by shifting the remaining 90% in a single step - precisely meeting both the 10% initial exposure and the 15-minute interval requirements.
This configuration targets AWS Lambda, not ECS, and shifts 10% of traffic with only a 5-minute interval before completing - neither the compute platform nor the wait time matches the requirements.
This configuration also targets Lambda rather than ECS; despite having a 15-minute interval in the name, it cannot be applied to an ECS deployment.
The ECSLinear10PercentEvery1Minutes configuration uses a linear strategy that shifts traffic in 10% increments every 1 minute - it would take 9 additional minutes to reach 100% and does not match the single-step completion after 15 minutes.
Concept tested: CodeDeploy ECS canary deployment configuration
Source: https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html
Community Discussion
No community discussion yet for this question.