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.

HardTechnical
29 practiced

Provide a quantitative example showing how exactly-once processing can increase latency and reduce throughput compared to at-least-once with deduplication. Use numbers for checkpoint/transaction overhead, throughput per worker, and calculate effective throughput and additional latency. Discuss when at-least-once plus compensating actions is preferable for ML pipelines.

EasyTechnical
42 practiced

What is a write-ahead log (WAL) and how is it used in stream processing and durable state backends to provide crash recovery? Explain the benefits and drawbacks, including performance, recovery speed, compaction, and how checksums or sequence numbers are used to detect corruption. Give concrete examples (a Kafka topic as commit-log, RocksDB's WAL, PostgreSQL's WAL) and explain how WALs interact with checkpoints and compaction to bound storage usage.

EasyTechnical
29 practiced

What is the circuit breaker pattern and how is it used to make downstream API calls safer in data pipelines? Describe parameters such as failure threshold, cooldown window, and how this interacts with retry/backoff policies and backpressure.

EasyTechnical
29 practiced

Describe checkpointing versus snapshotting in stateful stream processors: what gets checkpointed and why it's necessary, how each is implemented, their impact on latency and throughput, and recovery-time trade-offs. When is incremental checkpointing preferable to a full snapshot? How often would you checkpoint in a low-latency pipeline processing 50k events/sec, and what does an on-call engineer need to know to restore a job after an operator crash (including offsets and external-sink consistency)?

HardSystem Design
29 practiced

Architect a streaming system capable of ingesting 1 million events per second to provide low-latency (sub-200ms) online features, including cases with billions of distinct keys under constrained per-worker memory. Describe partitioning strategy, state sharding and externalized state backends (compaction, TTL, bloom filters for cold-key filtering), checkpoint frequency and storage considerations, and a recovery plan that minimizes data loss and downtime while keeping checkpoint and restore times practical.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.