exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 5 question 14 discussion

Actual exam question from Microsoft's AZ-204
Question #: 14
Topic #: 5
[All AZ-204 Questions]

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:

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
cgreene
Highly Voted 4 years, 5 months ago
Internal Cache isn't available for Consumption plan. So shouldn't it be External (using Redis)?
upvoted 94 times
Egger1992
4 years, 5 months ago
Yes, you are right. In the feature-based comparison of the tiers, it says that built-in cache is not available. https://docs.microsoft.com/en-us/azure/api-management/api-management-features And here it says that "internal" would be using the built-in cache. https://docs.microsoft.com/en-us/azure/api-management/api-management-caching-policies
upvoted 21 times
009bdaa
10 months, 2 weeks ago
New link is https://learn.microsoft.com/en-us/azure/api-management/cache-lookup-policy#attributes
upvoted 2 times
...
...
...
Ananth2020
Highly Voted 4 years, 5 months ago
Consumption Pricing Tier of API Management does not support Built-in Cache. Therefore caching-type should be set to "external". Reference: https://docs.microsoft.com/en-us/azure/api-management/api-management-features
upvoted 36 times
...
4bd3116
Most Recent 8 months, 1 week ago
The correct Answer : <policies> <inbound> <base /> <cache-lookup caching-type="external" downstream-caching-type="private"> <vary-by-header>Authorization</vary-by-header> </cache-lookup> </inbound> <outbound> <base /> <cache-store duration="300" /> </outbound> </policies>
upvoted 2 times
...
e3562ed
11 months, 3 weeks ago
Internal cache is not available in the Consumption tier of Azure API Management. You can use an external Azure Cache for Redis instead. You can also configure an external cache in other API Management service tiers.
upvoted 1 times
...
neelkanths
1 year ago
Got it on 20 April 2024...Marks > 900...All questions from examtopics 400 questions... Answer External - Private Authorization
upvoted 3 times
...
BaoNguyen2411
1 year, 9 months ago
got this question on 29/07/2023
upvoted 5 times
...
uffuchsi
2 years, 2 months ago
Caching type must be external since consumption plan does not support internal caching. Downstream caching type must be private as it is not shared. Vary by header must be authorization as it is cached per customer. https://docs.microsoft.com/en-us/azure/api-management/api-management-caching-policies
upvoted 10 times
...
adilkhan
2 years, 3 months ago
https://learn.microsoft.com/en-us/azure/api-management/cache-lookup-policy
upvoted 1 times
...
OPT_001122
2 years, 5 months ago
External Private Authorization
upvoted 13 times
...
Eltooth
2 years, 10 months ago
External Private Authorization https://docs.microsoft.com/en-us/azure/api-management/api-management-caching-policies#attributes https://docs.microsoft.com/en-us/azure/api-management/api-management-sample-cache-by-key#architecture
upvoted 11 times
...
Sandeep12093
2 years, 10 months ago
Yes, I agree consumption plan doesn't support internal caching.. Check microsoft pricing page for api management
upvoted 3 times
...
adone
3 years, 1 month ago
I don't find any example with private downstream and a vary by header. For me the vary by header only make sense for public downstream. I opt for: External Public Authorization In normal situation, I would have put private downstream without a vary by header.
upvoted 2 times
...
oescm
3 years, 2 months ago
Got this one 02/2022. Went with: External Private Authorization
upvoted 17 times
...
leonidn
3 years, 3 months ago
Private is because cached data is isolated between customers External is because internal is not a feature of the Consumption plan Authorization to enable caching responses per value of specified header
upvoted 9 times
...
Gautam47
3 years, 7 months ago
Cache should be external
upvoted 3 times
...
chandru1dev
3 years, 9 months ago
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 described in Use an external Azure Cache for Redis in Azure API Management, - prefer-external to use external cache if configured or internal cache otherwise. https://docs.microsoft.com/en-us/azure/api-management/api-management-caching-policies
upvoted 2 times
...
kondapaturi
3 years, 10 months ago
Extermal - When you look at the pricing plans for the Azure API management, when it comes to the Consumption plan, it only supports external cache. Private - we need to ensure that the data is not available to other customers, we need to use the cache type of Private caching. Authorization - the calls are being authenticated by OAuth, the caching can vary by the Authorization header.
upvoted 13 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago