Home > Blog > AWS AWS Certified Solutions Architect - Associate > AWS Transit Gateway vs VPC Peering: SAA-C03 Guide

AWS Transit Gateway vs VPC Peering: SAA-C03 Guide

Comparison Cert Sensei Team 2027-05-03 8 min read

AWS Transit Gateway is a hub-and-spoke network transit hub that simplifies connectivity between thousands of VPCs and on-premises networks. In contrast, VPC Peering creates direct, one-to-one connections. Choose Transit Gateway for complex, scalable architectures and VPC Peering for simple, high-bandwidth, low-latency connections between a few VPCs.

#AWS SAA-C03 #AWS Transit Gateway #VPC Peering #AWS Networking

When should you use VPC Peering?

Think of VPC Peering as a direct phone line between two people. It is a networking connection between two VPCs that enables you to route traffic between them using private IPv4 or IPv6 addresses. For the SAA-C03 exam, you need to remember that peering is a 1:1 relationship. If you only have two or three VPCs that need to talk to each other, peering is your best bet because it's simple to set up and doesn't introduce a single point of failure or additional hourly costs for the connection itself.

However, peering has a massive drawback: it is not transitive. If VPC A is peered with VPC B, and VPC B is peered with VPC C, VPC A cannot talk to VPC C through VPC B. You would have to create a separate peering connection between A and C. This works fine for a handful of VPCs, but as your environment grows, you end up with a 'mesh' of connections that becomes an administrative nightmare to manage.

How does AWS Transit Gateway solve the mesh problem?

This is where AWS Transit Gateway (TGW) comes in. Instead of a messy web of 1:1 connections, TGW uses a hub-and-spoke model. Imagine TGW as a central airport hub; every VPC (the spoke) connects to the TGW (the hub), and the hub handles the routing to any other destination. This drastically reduces the number of connections you have to manage. Instead of managing n(n-1)/2 connections in a full mesh, you only manage one attachment per VPC.

For a Solutions Architect, the beauty of TGW is the centralization. You can connect thousands of VPCs and even on-premises data centers via Direct Connect or VPN to a single gateway. When you're practicing with our Cert Sensei SAA-C03 question bank, you'll notice that scenarios involving 'centralized network management' or 'thousands of VPCs' are almost always a signal to choose Transit Gateway over peering.

What is transitive routing and why does it matter for the SAA-C03?

Transitive routing is a core concept you'll see repeatedly on the exam. As mentioned, VPC Peering is non-transitive. AWS Transit Gateway, however, is specifically designed to support transitive routing. It acts as a cloud router, allowing traffic to flow from one attachment to another based on the rules you define in the TGW route tables.

To master this, you must understand TGW route table attachments. You can create multiple route tables within a single Transit Gateway to segment your network. For example, you could have a 'Production' route table and a 'Development' route table. By controlling the associations and propagations, you can ensure that Dev VPCs can't talk to Prod VPCs, even though they are all connected to the same hub. This level of granular control is impossible with standard VPC Peering and is a frequent focal point of SAA-C03 architectural questions.

How do scalability limits impact your architectural choice?

Scalability isn't just about the number of VPCs; it's about the operational overhead. Managing route tables for 50 peered VPCs means updating 50 different sets of routes every time you add a new CIDR block. With Transit Gateway, you manage the routing in a centralized location. This reduces the risk of human error and speeds up deployment times for new environments.

If you're struggling to visualize these networking flows, we highly recommend using our custom quiz builder at Cert Sensei. By filtering for the 'Networking and Content Delivery' domain, you can drill down into these specific scenarios. We provide 1,000 expert-curated practice questions for the SAA-C03, and our domain-level analytics will show you exactly whether you're mastering TGW or if you're still getting tripped up by the nuances of transitive routing.

What about inter-region connectivity and bandwidth?

Both VPC Peering and Transit Gateway support inter-region connectivity, but they do it differently. Inter-Region VPC Peering is a direct connection between VPCs in different regions. Transit Gateway supports 'TGW Peering,' where you peer two Transit Gateways in different regions to connect their respective spokes. This creates a global network backbone for your enterprise.

From a performance perspective, VPC Peering generally offers lower latency and higher bandwidth because there is no 'middleman'β€”the traffic stays on the AWS backbone without passing through a gateway. Transit Gateway adds a hop, which can introduce a negligible amount of latency for most apps, but for high-frequency trading or ultra-low latency requirements, peering is the winner. On the exam, if the requirement is 'maximum performance' and 'minimal latency' between two VPCs, lean toward peering.

Which one is more cost-effective for your workload?

Cost is often the deciding factor in real-world architecture and a common 'distractor' in exam questions. VPC Peering is essentially free to set up; you only pay for the data transfer between VPCs (which is standard AWS data transfer pricing). There is no hourly charge for the peering connection itself.

Transit Gateway, however, comes with a cost. You pay an hourly charge for every VPC attachment, plus a data processing fee for every gigabyte that passes through the gateway. For a small environment with three VPCs, TGW is an expensive overkill. For an enterprise with 100 VPCs, the cost of TGW is a small price to pay for the massive reduction in administrative complexity. When you see a question asking for the 'most cost-effective' solution for a small number of VPCs, VPC Peering is almost always the answer.

❓ Frequently Asked Questions

Can I use both VPC Peering and Transit Gateway in the same architecture?

Yes. A common pattern is using Transit Gateway for general management and connectivity across most VPCs, while using VPC Peering for a specific pair of VPCs that require massive bandwidth or ultra-low latency to avoid TGW processing fees and hops.


Does Transit Gateway support connection to on-premises networks?

Absolutely. TGW can act as a central hub for both AWS Site-to-Site VPNs and AWS Direct Connect. This allows you to connect your entire on-premises data center to multiple VPCs through a single gateway attachment.


Will I be tested on TGW route table propagation for the SAA-C03?

Yes. You should understand the difference between 'association' (which route table the attachment uses for outgoing traffic) and 'propagation' (which route tables learn about the attachment's CIDR block).

More from AWS AWS Certified Solutions Architect - Associate

🧠

Test Your Knowledge

Ready to practice AWS Certified Solutions Architect - Associate? Put what you've learned to the test.

Try 10 Free Questions

⭐ 1,000 expert-curated questions available with Premium

Upgrade Premium
πŸ“– Browse the Glossary

Join thousands of certification students

Sign Up Free