API Gateway Flashcards
What is a Canary release?
It will instantiate instances of your stable lambda and your newly versioned lambda on the same stage. This is configured within your SAM.yaml file.
Why would you get a preflight error message?
Because CORS is not enabled and/or you do not have the OPTIONS method setup within the gateway.
What does setting the TTL give you?
It is the setting that determines how long your response cache will live (TimeToLive).
TTL=0 means caching is disabled.
How can a client invalidate the cache and force the server to get fresh results?
Pass in the cache-control header with a value of max-age=0
How do regulate who can invalidate the response cache?
Attach a policy to the IAM role of that user. This would in effect only allow certain clients to invalidate the cache verse every client.
How do you throttle requests?
Add a usage plan.
What does the burst limit tell me?
It is the maximum number of concurrent request that can be processed in a given period of time without returning 429 Too Many Request error.
https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-throttling.html
What is the rate limit tell me?
The number of request that can be processed over a period of time.