API GATEWAY Flashcards

1
Q

What is Amazon API Gateway ?

A

Amazon API Gateway is an AWS service for creating, publishing, maintaining, monitoring, and securing APIs at any scale.

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

Three types of APIs ?

A
  1. REST
  2. HTTP
  3. WEBSOCKET
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Amazon API Gateway benefits

A
  1. Resiliency: – It manages traffic to your backend systems by allowing you to set throttling rules.
  2. Easy API Creation and Deployment
  3. API Operations Monitoring
  4. AWS Authorization: – It helps you leverage signature version 4 authentication. You can use IAM, Lambda, JWT token.
  5. API Keys for Third Party Developers
  6. SDK generation
  7. API Lifecycle Management: API Gateway lets you run multiple versions of the same API simultaneously so that applications can continue to call previous API versions even after the latest versions are published.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Build low-latency and cost-effective REST APIs with built-in features such as OIDC and OAuth2, and native CORS support.
True or False

A

True

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

The ____ API is an advanced technology that makes it possible to open a two-way interactive communication session (persistent connections) between the user’s browser and a server for real-time use cases such as chat applications or dashboards.

A

WebSocket

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

Amazon API Gateway can make proxy calls to any publicly accessible endpoint; for example, an Elastic Load Balancer endpoint in front of a microservice that is deployed on Amazon EC2 or ECS.
True or False

A

True

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

After a custom domain name is created in API Gateway, you must create a record in ___ or your DNS provider.

A

AWS Route53

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

When you enable caching, it caches responses from your endpoint for a specified time-to-live (TTL) period, in seconds.
• By default, TTL is 300 seconds (5 minutes)
• The maximum TTL is 3600 seconds (1 hour)
• The maximum size of a response that can be cached is 1 MB
True or False

A

True

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

To prevent your API from being overwhelmed by too many requests, Amazon API Gateway throttles requests to your API using the ____
It also limits the burst (the maximum number of concurrent requests) across all APIs within an AWS account, per Region. If it reaches the limit, clients get 429 Too Many Requests

A

token bucket algorithm.

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

Route-level throttling limits for a specific stage or for individual routes in your API. It doesn’t exceed account limit.
The rate limit is per second. If a client submits 10 requests (rate limit) evenly in one second, it will work fine.
But if it submits all of them in the first millisecond, it takes the first 5 requests (burst limit), and the rest gets 429 Too Many requests.

A

True

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