Question 103 of 179 from exam AZ-204: Developing Solutions for Microsoft Azure

Question 103 of 179 from exam AZ-204: Developing Solutions for Microsoft Azure

Question

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:

Targets Answer Area

‘<policies>

Expect <inbound>

base />
Public SEARO OR DENN Target downstream-cachingtype =" Target

<vary-by-header>
Private Target
internal <Wvary-by-header>
</cache-lookup>

Edaral </inbound>

«(policies

Authorization

Explanations

Targets

Expect

Public

Private

Internal

External

Authorization

Answer Area

<policies>
<inbound>

<base >

<cache-lookup caching-type="

‘<vary-by-header>

Internat

Authorization

<ivary-by-header>
</cache-lookup>
<linbound>
<ipolicies>

downstream-caching-type

Private

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 - &amp;lt;vary-by-header&amp;gt;Authorization&amp;lt;/vary-by-header&amp;gt; &amp;lt;!-- should be present when allow-private-response-caching is "true"--&amp;gt; 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.