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 - 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, Lambda, 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:
Backend Services -> API Gateway (Return, Prepare, Transform) -> Clients

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 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:

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

What AWS API Gateway component represents a logical reference to its lifecycle state?

A

Stage (e.g., dev, prod, beta, v2).

Each stage has its own deployment and is identified by a unique URL
- api.domain.com/dev
- 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
  • Min TTL 0s
  • Max TTL 3600s (1h)
  • Default TTL of 300s (5m)
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
11
Q

What are the components of an AWS API Gateway invoke URL?

A
  • Endpoint DNS name
  • Stage
  • Resource

https://1nj7l16t37.execute-api.us-east-1.amazonaws.com/stage/resource

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

What are the phases of AWS API Gateway integration?

A
  • Method Request
  • Integration Request
  • Integration Response
  • Method Response
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What types of integration does AWS API Gateway support?

A

Requires integration request and response configuration:
- AWS: Exposes AWS service actions
- HTTP: Exposes HTTP backend endpoints

Does not requires integration request and response configuration:
- AWS_PROXY: Directly invokes an AWS Lambda function
- HTTP_PROXY: Exposes HTTP backend endpoints without transformation
- MOCK: Returns a response without calling a backend service

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

What AWS API Gateway component (script) modifies request parameters, body, or headers in non-proxy integrations?

A

Mapping Templates

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

What language is used in AWS API Gateway Mapping Templates?

A

Velocity Template Language (VTL)

16
Q

What is a common use case for AWS API Gateway Mapping Templates?

A

Converting REST API requests to SOAP API format for integration

17
Q

What action must be performed to make AWS API Gateway updates live and callable by users?

A

Deployment to a new or existing stage

18
Q

Can a deployed AWS API Gateway stage be updated after changes are made?

A

Yes, a stage can be overwritten with new changes or rolled back

19
Q

What key-value pairs can be defined as configuration attributes associated with an AWS API Gateway Stage and used in API setup and Mapping Templates?

A

Stage Variables

20
Q

What specification defines a standard, language-agnostic interface for HTTP APIs, enabling both humans and computers to discover and understand the service’s capabilities without access to source code, documentation, or network traffic inspection?

A

OpenAPI Specification (OAS)

21
Q

How OpenAPI Specification files can be used by AWS API Gateway service?

A
  • To import an API
  • To export an API