You are provisioning a new Azure API Management (APIM) instance using the Consumption tier to front a set of serverless Azure Functions. To optimize response times and minimize backend executions, you need to implement API response caching. Which configuration step must you perform to enable caching for this APIM instance?
- Provision an external cache, such as Azure Cache for Redis, and configure it in the External Cache settings of the API Management instance.Answer
- BEnable the built-in cache in the API Management instance properties and specify the allocated cache capacity.
- CEnable the system-assigned managed identity for the API Management instance and grant it access to the local gateway memory cache.
- DDeploy Azure Cache for Redis and configure the eviction policy to noeviction in the built-in cache settings of the API Management instance.
Answer
Provision an external cache, such as Azure Cache for Redis, and configure it in the External Cache settings of the API Management instance.
Provisioning an external cache, such as Azure Cache for Redis, is correct because the Consumption tier of Azure API Management does not have a built-in cache. To use caching policies, you must register an external cache in the API Management instance settings.
Step-by-Step Solution
Key Concept
Azure API Management Caching in the Consumption Tier
Estimated Time:1m 30s