An application team deploys a new service on Amazon EC2 instances. The instances are registered to a target group associated with an Application Load Balancer. The load balancer's health checks are currently failing, showing the targets as unhealthy. The application logs indicate that the HTTP requests to the root path return a 403 Forbidden status because this endpoint is protected. A public, unauthenticated health status page is available at the '/ping' path. Additionally, the firewall rules on the EC2 instances do not permit any HTTP traffic from the load balancer.
To fix these failing health checks, which two configuration steps should be performed? (Select TWO.)
- Update the health check settings in the target group to request the '/ping' path.Answer
- Adjust the instance security group rules to allow inbound HTTP traffic from the load balancer's security group.Answer
- CReconfigure the target group health check port to use port 8080.
- DUpdate the Route 53 latency routing policy to direct client traffic to the EC2 instances directly.
- EModify the subnet network ACL rules to block outbound ephemeral ports (1024-65535).
Answer
Update the health check settings in the target group to request the '/ping' path, and adjust the instance security group rules to allow inbound HTTP traffic from the load balancer's security group.
The correct response components are: updating the health check path to the unauthenticated '/ping' path to resolve the 403 Forbidden error, and adjusting the instance security group rules to allow incoming HTTP traffic from the load balancer. These steps address both the network connectivity layer and the application response layer.
Step-by-Step Solution
Key Concept
Target Group Health Checks and Security Group Rules