Courseiva
Develop data processinghardMultiple SelectObjective-mapped

Exactly-Once Delivery from Azure Stream Analytics to Azure Synapse Analytics

You are designing a real-time data processing solution using Azure Stream Analytics. The input is from Azure Event Hubs, and the output is to Azure Synapse Analytics. The solution must guarantee exactly-once delivery to Synapse. Which THREE configurations are required? (Choose three.)

Quick Answer

Exactly-once delivery is fundamentally about idempotency, making sure that if the same event gets sent to Synapse more than once, perhaps because of a retry after a transient failure, the end result in the table is the same as if it had only been delivered once. A primary key is what makes that possible at the destination: with a primary key defined, writing the same row twice becomes an upsert rather than a duplicate insert, so the second attempt simply overwrites or matches the existing row instead of creating a second copy. This only works alongside a unique identifier carried on each event, since the primary key needs something stable and consistent to key off of; without it, there would be nothing for the upsert logic to match against. A watermark strategy handles a related but distinct concern: accounting for events that arrive later than expected relative to their timestamps, which affects correctness of windowed results rather than duplicate delivery. Writing in batch mode is not what enables exactly-once semantics here, since the guarantee comes from how individual rows are matched and upserted, not from how many rows are sent per write. Whenever a Stream Analytics question involves guaranteeing exactly-once output to a relational destination, expect the answer to center on unique identifiers paired with a primary key that turns duplicate writes into harmless upserts.

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

Define a watermark strategy in the query to handle late-arriving events.

For exactly-once delivery to Azure Synapse Analytics from Stream Analytics, you need: a unique identifier column in the output table to enable deduplication (D), a watermark strategy to handle late-arriving events (B), and the output table must have a primary key to support upsert operations (E). Batch mode (A) is not supported for exactly-once delivery; instead, the output should use row-level insert/upsert. Setting the late arrival tolerance to zero (C) is not required; it is used to discard events that arrive after the tolerance, but it does not contribute to exactly-once semantics.

Answer analysis

Option-by-option breakdown

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

  • Configure the output to use batch mode for writing.

    Why it's wrong here

    Batch mode does not support exactly-once.

  • Define a watermark strategy in the query to handle late-arriving events.

    Why this is correct

    Ensures correct windowing.

  • Set the late arrival tolerance window to zero.

    Why it's wrong here

    Not required for exactly-once.

  • Use a job with a unique identifier column in the output to enable deduplication.

    Why this is correct

    Allows exactly-once via upsert.

  • Ensure the output table in Synapse has a primary key to support upsert operations.

    Why this is correct

    Needed for deduplication.

Go deeper

Related to this question

About these practice questions

Courseiva writes every DP-203 question from scratch — 760 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more way this is tested on DP-203

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. You are developing a real-time data processing solution using Azure Stream Analytics. The input is from an Azure Event Hub, and the output is to an Azure Synapse Analytics dedicated SQL pool. You need to ensure exactly-once delivery semantics to the SQL pool. What should you configure?

medium
  • A.Enable checkpointing in the query.
  • B.Use the Azure Synapse Analytics output adapter with exactly-once semantics.
  • C.Use a custom deserializer.
  • D.Configure event ordering by timestamp.

Why B: The Azure Synapse Analytics output adapter for Stream Analytics supports exactly-once delivery semantics to a dedicated SQL pool. This is achieved through built-in mechanisms that ensure each event is written exactly once, even in failure scenarios. Option A is incorrect because checkpointing is used for job recovery and state management, not for guaranteeing exactly-once output delivery. Option C is incorrect because custom deserializers handle data format conversion, not delivery guarantees. Option D is incorrect because event ordering by timestamp helps with time-based processing but does not provide delivery semantics like exactly-once.

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This DP-203 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 DP-203 exam.