API Gateway Flashcards

1
Q

What does API Gateway provide?

A

An endpoint or entry point for applications. You can create and manage APIs with direct AWS service integrations from within API Gateway.

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

What AWS Zone is API Gateway hosted in?

A

In the AWS Public Zone.

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

What types of APIs are supported by API Gateway?

A

HTTP, REST, and WebSocket.

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

How can you reduce the number of calls made to backend integrations when using API Gateway?

A

By configuring API Gateway Cache.

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

How does API Gateway handle authenication?

A

By using Cognito or by passing a bearer token to a Lambda authorizer function which validates identity with an external ID provider.

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

What types of API Gateway endpoints exist?

A

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.

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

What are API Gateway stages?

A

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.

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

What are the error codes returned by API Gateway?

A

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

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

What is the default TTL for API Gateway Cache?

A

300 seconds. It is configurable from 0 to 3600 seconds.

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

What is the range of size for an API Gateway Cache?

A

500MB to 237GB.

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

Where do API Gateway Caches apply?

A

The caches are defined per stage.

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

Can API Gateway Caches be encrypted?

A

Yes.

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