API Gateway Flashcards
This deck aims to help retain concepts related to the API Gateway service.
Which AWS service is designed for creating, publishing, maintaining, monitoring, and securing REST, HTTP, and WebSocket APIs at any scale?
API Gateway, a highly available, scalable, and fully managed AWS service
What are the key features of API Gateway?
Authorization, throttling, caching, CORS, request/response transformation, OpenAPI specification support, direct service integration, and more
Can API Gateway be integrated with on-premises endpoints?
API Gateway can connect directly to AWS services like DynamoDB, SNS, Step Functions, and Lambda, as well as AWS-hosted and on-premises endpoints
Can you describe the typical flow of a request through API Gateway?
Request:
Clients -> API Gateway (Authorize, Validate, Transform) -> Backend Services
Response:
Clients <- API Gateway (Return, Prepare, Transform) <- Backend Services
What functionalities are available when API Gateway is connected to CloudWatch?
When integrated with CloudWatch, API Gateway provides detailed logging and metrics for requests and responses
What authentication methods does API Gateway support?
- Authorization via Cognito User Pools
- Custom authorization through Lambda functions, allowing you to integrate custom identity providers (IDP)
What types of endpoints does API Gateway offer?
API Gateway supports three types of endpoints:
- Edge-optimized: Routes requests to the nearest CloudFront Point of Presence (PoP)
- Regional: Ideal for clients within the same AWS region
- Private: Accessible only within a VPC through interface endpoints
Which API Gateway feature allows the creation of logical environments identified by both ID and name?
Stages feature lets you manage different environments, such as dev and prod, each stage has its own deployment and is identified by a unique URL, like api.domain.com/dev or api.domain.com/prod
What are the minimum and maximum cache sizes supported by API Gateway?
API Gateway allows caching from 500MB to 237GB
What are the minimum and maximum cache TTL values supported by API Gateway?
TTL can be set from 0s to 3600s (default of 300s)
Is caching configured per API Gateway instance?
Caching is configured per stage and can be encrypted