WAF

보안 및 IAM 연관 문항 20개

계층 7 웹 방화벽. SQL 인젝션·XSS·봇 차단

이게 뭔가요? / What is this?

WAF는 물리적인 방화벽 장비가 아니라, 웹 요청 하나하나의 내용을 들여다보고 악성 패턴을 걸러내는 가상의 7계층 보안 필터입니다. 신분증만 확인하는 경비원과 달리 가방 속 내용물까지 검사하는 보안 검색대처럼, 요청 안에 SQL 인젝션 같은 위험한 코드가 숨어 있는지 실제 내용을 검사합니다.

개요 / Overview

AWS WAF는 CloudFront, ALB, API Gateway 앞에서 HTTP 요청을 검사해 악성 패턴을 차단합니다. 문제에 "SQL 인젝션", "크로스 사이트 스크립팅", "특정 국가 차단", "속도 제한"이 나오면 WAF입니다.

동작 원리 / How it works

WAF는 웹 ACL을 만들어 CloudFront 배포, ALB, API Gateway, AppSync에 연결합니다. 웹 ACL 안에는 규칙이 우선순위 순으로 들어가고, 각 규칙은 요청의 URI·헤더·본문·쿼리스트링을 검사해 허용·차단·카운트를 결정합니다. AWS 관리형 규칙 그룹(공통 취약점, SQL 인젝션, 알려진 악성 IP, 봇 제어)을 얹으면 직접 규칙을 짜지 않고도 즉시 방어가 붙습니다.

속도 기반 규칙은 5분 창에서 소스 IP별 요청 수를 세어 임계값을 넘으면 차단합니다. 무차별 로그인이나 스크래핑 방어의 표준 답입니다.

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

시험 신호는 애플리케이션 계층 공격 이름입니다 — SQL 인젝션, XSS, 봇, 스크래핑, 국가 차단, 속도 제한. Shield(L3/L4 DDoS)와 역할이 다르다는 점을 구분하는 문항이 함께 나옵니다.

시험 포인트 / Exam points

Shield와의 역할 분담

Shield는 네트워크·전송 계층(L3/L4) DDoS를, WAF는 애플리케이션 계층(L7) 공격을 막습니다. 대규모 L7 DDoS는 둘을 함께 씁니다.

속도 기반 규칙

한 IP가 5분간 일정 횟수를 넘으면 자동 차단합니다. 무차별 로그인 시도나 스크래핑 방어의 정답입니다.

자주 틀리는 함정 / Common traps

L3/L4 규모의 DDoS 방어를 WAF로 답하는 것 — 그 계층은 Shield의 영역입니다.

WAF를 EC2에 직접 붙이려는 선택지 — 지원 대상은 CloudFront·ALB·API Gateway·AppSync입니다.

📝 이 개념 문제 풀기

AWS WAF

Security & IAM 20 related questions

Layer 7 web firewall blocking SQL injection, XSS, and bots

이게 뭔가요? / What is this?

WAF is not a physical firewall box — it is a virtual layer-7 security filter that inspects the actual content of each web request for malicious patterns. Unlike a guard who just checks an ID badge, it is like an airport security scanner that looks inside the bag itself, checking whether a request hides dangerous code such as a SQL injection.

개요 / Overview

AWS WAF inspects HTTP requests in front of CloudFront, ALB, or API Gateway. "SQL injection", "cross-site scripting", "block a country", or "rate limiting" all point to WAF.

동작 원리 / How it works

WAF creates a web ACL attached to a CloudFront distribution, ALB, API Gateway, or AppSync. The ACL holds prioritised rules that inspect URI, headers, body, and query string to allow, block, or count. Adding AWS managed rule groups — common vulnerabilities, SQL injection, known bad IPs, bot control — gives immediate protection with no hand-written rules.

Rate-based rules count requests per source IP in a five-minute window and block above a threshold, the standard answer for brute-force logins and scraping.

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

The signals are application-layer attack names: SQL injection, XSS, bots, scraping, country blocking, rate limiting. Paired questions test that its role differs from Shield (L3/L4 DDoS).

시험 포인트 / Exam points

Division of labour with Shield

Shield handles L3/L4 DDoS; WAF handles L7 attacks. Large layer-7 floods use both together.

Rate-based rules

Automatically block an IP exceeding a request count in five minutes — the answer for brute-force logins and scraping.

자주 틀리는 함정 / Common traps

Answering an L3/L4 DDoS question with WAF — that layer belongs to Shield.

Attaching WAF directly to EC2 — supported targets are CloudFront, ALB, API Gateway, and AppSync.

📝 Practice this concept

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