AWS & Cloud Engineering
Public and private subnets
A subnet is public or private because of its route table, and a resource also needs a public address and a permitting rule before the internet can reach it.
What you will be able to do
- Explain how the route table, public address and security group together decide internet reachability.
- Decide where a database should sit when it needs no inbound internet access.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in AWS & Cloud Engineering
- Target groups and health checksIntermediate · 5 min
After a release every target shows unhealthy, yet users still get responses. The load balancer fails open, which hides the problem. How health checks decide who is in…
- VPC route tablesBeginner · 4 min
A subnet route table selects a target for a matching destination, generally using the most specific prefix.
- NAT gateway economicsIntermediate · 4 min
Explain what a NAT gateway bills for, how the traffic path changes the bill, and how gateway endpoints keep AWS service traffic off the NAT data charge in a private…
- Gateway endpointsIntermediate · 4 min
Explain how a gateway endpoint for S3 or DynamoDB works as a route table target, what it costs, and which callers it cannot reach from outside its VPC.
- Interface endpointsIntermediate · 4 min
Explain how an interface endpoint places a private network interface in each chosen subnet, how private DNS sends service hostnames to it, and what it costs to run.
- Security groupsIntermediate · 4 min
Explain how security groups filter traffic per resource, why they are stateful, and why one broad inbound rule exposes every resource that carries the group.