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

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

An application runs on Amazon EC2 instances behind an Application Load Balancer (ALB). A DevOps Engineer is using AWS CodeDeploy to release a new version. The deployment fails during the AllowTraffic lifecycle event, but a cause for the failure is not indicated in the deployment logs.
What would cause this?

  • A. The appspec.yml file contains an invalid script to execute in the AllowTraffic lifecycle hook.
  • B. The user who initiated the deployment does not have the necessary permissions to interact with the ALB.
  • C. The health checks specified for the ALB target group are misconfigured.
  • D. The CodeDeploy agent was not installed in the EC2 instances that are part of the ALB target group.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
ChauPhan
Highly Voted 3 years, 6 months ago
A is incorrect because "The Start, Install, TestTraffic, AllowTraffic, and End events in the deployment cannot be scripted, which is why they appear in gray in this diagram." https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html B.D is incorrect because if the permission or CodeDeploy agent is not installed, the deploy will not go to AllowTraffic hook, it will be fail prior to AllowTraffic.
upvoted 16 times
ChauPhan
3 years, 6 months ago
So C is correct
upvoted 4 times
...
...
jackdryan
Highly Voted 3 years, 6 months ago
I'll go with C
upvoted 10 times
...
sasivarenan
Most Recent 2 years, 3 months ago
Selected Answer: C
Health check should be the culprit.
upvoted 1 times
...
Bulti
2 years, 3 months ago
Correct answer is C
upvoted 1 times
...
Goozian
2 years, 7 months ago
Selected Answer: C
This failure is typically due to incorrectly configured health checks in Elastic Load Balancing for the Classic Load Balancer, Application Load Balancer, or Network Load Balancer used to manage traffic for the deployment group. To resolve the issue, review and correct any errors in the health check configuration for the load balancer. https://docs.aws.amazon.com/codedeploy/latest/userguide/troubleshooting-deployments.html#troubleshooting-deployments-allowtraffic-no-logs
upvoted 5 times
...
asjak
3 years, 6 months ago
correct is C --- https://docs.aws.amazon.com/codedeploy/latest/userguide/troubleshooting-deployments.html
upvoted 2 times
...
xlFireman
3 years, 6 months ago
After reading through the explanations and links here, I agree with all. C is the best choice, thanks everyone for the tips!
upvoted 1 times
...
hyperme
3 years, 6 months ago
A - AllowTraffic is not a user managed hook B - permissions managed by CodeDeploy role, not user. And if we on the AllowTraffic step, then we were able to block LB traffic C - right D - if there was no agent the job would fail on earlier steps
upvoted 5 times
...
jxp09
3 years, 7 months ago
C In some cases, a blue/green deployment fails during the AllowTraffic lifecycle event, but the deployment logs do not indicate the cause for the failure. This failure is typically due to incorrectly configured health checks in Elastic Load Balancing for the Classic Load Balancer, Application Load Balancer, or Network Load Balancer used to manage traffic for the deployment group. To resolve the issue, review and correct any errors in the health check configuration for the load balancer. For Classic Load Balancers, see Configure Health Checks in the User Guide for Classic Load Balancers and ConfigureHealthCheck in the Elastic Load Balancing API Reference version 2012-06-01. For Application Load Balancers, see Health Checks for Your Target Groups in the User Guide for Application Load Balancers. For Network Load Balancers, see Health Checks for Your Target Groups in the Network Load Balancer User Guide.
upvoted 5 times
skipbaylessfor3
3 years, 7 months ago
^That sounds right to me. Here's the link where all of that is said: https://docs.aws.amazon.com/codedeploy/latest/userguide/troubleshooting-deployments.html
upvoted 2 times
...
...
Augustoosouza
3 years, 7 months ago
Ans: C https://docs.aws.amazon.com/pt_br/elasticloadbalancing/latest/application/target-group-health-checks.html
upvoted 5 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