API Gateway Flashcards Preview

AWS Certified Solution Architecture -- Associate > API Gateway > Flashcards

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

API Gateway Essentials

A
    • fully managed service that allows you to create and manage your own APIs for your application.
    • acts as “front door” for your aplication, allowing access to data/logic/functionality from your back-end service.
2
Q

main features

A

Build Restful APIs with Resources Methods Setting
Deploy APIs to a “Stage”(dev, beta, production)
Create a new API version by cloning an existing one.
Roll back to previous API deployments
Custom domain names
Create and manage API keys for access AND meter usage of the API keys through Amazon CloudWatch Logs.
Set throttling rules based on the number of request per second(request over the limit throttled(HTTP 429 response)
Security using Signature v.4 to sign and authorize API calls(temporary credentials generated through Cognito and STS).

3
Q

Benefits of API Gateway

A

ability to cache API responses
DDos protection via cloudfront
SDK generation for IOS, Android, and JavaScript
Supports Swagger
Request/response data transformation(HSAON IN to XML OUT).

4
Q

API Gateway: CloudFront

A

Built in Distributed Denial of Service attack protection and mitigation.
All CloudFront Edge Locations become entry points for your API into your back-end.
reduced latency and improved projection

5
Q

API Gateway Cache

A

Cache API responses so that duplicate API request do not have to hit your back-end.
can configure a cache key and TTL of the API response
cache can be setup on a per API or per stage basis.

6
Q

API Gateway: CloudWatch

A

used to monitor API Gateway activity and usage;
Monitoring can be done one the API or Stage level.
Throttling rules are monitored by CloudWatch.
monitoring metrics include such statistics as: Caching; Latency; Detected errors
Method-level metrics can be monitored.
You can create CloudWatch alarms based on these metrics.

7
Q

API pricing

A
    • API caching in Amazon API gateway is not eligible for the AWS free Tier;
    • Calling methods with the authorization type of AWS_IAM, CUSTOM, and cognito_user_pools are not charged for authorization and authentication failures.
    • Calling methods requiring API keys are not charged when API keys are missing or invalid.
    • API Gateway-throttled requests are not charged when the request rate or burst exceed the pre-configured limits.
    • Usage plan-throttled requests are not charged when rate limits or quota exceed the pre-configured limits.
8
Q

API gateway troubleshooting tip:

A

”|(pipe)” is not supported for any request URL query string and must be URL-encoded.
/ping and /sping are reserved for the service health check.
cross-account authentication is not currently supported in API Gateway.
an API caller must be an IAM user of the same AWS account of the API owner.

9
Q

Stage variables

A

name-value pairs that you can define as configuration attributes associated with a deployment stage of an API. They act like environment variables and can be used in your API setup and mapping templates.

You can also use stage variables to pass configuration parameters to a Lambda function through your mapping templates.