Databricks-Spark-Assoc Structured Streaming Practice Question
You are developing a Structured Streaming job that reads from a Delta table and writes to another Delta table. You need to ensure that the streaming query can recover from failures and continue processing without data loss or duplication. Which of the following must be configured?
⚠ Common exam trap
The trap here is thinking that a watermark or a specific trigger is required for fault tolerance, when in fact the checkpoint location is the only mandatory configuration for recovery.
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
✓
A checkpoint location
To recover from failures and ensure exactly-once processing, a Structured Streaming query must have a checkpoint location. This location stores the progress information and state, allowing the query to resume from where it left off. Watermarks, trigger intervals, and output modes are unrelated to basic fault tolerance. Therefore, the checkpoint location is the essential configuration.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
An output mode of `complete`
Why it's wrong here
The output mode determines how results are written to the sink. It does not provide fault tolerance. Complete mode rewrites the entire result table each time, which can be inefficient and is not related to recovery. Fault tolerance is achieved through checkpointing and idempotent sinks, regardless of the output mode. Hence, complete mode is not required for the stated requirement.
- ✗
A watermark on the event time column
Why it's wrong here
A watermark is used for handling late data and cleaning up state in stateful operations. It is not required for basic fault tolerance. While watermarks are important for aggregations and joins, they do not provide recovery or exactly-once guarantees. A query without a watermark can still recover from failures if a checkpoint location is set. Thus, a watermark is not mandatory for the stated requirement.
- ✓
A checkpoint location
Why this is correct
A checkpoint location is required for any Structured Streaming query to track progress and maintain state. It stores metadata about which offsets have been processed, as well as aggregation state. Without it, the query cannot recover from failures and would either fail to start or lose data. Configuring `checkpointLocation` ensures fault tolerance and exactly-once processing when combined with a replayable source and idempotent sink.
- ✗
A trigger interval of `processingTime='1 second'`
Why it's wrong here
The trigger interval controls how often the query processes data. It does not affect fault tolerance or exactly-once semantics. You can use any trigger, including `availableNow` or `continuous`, and still achieve fault tolerance as long as a checkpoint location is configured. The trigger interval is a performance tuning parameter, not a requirement for recovery. Therefore, this is not the correct choice.
About these practice questions
This Databricks-Spark-Assoc question is part of Courseiva's 295-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Databricks exam blueprint
This Databricks-Spark-Assoc practice question is part of Courseiva's free Databricks 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 Databricks-Spark-Assoc exam.