AZ-204 · Question #498
Drag and Drop Question You develop and deploy several APIs to Azure API Management. You create the following policy fragment named APICounts: The policy fragment must be reused across various scopes a
The correct answer is inbound; include-fragment; fragment-id. The correct arrangement uses 'inbound' as the policy section because the fragment must run when a calling system invokes any API, meaning it needs to execute during the inbound processing phase (before the request reaches the backend). The 'include-fragment' element is the correc
Question
Exhibit
Answer Area
Drag items
Correct arrangement
- inbound
- include-fragment
- fragment-id
Explanation
The correct arrangement uses 'inbound' as the policy section because the fragment must run when a calling system invokes any API, meaning it needs to execute during the inbound processing phase (before the request reaches the backend). The 'include-fragment' element is the correct XML tag used in Azure API Management to reference and reuse a policy fragment, and 'fragment-id' is the required attribute on the include-fragment element that specifies which named fragment (APICounts) to include. Together, these three elements form the correct XML structure: placing an <include-fragment fragment-id='APICounts' /> tag inside the <inbound> policy section.
Topics
Community Discussion
No community discussion yet for this question.
