Which component must be attached to a VPC to enable inbound internet access?
NAT gateway
VPC endpoint
VPN connection
Internet gateway
Explanations:
A NAT gateway enables outbound internet access for private subnets but does not allow inbound internet traffic to the VPC.
A VPC endpoint allows private connections to services without needing an internet gateway or NAT, but it does not enable inbound internet access to the VPC.
A VPN connection establishes a secure link between a VPC and an on-premises network but does not provide inbound internet access to the VPC.
An internet gateway is required for a VPC to enable inbound and outbound internet access. It allows resources in the VPC to connect to the internet and vice versa.