API Gateway
API의 정문. 인증·스로틀링·캐싱을 대신 처리
이게 뭔가요? / What is this?
API Gateway는 서버가 아니라, 외부 요청을 받아서 인증 확인·속도 제한·캐싱까지 대신 처리해 주는 관리형 API 관문 서비스입니다. 호텔 프런트 데스크가 투숙객 확인부터 과도한 요청 조율, 자주 묻는 질문에 대한 즉답까지 처리해 뒷단 직원들의 부담을 덜어주는 것과 비슷합니다.
개요 / Overview
API Gateway는 REST·HTTP·WebSocket API를 관리형으로 제공하며 Lambda와 짝을 이뤄 서버리스 백엔드를 만듭니다. 인증, 요청 제한, 캐싱, 버전 관리를 코드 없이 붙일 수 있습니다.
동작 원리 / How it works
API Gateway는 클라이언트와 백엔드 사이에 서는 관리형 프록시입니다. 요청이 오면 권한 부여자로 인증하고, 사용 계획으로 속도를 제한하고, 스테이지 캐시를 확인한 뒤 백엔드(Lambda, HTTP 엔드포인트, AWS 서비스 직접 통합)로 넘깁니다. 이 파이프라인 덕에 인증·스로틀링·캐싱·로깅을 애플리케이션 코드 밖으로 뺄 수 있습니다.
REST API와 HTTP API는 다른 제품입니다. REST API는 기능이 풍부하지만(사용 계획, API 키, 요청 검증, WAF 연동) 비싸고, HTTP API는 기능을 덜어내 지연시간과 비용을 크게 낮춥니다. 단순 Lambda 프록시라면 HTTP API가 비용 정답이 됩니다.
시험은 무엇을 보는가 / What the exam is testing
시험은 API Gateway를 서버리스 3종 세트(API Gateway + Lambda + DynamoDB)의 입구로 씁니다. 별도로 묻는 것은 인증 방식(Cognito·Lambda 권한 부여자·IAM), 특정 클라이언트의 과다 호출 제어(사용 계획), 백엔드 부하 경감(스테이지 캐시)입니다.
시험 포인트 / Exam points
사용 계획과 API 키로 클라이언트별 요청 속도를 제한합니다. "특정 고객이 API를 과다 호출한다"는 문제의 정답입니다.
Cognito 사용자 풀 권한 부여자, Lambda 권한 부여자(커스텀 토큰 검증), IAM 인증 중에서 고릅니다. 앱 사용자 로그인이면 Cognito입니다.
스테이지 캐시를 켜면 동일 요청을 백엔드까지 보내지 않아 지연시간과 Lambda 호출 비용이 줄어듭니다.
자주 틀리는 함정 / Common traps
EC2에 API 서버를 직접 세워 인증·스로틀링을 구현하는 선택지 — 운영 부담이 크므로 관리형 조건에서 오답입니다.
앱 사용자 로그인에 IAM 인증을 고르는 것 — 최종 사용자는 Cognito 권한 부여자가 정답입니다.
API Gateway
The front door for APIs, handling auth, throttling, and caching
이게 뭔가요? / What is this?
API Gateway is not a server — it is a managed front-door service that receives external requests and handles authentication, rate limiting, and caching. It is like a hotel front desk that checks guests in, manages a flood of requests, and even answers common questions on the spot, sparing the staff behind it.
개요 / Overview
API Gateway hosts REST, HTTP, and WebSocket APIs and pairs with Lambda for serverless backends, adding authentication, throttling, caching, and versioning without code.
동작 원리 / How it works
API Gateway is a managed proxy between clients and backends. A request is authenticated by an authorizer, rate-limited by a usage plan, checked against the stage cache, then forwarded to the backend (Lambda, an HTTP endpoint, or a direct AWS service integration). That pipeline moves authentication, throttling, caching, and logging out of application code.
REST APIs and HTTP APIs are different products. REST is feature-rich (usage plans, API keys, request validation, WAF) but pricier; HTTP APIs strip features to cut latency and cost sharply. For a plain Lambda proxy, HTTP API is the cost answer.
시험은 무엇을 보는가 / What the exam is testing
The exam uses API Gateway as the entrance to the serverless trio (API Gateway, Lambda, DynamoDB). The separate asks are the authentication mechanism (Cognito, Lambda authorizer, IAM), throttling one noisy client (usage plans), and offloading the backend (stage caching).
시험 포인트 / Exam points
Usage plans with API keys rate-limit each client — the answer when one customer floods the API.
Choose among Cognito user pool authorizers, Lambda authorizers for custom tokens, or IAM authentication. App user login → Cognito.
Stage caching stops repeated requests from reaching the backend, cutting latency and Lambda invocation cost.
자주 틀리는 함정 / Common traps
Standing up an API server on EC2 to implement auth and throttling — the overhead loses managed-service questions.
Choosing IAM authentication for application user login — end users need a Cognito authorizer.
AWS SAA Hub Pro는 독립 학습 자료이며 Amazon Web Services, Inc.의 공식 서비스가 아닙니다. 시험 정책과 서비스 사양은 AWS 공식 문서를 기준으로 확인하세요.