BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Databricks Certified Associate Developer for Apache Spark 3.5 Exam - Topic 3 Question 14 Discussion

Posted by Alpha on May 01, 2026 at 04:48 PM

35 of 55.

A data engineer is building a Structured Streaming pipeline and wants it to recover from failures or intentional shutdowns by continuing where it left off.

How can this be achieved?

Suggested Answer: C

In Structured Streaming, checkpoints store state information (offsets, progress, and metadata) needed to resume a stream after a failure or restart.

Correct usage:

Set the checkpointLocation option when writing the streaming output:

streaming_df.writeStream

.format('delta')

.option('checkpointLocation', '/path/to/checkpoint/dir')

.start('/path/to/output')

Spark uses this checkpoint directory to recover progress automatically and maintain exactly-once semantics.

Why the other options are incorrect:

A/D: recoveryLocation is not a valid Spark configuration option.

B: Checkpointing must be configured in writeStream, not during readStream.


PySpark Structured Streaming Guide --- Checkpointing and recovery.

Databricks Exam Guide (June 2025): Section ''Structured Streaming'' --- explains checkpointing and fault-tolerant streaming recovery.

Get Premium Databricks Certified Associate Developer for Apache Spark 3.5 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
25 comments · newest first
AS
Ashton 1 month ago
I’m unsure, maybe A? But it seems less relevant.
CA
Carlota 2 months ago
Recovery is all about checkpoints, so B is right.
RI
Ricarda 2 months ago
C could work too, but B feels safer.
CA
Candra 2 months ago
B is the standard approach for streaming.
IR
Irma 2 months ago
But without checkpoints in B, you lose progress.
CA
Carissa 2 months ago
I lean towards C. Writing the stream is key for recovery.
DO
Dorthy 2 months ago
Agreed, B makes sense. It saves the state.
GE
Gerardo 3 months ago
I think it's B. Checkpointing is crucial for recovery.
NA
Nakisha 3 months ago
C could work, but B is more reliable for failures.
DE
Deja 3 months ago
Definitely B. It’s all about maintaining state.
HA
Hannah 3 months ago
A is less relevant. Checkpointing is the standard.
AS
Ashlyn 3 months ago
But what about A? RecoveryLocation seems important.
LE
Leota 4 months ago
I feel C is right too. Writing ensures data integrity.
BR
Britt 4 months ago
I lean towards C. Writing the stream is key for recovery.
LA
Lanie 4 months ago
Agreed, B makes sense. It saves the state.
DE
Denise 4 months ago
I think it's B. Checkpointing is crucial for recovery.
FA
Fanny 4 months ago
Definitely C, that's how you ensure fault tolerance!
FI
Filiberto 4 months ago
I thought it was just about readStream, but checkpointing is key!
OR
Oretha 5 months ago
Wait, can you really use recoveryLocation? Sounds off.
WI
Willodean 5 months ago
Totally agree, option C is the way to go.
EV
Eva 5 months ago
It's all about checkpointLocation for writeStream!
JO
Joni 5 months ago
I feel like I might be mixing things up, but I think option C is the right choice since it deals with writing the stream.
RO
Rozella 7 months ago
I practiced a similar question, and I believe option B is correct because it relates to the readStream configuration.
TO
Tomas 7 months ago
I'm not entirely sure, but I remember something about recoveryLocation being important. Maybe it's option A?
MA
Marg 7 months ago
I think it might be option C, configuring checkpointLocation during writeStream, since checkpoints are crucial for recovery.
0/2000 characters

Save Cancel