A SysOps Administrator is configuring Amazon EC2 instances in a private subnet with no internet access to invoke AWS Lambda functions. The VPC has no Internet Gateway or NAT Gateway attached. The administrator creates an Interface VPC Endpoint for AWS Lambda (com.amazonaws.us-east-1.lambda) in the VPC and associates it with the private subnet. However, application scripts on the EC2 instances continue to receive connection timeouts when trying to invoke Lambda functions using the default AWS SDK endpoint (lambda.us-east-1.amazonaws.com).
Which of the following configuration changes should the SysOps Administrator make to resolve this connectivity issue? (Select TWO.)
- Enable private DNS hostnames for the Interface VPC Endpoint.Cevap
- Modify the security group associated with the Interface VPC Endpoint to allow inbound HTTPS traffic on TCP port 443 from the security group of the EC2 instances.Cevap
- CAdd a route to the private subnet's Route Table that targets the Interface VPC Endpoint for the AWS Lambda prefix list.
- DAdd a route to the private subnet's Route Table targeting the Internet Gateway for all traffic destined for the AWS Lambda service endpoints.
- EConfigure the network ACL associated with the private subnet to deny outbound traffic on ephemeral ports (1024-65535).
Cevap
Enabling private DNS hostnames for the Interface VPC Endpoint and allowing inbound HTTPS traffic on port 443 from the EC2 instances' security group in the endpoint's security group will resolve the connection timeouts.
To resolve the timeout issue, private DNS hostnames must be enabled on the Interface VPC Endpoint so that the AWS SDK's default domain name resolves to the endpoint's private IP addresses. Additionally, the security group of the Interface VPC Endpoint must allow inbound HTTPS traffic on port 443 from the EC2 instances' security group.
Adım Adım Çözüm
Anahtar Kavram
Interface VPC Endpoints require both Private DNS to resolve standard service endpoints internally and appropriate inbound security group rules to allow client traffic.