Cloud Technology and Services

EC2 instances in a private subnet need to download updates from the internet without accepting unsolicited inbound internet connections. Which component should provide their outbound IPv4 internet access?

Show the answer

Correct answerC. A public NAT gateway

AWhy not this: A virtual private gateway provides a VPC-side endpoint for connections such as AWS Site-to-Site VPN.

BWhy not this: An internet gateway alone does not give instances with only private IPv4 addresses internet access.

CWhy this is right: A public NAT gateway provides outbound internet access without permitting unsolicited inbound connections.

DWhy not this: A transit gateway connects VPCs and on-premises networks; it does not itself provide internet address translation.

A public NAT gateway allows instances in private subnets to initiate IPv4 internet connections while preventing unsolicited inbound connections. An internet gateway alone does not provide internet access for instances that have only private IPv4 addresses.