Quizzes · Networking · Level 0
API Gateway
A managed HTTPS front door that passes requests to your code.
Think of it as: A receptionist who takes every visitor's request and phones the right person.
What to know for Level 0
- API Gateway gives a backend (usually Lambda) a managed HTTPS endpoint, and handles throttling and authorisation before requests reach it. It runs outside your VPC.
- Throttling rejects requests above a rate limit with HTTP 429, so a flood never reaches the backend.
- API Gateway → Lambda → DynamoDB is the classic serverless pattern: nothing to patch or scale, and you pay per request.
- API Gateway is allowed to call a Lambda function by a resource-based policy on the function.
What to know for Level 2
- HTTP APIs are cheaper and faster with JWT authorizers built in. REST APIs add more: response caching, API keys and usage plans, request validation, WAF and private APIs.
- A REST API stage can cache responses for a TTL, so repeated identical requests skip the backend.
- Throttling applies per account per Region (10,000 requests a second steady, 5,000 burst, by default) and can be set lower per stage, method or usage plan.
- A browser app on another origin needs CORS on the API: answer the OPTIONS preflight request and return Access-Control-Allow-Origin. With a Lambda proxy integration the function must return the CORS headers itself.
More detail
API Gateway handles HTTPS, throttling and authorisation and passes each request to a backend, usually a Lambda function. It’s the classic “serverless API” pattern on the exam.
Quiz yourself on API Gateway →Study flash cards
← All quizzes