Courseiva
DeploymenthardMultiple SelectObjective-mapped

DVA-C02 Deployment Practice Question

Which THREE components are required to perform a blue/green deployment of an application running on Amazon ECS using AWS CodeDeploy? (Select THREE.)

⚠ Common exam trap

Candidates often assume the ECS cluster itself is a required component for the deployment, but CodeDeploy treats the cluster as existing infrastructure and does not require it as a parameter in the deployment group; the cluster is implicitly referenced via the ECS service, not as a separate required component.

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

An Application Load Balancer

An Application Load Balancer (ALB) is required for blue/green deployments on Amazon ECS with AWS CodeDeploy because it routes traffic between the 'blue' (current) and 'green' (new) task sets. CodeDeploy uses the ALB's target groups to shift traffic incrementally during the deployment, enabling zero-downtime updates. Without an ALB, there is no mechanism to direct production traffic to the new task set while keeping the old one available for rollback.

Answer analysis

Option-by-option breakdown

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

  • An Amazon ECS cluster

    Why it's wrong here

    An Amazon ECS cluster is the infrastructure where the ECS service runs, but it is not a required input for the CodeDeploy blue/green deployment configuration itself. The cluster is indirectly referenced through the ECS service that CodeDeploy updates; it does not need to be specified as a separate component in the deployment group or application.

  • An Application Load Balancer

    Why this is correct

    The ALB is used to shift traffic between blue and green task sets.

  • An AWS CodeDeploy deployment group

    Why this is correct

    Deployment group specifies the ECS service and load balancer.

  • An AWS CodeDeploy application

    Why this is correct

    CodeDeploy application is a container for the deployment.

  • A target tracking scaling policy

    Why it's wrong here

    Scaling policy is optional, not required for blue/green deployment.

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.