An organization runs an application on Amazon EC2 instances in a private subnet within a VPC. The subnet does not have a route to an Internet Gateway or a NAT Gateway. The application must write messages to an Amazon SQS queue in the same AWS Region. A SysOps Administrator deploys an Interface VPC Endpoint for SQS (com.amazonaws.us-east-1.sqs) associated with the private subnet. However, the application logs show that connection attempts to sqs.us-east-1.amazonaws.com continue to time out. Which combination of actions should the SysOps Administrator take to resolve this issue? (Select TWO.)
- Enable Private DNS hostnames for the Interface VPC Endpoint.Cevap
- Configure the security group attached to the Interface VPC Endpoint to allow inbound HTTPS (TCP port 443) traffic 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 ID for SQS traffic.
- DModify the private subnet's Network Access Control List (NACL) to allow inbound traffic on TCP port 443 from the SQS service CIDR block.
- EModify the private subnet's route table to route traffic destined for SQS to a NAT Gateway located in the private subnet.
Cevap
Enable Private DNS hostnames for the Interface VPC Endpoint, and configure the security group attached to the Interface VPC Endpoint to allow inbound HTTPS (TCP port 443) traffic from the security group of the EC2 instances.
To resolve the timeout issue, Private DNS hostnames must be enabled on the Interface VPC Endpoint so that the application's calls to the public SQS URL resolve to the endpoint's private IP addresses. Additionally, the security group attached to the Interface VPC Endpoint's network interfaces must permit inbound HTTPS (TCP port 443) traffic from the EC2 instances' security group.
Adım Adım Çözüm
Anahtar Kavram
Interface VPC Endpoints rely on Private DNS hostnames for transparent routing and Security Groups on their Elastic Network Interfaces for traffic control. Unlike Gateway Endpoints, they do not use subnet route tables.
Tahmini Süre:2m 0s