exam questions

Exam AZ-203 All Questions

View all questions & answers for the AZ-203 exam

Exam AZ-203 topic 6 question 7 discussion

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

DRAG DROP -
You have an application that provides weather forecasting data to external partners. You use Azure API Management to publish APIs.
You must change the behavior of the API to meet the following requirements:
✑ Support alternative input parameters.
✑ Remove formatting text from responses.
✑ Provide additional context to back-end services.
Which types of policies should you implement? To answer, drag the policy types to the correct scenarios. Each policy type may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer: Explanation

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
to4i
Highly Voted 5 years, 6 months ago
could the answer be: box1: inbound policy box2: outbound policy box3: inbound policy This is based on: https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-policies
upvoted 43 times
changgow
5 years, 6 months ago
i can not see the policy type. how do you see it?
upvoted 6 times
...
Larry616
4 years, 8 months ago
I understand why box3 is inbound policy as it clearly showed in MS's code sample However from context of this question, I feel that the author of the question wants us to choose backend policy as last one, also that "forward user Id" action should also work in backend policy right?
upvoted 2 times
...
...
Regimiento
Highly Voted 5 years, 5 months ago
I agree on first two, but the last one should be backend, in my opinion: box1: inbound policy box2: outbound policy box3: backend policy
upvoted 29 times
LTiwana
4 years, 9 months ago
Box 3 is inbound as per MS docs: https://docs.microsoft.com/en-us/azure/api-management/policies/send-request-context-info-to-backend-service <inbound> <base /> <!-- Forward the name of the product associated with the subscription key in the request to the backend service. --> <set-query-parameter name="x-product-name" exists-action="override"> <value>@(context.Product.Name)</value> </set-query-parameter> <!-- Forward the user id associated with the subscription key in the request as well as the region where the proxy processing the request is hosted. --> <set-header name="x-request-context-data" exists-action="override"> <value>@(context.User.Id)</value> <value>@(context.Deployment.Region)</value> </set-header> </inbound>
upvoted 5 times
rrongcheng
4 years, 9 months ago
agree, Box 3 is inbound. Also because inbound is 'statements to be applied to the request go here'. And the userid get from request, so it's 'inbound'
upvoted 5 times
...
...
Juanlu
4 years, 3 months ago
I Agree
upvoted 1 times
...
...
tejasmehta8819
Most Recent 4 years, 4 months ago
Options: https://imgur.com/a/WR6Zk0P
upvoted 4 times
...
kapsiii
4 years, 5 months ago
Provide additional context to back-end services - Inbound https://docs.microsoft.com/en-us/azure/api-management/policies/send-request-context-info-to-backend-service
upvoted 1 times
...
Morinslash
4 years, 7 months ago
could someone provide options? Thanks!
upvoted 5 times
gunencali
4 years, 4 months ago
https://imgur.com/a/WR6Zk0P
upvoted 4 times
...
...
Kavivarman
4 years, 9 months ago
Answer could be: 1) Backend (rewrite the request url to consume the web service, it happens in backend) 2) OutBout (Formatting the output response) 3) Inbound (https://docs.microsoft.com/en-us/azure/api-management/policies/send-request-context-info-to-backend-service)
upvoted 1 times
courtguard
2 years, 1 month ago
1) is also Inbound, bellow link explains usage of Rewrite Request URL and in the Usage part policy sections is Inbound
upvoted 1 times
courtguard
2 years, 1 month ago
https://learn.microsoft.com/en-us/azure/api-management/rewrite-uri-policy
upvoted 1 times
...
...
...
chaudh
4 years, 10 months ago
1: inbound, 2: outbound, 3: inbound. I tried to research and actually found no backend policy example (https://docs.microsoft.com/en-us/azure/api-management/policies/). Think about flow architect: Client request --> inbound policy --> APIM --> backend policy --> backend. --> It's better to handle transformation/rule with inbound policy where context/authentication information is still on-air.
upvoted 3 times
...
brajen
4 years, 10 months ago
Few important things to note: Inbound Policies – These policies are executed when the API management API is called. Backend Policies – These policies are executed when API management calls the Backend APIs Outbound Policies – These policies are executed when API management returns the response to the caller. On-Error Policies – If there are any errors during execution, all the policies would be skipped, and on error policies would be executed. (think of this like a catch block in try-catch statement in C#) so Box 3 should be backend policy
upvoted 1 times
...
babu789
4 years, 10 months ago
inbound outbound backend
upvoted 1 times
...
Sru
5 years ago
I believe the answer is box1: outbound policy box2: inbound policy box3: inbound policy
upvoted 1 times
samwin
4 years, 11 months ago
What made you think box 1 is outbound policy?
upvoted 1 times
...
...
mahen284
5 years ago
https://docs.microsoft.com/en-us/azure/api-management/policy-samples
upvoted 1 times
...
box1:inboud box2:outbound box3:inbound
upvoted 4 times
...
Daltonic75
5 years, 2 months ago
Options: https://www.itexamcourses.com/wp-content/uploads/2019/05/q4.jpg
upvoted 23 times
Nick_1
4 years, 10 months ago
Unfortunately, this is not the correct pic..., the third option is incorrect
upvoted 2 times
...
...
rvdb
5 years, 2 months ago
box 3 is indeed "Inbound": https://docs.microsoft.com/en-us/azure/api-management/policies/send-request-context-info-to-backend-service
upvoted 3 times
...
AnujD
5 years, 3 months ago
Correct answer should be: Inbound, Outbound, Backend. <policies> <inbound> <!-- statements to be applied to the request go here --> </inbound> <backend> <!-- statements to be applied before the request is forwarded to the backend service go here --> </backend> <outbound> <!-- statements to be applied to the response go here --> </outbound> <on-error> <!-- statements to be applied if there is an error condition go here --> </on-error> </policies>
upvoted 5 times
...
sho1
5 years, 3 months ago
box3: Inbound <!-- Copy this snippet into the inbound element to forward some context information, user id and the region the gateway is hosted in, to the backend service for logging or evaluation --> <set-header name="x-request-context-data" exists-action="override"> <value>@(context.User.Id)</value> <value>@(context.Deployment.Region)</value> </set-header> https://docs.microsoft.com/en-us/azure/api-management/api-management-transformation-policies
upvoted 6 times
predator
5 years, 3 months ago
This is the correct answer and explanation
upvoted 1 times
...
...
PraPat
5 years, 4 months ago
<inbound> <!-- statements to be applied to the request go here --> </inbound> <backend> <!-- statements to be applied before the request is forwarded to the backend service go here --> </backend> <outbound> <!-- statements to be applied to the response go here --> </outbound> box1: inbound policy box2: outbound policy box3: backend policy
upvoted 11 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