A SysOps administrator is troubleshooting an Application Load Balancer (ALB) that is failing to route traffic to a target group of Amazon EC2 instances located in a private subnet. The web application on the instances is configured to listen on port , and the target group is configured to perform health checks on the same port. The ALB health checks are consistently failing with a timeout status. The ALB is in a public subnet, and its security group allows inbound traffic on ports and from `0.0.0.0/0`. Which of the following actions should the SysOps administrator take to resolve the unhealthy target status?
- Modify the security group associated with the EC2 instances to allow inbound TCP traffic on port from the security group of the ALB.Answer
- BUpdate the target group health check port to port and verify that the application listens on port .
- CAdd a route pointing to the Internet Gateway in the route table of the private subnet hosting the EC2 instances.
- DConfigure a Route Active-Passive failover routing policy to redirect traffic to a backup target group.
Answer
Modify the security group associated with the EC2 instances to allow inbound TCP traffic on port from the security group of the ALB.
The Application Load Balancer (ALB) must be able to establish a TCP connection to the EC2 instances on the configured health check port, which is port in this scenario. Since the targets are reporting a timeout status rather than an HTTP error code (like 403 or 404), this indicates that the network packets are being dropped. To resolve this, the security group associated with the EC2 instances must be updated to allow inbound TCP traffic on port from the source security group of the ALB. This allows the health check traffic to reach the application.
Step-by-Step Solution
Key Concept
Target group health checks require proper security group configurations allowing the ALB to communicate with the instances on the health check port.