API Gateway Flashcards Preview

AWS Associate Triforce > API Gateway > Flashcards

Flashcards in API Gateway Deck (30)
Loading flashcards...
1
Q

Types of APIs:

_____ and ____

A

rest and soap

2
Q

rest API stands for …

A

representational state transfer

3
Q

SOAP stands for…

A

simple object access protocol

4
Q

T or F

SOAP uses JSON

A

False.

Rest uses JSON

5
Q

which API is this?

{

“_id: “51262c8656358946bec9d77”,

“firstname”: “John”,

“surname” : “smith”

}

A

Rest API

6
Q

What type of API is this?

<?xml version=”1.0”?>

<quiz></quiz>

<quanda></quanda>

<question></question>

derp derp derp

A

SOAP API

7
Q

T or F

Amazon API GW is a fully managed service that makes it easy for devs to publish, maintain, monitor, and secure APIs at any scale.

A

true

8
Q

T or F

WIth a few clicks in the AWS mgmt console, you cna create an API that aces as a “front door” for apps to access data, business logic, or functionality from yoru backend services, such as apps running on EC2, code running on Lambda, or any web app.

A

True

9
Q

T or F

API GW can expose FTP endpoints to define a restful API

A

False

API GW can expose HTTPS endpoints to define a restful API

10
Q

T or F

API GW can serverlessly connect to services like Lambda and DynamoDB

A

True

11
Q

T or F

API GW can send each API endpoint to a different target

A

True

12
Q

T or F

API GW can run efficiently if you are willing to pay a lot for it.

A

False

API GW can run efficiently at low cost.

13
Q

T or F

API GW can scale effortlessly

A

True

14
Q

T or F

API GW can track and control usage by API key.

A

True

15
Q

T or F

API GW can trottle requests to prevent attacks

A

True

16
Q

T or F

API GW can connect to to Cloudtrail to log all requests for monitoring

A

False

API GW can connect to to Cloudwatch to log all requests for monitoring

17
Q

How to configure API GW?

Put them in order.

  1. set security
  2. define an API (container)
  3. choose target (such as ec2, lambda, dynamoDB, etc)
  4. define resources and nested resources (URL paths)
  5. select supported HTTP methods (verbs)
  6. deploy API to a stage
  7. set requests and response transformations
A
  1. define an API (container)
  2. define resources and nested resources (URL paths)
  3. select supported HTTP methods (verbs)
  4. set security
  5. choose target (such as ec2, lambda, dynamoDB, etc)
  6. set requests and response transformations
  7. deploy API to a stage
18
Q

which of the following can API GW do?

  1. uses API GW domain, by default
  2. can use custom domain
  3. now supports AWS Cert manager: free SSL/TLS certs
A

all of the above

19
Q

You can enable API _____ in AWS API GW to cache your endpoints response.

A

caching

20
Q

T or F

When you enable cachine for a stage, API GW caches responses from your endpoint for a specified (TTL) period, in seconds. API GW then responds to teh request by looking up the endpoint response from teh cache instead of making a request to your endpoint.

A

True

21
Q

You can use the API GW ____ API feature to ______ an API

A

import

22
Q

IMport API feature supports ________2.0 definition files.

A

swagger

23
Q

With the import API, you can either create a new API by submitting a ____ request that includes Swahger definition in the payload and endpoint configuration, or you can update the existing API by using a ____ request that contains a swagger definition, or merge a definition with an existing API. YOu specify the options using a mode query parameter in teh request URL.

Place the words in the correct spot.

PUT POST

A

With the import API, you can either create a new API by submitting a POST request that includes Swahger definition in the payload and endpoint configuration, or you can update the existing API by using a PUT request that contains a swagger definition, or merge a definition with an existing API. YOu specify the options using a mode query parameter in teh request URL.

24
Q

By default, API GW limits the steady state request rate to _______ requests per second (RPS)

  1. 1,000
  2. 10,000
  3. 100,000
  4. 1,000,000
A

10,000

25
Q

the max concurrent request is ______ requests across all APIs within an AWS account.

  1. 5,000
  2. 10,000
  3. 100,000
  4. 1,000,000
A

5,000

26
Q

If you go over _____ requests per second or _____ concurrent requests, you will receive a ____ too many request error response.

Place the numbers

  1. 111
  2. 429
  3. 5,000
  4. 10,000
  5. 35,767
  6. 100,000
A

If you go over 10,000 requests per second or 5,000 concurrent requests, you will receive a 429 too many request error response.

27
Q

If a caller submits _____ requests in a one second period evenly, API GW processes all requests without dropping any.

  1. 1,000
  2. 10,000
  3. 100,000
  4. 1,000,000
A

10,000

28
Q

If the caller sends ____ requests in the first millisecond, API GW serves _____ of those requests and throttles the rest in teh one-second period.

  1. 100
  2. 1,000
  3. 5,000
  4. 10,000
  5. 100,000
  6. 1,000,000
A

If the caller sends 10,000 requests in the first millisecond, API GW serves 5,000 of those requests and throttles the rest in teh one-second period.

29
Q

If the caller submits ____ request in teh first millisecond and then even.y spreads another _____ requests through the remaining ____ milliseconds (for example, about ___ requests every millisecond), API GW processes all _____ requests in the ___ second preiod without returning ____ too many requests error responses.

Place the numbers in teh correct place.

  1. 1
  2. 5
  3. 429
  4. 999
  5. 5,000
  6. 5,000
  7. 10,000
A

If the caller submits 5,000 request in the first millisecond and then evenly spreads another 5,000 requests through the remaining 999 milliseconds (for example, about 5 requests every millisecond), API GW processes all 10,000 requests in the 1 second preiod without returning 429 too many requests error responses.

30
Q

T or F

You can configure API GW as a REST web service passthrough

A

False

You can configure API GW as a SOAP web service passthrough