Exam DOP-C02 Topic 4 Question 245 Discussion
Actual exam question for Amazon's DOP-C02 exam
Question #: 245
Topic #: 4
Question #: 245
Topic #: 4
A DevOps engineer is using AWS CodeDeploy across a fleet of Amazon EC2 instances in an EC2 Auto Scaling group. The associated CodeDeploy deployment group, which is integrated with EC2 Auto Scaling, is configured to perform in-place deployments with codeDeployDefault.oneAtATime During an ongoing new deployment, the engineer discovers that, although the overall deployment finished successfully, two out of five instances have the previous application revision deployed. The other three instances have the newest application revision What is likely causing this issue?
Suggested Answer: B Vote an answer
When AWS CodeDeploy performs an in-place deployment, it updates the instances with the new application revision one at a time, as specified by the deployment configuration codeDeployDefault.oneAtATime. If a lifecycle event hook, such as AfterInstall, fails during the deployment, CodeDeploy will attempt to roll back to the previous version on the affected instances. This is likely what happened with the two instances that still have the previous application revision deployed. The failure of the AfterInstall lifecycle event hook triggered the rollback mechanism, resulting in those instances reverting to the previous application revision.
References:
* AWS CodeDeploy documentation on redeployment and rollback procedures1.
* Stack Overflow discussions on re-deploying older revisions with AWS CodeDeploy2.
* AWS CLI reference guide for deploying a revision2.
References:
* AWS CodeDeploy documentation on redeployment and rollback procedures1.
* Stack Overflow discussions on re-deploying older revisions with AWS CodeDeploy2.
* AWS CLI reference guide for deploying a revision2.
by Miles at Apr 13, 2026, 04:19 AM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).