A company runs a web application on Amazon EC2 instances behind an Application Load Balancer (ALB). The EC2 instances are managed by an Auto Scaling group. The web application is configured to listen on custom port 8080. However, the ALB is currently marking all instances in the target group as unhealthy, preventing users from accessing the application. A solutions architect verifies that the application is running normally on the instances. Which action should the solutions architect take to resolve this issue?
- AConfigure the target group to forward traffic and run health checks on port 80.
- Update the ALB target group's health check configuration to use port 8080.Answer
- CCreate a stateful Network Access Control List (NACL) rule allowing traffic on port 80 to enable the return traffic from the health checks.
- DChange the Amazon Route 53 routing policy to Latency routing to distribute traffic directly to the instances.
Answer
Update the ALB target group's health check configuration to use port 8080.
Updating the health check port to 8080 allows the Application Load Balancer to perform health checks directly against the port where the web application is listening, correctly identifying the instances as healthy.
Step-by-Step Solution
Key Concept
Aligning Elastic Load Balancing health checks with custom application ports
Estimated Time:1m 0s