Questions 49 to 51

Explanations for questions 49 to 51

We'll cover the following

Question 49

You have implemented API Gateway and enabled a cache for a specific stage. How can you control the cache to enhance performance and reduce the load on back-end services?

  1. Configure the throttling feature.
  2. Enable bursting.
  3. Using time-to-live (TTL) settings.
  4. Using CloudFront controls.

Correct Answer: 3

Explanation: You can enable API caching in Amazon API Gateway to cache your endpoint’s responses. With caching, you can reduce the number of calls made to your endpoint and also improve the latency of requests to your API.

When you enable caching for a stage, API Gateway caches responses from your endpoint for a specified time-to-live (TTL) period in seconds. API Gateway then responds to the request by looking up the endpoint response from the cache instead of making a request to your endpoint. The default TTL value for API caching is 300 seconds. The maximum TTL value is 3600 seconds. TTL=0 means caching is disabled.

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.