QuestionQ18

Monitor and troubleshoot Azure solutions

You develop and deploy several APIs in Azure API Management.

You create the following policy fragment named APICounts:

Question Image

The policy fragment must be reusable across multiple scopes and APIs. It must apply to every API and execute whenever a calling system invokes an API.

You need to implement the policy fragment.

Drag & Drop
<policies>
  <>
    < ="APICounts" />
    <base />
  </>
  . . .
</policies>
Explanation

A global API Management policy is inherited by all APIs. The inbound section processes incoming API calls, and the include-fragment policy inserts a reusable fragment using its required fragment-id attribute. Therefore APICounts is included as <include-fragment fragment-id="APICounts" /> in the global inbound section.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!