Service · Networking and Content Delivery · Builds on CLF-C02
Amazon API Gateway
Pick the API type and endpoint type, then add authorizers, throttling, caching and a private path to the backend.
You know from Cloud Practitioner
- API Gateway is a managed front door for APIs, in front of Lambda, EC2 or any web backend.
- It supports REST, HTTP and WebSocket APIs.
- It checks callers, throttles requests and records what happened.
Best for
- REST
- Full-featured APIs
- HTTP
- Simple, low-cost proxy
- WebSocket
- Chat, live updates
Caching, usage plans, validation
- REST
- Yes
- HTTP
- No
- WebSocket
- No
Authorizers
- REST
- IAM, Cognito, Lambda
- HTTP
- IAM, JWT, Lambda
- WebSocket
- IAM, Lambda
Endpoint types
- REST
- Edge, Regional, Private
- HTTP
- Regional
- WebSocket
- Regional
Price
- REST
- Higher
- HTTP
- Lower
- WebSocket
- Messages and connection time
| Compare | REST | HTTP | WebSocket |
|---|---|---|---|
| Best for | Full-featured APIs | Simple, low-cost proxy | Chat, live updates |
| Caching, usage plans, validation | Yes | No | No |
| Authorizers | IAM, Cognito, Lambda | IAM, JWT, Lambda | IAM, Lambda |
| Endpoint types | Edge, Regional, Private | Regional | Regional |
| Price | Higher | Lower | Messages and connection time |
1 / 2
Best for
- REST
- Full-featured APIs
- HTTP
- Simple, low-cost proxy
- WebSocket
- Chat, live updates
Caching, usage plans, validation
- REST
- Yes
- HTTP
- No
- WebSocket
- No
Authorizers
- REST
- IAM, Cognito, Lambda
- HTTP
- IAM, JWT, Lambda
- WebSocket
- IAM, Lambda
| Compare | REST | HTTP | WebSocket |
|---|---|---|---|
| Best for | Full-featured APIs | Simple, low-cost proxy | Chat, live updates |
| Caching, usage plans, validation | Yes | No | No |
| Authorizers | IAM, Cognito, Lambda | IAM, JWT, Lambda | IAM, Lambda |
2 / 2
Endpoint types
- REST
- Edge, Regional, Private
- HTTP
- Regional
- WebSocket
- Regional
Price
- REST
- Higher
- HTTP
- Lower
- WebSocket
- Messages and connection time
| Compare | REST | HTTP | WebSocket |
|---|---|---|---|
| Endpoint types | Edge, Regional, Private | Regional | Regional |
| Price | Higher | Lower | Messages and connection time |
What it is
REST APIs have the most features: usage plans and API keys, request validation, caching, resource policies and private endpoints. HTTP APIs are simpler, cheaper and faster, with built-in JWT authorizers, but they lack those extras. WebSocket APIs keep a two-way connection open for chat or live dashboards. For “lowest cost” with simple proxying, choose an HTTP API. If the question names caching, API keys or request validation, choose a REST API.
What it is
Endpoint types: edge-optimized sends requests through CloudFront edge locations, for clients around the world (REST APIs only). Regional serves clients in the same Region. Private is reachable only from a VPC, through an interface VPC endpoint.
What it is
Control who calls with IAM authorization (signed requests), a Cognito user pool authorizer (users who sign in), or a Lambda authorizer (your own token logic). Throttling is 10,000 requests per second per Region and account by default, with a burst of 5,000. You can also set limits per stage, per method and per usage plan. The stage cache keeps responses for 300 seconds by default (up to 3,600). The integration timeout is 29 seconds by default. A VPC link lets API Gateway reach a load balancer in a private subnet.
Remember
- REST: full features. HTTP: cheaper and simpler. WebSocket: two-way, long-lived connections.
- Endpoint types: edge-optimized, Regional or Private. Private needs an interface VPC endpoint.
- Authorizers: IAM, Cognito user pool, Lambda authorizer. HTTP APIs also have JWT authorizers.
- Throttling: 10,000 requests per second per Region by default. Usage plans with API keys limit each customer.
Remember
- Stage cache: default TTL 300 seconds, up to 3,600.
- Integration timeout: 29 seconds by default. Payload limit: 10 MB.
On the exam
- “Limit each paying customer to a number of requests” points to a usage plan with API keys.
- “The backend runs on instances in a private subnet” points to a VPC link.
- “Clients around the world need low latency to the API” points to an edge-optimized endpoint.
- “Cache API responses to reduce backend calls” points to API Gateway stage caching.
Do not mix it up with
AWS LambdaSize memory, plan concurrency and cold starts, and know how each trigger calls a function.
Elastic Load BalancingHow an Application Load Balancer decides: listeners, rules, target groups, health checks and the settings the exam asks about.
Amazon CloudFrontA CDN with cache rules, private S3 origins, origin failover, signed access and code at the edge.
In this task · 2.1
- Microservices and stateless design
- Multi-tier architectures
- Event-driven and loose coupling patterns
- Serverless application patterns
- AWS Amplify and AWS Device Farm
- Horizontal vs vertical scaling
- Caching strategies
Load Balancing
API Gateway
- When and how to containerize
SQS
SNS
EventBridge
Step Functions
MQ
Secrets Manager
- Choosing purpose-built services
- Choosing object, file or block
Lambda
- Read replicas
ElastiCache
CloudFront
Global Accelerator
Transfer Family
S3
EFS
EBS
Fargate
ECS
EKS