Home › Interview Questions › A data pipeline fails after writing half of its ou…

A data pipeline fails after writing half of its output. How would you restart it without reprocessing already written data?

🟡 Medium Conceptual Mid level
1Times asked
Nov 2026Last seen
Nov 2026First seen

💡 Model Answer

When a pipeline stops after partially writing, you need to ensure idempotency and use checkpoints. In Spark, you can enable checkpointing and write to a staging area with unique identifiers. On restart, the pipeline reads the checkpoint to resume from the last successful batch. If using Kafka, you track offsets. For file‑based pipelines, you can write to temp directories and rename on success. Additionally, you can use a write‑ahead log or transactional writes. The key is to design the pipeline so that each run can detect already processed data and skip it, preventing duplicates.

This answer was generated by AI for study purposes. Use it as a starting point — personalize it with your own experience.

🎤 Get questions like this answered in real-time

Assisting AI listens to your interview, captures questions live, and gives you instant AI-powered answers on a discreet on-screen overlay.

Get Assisting AI — Starts at ₹500