API Gateway Flashcards
What is the main advantage of using API Gateway with AWS Lambda?
Fully managed, serverless API setup with no infrastructure to manage.
What are the three API Gateway endpoint types?
Edge-Optimized, Regional, Private.
Which protocol is supported by API Gateway for real-time communication?
WebSocket.
What is the default cache TTL for API Gateway?
300 seconds (5 minutes).
What are key features of API Gateway?
Versioning, request throttling, authentication, caching, SDK generation, and request/response transformation.
Which AWS services can API Gateway integrate with directly?
Lambda, HTTP endpoints, Step Functions, SQS, Kinesis, and other AWS services.
Which endpoint type uses CloudFront edge locations for reduced latency?
Edge-Optimized.
What are stage variables in API Gateway used for?
Key-value pairs specific to a deployment stage (like dev, test, prod) that let you: Pass dynamic configuration to your Lambda functions, HTTP endpoints, or other integrations. Customize behavior per environment without changing your backend code. Reference in Lambda function ARN
What is canary deployment in API Gateway?
Gradually shifts a percentage of traffic to a new version for testing before full rollout.
What integration type enables Lambda Proxy integration?
AWS_PROXY. (It passes the full request from API Gateway directly to a Lambda function)
What language is used in API Gateway mapping templates?
Velocity Template Language (VTL).
What tool allows importing/exporting API definitions as code?
OpenAPI (formerly Swagger).
How does API Gateway validate incoming requests?
Using request validators and JSON schema models.
How can you clear cached API Gateway responses?
Flush the cache or use Cache-Control: max-age=0 with authorization.
What are the steps to implement a usage plan in API Gateway?
Create API, deploy stages, require API keys, define usage plan, associate keys.
Which service provides distributed tracing for API Gateway?
AWS X-Ray.
What error code indicates throttling in API Gateway?
429 - Too Many Requests.
What are three authentication methods supported by API Gateway?
IAM, Cognito User Pools, Lambda Authorizers.
Which API type supports OAuth 2.0 and OIDC natively?
HTTP APIs.
What are typical use cases for WebSocket APIs in API Gateway?
Real-time apps like chat, gaming, live collaboration, or trading platforms.