What makes a subnet public versus private?
BeginnerProductionVPC & Network Architecture
Answer
Only the route table. A public subnet has a route 0.0.0.0/0 to an internet gateway and its instances have public or Elastic IPs. A private subnet has no IGW route; outbound goes via NAT gateway or not at all.
Auto-assign public IP settings and security groups still decide whether an instance is reachable, so being in a public subnet alone is not exposure.
More on VPC & Network Architecture
How would you design a production VPC for a three-tier web application?IntermediateHow many AZs and subnets should a production VPC use, and why?BeginnerHow do you avoid NAT gateway single points of failure and cross-AZ charges?IntermediateWhen should you use VPC endpoints?IntermediateHow do you design connectivity for 50+ VPCs across accounts and regions?AdvancedWhat is PrivateLink and when is it better than peering?Advanced