API Gateway 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?
<?xml version=”1.0”?>
<quiz></quiz>
<quanda></quanda>
<question></question>
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