exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 6 question 46 discussion

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

You are developing several Azure API Management (APIM) hosted APIs.

You must inspect request processing of the APIs in APIM. Requests to APIM by using a REST client must also be included. The request inspection must include the following information:

• requests APIM sent to the API backend and the response it received
• policies applied to the response before sending back to the caller
• errors that occurred during the processing of the request and the policies applied to the errors
• original request APIM received from the caller and the policies applied to the request

You need to inspect the APIs.

Which three actions should you do? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

  • A. Enable the Allow tracing setting for the subscription used to inspect the API.
  • B. Add the Ocp-Apim-Trace header value to the API call whit a value set to true.
  • C. Add the Ocp-Apim-Subscription-Key header value to the key for a subscription that allows access to the API.
  • D. Create and configure a custom policy. Apply the policy to the inbound policy section with a global scope.
  • E. Create and configure a custom policy. Apply the policy to the outbound policy section with an API scope.
Show Suggested Answer Hide Answer
Suggested Answer: ABC 🗳️

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
75daltonic
Highly Voted 1 year, 9 months ago
Selected Answer: ABC
From: https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-api-inspector -To trace request processing, you must enable the Allow tracing setting for the subscription used to debug your API. -When making requests to API Management using curl, a REST client such as Postman, or a client app, enable tracing by adding the following request headers: Ocp-Apim-Trace - set value to true Ocp-Apim-Subscription-Key - set value to the key for a tracing-enabled subscription that allows access to the API
upvoted 8 times
uncledana
1 year, 9 months ago
Agree - ABC. https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-api-inspector
upvoted 1 times
...
...
overhill
Most Recent 5 months, 1 week ago
No longer the current way to do it https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-api-inspector#enable-tracing-for-an-api
upvoted 3 times
...
Vichu_1607
7 months ago
Selected Answer: ABC
A. Enable the Allow tracing setting for the subscription used to inspect the API: This setting allows you to enable tracing for the subscription, which is necessary to inspect the API. B. Add the Ocp-Apim-Trace header value to the API call with a value set to true: This header enables APIM tracing when making a call to the API. The trace will include information about the request and response, applied policies, and any errors that occurred. C. Add the Ocp-Apim-Subscription-Key header value to the key for a subscription that allows access to the API: This header is used to pass the subscription key, which is necessary to authenticate the request to the API.
upvoted 1 times
...
NPE_
1 year, 6 months ago
Selected Answer: ACE
How about E? E is definitely the only correct answer to fulfill the outbound response requirement in the question description or? So the answer should be ABCE. In this case, the provided answer can be correct
upvoted 3 times
...
EliteAllen
1 year, 9 months ago
Selected Answer: ABC
In Azure API Management (APIM), you can inspect the request processing of APIs, including the details mentioned in the question, by performing certain actions. Here's how you can achieve the requirements: Enable the Allow tracing setting for the subscription used to inspect the API: This will allow you to trace the requests and responses, including details of the policies applied and any errors that occurred. Add the Ocp-Apim-Trace header value to the API call with a value set to true: This header tells APIM to include trace information in the response. It will include details about the request and response, policies applied, and errors that occurred. Add the Ocp-Apim-Subscription-Key header value to the key for a subscription that allows access to the API: This header is used to pass the subscription key, which is required to call an API if the subscription key is mandated.
upvoted 2 times
MikeAWS
1 year, 6 months ago
what is this, a ChatGPT answer?
upvoted 5 times
...
...
RenatoJr
1 year, 9 months ago
Selected Answer: BC
I believe the answer should be BCD B. This header enables request and response tracing for the API call. C. This header ensures that the API call is associated with a valid subscription. D. Apply the policy to the inbound policy section with a global scope. By applying the custom policy to the inbound section with a global scope, you can inspect the original request received by APIM, apply policies to the request, inspect requests sent to the API backend, and capture responses received from the backend. This allows you to gather the requested information about the request processing, applied policies, and errors. https://learn.microsoft.com/en-us/azure/api-management/api-management-policies https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-api-inspector
upvoted 1 times
...
AbidooKing
1 year, 9 months ago
I think it should be ABC. Ocp-Apim-Trace - set value to true and set value to the Ocp-Apim-Subscription-Key when making requests to API Management using curl or a REST client such as Postman, And to trace request processing, you must enable the Allow tracing setting for the subscription used to debug your API. 

No need to configure a custom policy when tracing Outbound shows the policies applied to the response before sending back to the caller. Right? https://learn.microsoft.com/en-us/azure/governance/policy/tutorials/create-custom-policy-definition
upvoted 3 times
...
junix_
1 year, 9 months ago
Selected Answer: ABC
I believe the answer should be A,B,C refs: https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-api-inspector
upvoted 4 times
75daltonic
1 year, 9 months ago
From: https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-api-inspector -To trace request processing, you must enable the Allow tracing setting for the subscription used to debug your API. -When making requests to API Management using curl, a REST client such as Postman, or a client app, enable tracing by adding the following request headers: Ocp-Apim-Trace - set value to true Ocp-Apim-Subscription-Key - set value to the key for a tracing-enabled subscription that allows access to the API
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