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 26 discussion

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

A DevOps engineer is deploying a new version of a company's application in an AWS CodeDeploy deployment group associated with its Amazon EC2 instances.
After some time, the deployment fails. The engineer realizes that all the events associated with the specific deployment ID are in a Skipped status, and code was not deployed in the instances associated with the deployment group.
What are valid reasons for this failure? (Choose two.)

  • A. The networking configuration does not allow the EC2 instances to reach the internet via a NAT gateway or internet gateway, and the CodeDeploy endpoint cannot be reached.
  • B. The IAM user who triggered the application deployment does not have permission to interact with the CodeDeploy endpoint.
  • C. The target EC2 instances were not properly registered with the CodeDeploy endpoint.
  • D. An instance profile with proper permissions was not attached to the target EC2 instances.
  • E. The appspec.yml file was not included in the application revision.
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️

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
WhyIronMan
Highly Voted 3 years, 2 months ago
I'll go with A,D
upvoted 14 times
WhyIronMan
3 years, 2 months ago
Your instance might not be able to reach the CodeDeploy or S3 public endpoint using port 443. Try one of the following: If an instance is provisioned in a private subnet, use a NAT gateway instead of an internet gateway in the route table. For more information, see NAT Gateways. The instance you're deploying to might not have an IAM instance profile attached, or it might have an IAM instance profile attached that does not have the required permissions.
upvoted 13 times
...
...
hotblooded
Most Recent 11 months, 3 weeks ago
AD is answer
upvoted 2 times
...
m4r0ck
1 year, 5 months ago
Selected Answer: AD
The correct answers are A and D and here's why: When the deployment or all lifecycle events are skipped whether on EC2 or onpremise instances, one of the following errors could occur: +"The overall deployment failed because too many individual instances failed deployment" +"Too few healthy instances are available for deployment" +"Some instances in your deployment group are experiencing problems. (Error code: HEALTH_CONSTRAINTS)" And most of the time, these errors are related to: 1 - Codedeploy Agents is not installed/running on EC2/On-premise servers 2 - IAM instance profile missing some permissions 3 - Network communication (i.e. the agent on EC2/on premise server cannot reach the CodeDeploy endpoint via internet because of a proxy restricting communication etc.) 4 - Time mismatch between codedeploy and codedeploy agent on EC2/On premise.
upvoted 4 times
...
Tika01
1 year, 9 months ago
Selected Answer: AC
Option A is a possible reason for the failure because CodeDeploy uses an endpoint in the CodeDeploy service to receive and manage deployments, and if the instances cannot reach the endpoint, the deployment will fail. Option C is another possible reason for the failure because CodeDeploy needs to know which instances should receive the deployment, and if they are not properly registered with the deployment group, the deployment will not be executed on them.
upvoted 1 times
...
Sadeel
1 year, 9 months ago
A and D are the right answers.
upvoted 1 times
...
Murimi
1 year, 10 months ago
Selected Answer: AD
AD is the best answer
upvoted 1 times
...
bihani
1 year, 10 months ago
Selected Answer: AD
Sabreen_Salama explanation.
upvoted 1 times
...
Sabreen_Salama
1 year, 10 months ago
the answer is AD as below documentation https://docs.aws.amazon.com/codedeploy/latest/userguide/troubleshooting-deployments.html#troubleshooting-skipped-lifecycle-events
upvoted 2 times
...
Piccaso
1 year, 10 months ago
Selected Answer: CD
A B E do not match the "Skipped" status
upvoted 1 times
Piccaso
1 year, 10 months ago
Sorry, AD are the answers https://docs.aws.amazon.com/codedeploy/latest/userguide/troubleshooting-deployments.html#troubleshooting-skipped-lifecycle-events
upvoted 1 times
...
...
rrshah83
1 year, 11 months ago
Selected Answer: AD
ADE all seem possible causes. But if appspec is missing, the error will call that out. It won’t just skip events.
upvoted 2 times
...
Bulti
1 year, 11 months ago
Answer is A and D. There is a slight chance that the answer is D and E as well. But I will go with A and D. E is a possibility because all EC2 lifecycle events are supposed to be skipped when the Deployment ID is in the skipped state. And when the documentation mentions EC2 lifecycle events I am not sure if it means the CodeDeploy lifecycle hook events for EC2. If so then none of those lifecycle hook events can be executed if there is a missing appspec.yml file.
upvoted 1 times
...
apcloud
2 years ago
A,D. I spent a bunch of time reviewing this https://docs.aws.amazon.com/codedeploy/latest/userguide/troubleshooting-deployments.html#troubleshooting-skipped-lifecycle-events
upvoted 1 times
...
saeidp
2 years ago
A and D
upvoted 1 times
...
Maygam
2 years ago
Selected Answer: DE
https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file.html
upvoted 2 times
...
developer_404
2 years, 1 month ago
Selected Answer: AD
https://docs.aws.amazon.com/codedeploy/latest/userguide/troubleshooting-deployments.html#troubleshooting-skipped-lifecycle-events
upvoted 2 times
...
nzin4x
2 years, 2 months ago
Selected Answer: AD
https://docs.aws.amazon.com/codedeploy/latest/userguide/troubleshooting-deployments.html#troubleshooting-skipped-lifecycle-events
upvoted 1 times
...
Manh
2 years, 3 months ago
ACD https://docs.aws.amazon.com/codedeploy/latest/userguide/troubleshooting-deployments.html#troubleshooting-skipped-lifecycle-events
upvoted 1 times
quixo
2 years, 2 months ago
A & D is correct. C answer is talking about IAM role - who will execute code deploy/pipeline. But the link being refer. It's talking about Assume role between codedeploy and target endpoint.
upvoted 1 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