Why shouldn't production run in the default VPC?
BeginnerScenarioVPC & Cloud Network Design
Answer
Situation read → The default VPC is built for convenience, not for controlled production.
What I'd do →
- List problems: every default subnet is public with auto-assign public IP
- The CIDR is fixed at 172.31.0.0/16 and can clash with other networks
- There is no tier separation or private subnets by default
- Build a custom VPC with Terraform, with explicit public, private and data subnets
- Optionally delete the default VPC in every region with
aws ec2 delete-vpc
Why → Everything launched there is internet-adjacent by default, which is the opposite of least privilege.
Interview tip → Mention that you delete or lock down default VPCs in new accounts through SCPs or a baseline stack.
More on VPC & Cloud Network Design
What makes a subnet public versus private in AWS?BeginnerExplain internet gateway versus NAT gateway and when you use each.BeginnerPrivate instances need to pull packages from the internet but must not be reachable from it. What do you set up?BeginnerPublic IP, Elastic IP and private IP: how do they differ on EC2?BeginnerWhy use SSM Session Manager instead of a bastion host?BeginnerYour private subnet instances reach S3 through the NAT gateway and the bill is large. What do you do?Beginner