CertLumen

Microsoft Fabric Data Engineer (DP-700) · Section 2 · 33% of the exam

Process data by using Spark structured streaming

One of the objectives of the Microsoft Certified: Fabric Data Engineer Associate (exam DP-700: Implementing Data Engineering Solutions Using Microsoft Fabric) exam, in the section “Ingest and transform data”. Here is what it covers, the points to remember and a question to try.

What it covers

Spark structured streaming treats a stream as an unbounded table and writes to Delta with checkpoints, watermarks and triggers. KQL in an eventhouse processes events at ingestion with update policies and materialized views and analyzes them with summarize and series functions. This lesson ends with windowing: tumbling, hopping, sliding and session windows in eventstreams, Spark and KQL, and window functions in SQL.

Points to remember

  • Structured streaming: readStream and writeStream, micro-batches, a checkpoint per query, Delta as the usual sink.
  • Triggers: default continuous micro-batches, processingTime for batching, availableNow to process everything and stop.
  • Watermarks bound lateness and state; append-mode windowed results appear only after the watermark passes the window end.
  • Run production streams in Spark job definitions with a retry policy, not in notebooks.
  • KQL: update policies transform at ingestion (typed target tables); materialized views maintain aggregates and latest-per-key with arg_max.

Try a question

A team runs a Spark structured streaming job continuously in production and wants it to restart automatically after infrastructure issues such as node failures or patching. Where should the job run and what should be configured?

  1. AIn a notebook that a data engineer leaves open overnight
  2. BIn a Dataflow Gen2 with refresh retry
  3. CIn a Spark job definition with a retry policy
  4. DIn a pipeline Copy activity with fault tolerance
Show the answer

C. Spark notebooks are for developing and testing streaming logic. For production, use a Spark job definition with a retry policy so the stream restarts after failures. The Monitor hub's Structured Streaming tab shows input rate, process rate and batch duration.

Written for practice in the style of the exam: never a question from the real exam.

In the course

The lesson Spark structured streaming, KQL and windowing teaches this objective (about 55 minutes), and 20 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.

More in this section

← Previous objective · All 49 objectives · Next objective →