AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 105

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 not configured properly, the instances may not pass the health checks, causing the deployment to fail during the AllowTraffic phase. Options A and D are incorrect because they relate to script errors and agent installation, which would more likely cause failures earlier in the deployment process. Option B is also incorrect as it pertains to user permissions, which would not directly impact the AllowTraffic event.