VPC 피어링

네트워킹 연관 문항 14개

두 VPC를 1:1로 사설 연결. 전이적 라우팅은 안 됨

이게 뭔가요? / What is this?

VPC 피어링은 물리적 배선이 아니라, 두 개의 가상 네트워크(VPC) 사이만 직접 잇는 가상의 사설 연결입니다. A 건물과 B 건물 사이에 전용 터널을 뚫었다고 해서 B와 연결된 C 건물까지 그 터널로 갈 수 있는 건 아닌 것처럼, 피어링도 딱 연결한 두 VPC 사이에서만 통하고 건너 건너 전달되지 않습니다.

개요 / Overview

VPC 피어링은 두 VPC 사이에 사설 경로를 만듭니다. 계정과 리전을 넘어 연결할 수 있지만 전이적 라우팅이 불가능하다는 제약이 시험의 핵심입니다.

동작 원리 / How it works

피어링은 두 VPC의 라우팅 테이블에 서로의 CIDR을 향하는 경로를 추가해 사설 통신을 가능하게 합니다. AWS 백본을 쓰므로 대역폭 병목이나 단일 장애점이 없고, 계정과 리전을 넘어 맺을 수 있습니다.

두 가지 결정적 제약이 있습니다. 첫째, 전이적 라우팅이 불가능합니다 — A-B와 B-C가 있어도 A는 C에 닿지 못합니다. 둘째, CIDR이 겹치면 아예 맺을 수 없습니다. VPC 수가 늘면 필요한 연결이 n(n-1)/2로 증가해 관리가 무너지므로, 규모가 커지면 Transit Gateway가 정답이 됩니다.

시험은 무엇을 보는가 / What the exam is testing

시험은 VPC 개수로 답을 가릅니다. 두세 개면 피어링이 단순하고 저렴하며, 수십 개면 Transit Gateway입니다. 전이적 라우팅 불가라는 사실 자체를 묻는 문항도 나옵니다.

시험 포인트 / Exam points

전이적 라우팅 불가

A-B, B-C가 연결되어 있어도 A는 C와 통신할 수 없습니다. VPC가 늘어나면 연결 수가 제곱으로 증가하므로 Transit Gateway가 정답이 됩니다.

CIDR 중복 불가

두 VPC의 IP 대역이 겹치면 피어링을 만들 수 없습니다. 네트워크 설계 초기에 대역을 나눠야 하는 이유입니다.

자주 틀리는 함정 / Common traps

허브 VPC를 통해 스포크끼리 통신하게 설계하는 것 — 피어링은 전이적이지 않아 동작하지 않습니다.

📝 이 개념 문제 풀기

VPC Peering

Networking 14 related questions

One-to-one private link between two VPCs; no transitive routing

이게 뭔가요? / What is this?

VPC peering is not physical wiring — it is a virtual private connection linking exactly two virtual networks (VPCs) directly. Just as digging a tunnel between Building A and Building B does not let anyone reach Building C through B own tunnel, peering only works between the two VPCs it directly joins — it never passes through to a third.

개요 / Overview

Peering creates a private path between two VPCs, across accounts and Regions. The exam hinges on one limitation: peering is never transitive.

동작 원리 / How it works

Peering adds routes for each other's CIDR to both VPCs' route tables, enabling private traffic. It uses the AWS backbone, so there is no bandwidth bottleneck or single point of failure, and it works across accounts and Regions.

Two constraints decide questions. First, routing is never transitive: with A-B and B-C, A still cannot reach C. Second, overlapping CIDRs make peering impossible. Required connections grow as n(n-1)/2, so at scale Transit Gateway becomes the answer.

시험은 무엇을 보는가 / What the exam is testing

The exam decides by VPC count: two or three favours peering as simpler and cheaper; dozens favours Transit Gateway. Some questions test the non-transitivity fact directly.

시험 포인트 / Exam points

Not transitive

If A peers with B and B with C, A still cannot reach C. As VPC count grows the mesh explodes quadratically, making Transit Gateway the answer.

CIDRs must not overlap

Overlapping CIDR blocks make peering impossible — the reason to plan address space up front.

자주 틀리는 함정 / Common traps

Designing spokes to talk through a hub VPC — peering is not transitive, so it does not work.

📝 Practice this concept

AWS SAA Hub Pro는 독립 학습 자료이며 Amazon Web Services, Inc.의 공식 서비스가 아닙니다. 시험 정책과 서비스 사양은 AWS 공식 문서를 기준으로 확인하세요.