CertLumen

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

Create windowing functions

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

Two different streaming queries in the same notebook write to different Delta tables but both use checkpointLocation = "Files/checkpoints/shared". After the second query starts, the first fails with offset or metadata errors. What is the correct fix?

  1. AGive each streaming query its own unique checkpoint location
  2. BRun both queries with availableNow=True so they take turns
  3. CEnable Optimized Write on both tables
  4. DMove the checkpoint into the Tables folder of the lakehouse
Show the answer

A. Don't share the same checkpoint between different streaming queries. The checkpoint tracks that query's offsets, progress and state, so each query needs its own durable path.

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 →