Question

Difficulty: MediumProvision and Configure Azure API Management

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?

  1. Provision an external cache, such as Azure Cache for Redis, and configure it in the External Cache settings of the API Management instance.Answer
  2. B
    Enable the built-in cache in the API Management instance properties and specify the allocated cache capacity.
  3. C
    Enable the system-assigned managed identity for the API Management instance and grant it access to the local gateway memory cache.
  4. D
    Deploy 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

1
Identify the limitations of the selected Azure API Management tier.
The Consumption tier is a serverless offering that does not include a built-in cache.
Choosing the correct architecture requires knowing which features are native to the selected service tier.
2
Determine the alternative mechanism to support API caching in the Consumption tier.
An external cache (such as Azure Cache for Redis) must be provisioned and configured.
API Management caching policies (e.g., cache-lookup, cache-store) can target an external cache when a built-in cache is unavailable.
3
Add the external cache configuration in the Azure portal or via ARM/Bicep template.
The external cache is registered under the 'External cache' settings in API Management.
This links the external Redis instance to APIM, allowing policies to route cache lookups and stores to it.

Key Concept

Azure API Management Caching in the Consumption Tier
Estimated Time:1m 30s
Rate this question