API Gateway Flashcards
What does API Gateway provide?
An endpoint or entry point for applications. You can create and manage APIs with direct AWS service integrations from within API Gateway.
What AWS Zone is API Gateway hosted in?
In the AWS Public Zone.
What types of APIs are supported by API Gateway?
HTTP, REST, and WebSocket.
How can you reduce the number of calls made to backend integrations when using API Gateway?
By configuring API Gateway Cache.
How does API Gateway handle authenication?
By using Cognito or by passing a bearer token to a Lambda authorizer function which validates identity with an external ID provider.
What types of API Gateway endpoints exist?
Edge-optimized - requests are routed to the nearest CloudFront point-of-presence.
Regional - used by clients in the same Region.
Private - accessible only with a VPC.
What are API Gateway stages?
Different deployments of an API that have different urls. They can point at different versions of the API, for example one stage for production and a different stage for development. Canary deployments can be used to slowly move certain percentage of traffic to the canary deployment (e.g., a new version) and then the canary can be promoted to the new base stage.
What are the error codes returned by API Gateway?
400-series - Client error
* 400 - Bad Request - Generic
* 403 - Access Denied
* 429 - API Gateway throttling
500-series - Server error
* 502 - Bad Gateway Exception - bad output returned by Lambda
* 503 - Service Unavailable - backing endpoint offline?
* 504 - Integration Failure/Timeout - 29 second limit
What is the default TTL for API Gateway Cache?
300 seconds. It is configurable from 0 to 3600 seconds.
What is the range of size for an API Gateway Cache?
500MB to 237GB.
Where do API Gateway Caches apply?
The caches are defined per stage.
Can API Gateway Caches be encrypted?
Yes.