ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 317 - AZ-204 discussion

Report
Export

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.
Answers
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 with a value set to true
Answers
B.
Add the Ocp-Apim-Trace header value to the API call with 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.
Answers
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 outbound policy section with an API scope.
Answers
D.
Create and configure a custom policy. Apply the policy to the outbound policy section with an API scope.
E.
Create and configure a custom policy. Apply the policy to the inbound policy section with a global scope.
Answers
E.
Create and configure a custom policy. Apply the policy to the inbound policy section with a global scope.
Suggested answer: A, B, C

Explanation:

The correct answer is A, B, and C. To inspect request processing of the APIs in APIM, you need to do the following three actions:

Enable the Allow tracing setting for the subscription used to inspect the API. This setting allows you to trace request processing in APIM using the test console, a REST client, or a client app. You can enable this setting in the portal by selecting Subscriptions and then selecting the subscription you want to use for debugging1.

Add the Ocp-Apim-Trace header value to the API call with a value set to true. This header triggers tracing when making requests to APIM using a REST client or a client app. You also need to add the Ocp-Apim-Subscription-Key header value to the key for a subscription that allows access to the API1.

Add the Ocp-Apim-Subscription-Key header value to the key for a subscription that allows access to the API. This header authenticates your request and grants you access to the API. You can find the key for your subscription in the portal by selecting Subscriptions and then selecting Show/hide keys1.

You do not need to create and configure a custom policy for tracing request processing. The trace policy is used to add a custom trace into the request tracing output, Application Insights telemetries, and/or resource logs2. It is not required for inspecting the APIs.

asked 02/10/2024
Johannes Bickel
55 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first