Which AWS service or component allows inbound traffic from the internet to access a VPC?
Internet gateway
NAT gateway
AWS WAF
VPC peering
Explanations:
An Internet Gateway is a horizontally scaled, redundant, and highly available VPC component that allows communication between instances in the VPC and the internet. It enables inbound traffic from the internet to access a VPC.
A NAT Gateway allows instances in a private subnet to connect to the internet for outbound traffic but does not allow inbound traffic from the internet to reach the VPC.
AWS WAF (Web Application Firewall) is a security service that helps protect web applications from common web exploits. It does not facilitate direct inbound traffic access to a VPC.
VPC peering is a networking connection between two VPCs that enables them to route traffic between each other. It does not enable inbound traffic from the internet to a VPC.