Bird
0
0

If an API Gateway endpoint has caching enabled with a TTL of 60 seconds, what happens when multiple clients request the same resource within that time?

medium📝 Predict Output Q5 of 15
AWS - API Gateway
If an API Gateway endpoint has caching enabled with a TTL of 60 seconds, what happens when multiple clients request the same resource within that time?
AAPI Gateway returns an error after the first request.
BAPI Gateway calls backend for every request regardless of caching.
CAPI Gateway blocks all requests except the first one.
DAPI Gateway returns cached response without calling backend again.
Step-by-Step Solution
Solution:
  1. Step 1: Understand caching behavior in API Gateway

    Caching stores backend responses for a set time (TTL) to reduce backend load.
  2. Step 2: Predict behavior within TTL

    Requests for the same resource within TTL get the cached response, avoiding backend calls.
  3. Final Answer:

    API Gateway returns cached response without calling backend again. -> Option D
  4. Quick Check:

    Caching returns stored response within TTL [OK]
Quick Trick: Caching serves repeated requests without backend calls [OK]
Common Mistakes:
  • Assuming backend is called every time
  • Thinking requests are blocked
  • Expecting errors after first request

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes