exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 152 discussion

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?

  • A. The two affected instances failed to fetch the new deployment.
  • B. A failed AfterInstall lifecycle event hook caused the CodeDeploy agent to roll back to the previous version on the affected instances.
  • C. The CodeDeploy agent was not installed in two affected instances.
  • D. EC2 Auto Scaling launched two new instances while the new deployment had not yet finished, causing the previous version to be deployed on the affected instances.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
thanhnv142
Highly Voted 8 months, 3 weeks ago
Selected Answer: D
D is correct: In-place deployment search for all available agents at the time of the deployment and update the app version. If there are new instances launched after the search, they would be omitted and they fetch the lastest app version available, which is the previous revision A and B: If this happened, the other three would be affected as well C: If code deploy agents were not installed, no version would be installed on the two instances
upvoted 6 times
...
promo286
Highly Voted 9 months ago
Selected Answer: D
D. EC2 Auto Scaling launched two new instances while the new deployment had not yet finished, causing the previous version to be deployed on the affected instances. Explanation: In an EC2 Auto Scaling group, when a deployment is in progress and new instances are launched, they may receive the previous version of the application if the deployment has not yet completed. This is because the new instances join the Auto Scaling group and need to fetch the latest revision during the deployment process. If the deployment has not finished when the new instances are launched, they will fetch the current revision available in the Auto Scaling group, which might be the previous version.
upvoted 5 times
govindrk
8 months, 2 weeks ago
A. The explanation provided for D summarizes A- The two affected instances failed to fetch the new deployment.
upvoted 1 times
...
...
youonebe
Most Recent 4 months ago
Selected Answer: B
B is correct. The AfterInstall lifecycle event is executed after the application revision is installed on the EC2 instance. If an error occurs during this phase, the CodeDeploy agent can trigger a rollback to the previous application version. Given that the deployment was successful for three instances and not for the others, it’s possible that the AfterInstall hook failed on the two instances that still have the previous version. In this case, the CodeDeploy agent would have automatically rolled back to the last successful application revision for those two instances. why D is wrong? new instances launched by Auto Scaling would have the current revision applied during the deployment process, not the previous revision. Therefore, it’s unlikely that the new instances would have the previous version unless something else occurred.
upvoted 2 times
...
kyuhuck
8 months, 2 weeks ago
Selected Answer: B
, B. A failed AfterInstall lifecycle event hook caused the CodeDeploy agent to roll back to the previous version on the affected instances seems to be the most plausible explanation. It accounts for the scenario where the deployment was successful overall, but specific instances reverted to the previous application revision due to issues encountered during post-installation steps. It's important for the DevOps engineer to review the deployment logs, especially focusing on lifecycle event hooks and their outcomes, to confirm this hypothesis and take corrective actions.
upvoted 1 times
...
a54b16f
9 months, 2 weeks ago
Selected Answer: D
only D makes sense
upvoted 4 times
...
csG13
10 months ago
Selected Answer: D
Got to be D. The rest choices would impact the entire ASG and not only two out of the five intances.
upvoted 5 times
...
PrasannaBalaji
10 months ago
Selected Answer: D
D is correct https://docs.aws.amazon.com/codedeploy/latest/userguide/troubleshooting-auto-scaling.html#troubleshooting-auto-scaling-provision-termination-loo
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago