Integration

Amazon API Gateway

Managed service to publish REST, HTTP, and WebSocket APIs in front of Lambda, HTTP backends, or AWS services.

How it works

Amazon API Gateway is a managed service for publishing REST, HTTP, and WebSocket APIs. An API can route requests to AWS Lambda or an HTTP backend. Depending on the API type and configuration, the service supports authentication, access control, and throttling. You can deploy separate stages to manage API versions and changes.

When to use it

Choose it when the requirement is to expose a serverless API with authentication, throttling, caching, and versioning.

Real-world example

A company publishes a REST API through API Gateway and configures a usage plan with a per-key throttling target. Cognito authenticates users, and valid requests are routed to Lambda for processing.

Key facts

  • Endpoint types include Edge-optimized (routed via CloudFront), Regional, and Private (inside a VPC).
  • Provides built-in authentication via IAM roles, Cognito User Pools, or Custom Lambda Authorizers.
  • Custom domain names require an ACM SSL/TLS certificate configured in us-east-1 for Edge-optimized endpoints.

Common pitfall

Do not treat an API key or usage plan quota as authentication or a hard spending limit. Use appropriate access controls and monitor costs separately.

Often confused with

Application Load Balancer, which routes HTTP/HTTPS traffic but lacks API keys, usage plans, and request validation.

References

Prepared by Cloud Quest. Check current behavior and limits in the AWS documentation:

SAA-C03 study guide and learning resources

Keywords you will see in SAA-C03 questions

  • REST API
  • API keys

Understand it for real with 3D models and simulated labs

Connect the concept to a working architecture.

Start learning