Amazon Web Services
NAT Gateway
Appears inSAA-C03
A managed service that lets instances in private subnets reach the internet (for downloading patches, for example) without being reachable from the internet. It resides in a public subnet and translates the private IPs.
On the exam
Essential on SAA-C03. Pattern: EC2 in a private subnet → NAT Gateway (public subnet) → IGW → Internet. Difference from an IGW: an IGW allows bidirectional traffic; a NAT gateway only allows outbound traffic initiated from the private subnet.
Related terms
- Internet Gateway (IGW)A VPC component that enables communication between resources in a VPC and the internet. For a subnet to be public, its route table must include a route to an Internet Gateway.
- Subnet (AWS)A network segment within a VPC tied to a specific availability zone. Public subnets have a route to an Internet Gateway; private subnets have no direct internet access.
- VPC (Virtual Private Cloud)A private, isolated virtual network in AWS where you launch resources such as EC2, RDS, or Lambda. It gives you full control over the network environment: IP ranges, subnets, route tables, and gateways.