VPC

네트워킹 연관 문항 79개

논리적으로 격리된 사설 네트워크. 모든 아키텍처의 토대

이게 뭔가요? / What is this?

VPC는 눈에 보이는 물리 네트워크 장비가 아니라, AWS 클라우드 안에 내 것으로 그어놓은 가상(논리적)의 사설 네트워크 경계선입니다. 실제로는 같은 AWS 데이터센터 설비를 다른 고객들과 함께 쓰지만, VPC 덕분에 마치 나만 쓰는 격리된 사무실 네트워크처럼 IP 대역과 서브넷, 라우팅을 남과 섞이지 않게 독립적으로 구성할 수 있습니다.

개요 / Overview

VPC는 AWS 안에 만드는 사용자 전용 네트워크로 서브넷·라우팅 테이블·게이트웨이로 구성됩니다. 시험에서는 퍼블릭/프라이빗 서브넷 구분, 인터넷 접근 경로, 온프레미스 연결이 핵심 주제입니다.

동작 원리 / How it works

VPC는 여러분에게 할당된 사설 IP 대역과 그 안의 라우팅 규칙 묶음입니다. 서브넷은 대역을 AZ 단위로 쪼갠 조각이고, 각 서브넷은 정확히 하나의 라우팅 테이블에 연결됩니다. "퍼블릭 서브넷"이라는 별도 설정은 존재하지 않습니다 — 그 서브넷의 라우팅 테이블에 0.0.0.0/0 → 인터넷 게이트웨이 경로가 있으면 퍼블릭입니다. 이 한 줄이 VPC 문제의 절반을 설명합니다.

트래픽은 두 겹의 방화벽을 통과합니다. 서브넷 경계에서 NACL(무상태, 허용·거부), 인스턴스 ENI에서 보안 그룹(상태 저장, 허용만)입니다. 그리고 VPC 안에서 AWS 서비스로 나가는 경로는 세 가지뿐입니다 — 인터넷 게이트웨이(퍼블릭), NAT 게이트웨이(프라이빗의 아웃바운드), VPC 엔드포인트(사설 직결).

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

VPC 79문제는 대체로 "어떤 경로로 나가야 하는가"를 묻습니다. 인터넷 없이 S3에 접근, 프라이빗 서브넷에서 패치 받기, 온프레미스와 연결, 데이터베이스를 어디에 둘지 — 모두 라우팅과 경로의 문제입니다. 서브넷을 여러 AZ에 두는 것은 고가용성의 전제라 거의 모든 정답에 깔려 있습니다.

시험 포인트 / Exam points

퍼블릭 vs 프라이빗 서브넷

차이는 라우팅 테이블뿐입니다. 인터넷 게이트웨이로 향하는 0.0.0.0/0 경로가 있으면 퍼블릭입니다. 데이터베이스는 항상 프라이빗 서브넷에 두는 것이 정답 패턴입니다.

프라이빗에서 인터넷 나가기

프라이빗 서브넷의 인스턴스가 패치를 받으려면 퍼블릭 서브넷의 NAT 게이트웨이를 경유합니다. NAT는 아웃바운드만 허용하고 인바운드 연결은 막습니다.

AWS 서비스에 사설로 접근

S3·DynamoDB는 게이트웨이 VPC 엔드포인트(무료), 그 외 대부분의 서비스는 인터페이스 엔드포인트(PrivateLink)로 인터넷을 거치지 않고 접근합니다.

CIDR 설계

VPC CIDR은 생성 후 축소할 수 없고 피어링하려면 대역이 겹치면 안 됩니다. AWS가 각 서브넷에서 5개 IP를 예약한다는 점도 계산에 넣어야 합니다.

자주 틀리는 함정 / Common traps

VPC CIDR을 나중에 줄이려는 계획 — CIDR은 확장만 가능하고 축소는 불가능합니다.

데이터베이스를 퍼블릭 서브넷에 두는 선택지 — 최소 권한과 보안 원칙 위반으로 거의 항상 오답입니다.

/28 서브넷에 16개 IP를 쓸 수 있다고 계산하는 것 — AWS가 5개를 예약하므로 11개만 사용 가능합니다.

📝 이 개념 문제 풀기

Amazon VPC

Networking 79 related questions

A logically isolated private network underlying every architecture

이게 뭔가요? / What is this?

A VPC is not a physical networking appliance you can see — it is a virtual (logical) boundary you draw for your own private network inside AWS. You are physically sharing the same underlying AWS data-center hardware with other customers, but the VPC keeps your IP ranges, subnets, and routing walled off and independent, as if you had your own isolated office network.

개요 / Overview

A VPC is your own network inside AWS, built from subnets, route tables, and gateways. The exam focuses on public versus private subnets, paths to the internet, and connections to on-premises networks.

동작 원리 / How it works

A VPC is a private IP range plus the routing rules inside it. Subnets slice that range per AZ, and each subnet attaches to exactly one route table. There is no "public subnet" setting — a subnet is public if its route table has 0.0.0.0/0 pointing at an internet gateway. That single line explains half of all VPC questions.

Traffic crosses two firewalls: NACLs at the subnet boundary (stateless, allow and deny) and security groups at the instance ENI (stateful, allow only). And there are exactly three ways out to AWS services: an internet gateway (public), a NAT gateway (private egress), or a VPC endpoint (private direct).

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

The 79 VPC questions mostly ask which path traffic should take: reaching S3 without internet, patching from a private subnet, connecting on-premises, where the database belongs. All are routing questions. Spreading subnets across AZs underlies nearly every correct answer as a precondition for availability.

시험 포인트 / Exam points

Public vs private subnets

The only difference is the route table: a 0.0.0.0/0 route to an internet gateway makes it public. Databases always belong in private subnets.

Egress from private subnets

Instances in private subnets reach the internet through a NAT gateway in a public subnet, which permits outbound connections only.

Reaching AWS services privately

S3 and DynamoDB use free gateway VPC endpoints; most other services use interface endpoints (PrivateLink) to stay off the internet.

CIDR planning

A VPC CIDR cannot shrink after creation and must not overlap for peering. AWS also reserves five IPs in every subnet.

자주 틀리는 함정 / Common traps

Planning to shrink a VPC CIDR later — CIDRs can only be extended, never reduced.

Placing a database in a public subnet — almost always wrong on least-privilege and security grounds.

Counting 16 usable IPs in a /28 — AWS reserves five, leaving 11.

📝 Practice this concept

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