DVA-C02 Deployment Practice Question
A developer is using AWS CodeDeploy to deploy an application to an EC2 Auto Scaling group. The deployment must ensure that a minimum number of instances are always running and healthy. The developer wants to deploy to 10 instances. Which deployment configuration should the developer use?
⚠ Common exam trap
The trap here is that candidates often mistake 'CodeDeployDefault.MinHealthyHostsPercentage: 90' for a predefined deployment configuration. In reality, the only predefined configurations are CodeDeployDefault.OneAtATime, CodeDeployDefault.HalfAtATime, and CodeDeployDefault.AllAtOnce. 'MinHealthyHostsPercentage' is a parameter used to define custom configurations, not a standalone predefined name.
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
✓
CodeDeployDefault.OneAtATime
CodeDeployDefault.OneAtATime, is correct because it ensures that only one instance is updated at a time, which guarantees that a minimum number of instances (9 out of 10) remain healthy and running throughout the deployment. This configuration is ideal for maintaining high availability and meeting strict uptime requirements.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
CodeDeployDefault.OneAtATime
Why this is correct
This configuration ensures that only one instance is taken offline for deployment at any given time, maintaining the maximum possible number of healthy instances throughout the process. Specifically, it guarantees that N-1 instances remain healthy and serving traffic while one instance is updated and validated. This sequential approach is ideal for achieving zero-downtime deployments, minimizing service impact, and ensuring high availability for critical applications.
- ✗
CodeDeployDefault.AllAtOnce
Why it's wrong here
The CodeDeployDefault.AllAtOnce deployment configuration attempts to update all instances within the deployment group simultaneously. While this method offers the fastest deployment time, it inherently leads to service downtime because all instances are taken out of service or become unavailable during the update process. This approach is generally unsuitable for production environments requiring continuous availability, as it guarantees a complete service interruption unless the application can gracefully handle a full outage.
- ✗
CodeDeployDefault.HalfAtATime
Why it's wrong here
CodeDeployDefault.HalfAtATime is not a predefined deployment configuration name provided by AWS CodeDeploy. While CodeDeploy allows for custom configurations that could achieve a "half at a time" effect by setting a MinHealthyHostsPercentage (e.g., 50%), this specific name does not exist as a built-in default. Attempting to use this option would result in an invalid deployment configuration error, as it is not a recognized or supported strategy by CodeDeploy.
- ✗
CodeDeployDefault.MinHealthyHostsPercentage: 90
Why it's wrong here
This option is syntactically incorrect and not a valid predefined CodeDeploy deployment configuration name. MinHealthyHostsPercentage is a parameter used *within* a custom deployment configuration object to specify the minimum percentage of instances that must remain healthy and available during an in-place deployment. It is not a standalone default configuration name itself, nor is it formatted as such. AWS CodeDeploy expects specific predefined names or a properly structured custom configuration.
Go deeper
Related to this question
About these practice questions
This DVA-C02 question is part of Courseiva's 724-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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 DVA-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 DVA-C02 exam.