QuestionQ55

VerifiedDeployment

A company uses Amazon API Gateway to expose a set of APIs to customers. The APIs have caching enabled in API Gateway. Customers need a way to invalidate the cache for each API when they test the API.

What should a developer do to give customers the ability to invalidate the API cache?

Explanation

API Gateway cache invalidation is achieved when clients send the Cache-Control: max-age=0 HTTP header in their requests. This is the standard, built-in mechanism. The execution role should have InvalidateCache permission, but no separate API call or query parameter is needed—the header itself triggers the cache bypass.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!