Interview Prep/Networking/Addressing, CIDR & Routing

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 →

  1. Create TGW route tables: rt-shared, rt-prod, rt-dev
  2. Associate the prod attachment with rt-prod and dev with rt-dev
  3. Propagate shared-services routes into both, and propagate prod and dev routes only into rt-shared
  4. Disable default association and propagation on the TGW so new attachments do not land in an open table
  5. Test with aws ec2 search-transit-gateway-routes and 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.

All Networking questions Roadmap: Networking for DevOps

More on Addressing, CIDR & Routing