AZ-204 · Question #424
AZ-204 Question #424: Real Exam Question with Answer & Explanation
The correct policy arrangement is 'External, Private, Authorization'. 'External' specifies that the cache is external (required in consumption plan mode since consumption plan does not include a built-in internal cache). 'Private' ensures that cached responses are specific to ind
Question
Drag and Drop Question A web service provides customer summary information for e-commerce partners. The web service is implemented as an Azure Function app with an HTTP trigger. Access to the API is provided by an Azure API Management instance. The API Management instance is configured in consumption plan mode. All API calls are authenticated by using OAuth. API calls must be cached. Customers must not be able to view cached data for other customers. You need to configure API Management policies for caching. How should you complete the policy statement? Answer:
Explanation
The correct policy arrangement is 'External, Private, Authorization'. 'External' specifies that the cache is external (required in consumption plan mode since consumption plan does not include a built-in internal cache). 'Private' ensures that cached responses are specific to individual users and not shared across customers, preventing one customer from seeing another's cached data. 'Authorization' sets the vary-by-header to the Authorization header, so the cache key is differentiated per authenticated user/token, ensuring customer-specific cache isolation.
Topics
Community Discussion
No community discussion yet for this question.