NAT Gateway
Lets private-subnet instances connect out while blocking externally initiated connections.
Official AWS Reference https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html ↗// DECISION LOGIC MATRIX
When to Choose
Private backends need outbound patching and API calls with zero administration.
When to Avoid
You need inbound access, port forwarding, or a bastion. VPC endpoints avoid NAT charges for AWS service traffic.
// EXAM TRAPS & SIGNAL KEYWORDS
// OFFICIAL AWS REFERENCE
"A NAT gateway lets instances in a private subnet connect to services outside the VPC, while external services cannot initiate connections to those instances."
- 5 Gbps of bandwidth, scaling automatically to 100 Gbps. 1 million packets per second, scaling to 10 million.
- Each IPv4 address supports 55,000 simultaneous connections per unique destination (IP, port, protocol). Up to 8 IPv4 addresses raise that.
- Created in one Availability Zone and redundant only within it. No security group can be attached. A public NAT gateway needs an Elastic IP at creation.
// NAT GATEWAY TAKEAWAYS
Role: Lets private-subnet instances connect out while blocking externally initiated connections.
Choose: Private backends need outbound patching and API calls with zero administration.
Avoid: You need inbound access, port forwarding, or a bastion. VPC endpoints avoid NAT charges for AWS service traffic.
Trap: Watch for exam signals like inbound access, security group on the NAT gateway, port forwarding.
Fact: 5 Gbps of bandwidth, scaling automatically to 100 Gbps. 1 million packets per second, scaling to 10 million.
Fact: Each IPv4 address supports 55,000 simultaneous connections per unique destination (IP, port, protocol). Up to 8 IPv4 addresses raise that.
Fact: Created in one Availability Zone and redundant only within it. No security group can be attached. A public NAT gateway needs an Elastic IP at creation.
// PRACTICE QUESTIONS
Ready to test your NAT Gateway knowledge?
16 practice questions cover NAT Gateway.