API Gateway Flashcards

1
Q

What is the main advantage of using API Gateway with AWS Lambda?

A

Fully managed, serverless API setup with no infrastructure to manage.

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

What are the three API Gateway endpoint types?

A

Edge-Optimized, Regional, Private.

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

Which protocol is supported by API Gateway for real-time communication?

A

WebSocket.

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

What is the default cache TTL for API Gateway?

A

300 seconds (5 minutes).

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

What are key features of API Gateway?

A

Versioning, request throttling, authentication, caching, SDK generation, and request/response transformation.

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

Which AWS services can API Gateway integrate with directly?

A

Lambda, HTTP endpoints, Step Functions, SQS, Kinesis, and other AWS services.

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

Which endpoint type uses CloudFront edge locations for reduced latency?

A

Edge-Optimized.

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

What are stage variables in API Gateway used for?

A

Key-value pairs specific to a deployment stage (like dev, test, prod) that let you: Pass dynamic configuration to your Lambda functions, HTTP endpoints, or other integrations. Customize behavior per environment without changing your backend code. Reference in Lambda function ARN

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

What is canary deployment in API Gateway?

A

Gradually shifts a percentage of traffic to a new version for testing before full rollout.

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

What integration type enables Lambda Proxy integration?

A

AWS_PROXY. (It passes the full request from API Gateway directly to a Lambda function)

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

What language is used in API Gateway mapping templates?

A

Velocity Template Language (VTL).

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

What tool allows importing/exporting API definitions as code?

A

OpenAPI (formerly Swagger).

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

How does API Gateway validate incoming requests?

A

Using request validators and JSON schema models.

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

How can you clear cached API Gateway responses?

A

Flush the cache or use Cache-Control: max-age=0 with authorization.

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

What are the steps to implement a usage plan in API Gateway?

A

Create API, deploy stages, require API keys, define usage plan, associate keys.

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

Which service provides distributed tracing for API Gateway?

A

AWS X-Ray.

17
Q

What error code indicates throttling in API Gateway?

A

429 - Too Many Requests.

18
Q

What are three authentication methods supported by API Gateway?

A

IAM, Cognito User Pools, Lambda Authorizers.

19
Q

Which API type supports OAuth 2.0 and OIDC natively?

A

HTTP APIs.

20
Q

What are typical use cases for WebSocket APIs in API Gateway?

A

Real-time apps like chat, gaming, live collaboration, or trading platforms.