
Answer-first summary for fast verification
Answer: The health checks specified for the ALB target group are misconfigured.
The correct answer is C. The health checks specified for the ALB target group are misconfigured. When a deployment fails during the AllowTraffic lifecycle event and there is no specific cause indicated in the deployment logs, it is often due to misconfigured health checks. The EC2 instances might not be passing the health checks, preventing traffic from being routed correctly. You can refer to the AWS troubleshooting guide for more information: https://docs.aws.amazon.com/codedeploy/latest/userguide/troubleshooting-deployments.html#troubleshooting-deployments-allowtraffic-no-logs.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A DevOps engineer is deploying a new version of an application running on Amazon EC2 instances behind an Application Load Balancer (ALB) using AWS CodeDeploy. The deployment process fails during the AllowTraffic lifecycle event, and no specific cause is mentioned in the deployment logs. What could be a potential reason for this failure?
A
The appspec.yml file contains an invalid script that runs 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.
No comments yet.