QuestionQ104

VerifiedDebugging and Deploying

A data architect has designed a system where two Structured Streaming jobs will write concurrently to one bronze Delta table. Each job subscribes to a different Apache Kafka source topic, but both write data using the same schema. To keep the directory layout simple, a data engineer has chosen to nest one checkpoint directory that both streams will share.

The proposed directory structure is shown below:

Question Image

Which statement explains whether this checkpoint directory structure is valid for this scenario and why?

Explanation

Each Structured Streaming query must use its own checkpoint location. A checkpoint records query-specific source offsets, commits, metadata, and state needed for fault-tolerant recovery; two independent Kafka streams must not share that information. Multiple writers can write to a Delta table, but their checkpoint directories must be distinct.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!