API Gateway Flashcards

This deck aims to help retain concepts related to the API Gateway service.

1
Q

Which AWS service is designed for creating, publishing, maintaining, monitoring, and securing REST, HTTP, and WebSocket APIs at any scale?

A

API Gateway, a highly available, scalable, and fully managed AWS service

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

What are the key features of API Gateway?

A

Authorization, throttling, caching, CORS, request/response transformation, OpenAPI specification support, direct service integration, and more

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

Can API Gateway be integrated with on-premises endpoints?

A

API Gateway can connect directly to AWS services like DynamoDB, SNS, Step Functions, and Lambda, as well as AWS-hosted and on-premises endpoints

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

Can you describe the typical flow of a request through API Gateway?

A

Request:
Clients -> API Gateway (Authorize, Validate, Transform) -> Backend Services

Response:
Clients <- API Gateway (Return, Prepare, Transform) <- Backend Services

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

What functionalities are available when API Gateway is connected to CloudWatch?

A

When integrated with CloudWatch, API Gateway provides detailed logging and metrics for requests and responses

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

What authentication methods does API Gateway support?

A
  • Authorization via Cognito User Pools
  • Custom authorization through Lambda functions, allowing you to integrate custom identity providers (IDP)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What types of endpoints does API Gateway offer?

A

API Gateway supports three types of endpoints:

  • Edge-optimized: Routes requests to the nearest CloudFront Point of Presence (PoP)
  • Regional: Ideal for clients within the same AWS region
  • Private: Accessible only within a VPC through interface endpoints
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which API Gateway feature allows the creation of logical environments identified by both ID and name?

A

Stages feature lets you manage different environments, such as dev and prod, each stage has its own deployment and is identified by a unique URL, like api.domain.com/dev or api.domain.com/prod

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

What are the minimum and maximum cache sizes supported by API Gateway?

A

API Gateway allows caching from 500MB to 237GB

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

What are the minimum and maximum cache TTL values supported by API Gateway?

A

TTL can be set from 0s to 3600s (default of 300s)

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

Is caching configured per API Gateway instance?

A

Caching is configured per stage and can be encrypted

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