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

A developer is building a serverless application that needs to perform long-running, stateful orchestrations. This orchestration involves multiple steps, including human interaction for approval, and needs to reliably resume execution after delays or external events. Which Azure service is best suited for this scenario?

  1. AAzure Event Grid
  2. BAzure Functions (HTTP Trigger)
  3. CAzure Durable Functions
  4. DAzure Logic Apps
Show answer & explanation

Correct answer: C. Azure Durable Functions

Azure Durable Functions are an extension of Azure Functions that enable the creation of stateful workflows in a serverless environment. They are ideal for long-running orchestrations, human interaction workflows (via Durable Entities), and reliable execution that can pause and resume.

Why the other options are wrong

  • A. Azure Event Grid is for event routing, not for orchestrating stateful workflows.
  • B. Standard HTTP-triggered Azure Functions are stateless and short-lived, unsuitable for long-running, stateful orchestrations.
  • D. Azure Logic Apps can orchestrate workflows, but Durable Functions offer more fine-grained control and code-first development for complex stateful scenarios.

Azure Durable Functions

An extension of Azure Functions that lets you write stateful functions in a serverless compute environment. It enables reliable long-running orchestrations and managing state across function invocations.

  • Supports stateful workflows.
  • Ideal for long-running processes, fan-out/fan-in.
  • Automatically manages state, checkpoints, and restarts.

Memory trick: Durable Functions are like a persistent robot chef following a complex recipe, even if it has to pause for ingredients.

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