A SysOps administrator is troubleshooting internet connectivity issues for an Amazon EC2 instance in a private subnet with CIDR block . The VPC contains a public subnet with CIDR block . To save costs, the administrator deployed a custom EC2 NAT instance in the public subnet instead of a NAT Gateway.
The administrator has performed the following configuration steps:
- Configured the private subnet's route table with a route for targeting the network interface (ENI) of the NAT instance.
- Configured the public subnet's route table with a route for targeting the VPC's Internet Gateway.
- Enabled IP forwarding in the operating system of the NAT instance.
- Configured the security groups and Network ACLs to allow all traffic.
Despite these settings, the EC2 instance in the private subnet cannot reach any internet resources. Which of the following actions will resolve this connectivity issue?
- Disable the source/destination check attribute on the NAT instance's network interface.Cevap
- BModify the route table of the public subnet to add a route for the private subnet CIDR block () targeting the NAT instance.
- CUpdate the security group of the private EC2 instance to allow inbound traffic on ephemeral ports - from the NAT instance.
- DCreate a Gateway VPC Endpoint for NAT and associate it with the route table of the private subnet.