API Gateway Flashcards

1
Q

What is Amazon API Gateway?

A

AWS service for creating, publishing maintaining, monitoring, and securing REST, HTTP, and websocket APIs. Use API gateway to access AWS services or third party services.

API gateway acts as a “front door” for applications to access data business logic, or functionality from your backend services, such as workloads running on Amazon Elastic Compute Cloud (Amazon EC2) code running on AWS lambda, any web application, or real-time communication applications.

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

What are the use cases for API Gateway?

A

To create:
- HTTP APIs (enables you to create RESTful APIs w/ lower latency & cost than REST)

  • REST APIs (more features like monitoring, logging, SSL)
  • Web Socket APIs (real-time applications such as chat, dashboards, stock tickers, push notifications)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

WebSocket APIs in API Gateway are bidirectional. True or false?

A

TRUE

A client can send messages to a service and services can independently send messages to clients. This bi-directional behavior enables richer client/service interactions because services can push data to clients without requiring clients to make an explicit request. WebSocket APIs are often used in real time applications such as chat applications, collaboration platforms, multiplayer games, and financial trading platforms.

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

API Gateway calls a route under which conditions?

A
  • $connect route
  • $disconnect route
  • Custom route
  • $default route
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an API stage?

A

A stage is a named reference to a deployment, which is a snapshot of the API. You use a stage to manage and optimize a particular deployment. For example, you can configure stage settings to enable caching, customize request throttling, configure logging, define stage variables, or attack a canary release for testing.

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

Proxy integration = Lambda integration

A

Proxy integration was renamed to Lambda integration, they are referring to the same thing in the exam.

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

What is a canary release?

A

A software development strategy where you partially deploy a new software feature and shift some traffic to a new version of the app.

  • verify stability
  • reduce risk
  • no need to duplicate app resources vs blue/green deployments

After gaining confidence in the new version, you continually increment traffic until all traffic flows to the new release .

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

Example API is also known as the…

A

PetStore API

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

In a canary release deployment, total API traffic is split between the current release and a canary release in a predictable pattern. True or false?

A

FALSE

Total API traffic is separated at random into a production release and a canary release with a preconfigured ratio. Canary deployments allocate traffic based on confidence.

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

Mock integrations only respond to a 200 status code for API methods. True or false?

A

FALSE

You can configure any status code for a mock integration request.

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

A resource is a logical entity that an application can access through a resource path. True or false?

A

TRUE

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

Stage variables are name-value pairs that you can define as configuration attributes associated with a deployment stage of a REST API. True or false?

A

TRUE

Stage variables act like environment variables and can be used to change the behavior of your API Gateway methods for each deployment stage; for example, making it possible to reach a different back end depending on which stage the API is running on.

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

To handle a diverse array of API calls intelligently, you can use an AWS Lambda function as a CRUD back end. True or false?

A

TRUE

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

With Amazon API gateway, developers can create, publish, maintain, monitor, and secure APIs. True or false?

A

TRUE

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