QuestionQ186

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 topic from an Apache Kafka source, but both will write data using the same schema. To keep the directory structure simple, a data engineer has chosen to nest one checkpoint directory that both streams would 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 the query’s processed source offsets, commits, and query metadata, so two independent Kafka streams cannot safely share it. Concurrent streams may write to the same Delta table because Delta Lake coordinates table commits through its transaction log, but that does not make their streaming checkpoints shared.

Learn more

Community Discussion

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