exam questions

Exam AWS DevOps Engineer Professional All Questions

View all questions & answers for the AWS DevOps Engineer Professional exam

Exam AWS DevOps Engineer Professional topic 1 question 157 discussion

Exam question from Amazon's AWS DevOps Engineer Professional
Question #: 157
Topic #: 1
[All AWS DevOps Engineer Professional Questions]

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 CodeDeplcyDefault.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
DerekKey
Highly Voted 2 years, 3 months ago
Selected Answer: D
D: Scale-out events during a deployment If an Amazon EC2 Auto Scaling scale-out event occurs while a deployment is underway, the new instances will be updated with the application revision that was most recently deployed, not the application revision that is currently being deployed. If the deployment succeeds, the old instances and the newly scaled-out instances will be hosting different application revisions. To bring those instances up to date, CodeDeploy automatically starts a follow-on deployment (immediately after the first) to update any outdated instances. If you'd like to change this default behavior so that outdated EC2 instances are left at the older revision, see Automatic updates to outdated instances.
upvoted 6 times
...
ParagSanyashiv
Most Recent 2 years ago
Selected Answer: D
D is more suitable answer.
upvoted 1 times
...
thuyeinaung
2 years, 2 months ago
Selected Answer: D
D for sure
upvoted 1 times
...
Mark1000
2 years, 2 months ago
I voted for C too
upvoted 1 times
...
Piccaso
2 years, 2 months ago
Selected Answer: C
I picked D, and was introduced to read this link https://docs.aws.amazon.com/codedeploy/latest/userguide/integrations-aws-auto-scaling.html After reading, I changed my mind from D to C, because it says that "CodeDeployDefault.OneAtTime" will automatically start and follow-up deployment to bring the instances up to date. Since the problem can be solved automatically, C is the only choice.
upvoted 2 times
...
Bulti
2 years, 3 months ago
D is the right answer.
upvoted 1 times
...
devops7
2 years, 3 months ago
Selected Answer: D
D for sure. It is a very common SysOps exam question
upvoted 1 times
...
Dimidrol
2 years, 3 months ago
Selected Answer: D
D sure
upvoted 2 times
...
Oleg_gol
2 years, 3 months ago
Selected Answer: D
https://www.examtopics.com/discussions/amazon/view/8098-exam-aws-devops-engineer-professional-topic-1-question-93/
upvoted 2 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