서브넷 설계

네트워킹 연관 문항 41개

VPC를 AZ 단위로 나눈 구획. 공개 여부는 라우팅이 결정

이게 뭔가요? / What is this?

서브넷은 물리적인 구역이 아니라, 하나의 가상 네트워크(VPC)를 논리적으로 잘게 나눈 구획입니다. 큰 사무실 층 하나를 칸막이로 나눠 여러 개의 방을 만드는 것과 같아서, 방마다(서브넷마다) 어떤 문(라우팅)을 통해 밖으로 나갈 수 있는지가 그 방이 공개인지 비공개인지를 결정합니다.

개요 / Overview

서브넷은 하나의 AZ에 속하며 VPC CIDR의 일부를 차지합니다. 다중 AZ 고가용성은 결국 여러 AZ에 서브넷을 만들고 리소스를 분산하는 일입니다.

동작 원리 / How it works

서브넷은 VPC CIDR의 부분 집합이며 정확히 하나의 AZ에 존재합니다. 이 두 성질이 아키텍처를 결정합니다 — AZ에 묶이므로 고가용성은 반드시 여러 서브넷을 의미하고, CIDR의 부분 집합이므로 미리 대역을 나눠 두어야 나중에 서브넷을 추가할 수 있습니다. AWS는 각 서브넷에서 5개 주소(네트워크, VPC 라우터, DNS, 예약, 브로드캐스트)를 가져갑니다.

표준 3계층 배치는 AZ당 세 개의 서브넷입니다 — 퍼블릭(ALB, NAT), 프라이빗 앱(EC2·컨테이너), 프라이빗 데이터(RDS·ElastiCache). 데이터 계층을 별도 서브넷으로 분리하는 이유는 라우팅과 NACL을 독립적으로 잠글 수 있기 때문입니다.

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

서브넷 자체를 묻는 문제는 드물지만, 41문제에서 배경으로 등장합니다. 실질적 출제 포인트는 RDS Multi-AZ에 DB 서브넷 그룹이 두 AZ를 요구한다는 점, 그리고 주소 계산입니다.

시험 포인트 / Exam points

3계층 서브넷 구성

퍼블릭 서브넷에 ALB와 NAT, 프라이빗 서브넷에 애플리케이션 서버, 별도 프라이빗 서브넷에 데이터베이스를 두는 것이 표준입니다. 각 계층을 최소 2개 AZ에 복제합니다.

예약 IP 5개

AWS는 각 서브넷에서 네트워크 주소, VPC 라우터, DNS, 예약, 브로드캐스트용으로 5개 IP를 가져갑니다. /28이면 사용 가능한 주소는 11개뿐입니다.

RDS 서브넷 그룹

RDS를 Multi-AZ로 배포하려면 서로 다른 AZ의 서브넷을 최소 2개 포함하는 DB 서브넷 그룹이 필요합니다.

자주 틀리는 함정 / Common traps

서브넷 하나를 여러 AZ에 걸치게 설계하려는 것 — 불가능합니다.

서브넷을 빠듯하게 잘라 놓고 나중에 확장하려는 계획 — 서브넷 CIDR은 생성 후 변경할 수 없습니다.

📝 이 개념 문제 풀기

Subnets

Networking 41 related questions

AZ-scoped slices of a VPC; routing decides whether they are public

이게 뭔가요? / What is this?

A subnet is not a physical zone — it is a logical slice carved out of one virtual network (a VPC). It is like dividing one large open office floor into separate rooms with partition walls: which door (route) each room has to the outside decides whether that room counts as public or private.

개요 / Overview

A subnet lives in one AZ and takes a slice of the VPC CIDR. Multi-AZ high availability ultimately means creating subnets in several AZs and spreading resources across them.

동작 원리 / How it works

A subnet is a subset of the VPC CIDR living in exactly one AZ. Those two properties drive the architecture: AZ affinity makes high availability necessarily mean multiple subnets, and being a CIDR subset means you must plan address space to add subnets later. AWS reserves five addresses per subnet (network, VPC router, DNS, future use, broadcast).

The standard three-tier layout is three subnets per AZ: public (ALB, NAT), private app (EC2, containers), and private data (RDS, ElastiCache). Separating the data tier lets you lock its routing and NACLs independently.

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

Subnets are rarely the direct subject but form the background of 41 questions. The practical asks are that RDS Multi-AZ needs a DB subnet group spanning two AZs, and address arithmetic.

시험 포인트 / Exam points

Three-tier subnet layout

ALB and NAT in public subnets, application servers in private subnets, databases in separate private subnets — each tier duplicated across at least two AZs.

Five reserved IPs

AWS reserves five addresses per subnet, so a /28 leaves only eleven usable IPs.

RDS subnet groups

Deploying RDS Multi-AZ requires a DB subnet group containing subnets in at least two different AZs.

자주 틀리는 함정 / Common traps

Designing one subnet to span several AZs — impossible.

Cutting subnets tight and planning to grow them later — a subnet CIDR cannot be changed after creation.

📝 Practice this concept

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