exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 6 question 49 discussion

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

HOTSPOT
-

You have an Azure API Management instance named API1 that uses a managed gateway.

You plan to implement a policy that will apply at a product scope and will set the header of inbound requests to include information about the region hosting the gateway of API1. The policy definition contains the following content:



You have the following requirements for the policy definition:

• Ensure that the header contains the information about the region hosting the gateway of API1.
• Ensure the policy applies only after any global level policies are processed first.

You need to complete the policy definition.

Which values should you choose? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

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
Capital
Highly Voted 1 year, 7 months ago
Given answer is correct: https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-policies#use-policy-expressions-to-modify-requests
upvoted 5 times
...
130nk3r5
Highly Voted 1 year, 4 months ago
Correct https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-deploy-multi-region
upvoted 5 times
...
james2033
Most Recent 1 year, 1 month ago
TARGET1: <base/> TARGET2: context
upvoted 4 times
...
oCaio
1 year, 8 months ago
Given answer correct. Ref: https://safe.menlosecurity.com/https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-policies Article Section: Use policy expressions to modify requests
upvoted 5 times
...
Firo
1 year, 9 months ago
<base /> is correct: https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-expressions-patterns#trigger-metadata
upvoted 2 times
1CY1
10 months, 2 weeks ago
Apply policies specified at different scopes. https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-policies API Management allows for deterministic ordering of combined policy statements via the base element. If you remove the base element at the API scope, only policies configured at the API scope will be applied. Neither product nor global scope policies would be applied. <policies> <inbound> <cross-domain /> <base /> <find-and-replace from="xyz" to="abc" /> </inbound> </policies>
upvoted 1 times
...
1CY1
10 months, 2 weeks ago
We include the base element to : 'Ensure the policy applies only after any global level policies are processed first.'
upvoted 1 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