DOP-C02 SDLC Automation Practice Question
Which TWO are valid deployment configurations in AWS CodeDeploy? (Choose two.)
⚠ Common exam trap
Candidates often confuse deployment types (like BlueGreen or Rolling) with deployment configurations (like AllAtOnce or Canary10Percent5Minutes), leading them to select 'BlueGreen' or 'Rolling' as valid configurations when they are actually deployment methods or strategies in other AWS services.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
AllAtOnce
In AWS CodeDeploy, the valid deployment configurations are predefined traffic-shifting strategies. 'AllAtOnce' is a valid configuration that deploys the new application revision to all instances simultaneously, making it one of the two correct options. 'Canary10Percent5Minutes' is also a valid configuration that shifts 10% of traffic to the new version for 5 minutes before deploying the remainder, making it the second correct option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Rolling
Why it's wrong here
Rolling is a deployment type or strategy (in-place updates with a batch-based replacement of instances) rather than a specific, named CodeDeploy deployment configuration. CodeDeploy's predefined configurations are explicit names like AllAtOnce or HalfAtATime, while 'Rolling' alone cannot be supplied in the deployment configuration parameter. Therefore, it is not a valid configuration value.
- ✗
Linear
Why it's wrong here
Linear is a prefix used in traffic-shifting configurations for AWS Lambda/ECS deployments (e.g., Linear10PercentEvery1Minute) that shifts traffic in equal increments at specified intervals. The word 'Linear' by itself is not a complete predefined deployment configuration; it must be combined with a specific percentage and time period to be a valid value. Hence it is incorrect as a standalone configuration.
- ✓
AllAtOnce
Why this is correct
AllAtOnce is a predefined CodeDeploy deployment configuration that sets the minimum healthy instances to 0, causing the deployment to update every target instance simultaneously. This configuration is valid and useful when you accept full fleet downtime during deployment, such as in development environments or for infrastructure with elastic load balancer deregistration. It is one of the named configurations you can select directly in the AWS CodeDeploy console or CLI.
- ✓
Canary10Percent5Minutes
Why this is correct
Canary10Percent5Minutes is a predefined traffic-shifting configuration for CodeDeploy Lambda and Amazon ECS deployments: it shifts 10 percent of production traffic to the new version, waits 5 minutes, then shifts the remaining 90 percent to complete the deployment. This enables canary-style validation with a small traffic slice before full rollout. It is a valid named configuration and is commonly used for blue/green deployments on serverless or ECS targets.
- ✗
BlueGreen
Why it's wrong here
BlueGreen describes the overall deployment type in CodeDeploy where an entirely new 'green' fleet (or Lambda/ECS task-set) is provisioned and tested before traffic is switched over from the old 'blue' environment. It is not a deployment configuration; the configuration (e.g., AllAtOnce, canary, or linear) determines how traffic is shifted during that green deployment. Therefore, specifying 'BlueGreen' as a deployment configuration is invalid.
Go deeper
Related to this question
About these practice questions
Courseiva writes every DOP-C02 question from scratch — 1,298 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This DOP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DOP-C02 exam.