
Answer-first summary for fast verification
Answer: By assigning an InvalidateCache policy to the IAM role used by customers and instructing them to include a Cache-Control:max-age=0 HTTP header in their requests.
The correct answer is B. According to the AWS documentation and user feedback, a client can invalidate an API Gateway cache entry by sending a request with the Cache-Control:max-age=0 HTTP header. This header instructs the API Gateway to bypass the cache and reload the response from the integration endpoint. Attaching an InvalidateCache policy to the IAM role used by customers and instructing them to include this header in their requests ensures they have the necessary permissions and method to invalidate the cache.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How can developers enable customers to invalidate the cache for APIs exposed through Amazon API Gateway?
A
By instructing customers to use AWS credentials for the InvalidateCache API operation.
B
By assigning an InvalidateCache policy to the IAM role used by customers and instructing them to include a Cache-Control:max-age=0 HTTP header in their requests.
C
By guiding customers to use the AWS SDK's API Gateway class for the InvalidateCache operation.
D
By adding an InvalidateCache policy to the IAM role and asking customers to include the INVALIDATE_CACHE query string in their API calls.
No comments yet.