A target group for an Application Load Balancer (ALB) contains EC2 instances that are all marked as unhealthy. Although the web application is running properly and listening on port 80 on all instances, the target group's health check is configured to query port 8080. Which configuration change will resolve this issue?
- Modify the target group's health check settings to use port 80 or the traffic port.Answer
- BModify the subnet's network access control list (NACL) rules to allow outbound traffic from ephemeral ports to port 8080.
- CAdd a route to the Internet Gateway in the subnet's route table to allow the instances to communicate with the health check service.
- DChange the Amazon Route 53 routing policy for the primary domain to failover routing so traffic bypasses the unhealthy target group.
Answer
Modify the target group's health check settings to use port 80 or the traffic port.
Modifying the target group's health check settings to use port 80 (or the traffic port) allows the load balancer to query the port where the web application is actually listening. Since the application is running properly on port 80, this change will allow the health checks to succeed, marking the instances as healthy.
Step-by-Step Solution
Key Concept
Target Group Health Check Configuration