What is API Gateway
Fully managed service
Allows you to publish, maintain, monitor, and secure your
RESTful APIs.
Serves as the entry point for your back-end services that are powered by :
* AWS Lambda
* Amazon EC2
* Amazon ECS
* AWS Elastic Beanstalk
* or any web application.
What are the sections of the data from to and from the client through API gateway?
What does the Method Request section do?
What does the Integration Request section do?
Contains settings about :
* how API Gateway communicates with the backend of your choosing (Lambda function, HTTP endpoint, Mock, AWS Service, VPC Link)
* the Integration type (Proxy or non-proxy) that API Gateway uses
* Mapping templates for non-proxy integration.
What is the Integration Response
Only applies to non-proxy integration
Intercepts the result returned from the backend before it’s returned to the client
At least one integration response is required. The default is Passthrough (return as-is)
Transform into another format (base64 or text)
Similar to integration request, you can transfor the response data before it’s returned to the client
What is the method response?
Where you can define which HTTP headers the method can return
What are mapping templates?
What are the API types that API gateway supports?
REST APIs, HTTP APIs, Websocket APIs
What are REST APIs?
What are HTTP APIs
What are websocket APIs?
What is the difference between proxy and non-proxy integrations?
Proxy
Non-Proxy
* API Gateway has control over data formatting to and from the backend
* Instead of passing the entire request data, you can use mapping templates to filter at the Integration Request level
What are stage variables?
What is a canary release?
What are mapping templates?
They can be used to transform requests and responses
In what type of API gateway configuration can you use mapping templates?
Non-proxy
Give two examples of using mapping templates
What is a common problem with API caching?
Data is out of sync between the cache and the backend data source
How does API Gateway cache data become out of date?
Data is not refreshed until the TTL setting on the cache expires
What can you do to invalidate the cache?
What is CORS and what is it used for?
How does CORS work?
Where is CORS configured in API Gateway?
What types of Authorizors does API Gateway support?