DOP-C02 Elastic Beanstalk rollback Practice Question
A company uses AWS Elastic Beanstalk for its web application. After a deployment, the environment health changes to 'Severe' and the application becomes unresponsive. The DevOps team needs to quickly revert to the previous working version. What is the FASTEST way to achieve this?
⚠ Common exam trap
DOP-C02 often tests the difference between a fast in-place rollback (redeploy previous version) and a blue/green swap, tempting candidates to pick URL swap even when no second environment exists.
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.
Deploying the previous application version through the Elastic Beanstalk console is the fastest rollback because Beanstalk retains prior application versions and can redeploy one directly to the same environment, restoring the working state without rebuilding infrastructure. This is the standard, quickest recovery path.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Use the Elastic Beanstalk console to deploy the previous application version.
Why this is correct
Redeploying the previous application version through the Elastic Beanstalk console triggers a fresh environment update that restores the last known-good build, directly reversing the faulty deployment. This is faster than rebuilding the environment or manually patching instances, satisfying the requirement to quickly revert to the previous working version.
- ✗
Swap environment URLs with a different environment that runs the previous version.
Why it's wrong here
Swapping URLs requires a second environment already running the previous version; if none exists, this cannot restore service. It is tempting because CNAME swap is the canonical zero-downtime rollback mechanism, and it would be correct when a warm standby environment with the prior version is already deployed.
- ✗
Terminate the environment and create a new one with the previous version.
Why it's wrong here
Terminating and rebuilding an environment destroys instances and takes many minutes, far slower than an in-place rollback. It is tempting because a clean environment can clear configuration drift, and it would be correct when the environment itself is unrecoverable and must be recreated from saved configuration.
- ✗
Redeploy the same application version to the environment.
Why it's wrong here
Redeploying the same application version reinstates the broken build, so the environment stays Severe. It is tempting because redeploy is a familiar recovery action, and it would be correct if the fault were transient instance corruption rather than the deployed version itself.
Go deeper
Related to this question
About these practice questions
Courseiva writes every DOP-C02 question from scratch — 1,298 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 →
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 DOP-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 DOP-C02 exam.