You are designing an Azure Function workflow that coordinates a complex, long-running order processing system. The workflow must execute three tasks in sequence (Validate Order, Charge Card, Ship Item). If the 'Charge Card' step fails, it must execute a compensating transaction to void the order. The orchestrator must be able to pause its execution without consuming billing resources while waiting for tasks to complete. Which feature should you use?

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

Correct Answer: Use Durable Functions (orchestrator and activity functions) to manage the state, sequencing, and error handling of the workflow.

Durable Functions is an extension of Azure Functions that allows you to write stateful workflows in code. The orchestrator function handles sequencing, checkpoints, and error handl...

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

You are designing an Azure Function workflow that coordinates a complex, long-running order processing system. The workflow must execute three tasks in sequence (Validate Order, Charge Card, Ship Item). If the 'Charge Card' step fails, it must execute a compensating transaction to void the order. The orchestrator must be able to pause its execution without consuming billing resources while waiting for tasks to complete. Which feature should you use?

โœ“ Correct Answer & ExplanationAzure Functions

Correct Answer

Use Durable Functions (orchestrator and activity functions) to manage the state, sequencing, and error handling of the workflow.

Why This Answer Is Correct

Durable Functions is an extension of Azure Functions that allows you to write stateful workflows in code. The orchestrator function handles sequencing, checkpoints, and error handling (such as executing a compensating transaction inside a try-catch block). Durable Functions automatically checkpoints progress, allowing the orchestrator to sleep and free up CPU resources while waiting for activity functions, incurring zero runtime billing during idle states.

๐Ÿ“š What This Question Tests

This question evaluates your knowledge of Azure Functions โ€” a core concept tested in Microsoft Certified: Azure Developer Associate (AZ-204). Understanding Azure Functions 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.