Microsoft Certified: Azure Developer Associate (AZ-204)Connect to and consume Azure services and third-party servicesMedium

A development team is building a new application that needs to integrate with a legacy on-premises system. The on-premises system exposes a SOAP web service that the new cloud-based application must consume. To simplify the integration, improve security, and standardize the API interface for the cloud application, the team wants to wrap the SOAP service with a RESTful API. Which Azure service is best suited for this task?

  1. AAzure API Management
  2. BAzure Functions
  3. CAzure Event Hubs
  4. DAzure Logic Apps
Show answer & explanation

Correct answer: A. Azure API Management

Azure API Management (APIM) is specifically designed to act as an API gateway, allowing you to expose legacy SOAP services as modern REST APIs through its transformation policies (e.g., 'transform-xml-to-json'). It also provides security, analytics, and standardization for API consumption. Logic Apps are for workflow, Functions for compute, and Event Hubs for event streaming, none of which primarily serve as an API façade/wrapper.

Why the other options are wrong

  • B. Azure Functions can be used to build a RESTful API, but it would require custom code to handle the SOAP conversion and would lack the built-in API management features of APIM.
  • C. Azure Event Hubs is a data streaming platform for event ingestion, not an API gateway or transformation service.
  • D. Azure Logic Apps can integrate with SOAP services but are primarily for workflow orchestration, not for exposing and managing a standardized API façade.

APIM as a Facade for Legacy APIs

Azure API Management can act as a façade for legacy APIs, allowing you to expose existing SOAP or other non-RESTful services as modern RESTful APIs. This involves applying transformation policies to requests and responses.

  • Converts SOAP to REST (and vice-versa).
  • Standardizes API interfaces.
  • Improves security and manages access.
  • Provides a consistent API experience for consumers.

Memory trick: APIM takes an old temple (SOAP) and gives it a modern, shiny facade (REST).

More Connect to and consume Azure services and third-party services questions