You are building multiple APIs hosted in Azure API Management and must examine how APIM processes requests, including calls made from REST clients. The inspection must show: the requests APIM forwarded to the backend and the responses received, the policies applied to responses before returning to the caller, any errors and the policies applied to them, and the original caller requests and the policies applied to those requests. What three steps should you perform? (Choose three.)
Choose an answer
Tap an option to check your answer.
Correct answer: Enable the Allow tracing setting for the subscription used to inspect the API., Add the Ocp-Apim-Trace header to the API request with its value set to true., Include the Ocp-Apim-Subscription-Key header with the subscription key that permits API access..
Why this is the answer
To trace API Management requests, you must first enable tracing for the specific subscription in the Azure portal. This setting allows the tracing functionality to be activated. Next, when making the API request, you need to include the Ocp-Apim-Trace header and set its value to true. This header explicitly tells API Management to generate a trace for that particular request. Finally, you must also include the Ocp-Apim-Subscription-Key header with a valid subscription key that has permission to access the API. This key authenticates your request. The other options involving custom policies are incorrect because tracing is a built-in feature configured via settings and headers, not through custom policy logic.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed