ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 145 - AZ-204 discussion

Report
Export

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?


Question 145
Correct answer: Question 145

Explanation:

Box 1: internal

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

asked 02/10/2024
Andrzej Pawlus
46 questions
User
0 comments
Sorted by

Leave a comment first