What is NAT, and why do private subnets need a NAT gateway?

IntermediateConceptNetworking
Answer

NAT rewrites private source IPs to a public one. Instances without public IPs reach the internet (for patches or APIs) through a NAT gateway, while inbound connections from the internet stay impossible.

All Real-World Interview questions Roadmap: Interview readiness

More on Networking