ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 174 - DVA-C01 discussion

Report
Export

A set of APIs are exposed to customers using the Amazon API Gateway. These APIs have caching enabled on the API Gateway. Customers have asked for an option to invalidate this cache for each of the APIs. What action can be taken to allow API customers to invalidate the API Cache?

A.
Ask customers to use AWS credentials to call the InvalidateCache API.
Answers
A.
Ask customers to use AWS credentials to call the InvalidateCache API.
B.
Ask customers to invoke an AWS API endpoint which invalidates the cache.
Answers
B.
Ask customers to invoke an AWS API endpoint which invalidates the cache.
C.
Ask customers to pass an HTTP header called Cache-Control:max-age=0.
Answers
C.
Ask customers to pass an HTTP header called Cache-Control:max-age=0.
D.
Ask customers to add a query string parameter called “INVALIDATE_CACHE” when making an API call.
Answers
D.
Ask customers to add a query string parameter called “INVALIDATE_CACHE” when making an API call.
Suggested answer: C

Explanation:

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control

https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.htmlInvalidate an API Gateway Cache Entry A client of your API can invalidate an existing cache entry and reload it from the integration endpoint for individual requests. The client must send a request thatcontains the Cache-Control: max-age=0 header. The client receives the response directly from theintegration endpoint instead of the cache, provided that the client is authorized to do so. This replaces the existing cache entry with the new response, which is fetched from the integrationendpoint.

asked 16/09/2024
Duncan Brundseaux
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first