Courseiva
DeploymentmediumMultiple ChoiceObjective-mapped

DVA-C02 Deployment Practice Question

A company uses AWS Elastic Beanstalk to deploy a web application. The environment is currently running a previous version. The developer uploads a new application version and deploys it to the environment. After the deployment, the environment health status turns 'Severe' and the new version is not accessible. The developer needs to quickly revert to the previous working version. What should the developer do?

⚠ Common exam trap

A common mix-up: candidates confuse 'deploying a previous application version' (which directly fixes the code) with 'rolling back environment configuration' (which only affects settings), leading them to incorrectly choose Option C.

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

Use the Elastic Beanstalk console to deploy the previous application version.

Elastic Beanstalk allows you to deploy a previous application version directly from the console or CLI without creating a new environment. This action replaces the current application version in the existing environment, restoring the previously working code and resolving the health status. It is the fastest and most straightforward way to revert while preserving the environment's configuration and resources.

Answer analysis

Option-by-option breakdown

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

  • Create a new environment with the previous version and swap CNAMEs.

    Why it's wrong here

    Creating a new environment and swapping CNAMEs introduces a delay while the new environment provisions and stabilises, which fails the requirement to *quickly* revert. This approach is tempting because it is a standard strategy for blue/green deployments, where zero-downtime traffic shifting between fully healthy environments is the goal, not an emergency rollback of a single environment.

  • Use the Elastic Beanstalk console to deploy the previous application version.

    Why this is correct

    Elastic Beanstalk maintains a history of all deployed application versions. When a new deployment introduces issues, the console or CLI allows direct selection and deployment of any previously uploaded and deployed application version. This process triggers an in-place update of the existing environment's instances, replacing the problematic code with the last known good version, thereby providing a quick and efficient rollback mechanism without requiring environment recreation.

  • Roll back the environment configuration to a previous saved configuration.

    Why it's wrong here

    Rolling back the environment configuration only reverts settings like instance type, scaling policies, or environment variables, not the application code itself. If the current application version contains a bug, reverting configuration parameters will not replace the faulty application bundle running on the instances. This action is appropriate for fixing configuration-related issues, but it is ineffective for addressing problems stemming from the deployed application source code.

  • Terminate the environment and launch a new one with the previous version.

    Why it's wrong here

    Terminating an Elastic Beanstalk environment and launching a new one, even with a previous application version, is a highly disruptive and time-consuming process. This approach incurs significant downtime as the existing environment is destroyed and a completely new set of resources (EC2 instances, load balancers, etc.) must be provisioned and initialized from scratch. It is an inefficient and unnecessary method for simply reverting to a prior application version within an existing, functional environment.

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

Courseiva writes every DVA-C02 question from scratch — 724 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. 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.