An engineering team is troubleshooting a newly deployed backend application hosted in a private subnet of a custom VPC. The application needs to retrieve objects from an Amazon S3 bucket and send messages to an Amazon SQS queue. The VPC has no Internet Gateway or NAT Gateway. The developer creates an Amazon S3 Gateway Endpoint and an Amazon SQS Interface Endpoint. However, the application is still experiencing connection timeouts when trying to access these services. Which of the following configuration changes must the developer make to resolve this issue? (Select TWO.)
- Verify that the route table associated with the private subnet contains an entry that directs traffic for S3 to the Gateway Endpoint.Cevap
- Ensure the security group associated with the SQS Interface Endpoint allows inbound HTTPS (TCP port ) traffic from the application's security group.Cevap
- CAssociate the route table of the public subnet with the S3 Gateway Endpoint, and add a route pointing to the SQS Interface Endpoint in the private subnet's route table.
- DStore the VPC endpoint DNS names in AWS Secrets Manager and configure a scheduled rotation to refresh the endpoint connections hourly.
- EModify the trust policy of the application's IAM execution role to trust the VPC Endpoint service principal vpce.amazonaws.com.
Cevap
Verify that the route table associated with the private subnet contains an entry directing S3 traffic to the Gateway Endpoint, and ensure that the security group of the SQS Interface Endpoint allows inbound HTTPS traffic from the application's security group.
For the Gateway Endpoint to route traffic to Amazon S3 from the private subnet, the subnet's route table must contain an entry directing S3 traffic to the S3 Gateway Endpoint. For the Interface Endpoint (PrivateLink) to route SQS traffic, the application connects to the endpoint's Elastic Network Interface (ENI) private IPs, which requires the security group attached to the SQS Interface Endpoint to allow inbound HTTPS (TCP port ) traffic from the application's security group.
Adım Adım Çözüm
Anahtar Kavram
Configuring VPC endpoints (Gateway and Interface) and their respective route tables and security groups to allow secure, private access to AWS services.
Tahmini Süre:2m 30s