A security team wants to isolate databases so no instance can reach the internet at all. How?
IntermediateScenarioVPC & Cloud Network Design
Answer
Situation read → Combine routing with security controls.
What I'd do →
- Place databases in subnets whose route table has only the local route
- Remove any NAT or IGW route and use VPC endpoints only for needed services
- Restrict security groups to inbound from the app tier SG ID only and limit outbound
- Add an SCP or config rule that flags public subnets with data tier tags
Why → Without a route, no packet can leave, regardless of what a security group says.
Interview tip → Say this is defense in depth: route, SG, NACL and IAM each independently block.
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?BeginnerWhy shouldn't production run in the default VPC?BeginnerPublic IP, Elastic IP and private IP: how do they differ on EC2?BeginnerWhy use SSM Session Manager instead of a bastion host?Beginner