Skip to main content
InterviewHubPRO
Section Overview
Q35

Question 35 of 50

Part 4: Enterprise Cloud Infrastructure Architecture & SRE (35 - 50)

70%
Terraform & IaC (50 Qs)•Part 4: Enterprise Cloud Infrastructure Architecture & SRE (35 - 50)

Hub-and-Spoke VPC Architecture with AWS Transit Gateway and Terraform.

senior LevelFormsCI/CD & DevOpsSystem Design

In Simple Words: Connecting dozens of VPCs via point-to-point VPC Peering creates an unmaintainable $O(N^2)$ mesh.

Hub-and-Spoke Architecture:

  • Hub VPC: Centralized inspection VPC containing firewalls, NAT gateways, and VPN/DirectConnect connections.
  • Spoke VPCs: Application and database VPCs in separate AWS accounts.
  • AWS Transit Gateway (TGW): Acts as a regional distributed cloud router connecting all spoke VPCs to the hub via a single attachment per VPC.