Wath are API Gateway integrations at a high level?
What are API Gateway endpoint types?
What is API Gateway Edge-Optimized endpoint type used for?
For global clients
o Requests are routed through the CloudFront Edge locations (improves latency)
o The API Gateway still lives in only one region
What is API Gateway Regional endpoint type used for?
o For clients within the same region
o Could manually combine with CloudFront (more control over the caching strategies and the distribution)
What is API Gateway Private endpoint type used for?
o Can only be accessed from your VPC using an interface VPC endpoint (ENI)
o Use a resource policy to define access
What are API Gateway Deployment Stages?
What are API Gateway stage variables?
Where can be used API Gateway stage variables?
They can be used in:
o Lambda function ARN
o HTTP Endpoint
o Parameter mapping templates
What are API Gateway stage variables use cases?
o Configure HTTP endpoints your stages talk to (dev, test, prod…)
o Pass configuration parameters to AWS Lambda through mapping templates
Set an example of using a API Gateway stage variable in a Lambda function context
LAMBDA_FUNCTION:${stageVariables.STAGE_VAR}
What you need to do in CLI when you set your API Gateway in front of Lambda Function as a stage variable?
You need to run a command in your CLI to update your Lambda resource-based policy
Run that command for each defined N alias, this will create N resource-based policies, one per each alias.
Where are API Gateway configurations available?
at stage level
What possibility you have regarding API Gateway deployments?
Possibility to enable canary deployments for any stage (usually prod)
How does work API Gateway Canary deployment?
What are 4 API Gateway integration types?
What is API Gateway Mock integration type?
API Gateway returns a response without sending the request to the backend
What is API Gateway HTTP / AWS integration type?
o you must configure both the integration request and integration response (modify requests and responses)
o Setup data mapping using mapping templates for the request & response
What is API Gateway AWS Proxy integration type?
o incoming request from the client is the input to Lambda
o The function is responsible for the logic of request / response
o No mapping template, headers, query string parameters… are passed as arguments
What is API Gateway HTTP Proxy integration type?
o No mapping template
o The HTTP request is passed to the backend
o The HTTP response from the backend is forwarded by API Gateway
What are API Gateway Mapping templates?
What language is used by API Gateway Mapping Templates?
Velocity Template Language VTL
What can you use to import / export API Gateway Rest APIs?
- OpenAPI
What are API Gateway Cache TTL range values?
Default TTL is 5 minutes (min: 0s, max: 1 hour)
Where do you define API Gateway cache?
at stage level, but it is possible to override cache settings (disable, enable, modify TTL, etc.…) per method