DE Mastery GitHub

Apache Spark · SPK-10

Structured Streaming I — the micro-batch engine and exactly-once

From your world. dbt incremental models and their state

Practice quiz with instant feedback. For a scored run that counts toward your local progress, use uv run de quiz SPK-10.

1In the micro-batch model, when does Spark commit the new source offsets to the checkpoint?
2You restart a streaming job, but you point it at a BRAND NEW checkpoint directory in each run. What happens?
3Which output mode is valid for a streaming query that has NO aggregation (each input row -> one output row)?
4Why does Spark reject append output mode on a running (unwatermarked) streaming aggregation?
5What does trigger(availableNow=True) do?
6A sink appends rows. It collects the micro-batch to the driver and inserts the rows, with no dedup and no transactional offset tracking. After a crash, Spark redoes a batch. What is the result?
7In what way is the dbt incremental-model 'high-water mark' most like Structured Streaming?