โ˜๏ธAWSDVA Prep
← All cheat sheets
๐ŸŒ

API Gateway

Development with AWS Services

Fully managed service for creating, publishing, and securing APIs at any scale.

API types

  • โ–ธREST API: full feature set (caching, API keys/usage plans, request validation, WAF).
  • โ–ธHTTP API: lower latency and cost, simpler, built-in JWT authorizers โ€” best for simple proxy use cases.
  • โ–ธWebSocket API: for persistent, bidirectional client-server connections.

Endpoint types

  • โ–ธEdge-optimized: routed through CloudFront, best for geographically distributed clients.
  • โ–ธRegional: for clients in the same region, or when you manage your own CDN.
  • โ–ธPrivate: only accessible from within a VPC via an interface endpoint.

Traffic management

  • โ–ธThrottling: account/stage/method-level rate and burst limits (token bucket algorithm).
  • โ–ธCaching: per-stage response cache with configurable TTL, reduces backend calls.
  • โ–ธUsage plans + API keys: control and meter per-customer access, often paired with throttling quotas.

Security

  • โ–ธLambda authorizers (token or request-based) for custom auth logic.
  • โ–ธCognito authorizers to validate user pool JWTs directly.
  • โ–ธIAM authorization using SigV4-signed requests for internal/service-to-service calls.
  • โ–ธCORS must be explicitly enabled for browser-based cross-origin calls.
Test yourself on this โ†’