SAA-C03 Practice Question 97: API Gateway Stage Caching
AWS Certified Solutions Architect – Associate (SAA-C03) · Test 10 · question 7 of 10
A REST API on Amazon API Gateway backs a mobile app. The GET /products method invokes a Lambda function that reads a product catalog from DynamoDB. The catalog changes a few times a day, yet the method receives thousands of identical requests per minute, and users complain about latency while the DynamoDB bill keeps growing.
Which change reduces latency and backend load with the least development effort?
Show answer and explanation
Answer:
API Gateway can provision a cache for a REST API stage. When a request matches a cached response that has not expired, API Gateway returns it directly without invoking Lambda or reading DynamoDB. A TTL of a few minutes suits a catalog that changes a few times a day. It lowers latency, reduces Lambda invocations and DynamoDB reads, and takes only a configuration change, with no code to write.
Option B limits how often clients can call the API, which would make some legitimate requests fail with 429 errors and does not make any response faster.
Option C makes each invocation quicker, but the function still runs and still reads DynamoDB for every request, so the load and the cost of the repeated identical reads remain.
Option D is wrong on the facts. HTTP APIs do not offer built-in response caching, so the migration would remove the feature the team needs and would require rework.
Reference: Enable Amazon API Gateway caching to enhance responsiveness