Design TGW routing for shared services, prod and dev VPCs where prod and dev must never reach each other.
AdvancedScenarioAddressing, CIDR & Routing
Answer
Situation read → Isolation inside a Transit Gateway comes from separate route tables and attachment associations, not from security groups.
What I'd do →
- Create TGW route tables:
rt-shared,rt-prod,rt-dev - Associate the prod attachment with
rt-prodand dev withrt-dev - Propagate shared-services routes into both, and propagate prod and dev routes only into
rt-shared - Disable default association and propagation on the TGW so new attachments do not land in an open table
- Test with
aws ec2 search-transit-gateway-routesand a ping across the boundary
Why → The association decides which table an attachment looks up; propagation decides where its prefixes are advertised. Isolation is the absence of a route.
Interview tip → Mention adding a blackhole route for the other environment as defense in depth.
More on Addressing, CIDR & Routing
You own 10.0.0.0/16 for a new VPC and need separate /24 subnets for dev, QA and prod across two AZs. How do you carve it up?BeginnerA host is configured as 192.168.1.130/25. What network does it belong to and what is the broadcast address?BeginnerHow many usable IPs does an AWS subnet of /28 have?BeginnerA route table has 10.0.0.0/16 -> local and 10.0.1.0/24 -> vpn-gw. Where does a packet to 10.0.1.5 go?BeginnerA newly built server can ping everything in its subnet but nothing outside. What is the first thing you check?BeginnerYou are picking a private range for a new company network. Which RFC 1918 range do you choose and why?Beginner