API Gateway Flashcards

1
Q

What is a Canary release?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why would you get a preflight error message?

A

Because CORS is not enabled and/or you do not have the OPTIONS method setup within the gateway.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does setting the TTL give you?

A

It is the setting that determines how long your response cache will live (TimeToLive).
TTL=0 means caching is disabled.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How can a client invalidate the cache and force the server to get fresh results?

A

Pass in the cache-control header with a value of max-age=0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do regulate who can invalidate the response cache?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you throttle requests?

A

Add a usage plan.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the burst limit tell me?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the rate limit tell me?

A

The number of request that can be processed over a period of time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly