Which option correctly describes the flow of a read request from an API Gateway to DynamoDB in a serverless architecture?
Think about how API Gateway interacts with backend services in a serverless setup.
API Gateway acts as the front door and triggers Lambda functions to interact with DynamoDB. It does not directly query DynamoDB.
You expect a sudden spike in read requests through API Gateway to DynamoDB. Which approach best helps handle this load without throttling?
Think about how to reduce load on DynamoDB and automatically adjust capacity.
Auto Scaling adjusts capacity based on traffic. API Gateway caching reduces repeated calls, lowering load on DynamoDB.
What is a key tradeoff when choosing to let API Gateway directly access DynamoDB versus using a Lambda function as a proxy?
Consider flexibility versus speed in request handling.
Direct access is faster but less flexible. Lambda allows validation, transformation, and complex logic but adds latency.
When API Gateway triggers a read from DynamoDB, which consistency model can cause the client to see stale data?
Think about how DynamoDB consistency models affect read freshness.
Eventually consistent reads may lag behind writes, causing stale data. Strongly consistent reads always reflect the latest writes.
Your API Gateway receives 10,000 write requests per minute, each writing 1 KB item to DynamoDB. What is the minimum write capacity units (WCUs) needed if each WCU supports 1 KB per second?
Calculate requests per second and relate to WCU definition.
10,000 writes/min = 167 writes/sec. Each WCU supports 1 write/sec of 1 KB, so 167 WCUs needed.