Courseiva
Deployment →easyMultiple Select

DVA-C02 Deployment Practice Question

A development team is using AWS Elastic Beanstalk to deploy a web application. The team wants to perform a blue/green deployment. Which THREE steps are required to complete the blue/green deployment?

⚠ Common exam trap

DVA-C02 often tests the confusion between in-place deployments and blue/green, or the misconception that you need to manually update Route 53 records instead of using the Elastic Beanstalk CNAME swap feature.

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

✓

Swap the CNAMEs of the two environments.

Elastic Beanstalk blue/green deployment requires creating a completely new environment rather than updating the existing one, so option E (deploy the new application version to a separate Elastic Beanstalk environment) is correct because the new version must run in its own environment alongside the original. Option B (swap the CNAMEs of the two environments) is correct because Elastic Beanstalk's Swap Environment URLs feature exchanges the CNAMEs so that the environment URL users already use now resolves to the new environment, redirecting traffic without DNS changes. Option C (terminate the old environment after verifying the new environment) is correct because once the swap is validated and the new environment is healthy, the original environment is no longer needed and should be terminated to avoid unnecessary resource charges. Option A is incorrect because updating the existing environment in place is a rolling/all-at-once deployment, not blue/green, and would not provide an instant rollback path. Option D is incorrect because Elastic Beanstalk blue/green uses the built-in CNAME swap rather than manually editing a Route 53 DNS record.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Update the existing environment with the new version.

    Why it's wrong here

    Updating the existing environment with the new version triggers an in-place rolling deployment that temporarily serves traffic from instances running both old and new code, and any failed health check can leave the environment impaired with no instantaneous rollback. Blue/green requires a completely separate environment so the original remains untouched and fully available until you are ready to switch traffic. This option contradicts the isolation principle that defines blue/green deployment.

  • ✓

    Swap the CNAMEs of the two environments.

    Why this is correct

    Elastic Beanstalk assigns each environment a CNAME (e.g., myapp-env.eba-123.us-east-1.elasticbeanstalk.com), and the 'Swap environment CNAMEs' action atomically exchanges the DNS names of the blue and green environments. This makes the new environment assume the old environment's URL, instantly redirecting all traffic to the green stack with zero downtime. It is the core traffic-shifting mechanism for blue/green on Elastic Beanstalk, and you can roll back by swapping the CNAMEs again.

  • ✓

    Terminate the old environment after verifying the new environment.

    Why this is correct

    Terminating the old environment is the final cleanup step in a blue/green deployment, executed only after the new environment has passed health checks and business verification. This releases the compute resources and associated Elastic Beanstalk resources of the blue environment, but it must be done after the CNAME swap so the old environment no longer receives traffic. Skipping it would leave you paying for idle infrastructure and potentially running duplicate resource-consuming services.

  • ✗

    Update the Route 53 DNS record to point to the new environment.

    Why it's wrong here

    Elastic Beanstalk's blue/green flow uses the platform-managed CNAME swap to reroute traffic, so manually changing a Route 53 record is unnecessary and actually bypasses the environment's built-in URL mechanism. If you are using a custom domain, the recommended practice is to point that domain as an alias or CNAME to the Elastic Beanstalk environment URL, which remains the same during the swap because the CNAME is swapped on the managed domain. Manual Route 53 edits introduce extra DNS propagation delay and human error, and they do not update the environment's own endpoint that EB health monitoring relies on.

  • ✓

    Deploy the new application version to a separate Elastic Beanstalk environment.

    Why this is correct

    Creating a separate Elastic Beanstalk environment and deploying the new application version to it establishes the 'green' stack that will eventually serve production traffic. This second environment operates in parallel with the original, running its own instances, load balancer, and autoscaling group, so your existing environment remains completely unaffected. It gives you a full staging platform to run smoke tests and performance checks before any traffic is redirected.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

About these practice questions

One of 1,135 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 and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Amazon Web Services exam blueprint

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.