← DP-203: Azure data engineering, historical path
DP-203 and Azure Data Engineer Associate retired March 31, 2025. Independent historical content without Microsoft affiliation, accreditation, or certification award. Editorial review without independent specialist verification. No live Azure changes or real banking operations were executed. Fictional cases do not represent internal policies of financial institutions. Trademarks belong to their respective owners.
03 / 6 · 40 MIN

Streams, time, and external effects

Separate consumer progress, lateness handling, and effect uniqueness.

Concept and mechanism

A stream has no single completion point like a closed file. Define event identity, required order, business time, retention, and recovery. Consumer groups enable independent consumption; checkpoints save progress that each application must manage coherently.

Persisting progress before the target effect can skip incomplete work. Persisting it afterward can repeat work if failure occurs between those actions. With foreachBatch, delivery is at least once: an external target needs idempotency or deduplication.

A random key for every attempt is unsuitable because it gives the same operation different identities. Analyze the complete boundary before promising exactly-once.

Guided application

Watermarks bound state and express a lateness policy; they are not backups. In a Structured Streaming query with several inputs, the min policy follows the slower input; changing to max can reduce waiting and drop that input’s data. In Stream Analytics, processing and delivery have distinct guarantees.

For SQL output, a natural key and uniqueness constraint can identify the same output, such as account and window end. Historical replay sent through a live path can be dropped or have its time adjusted; plan a suitable path and reconcile results.

Test failure after target confirmation, lateness beyond tolerance, and producer semantic changes such as euros becoming cents without a field-name change.

IN PRACTICE

The API confirmed batch 91, but the consumer restarts without an updated checkpoint. Reconcile the operation and test replay with persistent identity before authorizing repetition.

Common pitfalls

Checkpoint treated as distributed transaction; arrival time treated as business time; retention treated as unlimited recovery.

Related topics: Storage, distribution, and exploration · Incremental loads and recovery · Lake access and secret management

Take this idea with you

Define what can repeat, what can arrive late, and how to establish target results.

Create account

References

Microsoft and Azure are trademarks of the Microsoft group of companies. bigsavant.com is an independent preparation platform and is not affiliated with, associated with, sponsored, authorised or endorsed by Microsoft. Content and questions are original, are not official exam questions, and completing our tests does not award or guarantee any certification. Names are used only to identify the subject. All other trademarks belong to their respective owners.