D1: Building APIs with API Gateway
AWS Associate AWS Certified Developer – Associate exam practice questions · 12 flashcards
Question
REST API vs HTTP API?
1 / 12
Tip: Space flips the card, ← / → navigate.
Show all 12 Building APIs with API Gateway practice questions and answers
- REST API vs HTTP API?REST API: full features (usage plans, API keys, request validation, caching, WAF). HTTP API: cheaper, faster, simpler (JWT authorizers).
- WebSocket API?Two-way persistent connections for real-time apps (chat).
- Lambda proxy integration?Entire request passed to Lambda; function returns statusCode, headers, body.
- Non-proxy (custom) integration?Use mapping templates (VTL) to transform requests/responses.
- Request validation?Validate required parameters and body against a JSON schema model before integration.
- Status code overrides?Mapping templates/gateway responses can change the returned status code.
- Gateway responses?Customize error responses API Gateway returns (e.g. 403, 429).
- Usage plans and API keys?Throttle and quota limits per client identified by API key.
- API Gateway default timeout?29 seconds integration timeout (can be raised for REST regional/private APIs).
- API Gateway throttling defaults?Account-level 10,000 RPS steady with 5,000 burst; stage/method limits configurable; 429 returned when exceeded.
- CORS on API Gateway?Enable CORS so browsers on other origins can call the API (OPTIONS preflight, Access-Control-Allow-* headers).
- AWS AppSync?Managed GraphQL (and Events) APIs with real-time subscriptions and resolvers to DynamoDB, Lambda, etc.