AWS Certified DevOps Engineer – Professional — Question 19

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?

Answer options

Correct answer: C

Explanation

The correct answer is C because if the health checks for the ALB target group are misconfigured, the ALB may mark the instances as unhealthy, causing the deployment to fail during the AllowTraffic event. Option A is incorrect as errors in the appspec.yml would typically show in the logs, while option B is not relevant since it pertains to permissions, which don't directly affect traffic allowance. Option D is also incorrect because if the CodeDeploy agent were not installed, the deployment would not even initiate.