DVA-C02 Deployment Practice Question
A developer is using AWS CodeDeploy to deploy an application to an EC2 Auto Scaling group. The developer wants to monitor the deployment and automatically roll back if a specified Amazon CloudWatch alarm is triggered during the deployment. Which CodeDeploy feature should the developer configure?
⚠ Common exam trap
Watch out — candidates often confuse the deployment group alarm configuration (which monitors CloudWatch alarms during deployment) with a deployment configuration (which controls traffic shifting and failure thresholds), leading them to select Option B instead of A.
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
✓
Deployment group alarm configuration
The Deployment group alarm configuration in AWS CodeDeploy allows you to specify Amazon CloudWatch alarms that, when triggered during a deployment, automatically initiate a rollback. This feature is configured at the deployment group level and ensures that if a predefined alarm (e.g., high error rate or latency) enters the ALARM state, CodeDeploy stops the deployment and reverts to the last known good revision. This provides automated, policy-driven rollback without 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.
- ✓
Deployment group alarm configuration
Why this is correct
AWS CodeDeploy deployment groups can be configured with one or more Amazon CloudWatch alarms. When a deployment is in progress or completes, CodeDeploy continuously monitors these alarms for any state changes. If any configured alarm transitions to an ALARM state, CodeDeploy can be set to automatically roll back the deployment, reverting the application to its previous stable version. This mechanism ensures that problematic deployments are quickly undone, minimizing impact on end-users.
- ✗
Deployment configuration with alarm
Why it's wrong here
In AWS CodeDeploy, deployment configurations define how a deployment proceeds, such as CodeDeployDefault.AllAtOnce or CodeDeployDefault.OneAtATime, specifying success/failure thresholds. However, these configurations do not directly integrate with or monitor CloudWatch alarms for rollback purposes. Alarms are specifically associated with a deployment group to trigger automatic rollbacks, not with the deployment configuration itself, which dictates the deployment strategy.
- ✗
Revision rollback
Why it's wrong here
Revision rollback in CodeDeploy refers to the process of deploying a previously successful application revision to revert changes. While this is a valid method to undo a problematic deployment, it is typically a manual action initiated by a user or an automated process outside of CodeDeploy's direct alarm integration. It is not an automatic rollback mechanism directly triggered by a CloudWatch alarm entering an ALARM state during a deployment.
- ✗
EC2 instance health check
Why it's wrong here
EC2 instance health checks within CodeDeploy deployment groups are used to monitor the operational status of individual instances during a deployment. If an instance fails its health check, CodeDeploy might stop deploying to that specific instance or mark the overall deployment as failed, depending on the deployment configuration. However, these health checks are distinct from CloudWatch alarms and do not directly trigger an automatic rollback of the entire deployment based on a metric threshold being breached.
Go deeper
Related to this question
About these practice questions
This DVA-C02 question is part of Courseiva's 724-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
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.