nerdexam
MicrosoftMicrosoft

AZ-204 · Question #506

AZ-204 Question #506: Real Exam Question with Answer & Explanation

The correct answer is A: Enable the Allow tracing setting for the subscription used to inspect the API.. From: https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-api- -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 Po

Submitted by jaden.t· Mar 30, 2026

Question

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.

Options

  • AEnable the Allow tracing setting for the subscription used to inspect the API.
  • BAdd the Ocp-Apim-Trace header value to the API call whit a value set to true.
  • CAdd the Ocp-Apim-Subscription-Key header value to the key for a subscription that allows access
  • DCreate and configure a custom policy. Apply the policy to the inbound policy section with a global
  • ECreate and configure a custom policy. Apply the policy to the outbound policy section with an API

Explanation

From: https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-api- -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

Community Discussion

No community discussion yet for this question.

Full AZ-204 PracticeBrowse All AZ-204 Questions