Courseiva
Question 282 of 724
DeploymentmediumMultiple ChoiceObjective-mapped

DVA-C02 Deployment Practice Question

A developer is using AWS CodeDeploy to deploy an application to an EC2 Auto Scaling group. The application must remain fully available; only one instance should be taken offline at a time. The developer wants to configure the deployment to update instances one by one, ensuring that the deployment fails fast if any instance fails to deploy. Which deployment configuration should the developer choose?

⚠ Common exam trap

Many exam-takers confuse deployment configurations (like OneAtATime) with deployment types (like BlueGreen), or incorrectly assume that HalfAtATime updates instances one by one when it actually updates half the fleet at a time.

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 deploys the application to one instance at a time, ensuring that only one instance is taken offline during the deployment. This satisfies the requirement for the application to remain fully available. Additionally, this configuration fails fast: if any instance fails to deploy, the deployment stops immediately, preventing further instances from being updated.

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.AllAtOnce

    Why it's wrong here

    The CodeDeployDefault.AllAtOnce configuration updates all instances within the target deployment group simultaneously. While this approach offers the fastest deployment time, it inherently leads to a complete service interruption for the entire application during the update process, as all instances are unavailable or transitioning at once. This strategy provides no capacity to serve traffic during the deployment, making it unsuitable for applications requiring high availability.

  • CodeDeployDefault.HalfAtATime

    Why it's wrong here

    The CodeDeployDefault.HalfAtATime configuration updates 50% of the instances in the deployment group at any given time. While it maintains some application availability by keeping half the instances online, reducing the active capacity by half during the deployment window can significantly impact performance and user experience, especially under peak load conditions. This strategy does not guarantee minimal impact and could still lead to service degradation if the remaining half cannot handle the full traffic volume.

  • CodeDeployDefault.OneAtATime

    Why this is correct

    The CodeDeployDefault.OneAtATime configuration updates only one instance in the target deployment group at a time. This strategy ensures maximum application availability by keeping the vast majority of instances serving traffic throughout the deployment process. It minimizes the blast radius of any potential deployment failure and allows for quick rollback or termination of the deployment if issues are detected on the single updated instance, making it ideal for critical applications requiring continuous operation.

  • CodeDeployDefault.BlueGreen

    Why it's wrong here

    CodeDeployDefault.BlueGreen is a distinct deployment type in AWS CodeDeploy, not an in-place deployment configuration like the others listed. It involves provisioning an entirely new set of instances (the 'green' environment) with the new application version, while the existing 'blue' environment continues to serve traffic. Traffic is then shifted to the green environment, allowing for zero-downtime deployments and easy rollback by simply reverting traffic to the blue environment. This question specifically asks about in-place deployment configurations for an EC2 Auto Scaling group, which Blue/Green is not.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.