DVA-C02 Deployment Practice Question
A developer is using AWS CodeDeploy to deploy an application to an Auto Scaling group. The deployment must be as fast as possible while ensuring that at least 50% of instances remain healthy throughout. Which deployment configuration should be used?
⚠ Common exam trap
Many candidates confuse 'HalfAtATime' with 'OneAtATime' thinking slower is safer, or incorrectly assume 'AllAtOnce' is fastest without considering the health constraint, or invent a configuration name like 'MinHealthyPercent' that does not exist in CodeDeploy.
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.HalfAtATime
CodeDeployDefault.HalfAtATime is the correct choice because it deploys to half of the instances in the Auto Scaling group at a time, ensuring that at least 50% of instances remain healthy throughout the deployment. This configuration balances speed (by deploying to multiple instances concurrently) with the required availability constraint, making it the fastest option that satisfies the 'at least 50% healthy' requirement.
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 it's wrong here
The CodeDeployDefault.OneAtATime configuration ensures maximum application availability by deploying the application to only one instance at a time within the Auto Scaling group. While this approach guarantees that the application remains highly available throughout the deployment, it is the slowest default option, significantly increasing the overall deployment duration for larger fleets. This method prioritizes risk minimization over deployment speed.
- ✓
CodeDeployDefault.HalfAtATime
Why this is correct
The CodeDeployDefault.HalfAtATime configuration updates half of the instances in the Auto Scaling group at a time, ensuring that at least 50% of the instances remain healthy and available throughout the deployment process. This default strikes an optimal balance between deployment speed and application availability, making it a robust choice for production environments where some temporary capacity reduction is acceptable. It is significantly faster than `OneAtATime` while still providing strong resilience.
- ✗
CodeDeployDefault.AllAtOnce
Why it's wrong here
The CodeDeployDefault.AllAtOnce configuration attempts to deploy the application to all instances in the Auto Scaling group concurrently. While this method offers the fastest deployment time, it carries the highest risk to application availability because it does not guarantee any minimum healthy host count during the deployment. If the deployment fails on even a few instances, the entire fleet could experience significant downtime or become unhealthy, making it unsuitable for critical production workloads.
- ✗
CodeDeployDefault.MinHealthyPercent
Why it's wrong here
CodeDeployDefault.MinHealthyPercent is not a predefined deployment configuration name that can be directly selected. Instead, `MinHealthyPercent` is a specific parameter used when creating a *custom* deployment configuration, allowing users to define the minimum percentage of healthy instances that must be maintained during a deployment. While crucial for tailoring deployment strategies, it cannot be chosen as a default configuration like `OneAtATime` or `HalfAtATime`.
Go deeper
Related to this question
About these practice questions
One of 724 original DVA-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.