A SysOps administrator is troubleshooting connectivity for an application hosted on Amazon EC2 instances in a private subnet (, CIDR ). The instances need to download packages from the internet and upload large files to an Amazon S3 bucket in the same Region. Currently, the route table for has a route for pointing to a NAT Gateway in a public subnet. S3 upload traffic is currently routed through the NAT Gateway, incurring high data processing charges. To eliminate these charges, the administrator creates a Gateway VPC endpoint for Amazon S3 but notices that S3 traffic continues to flow through the NAT Gateway. Additionally, a new security policy is applied to the VPC, and the administrator configures a custom network ACL (NACL) for that allows outbound TCP traffic to ports and and inbound TCP traffic on port for management. Immediately after applying the NACL, the EC2 instances lose all connectivity to both the internet and S3. Which combination of actions will resolve both the routing issue to S3 and the package download issue?
- AModify the route table for to replace the NAT Gateway route with a route for targeting an Internet Gateway, and add an inbound rule to the custom NACL allowing TCP traffic from source ports and to destination ports .
- BAssociate the S3 Gateway VPC endpoint with the route table of , and add an inbound rule to the custom NACL allowing TCP traffic from source ports and to destination ports and .
- Associate the S3 Gateway VPC endpoint with the route table of , and add an inbound rule to the custom NACL allowing TCP traffic from source ports and to destination ports .Cevap
- DManually add a route in the route table of with a destination of targeting the S3 Gateway VPC endpoint, and add an inbound rule to the custom NACL allowing TCP traffic from source ports and to destination ports .