exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 6 question 25 discussion

Actual exam question from Microsoft's AZ-204
Question #: 25
Topic #: 6
[All AZ-204 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 requirements. 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:

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
avocado0211
Highly Voted 3 years, 1 month ago
Inbound Outbound Backend
upvoted 44 times
g2000
2 years, 4 months ago
last one is backend https://learn.microsoft.com/en-us/azure/api-management/forward-request-policy
upvoted 6 times
lamvit
4 months, 3 weeks ago
"The Backend policy section can only contain one policy element. By default, API Management configures the forward-request policy in the Backend section at the global scope, and the base element at other scopes." https://learn.microsoft.com/en-us/azure/api-management/set-edit-policies?tabs=form#configure-policies-at-different-scopes https://learn.microsoft.com/en-us/azure/api-management/forward-request-policy so backend policy can't be used to pass additional headers.
upvoted 1 times
...
uffuchsi
2 years, 3 months ago
Last one has to be Inbound Below is the sample snippet of the policy to send user context to backend service. <policies> <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> The configuration is part of inbound section. https://docs.microsoft.com/en-us/azure/api-management/policies/send-request-context-info-to-backend-service
upvoted 2 times
uncledana
1 year, 10 months ago
Backend - https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-policies#-understanding-policy-configuration
upvoted 2 times
...
...
...
...
srinz
Highly Voted 2 years, 8 months ago
Based on https://docs.microsoft.com/en-us/azure/api-management/policies/send-request-context-info-to-backend-service Inbound is correct answer for the third question <policies> <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 9 times
coffecold
2 years, 7 months ago
It is adding a parameter and a header in the original request. <backend>: statements to be applied before the request is forwarded to the backend service go here <inbound> statements to be applied to the request go here. So I think it can be both, the place that makes mores sense is backend.
upvoted 1 times
OPT_001122
2 years, 6 months ago
"statements to be applied before the request is forwarded to the backend service go here" this is not mentioned anywhere in the question hence the confusion for inbound and backend.
upvoted 1 times
...
...
...
Vichu_1607
Most Recent 8 months ago
To support alternative input parameters, you should use an Inbound policy. Inbound policies are executed on the request before it is sent to the backend service. They can be used to manipulate the request, such as changing the input parameters. To remove formatting text from responses, you should use an Outbound policy. Outbound policies are executed on the response from the backend service before it is sent back to the client. They can be used to manipulate the response, such as removing formatting text. To provide additional context to back-end services, you should use a Backend policy. Backend policies are executed after the inbound policies and before the request is sent to the backend service. They can be used to add additional context or information to the request that the backend service might need.
upvoted 1 times
...
FeriAZ
1 year, 4 months ago
Provide Additional Context to Back-end Services: Policy Type: Backend. Explanation: Backend policies are applied to the request after all inbound policies have been applied and just before the request is forwarded to the backend service. To provide additional context to your backend services, use a backend policy. This could include adding or transforming headers, setting context variables, or other modifications that enrich the request with additional information needed by the backend.
upvoted 1 times
...
130nk3r5
1 year, 5 months ago
Inbound policies are used to manipulate the request from the client before it is processed by the backend service. This can include supporting alternative input parameters. Outbound policies are used to manipulate the response from the backend service before it is sent to the client. This can include removing formatting text from responses. Backend policies are used to manipulate the request after it is processed by the inbound policy but before it is sent to the backend service. This can include providing additional context to back-end services. So, for sure Inbound, Outbound, Backend ....
upvoted 4 times
...
nekkilodeon
2 years, 1 month ago
The given answer is correct. Inbound, outbound, inbound
upvoted 1 times
...
adilkhan
2 years, 1 month ago
the provided answers are correct! Inbound Outbound, Inbound https://learn.microsoft.com/en-us/azure/api-management/set-backend-service-policy
upvoted 1 times
...
hubekpeter
2 years, 6 months ago
I think for the third question, you can use both inbound and backend. Context variable is available in both and it should not matter at what stage you'll add it. But in this article, they're using inbound policy. One newer knows how these exams are evaluated, therefore I'm sticting with inbound as an answer. https://learn.microsoft.com/bs-latn-ba/azure/api-management/policies/send-request-context-info-to-backend-service
upvoted 1 times
...
le129
2 years, 9 months ago
Answer is correct. https://docs.microsoft.com/en-us/azure/api-management/policies/send-request-context-info-to-backend-service
upvoted 2 times
...
ivan0590
3 years, 1 month ago
I'm not 100% sure, but based on the following statement I think that the third option should be backend: "statements to be applied before the request is forwarded to the backend service go here" Source: https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-policies#-understanding-policy-configuration
upvoted 4 times
...
sghaha
3 years, 1 month ago
Korean Page: https://docs.microsoft.com/ko-kr/azure/api-management/api-management-transformation-policies#forward-context-information-to-the-backend-service
upvoted 3 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 ...