Interview Prep/AWS/VPC and Networking

What makes a subnet public or private?

BeginnerConceptVPC and Networking
Answer

A subnet is public if its route table has a route 0.0.0.0/0 to an Internet Gateway (and instances have a public/Elastic IP). A private subnet has no direct IGW route; outbound internet goes via a NAT gateway in a public subnet or not at all.

A subnet lives in exactly one AZ, so each tier needs a subnet per AZ.

aws All AWS questions Roadmap: AWS core services

More on VPC and Networking