VPC peering
Creates a one-to-one networking connection between two VPCs routed over private IPv4 or IPv6 addresses.
Official AWS Reference https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html ↗// DECISION LOGIC MATRIX
When to Choose
Two VPCs, possibly in different accounts or Regions, need direct private connectivity.
When to Avoid
You need transitive routing, overlapping CIDR blocks, or shared use of another VPC's gateways.
// EXAM TRAPS & SIGNAL KEYWORDS
// OFFICIAL AWS REFERENCE
"A VPC peering connection is a networking connection between two VPCs that enables you to route traffic between them using private IPv4 addresses or IPv6 addresses. It is neither a gateway nor a VPN connection and does not rely on separate physical hardware."
- There is no single point of failure for communication and no bandwidth bottleneck in a VPC peering connection.
- VPC peering does not support transitive peering relationships.
- You cannot create a peering connection between VPCs with matching or overlapping IPv4 or IPv6 CIDR blocks.
- Inter-Region peering traffic is encrypted before leaving AWS facilities and never traverses the public internet.
// VPC PEERING TAKEAWAYS
Role: Creates a one-to-one networking connection between two VPCs routed over private IPv4 or IPv6 addresses.
Choose: Two VPCs, possibly in different accounts or Regions, need direct private connectivity.
Avoid: You need transitive routing, overlapping CIDR blocks, or shared use of another VPC's gateways.
Trap: Watch for exam signals like transitive routing, hub and spoke.
Fact: There is no single point of failure for communication and no bandwidth bottleneck in a VPC peering connection.
Fact: VPC peering does not support transitive peering relationships.
Fact: You cannot create a peering connection between VPCs with matching or overlapping IPv4 or IPv6 CIDR blocks.
// PRACTICE QUESTIONS
Ready to test your VPC peering knowledge?
15 practice questions cover VPC peering.