Interview Prep/Networking/IP Addressing, CIDR, Subnetting & Routing

What is the difference between an internet gateway, NAT gateway and egress-only gateway in AWS?

IntermediateConceptIP Addressing, CIDR, Subnetting & Routing
Answer

An internet gateway gives bidirectional internet access to resources with public IPs, and is what makes a subnet public. A NAT gateway lets private instances initiate outbound IPv4 connections while blocking inbound. An egress-only internet gateway does the same for IPv6, where addresses are globally routable and NAT is not used.

A subnet is public or private only because of its route table, not because of a label.

All Networking questions Roadmap: Networking for DevOps

More on IP Addressing, CIDR, Subnetting & Routing