AWS Certified Developer – Associate (DVA-C02) — Question 206

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?

Answer options

Correct answer: B

Explanation

The correct answer is B because it provides a clear method for customers to invalidate the cache by including the appropriate HTTP header. Option A is incorrect as it does not specify how to invalidate the cache. Option C does not address the cache invalidation requirement directly. Option D fails to utilize the correct method for cache invalidation through HTTP headers.