Question 300 of 997
Develop Azure compute solutionshardMultiple ChoiceObjective-mapped

Quick Answer

The answer is to enable Application Insights for the Functions app and use its telemetry to monitor orchestration execution and set alerts. This is correct because Application Insights automatically captures the full lifecycle of Durable Functions—including orchestration start, completion, failure, and retry events—via its built-in durable functions tracking, providing real-time distributed tracing without requiring custom polling or manual logging. On the AZ-204 exam, this scenario tests your understanding of how Durable Functions integrate with Azure Monitor; a common trap is choosing Azure Storage table polling or custom logging, which lack real-time alerting and diagnostic depth. Remember that Application Insights offers the "orchestration-failed" metric out of the box, enabling proactive alerts on failure counts or durations. Memory tip: think "Durable + Insights = Lifecycle Visibility" — the key is that Application Insights natively understands Durable Functions' replay and checkpointing, making it the only comprehensive, real-time monitoring solution for long-running orchestrations.

AZ-204 Develop Azure compute solutions Practice Question

This AZ-204 practice question tests your understanding of develop azure compute solutions. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

You have implemented a long-running order processing workflow using Azure Durable Functions. The orchestration may run for hours and involves multiple activity functions. You need to monitor the status of all running orchestrations and receive alerts when an orchestration fails. Which approach provides the most comprehensive and real-time monitoring?

Question 1hardmultiple choice
Full question →

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

Enable Application Insights for the Functions app and use its telemetry to monitor orchestration execution and set alerts.

Application Insights provides comprehensive, real-time monitoring for Durable Functions by automatically capturing orchestration lifecycle events, including failures, retries, and durations. It enables proactive alerting on failure metrics (e.g., 'orchestration-failed') without polling, and offers rich diagnostic tools like distributed tracing and custom querying. This is the most integrated and feature-rich approach for monitoring long-running orchestrations.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Use the Durable Functions HTTP API to poll the status of each orchestration.

    Why it's wrong here

    The HTTP API allows querying status of individual orchestrations by instance ID, but it does not provide a consolidated view of all running orchestrations or failure alerts.

  • Use Azure Monitor to create alerts on custom metrics published by the Durable Functions.

    Why it's wrong here

    While you can publish custom metrics, Azure Monitor metrics are aggregated and do not provide the detailed orchestration-level telemetry needed for pinpointing failures.

  • Enable Application Insights for the Functions app and use its telemetry to monitor orchestration execution and set alerts.

    Why this is correct

    Application Insights automatically captures orchestration lifecycle events (start, running, failed, etc.). You can use Kusto queries to monitor running orchestrations and create alerts on failed orchestrations with detailed context.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Use Azure Logic Apps to periodically check the orchestration status and send alerts.

    Why it's wrong here

    Logic Apps are workflow orchestrators themselves, not a monitoring tool. Polling via Logic Apps would be inefficient and would not provide real-time or detailed telemetry.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often assume Azure Monitor is the primary monitoring tool, but for Durable Functions, Application Insights is the recommended and most comprehensive solution because it natively captures orchestration-specific telemetry without custom instrumentation.

Detailed technical explanation

How to think about this question

Under the hood, Durable Functions emit telemetry events (e.g., OrchestratorStarted, OrchestratorCompleted, ActivityFunctionCompleted) to Application Insights via the Azure Functions host. These events include instance IDs, duration, and status codes, enabling precise failure detection and custom alert rules (e.g., 'when count of failed orchestrations > 0 over 5 minutes'). In a real-world scenario, a retail order processing system can use Application Insights to trigger an alert immediately when an orchestration fails due to a payment gateway timeout, allowing ops teams to intervene before customer impact escalates.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related AZ-204 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free AZ-204 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AZ-204 question test?

Develop Azure compute solutions — This question tests Develop Azure compute solutions — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Enable Application Insights for the Functions app and use its telemetry to monitor orchestration execution and set alerts. — Application Insights provides comprehensive, real-time monitoring for Durable Functions by automatically capturing orchestration lifecycle events, including failures, retries, and durations. It enables proactive alerting on failure metrics (e.g., 'orchestration-failed') without polling, and offers rich diagnostic tools like distributed tracing and custom querying. This is the most integrated and feature-rich approach for monitoring long-running orchestrations.

What should I do if I get this AZ-204 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More AZ-204 practice questions

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.