API Gateway COPY Flashcards
Types of APIs:
_____ and ____
rest and soap
rest API stands for …
representational state transfer
SOAP stands for…
simple object access protocol
T or F
SOAP uses JSON
False.
Rest uses JSON
which API is this?
{
“_id: “51262c8656358946bec9d77”,
“firstname”: “John”,
“surname” : “smith”
}
Rest API
What type of API is this?
derp derp derp
SOAP API
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.
true
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.
True
T or F
API GW can expose FTP endpoints to define a restful API
False
API GW can expose HTTPS endpoints to define a restful API
T or F
API GW can serverlessly connect to services like Lambda and DynamoDB
True
T or F
API GW can send each API endpoint to a different target
True
T or F
API GW can run efficiently if you are willing to pay a lot for it.
False
API GW can run efficiently at low cost.
T or F
API GW can scale effortlessly
True
T or F
API GW can track and control usage by API key.
True
T or F
API GW can trottle requests to prevent attacks
True
T or F
API GW can connect to to Cloudtrail to log all requests for monitoring
False
API GW can connect to to Cloudwatch to log all requests for monitoring
How to configure API GW?
Put them in order.
- set security
- define an API (container)
- choose target (such as ec2, lambda, dynamoDB, etc)
- define resources and nested resources (URL paths)
- select supported HTTP methods (verbs)
- deploy API to a stage
- set requests and response transformations
- define an API (container)
- define resources and nested resources (URL paths)
- select supported HTTP methods (verbs)
- set security
- choose target (such as ec2, lambda, dynamoDB, etc)
- set requests and response transformations
- deploy API to a stage
which of the following can API GW do?
- uses API GW domain, by default
- can use custom domain
- now supports AWS Cert manager: free SSL/TLS certs
all of the above
You can enable API _____ in AWS API GW to cache your endpoints response.
caching
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.
True
You can use the API GW ____ API feature to ______ an API
import
IMport API feature supports ________2.0 definition files.
swagger
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
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.
By default, API GW limits the steady state request rate to _______ requests per second (RPS)
- 1,000
- 10,000
- 100,000
- 1,000,000
10,000
the max concurrent request is ______ requests across all APIs within an AWS account.
- 5,000
- 10,000
- 100,000
- 1,000,000
5,000
If you go over _____ requests per second or _____ concurrent requests, you will receive a ____ too many request error response.
Place the numbers
- 111
- 429
- 5,000
- 10,000
- 35,767
- 100,000
If you go over 10,000 requests per second or 5,000 concurrent requests, you will receive a 429 too many request error response.
If a caller submits _____ requests in a one second period evenly, API GW processes all requests without dropping any.
- 1,000
- 10,000
- 100,000
- 1,000,000
10,000
If the caller sends ____ requests in the first millisecond, API GW serves _____ of those requests and throttles the rest in teh one-second period.
- 100
- 1,000
- 5,000
- 10,000
- 100,000
- 1,000,000
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.
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
- 5
- 429
- 999
- 5,000
- 5,000
- 10,000
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.
T or F
You can configure API GW as a REST web service passthrough
False
You can configure API GW as a SOAP web service passthrough