Question 474 of 1,616
DeploymentmediumMultiple ChoiceObjective-mapped

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?

Question 1mediummultiple choice
Full question →

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.

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.

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 →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

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.

Loading comments…

Sign in to join the discussion.

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.