DOP-C02 · Question #431
DOP-C02 Question #431: Real Exam Question with Answer & Explanation
The correct answer is D: Configure automatic rollback settings in AWS CodeDeploy.. AWS CodeDeploy supports automatic rollback capabilities, which allow the deployment to automatically revert to the last known good revision if a failure occurs during the deployment or if health checks fail. You can enable automatic rollback on CodeDeploy deployments by configuri
Question
A software engineering team is using AWS CodeDeploy to deploy a new version of an application. The team wants to ensure that if any issues arise during the deployment, the process can automatically roll back to the previous version. During the deployment process, a health check confirms the application's stability. If the health check fails, the deployment must revert automatically. Which solution will meet these requirements?
Options
- AImplement lifecycle event hooks in the deployment configuration.
- BUse AWS CloudFormation to monitor the health of the deployment.
- CSet up alarms in Amazon CloudWatch to start a rollback.
- DConfigure automatic rollback settings in AWS CodeDeploy.
Explanation
AWS CodeDeploy supports automatic rollback capabilities, which allow the deployment to automatically revert to the last known good revision if a failure occurs during the deployment or if health checks fail. You can enable automatic rollback on CodeDeploy deployments by configuring rollback settings in the deployment group. Automatic rollback triggers can include failed deployments and alarms failing during the deployment lifecycle, which means if the health check fails, CodeDeploy will automatically roll back without manual intervention. Lifecycle event hooks (Option A) provide custom scripting capabilities during deployment but do not provide built-in rollback automation. CloudFormation (Option B) can deploy and manage infrastructure but does not control CodeDeploy rollback. CloudWatch alarms (Option C) can trigger notifications but require manual or additional automation to trigger rollback. Hence, enabling CodeDeploy's automatic rollback settings is the simplest and most reliable method for automatic rollback upon health check failure.
Topics
Community Discussion
No community discussion yet for this question.