You must inspect all egress traffic from 50 VPCs centrally. What is the architecture?
AdvancedScenarioVPC and Networking
Answer
Situation read → Centralized egress with an inspection VPC behind Transit Gateway.
What I'd do →
- Spoke VPCs send
0.0.0.0/0to the TGW - TGW route table for spokes points to an inspection VPC attachment with appliance mode enabled
- Inspection VPC runs AWS Network Firewall or third-party firewalls behind a Gateway Load Balancer
- Firewall subnets forward to NAT gateways in an egress VPC
- Return path via TGW; enable flow logs on all attachments
Why → Appliance mode keeps both directions of a flow on the same AZ so stateful inspection works.
Interview tip → Mention the cost and single-choke-point trade-off versus per-VPC firewalls.
More on VPC and Networking
What is a VPC and what are the CIDR constraints?BeginnerWhat makes a subnet public or private?BeginnerHow do route tables work, including the local route and longest-prefix match?IntermediateInternet Gateway vs NAT Gateway: what does each do?BeginnerNAT Gateway vs NAT instance?IntermediateSecurity group vs network ACL: compare them.Beginner