A company has deployed a TCP-based application on a fleet of Amazon EC2 instances in a private subnet. The instances are registered as targets in a target group for an internet-facing Network Load Balancer (NLB) using the 'instance' target type. The application listens on port 9000, and the target group is configured with TCP health checks on port 9000. The NLB has client IP preservation enabled. A SysOps Administrator observes that all EC2 instances are marked as unhealthy in the target group, and clients are unable to connect to the application. Which two configurations must the SysOps Administrator verify or apply to resolve this issue? (Select two.)
- The security group associated with the EC2 instances allows inbound TCP traffic on port 9000 from the client IP ranges.Cevap
- The security group associated with the EC2 instances allows inbound TCP traffic on port 9000 from the private IP addresses of the load balancer nodes.Cevap
- CThe security group associated with the EC2 instances allows inbound TCP traffic on port 9000 from the security group of the Network Load Balancer.
- DThe target group health check settings are updated to use HTTP protocol on port 80 and the path is set to /index.html.
- EThe DNS routing configuration in Route 53 is updated to use a failover routing policy that routes client traffic directly to the EC2 instances if the NLB reports them as unhealthy.
Cevap
The correct configurations are to configure the security group associated with the EC2 instances to allow inbound TCP traffic on port 9000 from the client IP ranges, and to allow inbound TCP traffic on port 9000 from the private IP addresses of the Network Load Balancer nodes.
To resolve the issue, the security group associated with the EC2 instances must be configured to permit inbound traffic on the service port from both the clients and the load balancer. Because client IP preservation is enabled on the Network Load Balancer (NLB) for target groups of type 'instance', the source IP addresses of the client traffic are preserved. Therefore, the target EC2 instances receive requests with the clients' public IP addresses as the source, meaning the security group must allow inbound traffic from the client IP ranges. Concurrently, NLB health checks originate from the private IP addresses of the load balancer nodes. To make the targets healthy, the security group must also allow inbound TCP traffic on port 9000 from the load balancer's private IP addresses.
Adım Adım Çözüm
Anahtar Kavram
Network Load Balancer client IP preservation and health check source IP routing requirements.