AZ-204 Develop Azure compute solutions Practice Question
You develop an Azure Durable Functions application that orchestrates a series of activities. The orchestrator function calls activity functions that perform long-running tasks. You need to ensure that the orchestrator function can handle transient errors and retry failed activity functions. Which feature should you use?
⚠ Common exam trap
Many candidates assume any retry mechanism (like Polly or queue retries) works equally well, but they fail to recognize that Durable Functions' built-in retry policies are the only option that integrates seamlessly with the orchestrator's deterministic replay and state management.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Built-in retry policies in Durable Functions
Durable Functions provides built-in retry policies that can be configured directly on activity function calls within orchestrator functions. This allows you to specify parameters such as max retry count, backoff interval, and retry timeout, enabling the orchestrator to automatically retry failed activities without custom code or external dependencies.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Polly library for retry logic
Why it's wrong here
While the Polly library is an excellent .NET resilience framework for implementing retry, circuit breaker, and other policies, it is not a built-in feature of Azure Durable Functions. Integrating Polly would require manually adding its logic within each activity function or creating custom wrappers, which adds boilerplate code and complexity. Durable Functions offers a more direct, declarative mechanism for handling retries at the orchestration level, making Polly a less optimal choice for this specific built-in capability.
- ✓
Built-in retry policies in Durable Functions
Why this is correct
Durable Functions provides robust built-in retry policies specifically designed for activity function calls, allowing orchestrators to gracefully handle transient failures. When calling an activity function, the orchestrator can specify `RetryOptions` that include parameters like `MaxNumberOfAttempts`, `FirstRetryInterval`, and `BackoffCoefficient`. This enables the Durable Functions runtime to automatically re-attempt failed activity executions after a specified delay, without requiring any custom retry logic within the activity function itself.
- ✗
Application Insights alerts
Why it's wrong here
Application Insights alerts are a monitoring and diagnostic feature that notifies administrators or triggers automated actions when specific conditions are met, such as high error rates or slow performance. While alerts can inform about failed Durable Functions activities, they do not possess the capability to automatically re-execute or retry the failed activity within the workflow. Their purpose is observational and reactive, providing insights and notifications rather than programmatic workflow control for resilience.
- ✗
Azure Storage queue message retries
Why it's wrong here
Azure Storage queues are indeed used internally by Durable Functions for managing orchestration and activity messages. However, the generic retry mechanism of Azure Storage queues, which typically involves `DequeueCount` and moving messages to a poison queue, is abstracted and not the primary method for activity retries in Durable Functions. The retry logic for activity function invocations is managed by the Durable Task Framework orchestrator, which controls the state and re-enqueues activity messages based on the `RetryOptions` defined in the orchestration code, rather than relying solely on the underlying queue's default behavior.
Go deeper
Related to this question
About these practice questions
This AZ-204 question is part of Courseiva's 881-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-204 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-204 exam.