Courseiva
Deployment →hardMultiple Choice

DVA-C02 AutoRollbackConfiguration Practice Question

A developer is using AWS CodeDeploy to deploy an application to an EC2 Auto Scaling group. The developer wants the deployment to automatically roll back if any of the new instances fail a health check within the first 10 minutes after deployment. Which configuration should the developer set in the CodeDeploy deployment group?

⚠ Common exam trap

Many exam-takers confuse event-based notifications (TriggerConfiguration) with automated rollback actions (AutoRollbackConfiguration), or mistakenly think lifecycle hooks or deployment style settings inherently provide health-check-based rollback.

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 CloudWatch alarm and enable alarm-based automatic rollback in the AutoRollbackConfiguration.

CodeDeploy's AutoRollbackConfiguration allows you to specify CloudWatch alarms as triggers for automatic rollback. By creating a CloudWatch alarm that monitors the EC2 Auto Scaling group's health check failures and setting the alarm's evaluation period to 10 minutes, the deployment will automatically roll back if any new instance fails a health check within that window. This directly meets the requirement without custom scripting or manual intervention.

Answer analysis

Option-by-option breakdown

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

  • ✓

    Configure a CloudWatch alarm and enable alarm-based automatic rollback in the AutoRollbackConfiguration.

    Why this is correct

    The AutoRollbackConfiguration in the deployment group allows you to specify events that trigger an automatic rollback, including alarm (CloudWatch alarm). The developer can set an alarm that monitors health check metrics and configure the deployment group to roll back if that alarm is in the ALARM state.

  • ✗

    Set the DeploymentStyle to 'BLUE_GREEN' and configure the 'LoadBalancerInfo' with the target group.

    Why it's wrong here

    This configures a blue/green deployment, but does not set up automatic rollback. Rollback still requires additional configuration.

  • ✗

    Create a lifecycle hook for the Auto Scaling group to trigger a rollback script.

    Why it's wrong here

    Lifecycle hooks allow you to perform custom actions before instances launch or terminate, but they do not inherently trigger a CodeDeploy rollback.

  • ✗

    Set a TriggerConfiguration in the deployment group to send notifications on deployment failure.

    Why it's wrong here

    TriggerConfiguration is used for SNS notifications, not for automatic rollback. Rollback must be configured separately.

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 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.