Data Reliability and Fault Tolerance Questions

Designing pipelines that survive failures: retries, idempotency, checkpointing, exactly-once semantics, dead-letter handling, and recovery/replay. Covers reasoning about partial failures, poison messages, and consistency guarantees under faults. The resilience angle distinct from monitoring (detecting and alerting on a failure) and from Workflow Orchestration and Scheduling (the DAG/scheduler mechanics that decide whether and when a task runs again, including backfills and dependency management): this topic owns whether the data itself stays correct, not lost, not duplicated, not corrupted, when a process is retried or replayed.

MediumTechnical
63 practiced

Describe how a Change Data Capture pipeline (e.g., Debezium -> Kafka -> a warehouse or data lake) maintains ordering of operations and idempotent application on the target, including across connector restarts. Discuss the use of source LSN or transaction id, partitioning and keying, MERGE semantics in the sink, and approaches to handle out-of-order or missing transactional events.

HardTechnical
34 practiced

Provide pseudocode for the Chandy-Lamport distributed snapshot algorithm adapted to capture consistent operator state and in-flight messages in a streaming dataflow. Include handling for a snapshot attempt that partially fails and how to resume or abort safely. Then explain how you would adapt the same algorithm to implement consistent checkpoints across cooperating microservices that exchange events over Kafka or message queues, and discuss the practical challenges of capturing in-flight messages and integrating with persisted broker logs.

HardTechnical
33 practiced

Write pseudocode for a checkpoint recovery algorithm that replays a write-ahead log (WAL) to restore operator state and reconciles external sinks with idempotency keys to ensure consistency after a crash. Address ordering guarantees, deduplication, and complexity analysis.

EasyTechnical
59 practiced

Implement a Java method deduplicate(List<Event> events, int capacity) that returns the input events in original order but removes duplicates by event.id. Use an LRU strategy of given capacity to track seen IDs and bound memory. Assume class Event { String id; long ts; String payload; }. Provide the method and explain time and space complexity.

HardTechnical
55 practiced

Design a deduplication solution for a streaming pipeline that must dedupe billions of event IDs with limited RAM per partition. Discuss probabilistic data structures (Bloom filters, counting filters), the trade-off of false positives, persistent compaction stores, and a hybrid architecture combining in-memory filters plus exact compaction. Explain how to validate and monitor false-positive rates in production.

Unlock Full Question Bank

Get access to all 22 Data Reliability and Fault Tolerance interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.