Your backend services return responses in XML format, but your mobile application client requires JSON payloads. You need to perform this translation at the API gateway layer to avoid modifying the legacy backend service code. Which policy and policy section in Azure API Management (APIM) should you use?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: Use the xml-to-json policy inside the outbound section of the APIM policy configuration.

The xml-to-json policy in Azure API Management converts the response body from XML to JSON. Since this transformation applies to the response returning from the backend to the clie...

๐Ÿ“‹Part of Microsoft Certified: Azure Developer Associate (AZ-204) ยท Azure Certification Practice
Real Exam ScenarioAzure API Management

Your backend services return responses in XML format, but your mobile application client requires JSON payloads. You need to perform this translation at the API gateway layer to avoid modifying the legacy backend service code. Which policy and policy section in Azure API Management (APIM) should you use?

โœ“ Correct Answer & ExplanationAzure API Management

Correct Answer

Use the xml-to-json policy inside the outbound section of the APIM policy configuration.

Why This Answer Is Correct

The xml-to-json policy in Azure API Management converts the response body from XML to JSON. Since this transformation applies to the response returning from the backend to the client, it must be placed in the outbound policy section.

๐Ÿ“š What This Question Tests

This question evaluates your knowledge of Azure API Management โ€” a core concept tested in Microsoft Certified: Azure Developer Associate (AZ-204). Understanding Azure API Management is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.