Which AWS service or feature can provide the EC2 instances with network connections to the internet?
Gateway endpoint
NAT gateway
Network Load Balancer
Amazon Route 53
Explanations:
A Gateway endpoint provides a private connection between a VPC and supported AWS services, but it does not provide internet access to EC2 instances in a private subnet.
A NAT gateway allows instances in a private subnet to initiate outbound traffic to the internet while preventing unsolicited inbound traffic, thus providing the necessary internet access.
A Network Load Balancer is used to distribute incoming traffic across multiple targets, but it does not provide internet access for instances in a private subnet.
Amazon Route 53 is a DNS web service that provides domain name resolution but does not facilitate direct internet connectivity for EC2 instances in a private subnet.