You have 12 VPCs that need to talk to each other. Peering or Transit Gateway?
IntermediateScenarioAddressing, CIDR & Routing
Answer
Situation read → Peering is non-transitive and needs a full mesh, so the link count grows quickly.
What I'd do →
- Count: full mesh of 12 VPCs needs 66 peering connections and route table entries in each VPC
- Create one Transit Gateway and attach each VPC
- Use separate TGW route tables to control who can reach whom
- Accept the per-attachment and per-GB cost versus peering, which has no hourly charge
Why → Hub-and-spoke scales linearly and gives central routing control, at a price.
Interview tip → Say peering is still right for two or three VPCs with heavy traffic because it is cheaper and has no throughput cap.
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