Courseiva
DeploymenthardMultiple ChoiceObjective-mapped

DVA-C02 Deployment Practice Question

A developer is using AWS CodeDeploy with a blue/green deployment on an Amazon ECS service running on Fargate. The developer wants to ensure that the new (green) task set is fully healthy and serving traffic before the old (blue) task set is terminated. The deployment should automatically roll back to the blue task set if the green task set fails health checks. Which configuration should the developer set in the CodeDeploy deployment group?

⚠ Common exam trap

It's easy for candidates to confuse deployment configurations (like AllAtOnce or Linear) with rollback settings, assuming that a traffic shifting strategy alone ensures health checks and automatic rollback, but rollback must be explicitly configured in the deployment group.

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

Deployment type: blue/green, with rollback configuration enabled to trigger automatic rollback and reroute traffic to the original task set

The developer needs to configure the CodeDeploy deployment group with a blue/green deployment type and enable automatic rollback. This ensures that if the green task set fails health checks, CodeDeploy automatically terminates the green deployment and reroutes traffic back to the original blue task set, meeting the requirement for a fully healthy green task set before termination.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Deployment type: blue/green, with rollback configuration enabled to trigger automatic rollback and reroute traffic to the original task set

    Why this is correct

    This configuration leverages AWS CodeDeploy's integrated rollback capabilities for blue/green deployments. By enabling rollback, CodeDeploy actively monitors predefined CloudWatch alarms or health checks during the traffic shifting phase. If any alarm is triggered, indicating a deployment failure or performance degradation, CodeDeploy automatically initiates a rollback, rerouting all traffic back to the original, stable task set to maintain application availability and minimize impact.

  • Deployment type: blue/green, Deployment configuration: CodeDeployDefault.ECSAllAtOnce

    Why it's wrong here

    The CodeDeployDefault.ECSAllAtOnce deployment configuration dictates that 100% of the traffic is shifted immediately from the original (blue) task set to the new (green) task set. While this is a valid blue/green traffic shifting method, this specific configuration alone does not include or enable automatic rollback functionality. Without explicit rollback configuration, any issues in the new environment would require manual intervention to revert, increasing recovery time.

  • Deployment type: blue/green, Deployment configuration: CodeDeployDefault.ECSLinear10PercentEvery1Minutes

    Why it's wrong here

    The CodeDeployDefault.ECSLinear10PercentEvery1Minutes deployment configuration implements a gradual traffic shift, moving 10% of traffic to the new task set every minute. This incremental approach allows for progressive monitoring and can help detect issues early. However, similar to other traffic shifting strategies, merely selecting this configuration does not automatically enable rollback. Explicit rollback configuration, often tied to CloudWatch alarms, is still required to automatically revert traffic upon failure detection.

  • Deployment type: blue/green, with an Application Load Balancer

    Why it's wrong here

    An Application Load Balancer (ALB) is an essential component for facilitating blue/green deployments on Amazon ECS with CodeDeploy, as it manages the routing of traffic between different target groups associated with the blue and green task sets. However, the ALB itself is a traffic management service and does not inherently provide automatic rollback logic. CodeDeploy utilizes the ALB for traffic shifting, but the intelligence for monitoring application health and initiating a rollback resides within CodeDeploy's deployment group configuration.

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 →

How Courseiva writes practice questions · Editorial policy

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.