nerdexam
Amazon

DVA-C02 · Question #225

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.

The correct answer is B. Attach an InvalidateCache policy to the IAM execution role that the customers use to invoke the. https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.html Invalidate 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 requ

Submitted by satoshi_tk· Mar 5, 2026Development with AWS Services

Question

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?

Options

  • AAsk the customers to use AWS credentials to call the InvalidateCache API operation.
  • BAttach an InvalidateCache policy to the IAM execution role that the customers use to invoke the
  • CAsk the customers to use the AWS SDK API Gateway class to invoke the InvalidateCache API
  • DAttach an InvalidateCache policy to the IAM execution role that the customers use to invoke the

How the community answered

(37 responses)
  • A
    5% (2)
  • B
    81% (30)
  • C
    11% (4)
  • D
    3% (1)

Explanation

https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.html Invalidate 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 that contains the Cache-Control: max-age=0 header. The client receives the response directly from the integration 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 integration endpoint. To grant permission for a client, attach a policy of the following format to an IAM execution role

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice