Correct Answer: Use Durable Functions with an Orchestrator function and Human Interaction pattern
Durable Functions extend Azure Functions to write stateful workflows. The Human Interaction pattern specifically handles scenarios where a workflow must pause and wait for an exter...
Correct Answer
Use Durable Functions with an Orchestrator function and Human Interaction pattern
Why This Answer Is Correct
Durable Functions extend Azure Functions to write stateful workflows. The Human Interaction pattern specifically handles scenarios where a workflow must pause and wait for an external event (like an approval), resuming only when the event is raised, without consuming compute resources during the wait.
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.
You are building an Azure Function that processes orders from an Azure Service Bus queue. The function must ensure that each order is processed exactly once, even if the function crashes mid-processing. Which Service Bus feature guarantees this behavior?
You have an Azure Function triggered by a Timer. During load testing you notice that multiple instances of the function run simultaneously, causing duplicate processing. How do you prevent concurrent executions of a timer-triggered function?
You are building an event-driven microservice using Azure Functions. The function must process messages from an Azure Service Bus queue and write results to Azure Cosmos DB. To minimize cold-start latency and ensure the function scales with message volume, which hosting plan and trigger combination is most appropriate?
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?