AZ-204 – Question 97

0
483
DRAG DROP –

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?
Select and Place:
Correct Answer:
Box 1: external – Internal Cache isn’t available for Consumption plan. So shouldn’t it be External
caching-type
Choose between the following values of the attribute:
✑ internal to use the built-in API Management cache,
✑ external to use the external cache as Azure Cache for Redis prefer-external to use external cache if configured or internal cache otherwise.
Box 2: private –
downstream-caching-type
This attribute must be set to one of the following values.
✑ none – downstream caching is not allowed.
✑ private – downstream private caching is allowed.
✑ public – private and shared downstream caching is allowed.
Box 3: Authorization –
<vary-by-header>Authorization</vary-by-header>
<!– should be present when allow-private-response-caching is “true”–>
Note: Start caching responses per value of specified header, such as Accept, Accept-Charset, Accept-Encoding, Accept-Language, Authorization, Expect, From,
Host, If-Match –
Reference:

https://docs.microsoft.com/en-us/azure/api-management/api-management-caching-policies