An organization hosts a proprietary API service in VPC-B behind an Amazon VPC Network Load Balancer (NLB). A SysOps Administrator in a separate AWS account configures an Interface VPC Endpoint in a private subnet of VPC-A to securely access this API service using AWS PrivateLink. The administrator enables Private DNS on the Interface VPC Endpoint. However, when an application running on Amazon EC2 instances in VPC-A attempts to invoke the API service, the connections consistently fail with a network timeout error. Which TWO configuration steps should the SysOps Administrator perform to troubleshoot and resolve this issue? (Select TWO.)
- Verify that the security group associated with the Interface VPC Endpoint allows inbound TCP traffic on the service port from the security group of the EC2 instances in VPC-A.Cevap
- Verify that the security group associated with the EC2 instances in VPC-A allows outbound TCP traffic on the service port to the IP addresses or security group of the Interface VPC Endpoint.Cevap
- CVerify that the route table associated with the private subnet in VPC-A contains a route targeting the Interface VPC Endpoint ID (vpce-xxxxxx) for the API service's traffic.
- DVerify that the route table associated with the private subnet in VPC-A routes traffic destined for the service provider's CIDR block to a NAT Gateway.
- EAssociate the Interface VPC Endpoint with the route table of the private subnet via the VPC Endpoints console page.
Cevap
Verify that the security group associated with the Interface VPC Endpoint allows inbound TCP traffic from the EC2 instances, and verify that the security group associated with the EC2 instances allows outbound TCP traffic to the Interface VPC Endpoint.
For Interface VPC Endpoints, traffic is directed via DNS to the private IP addresses of the Elastic Network Interfaces (ENIs) deployed in the subnet. Therefore, security groups on both the endpoint network interfaces and the client EC2 instances must explicitly permit the traffic. The security group of the Interface VPC Endpoint must allow inbound traffic from the EC2 instances, and the security group of the EC2 instances must allow outbound traffic to the Interface VPC Endpoint.
Adım Adım Çözüm
Anahtar Kavram
AWS PrivateLink Interface Endpoints require proper security group configurations for inbound and outbound traffic, and do not use route table entries.