A SysOps Administrator is troubleshooting a configuration issue in a VPC. EC2 instances in a private subnet must access an Amazon S3 bucket to retrieve datasets. To comply with security policies and avoid data transfer processing costs, the administrator created an Amazon S3 Gateway VPC Endpoint. However, during a traffic analysis, the administrator observes that data transfer charges for the NAT Gateway are still increasing.
An inspection of the VPC Flow Logs for the EC2 instance's elastic network interface (ENI) reveals the following entry:
2 123456789012 eni-08a7b6c5d4e3f2g10 10.0.2.14 52.216.184.147 49320 443 6 40 2400 1781308800 1781308860 ACCEPT OK
Which action must the administrator take to ensure S3 traffic is routed through the S3 Gateway VPC Endpoint?
- Update the route table associated with the private subnet by adding a route that targets the S3 Gateway VPC Endpoint (vpce-xxxxxxxx) for the Amazon S3 prefix list destination (pl-xxxxxxxx).Cevap
- BModify the private subnet's route table to add a default route (0.0.0.0/0) targeting the S3 Gateway VPC Endpoint, and delete the existing route to the NAT Gateway.
- CAttach an Internet Gateway to the VPC, and add a route in the private subnet's route table targeting the Internet Gateway for the S3 prefix list destination.
- DCreate an Amazon S3 Interface VPC Endpoint (PrivateLink) in the private subnet, and modify the EC2 instance's security group to allow outbound traffic to the Interface Endpoint's private IP addresses.