- A
Set the deployment style to in-place and enable automatic rollback with event triggers.
Why wrong: This is vague; automatic rollback must specify which events trigger it. Without selecting 'instance failure', it won't roll back on health check failures.
- B
Configure a deployment configuration with a minimum healthy hosts of 90% and enable CloudWatch alarm-based rollback.
Why wrong: CloudWatch alarm-based rollback requires a separate alarm, which is not mentioned. The requirement is to roll back on instance failure, not on an alarm.
- C
Set the deployment style to blue/green and enable automatic rollback for deployment failure.
Why wrong: Blue/green is a deployment style, but the requirement is for automatic rollback on instance failure. 'Deployment failure' is a broader event that may not capture instance health check failures within 10 minutes.
- D
Configure a deployment group with automatic rollback enabled and set the rollback trigger to instance failure.
This directly configures automatic rollback based on instance failure events, which include health check failures during the deployment lifecycle. CodeDeploy will then automatically revert to the previous deployment revision.
DVA-C02 Deployment Practice Question
This DVA-C02 practice question tests your understanding of deployment. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. A key principle to apply: codeDeploy automatic rollback can be configured at the deployment group level.. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A developer is using AWS CodeDeploy to deploy an application to an EC2 Auto Scaling group. The deployment must be rolled back automatically if any instance in the deployment fails a health check within 10 minutes after the deployment. Which configuration should the developer set in the CodeDeploy 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
Configure a deployment group with automatic rollback enabled and set the rollback trigger to instance failure.
Option D is correct because the developer needs to configure the CodeDeploy deployment group with automatic rollback enabled and set the rollback trigger to 'instance failure'. This configuration ensures that if any instance fails a health check within the specified monitoring period (10 minutes after deployment), CodeDeploy automatically rolls back the deployment to the last known good revision. The 'instance failure' trigger specifically monitors the health of each instance and initiates a rollback when a health check fails, meeting the requirement exactly.
Key principle: CodeDeploy automatic rollback can be configured at the deployment group level.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Set the deployment style to in-place and enable automatic rollback with event triggers.
Why it's wrong here
This is vague; automatic rollback must specify which events trigger it. Without selecting 'instance failure', it won't roll back on health check failures.
- ✗
Configure a deployment configuration with a minimum healthy hosts of 90% and enable CloudWatch alarm-based rollback.
Why it's wrong here
CloudWatch alarm-based rollback requires a separate alarm, which is not mentioned. The requirement is to roll back on instance failure, not on an alarm.
- ✗
Set the deployment style to blue/green and enable automatic rollback for deployment failure.
Why it's wrong here
Blue/green is a deployment style, but the requirement is for automatic rollback on instance failure. 'Deployment failure' is a broader event that may not capture instance health check failures within 10 minutes.
- ✓
Configure a deployment group with automatic rollback enabled and set the rollback trigger to instance failure.
Why this is correct
This directly configures automatic rollback based on instance failure events, which include health check failures during the deployment lifecycle. CodeDeploy will then automatically revert to the previous deployment revision.
Related concept
CodeDeploy automatic rollback can be configured at the deployment group level.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often confuse 'deployment failure' (which triggers rollback only when the entire deployment process fails) with 'instance failure' (which triggers rollback when any individual instance fails a health check after deployment), leading them to choose options that only handle deployment-level failures.
Detailed technical explanation
How to think about this question
Under the hood, CodeDeploy's automatic rollback with 'instance failure' trigger works by monitoring the deployment's instance health using the same health checks defined in the Auto Scaling group's ELB health check configuration. When an instance fails a health check, CodeDeploy marks it as unhealthy and, if the rollback trigger is set to 'instance failure', immediately initiates a rollback to the previous revision, stopping further deployment to other instances. In real-world scenarios, this is critical for canary or linear deployments where a single bad instance could corrupt data or cause cascading failures if not rolled back quickly.
KKey Concepts to Remember
- CodeDeploy automatic rollback can be configured at the deployment group level.
- The 'instance failure' trigger monitors the health of individual instances during and after deployment.
- This trigger detects issues like instances failing health checks or becoming unhealthy.
- Upon detection, CodeDeploy reverts the deployment group to the last successful revision.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
CodeDeploy automatic rollback can be configured at the deployment group level.
Real-world example
How this comes up in practice
A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. CodeDeploy automatic rollback can be configured at the deployment group level. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.
What to study next
Got this wrong? Here's your next step.
Review codeDeploy automatic rollback can be configured at the deployment group level., then practise related DVA-C02 questions on the same topic to reinforce the concept.
- →
Deployment — study guide chapter
Learn the concepts, then practise the questions
- →
Deployment practice questions
Targeted practice on this topic area only
- →
All DVA-C02 questions
1,616 questions across all exam domains
- →
AWS Certified Developer Associate DVA-C02 study guide
Full concept coverage aligned to exam objectives
- →
DVA-C02 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related DVA-C02 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Development with AWS Services practice questions
Practise DVA-C02 questions linked to Development with AWS Services.
Security practice questions
Practise DVA-C02 questions linked to Security.
Deployment practice questions
Practise DVA-C02 questions linked to Deployment.
Troubleshooting and Optimization practice questions
Practise DVA-C02 questions linked to Troubleshooting and Optimization.
DVA-C02 fundamentals practice questions
Practise DVA-C02 questions linked to DVA-C02 fundamentals.
DVA-C02 scenario practice questions
Practise DVA-C02 questions linked to DVA-C02 scenario.
DVA-C02 troubleshooting practice questions
Practise DVA-C02 questions linked to DVA-C02 troubleshooting.
Practice this exam
Start a free DVA-C02 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this DVA-C02 question test?
Deployment — This question tests Deployment — CodeDeploy automatic rollback can be configured at the deployment group level..
What is the correct answer to this question?
The correct answer is: Configure a deployment group with automatic rollback enabled and set the rollback trigger to instance failure. — Option D is correct because the developer needs to configure the CodeDeploy deployment group with automatic rollback enabled and set the rollback trigger to 'instance failure'. This configuration ensures that if any instance fails a health check within the specified monitoring period (10 minutes after deployment), CodeDeploy automatically rolls back the deployment to the last known good revision. The 'instance failure' trigger specifically monitors the health of each instance and initiates a rollback when a health check fails, meeting the requirement exactly.
What should I do if I get this DVA-C02 question wrong?
Review codeDeploy automatic rollback can be configured at the deployment group level., then practise related DVA-C02 questions on the same topic to reinforce the concept.
What is the key concept behind this question?
CodeDeploy automatic rollback can be configured at the deployment group level.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 11, 2026
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.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.