ALB
HTTP/HTTPS 계층 7 로드 밸런서. 경로·호스트 기반 라우팅
이게 뭔가요? / What is this?
ALB는 물리적인 로드밸런서 장비가 아니라, 들어오는 요청의 내용(URL 경로 등)을 읽고 알맞은 서버 그룹으로 나눠 보내주는 가상의 관리형 트래픽 안내원입니다. 건물 안내 데스크 직원이 방문객의 용건을 듣고 맞는 부서로 안내하듯, ALB는 요청을 열어보고 그 내용에 따라 목적지를 결정합니다.
개요 / Overview
ALB는 요청 내용을 보고 대상 그룹으로 분배하는 계층 7 로드 밸런서입니다. 웹 애플리케이션 문제의 기본값이며, URL 경로나 호스트 헤더로 마이크로서비스를 나누는 구성이 자주 나옵니다.
동작 원리 / How it works
ALB는 리스너(포트·프로토콜)와 규칙, 대상 그룹으로 구성됩니다. 요청이 오면 리스너 규칙이 호스트 헤더·경로·HTTP 헤더·쿼리스트링·소스 IP를 보고 어느 대상 그룹으로 보낼지 결정하고, 대상 그룹은 상태 확인을 통과한 대상에만 라우팅합니다. HTTP 계층까지 파싱하기 때문에 경로별 마이크로서비스 분기, 리다이렉트, 고정 응답 같은 일을 로드 밸런서 자체가 처리할 수 있습니다.
ALB는 최소 2개 AZ의 서브넷을 요구하고, 각 AZ에 노드를 두며 DNS 이름 하나로 노출됩니다. 노드의 IP는 바뀔 수 있으므로 IP를 고정해 화이트리스트에 넣어야 하는 요구는 ALB로 충족되지 않습니다.
시험은 무엇을 보는가 / What the exam is testing
시험에서 ALB는 웹 계층 문제의 기본값이며, 대개 ASG와 짝을 이룹니다. 별도로 물어보는 것은 ALB인지 NLB인지, 그리고 SSL을 어디서 종료하는지입니다. 101문제에 등장하는 만큼 "고정 IP", "TCP/UDP", "초저지연" 같은 NLB 신호를 놓치지 않는 것이 중요합니다.
시험 포인트 / Exam points
HTTP/HTTPS·경로 기반 라우팅·WAF 연동이면 ALB입니다. TCP/UDP, 초고성능, 고정 IP, 극한의 낮은 지연이면 NLB입니다. "고정 IP가 필요하다"는 NLB의 결정적 신호입니다.
EC2 인스턴스, IP 주소, Lambda 함수를 대상으로 지정할 수 있습니다. Lambda를 대상으로 두면 서버 없이 HTTP 엔드포인트를 만들 수 있습니다.
ACM 인증서를 ALB에 붙여 HTTPS를 종료하고 뒷단은 HTTP로 보낼 수 있습니다. SNI로 하나의 리스너에 여러 도메인 인증서를 올릴 수 있습니다.
ALB는 최소 2개 AZ의 서브넷을 요구하며, 상태 확인에 실패한 대상으로는 트래픽을 보내지 않습니다. 이것이 고가용성 구성의 기본입니다.
자주 틀리는 함정 / Common traps
고정 IP 화이트리스트 요구에 ALB를 고르는 것 — ALB의 IP는 변동합니다. NLB에 Elastic IP를 붙이는 것이 정답입니다.
단일 AZ 서브넷만 지정하려는 선택지 — ALB는 2개 이상 AZ를 요구하며, 고가용성 관점에서도 오답입니다.
스티키 세션으로 세션 문제를 푸는 것 — 인스턴스가 죽으면 세션이 사라집니다. ElastiCache나 DynamoDB로 세션을 외부화하는 편이 정답입니다.
헷갈리는 것 구분하기 / Telling them apart
계층이 다릅니다. HTTP/HTTPS를 이해해야 하는 일(경로 라우팅, WAF 연동, 리다이렉트)은 ALB, 프로토콜 무관·초고성능·고정 IP·클라이언트 IP 보존은 NLB입니다.
Application Load Balancer
Layer 7 HTTP/HTTPS load balancer with path and host routing
이게 뭔가요? / What is this?
An ALB is not a physical load-balancing appliance — it is a virtual, managed traffic director that reads what an incoming request is asking for (like its URL path) and routes it to the right group of servers. Like a front-desk receptionist who listens to a visitor purpose and points them to the correct department, an ALB opens the request and decides its destination based on the content.
개요 / Overview
An ALB inspects request content and routes to target groups at layer 7. It is the default for web applications, often splitting microservices by URL path or host header.
동작 원리 / How it works
An ALB is built from listeners (port and protocol), rules, and target groups. Incoming requests are matched by host header, path, HTTP headers, query string, or source IP to pick a target group, which routes only to targets passing health checks. Because it parses the HTTP layer, the load balancer itself can split microservices by path and issue redirects or fixed responses.
An ALB requires subnets in at least two AZs, places a node in each, and is exposed as a single DNS name. Those node IPs can change, so a requirement to whitelist a fixed IP cannot be met by an ALB.
시험은 무엇을 보는가 / What the exam is testing
The ALB is the default for web-tier questions and usually pairs with an ASG. The separate asks are ALB versus NLB and where TLS terminates. Appearing in 101 questions, the thing to catch is NLB signals: static IP, TCP/UDP, ultra-low latency.
시험 포인트 / Exam points
HTTP/HTTPS, path routing, or WAF integration → ALB. TCP/UDP, extreme throughput, static IPs, or ultra-low latency → NLB. "Static IP required" decisively means NLB.
Targets can be EC2 instances, IP addresses, or Lambda functions — the last giving an HTTP endpoint with no servers.
Attach an ACM certificate to terminate HTTPS at the ALB and speak HTTP behind it. SNI allows multiple domain certificates on one listener.
An ALB requires subnets in at least two AZs and withholds traffic from targets failing health checks — the basis of a highly available tier.
자주 틀리는 함정 / Common traps
Choosing an ALB when a static IP must be whitelisted — ALB IPs change. Attaching Elastic IPs to an NLB is correct.
Specifying subnets in only one AZ — an ALB requires two or more, and it fails the availability requirement anyway.
Solving session state with sticky sessions — losing the instance loses the session. Externalising to ElastiCache or DynamoDB is the answer.
헷갈리는 것 구분하기 / Telling them apart
Different layers. Anything needing HTTP awareness — path routing, WAF, redirects — is ALB. Protocol-agnostic, extreme throughput, static IPs, or client-IP preservation is NLB.
AWS SAA Hub Pro는 독립 학습 자료이며 Amazon Web Services, Inc.의 공식 서비스가 아닙니다. 시험 정책과 서비스 사양은 AWS 공식 문서를 기준으로 확인하세요.