Interview Prep/AWS/VPC and Networking

Transit Gateway vs VPC peering?

IntermediateConceptVPC and Networking
Answer

Transit Gateway is a regional hub-and-spoke router: attach VPCs, VPNs, Direct Connect gateways and peer TGWs in other Regions, with transitive routing and multiple route tables for segmentation. It charges per attachment-hour plus per GB processed.

Peering is cheaper and lower latency for a couple of VPCs. Past roughly 4–5 VPCs, or whenever on-prem connectivity or segmentation is needed, TGW is easier to operate.

aws All AWS questions Roadmap: AWS core services

More on VPC and Networking