InterviewStack.io LogoInterviewStack.io

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
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.

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.

HardTechnical
33 practiced

Discuss the trade-offs between eventual consistency and strong consistency for analytics pipelines. For use cases such as near-real-time dashboards, financial reconciliation, and fraud detection, recommend consistency models and architectural patterns (e.g., materialized views, change logs, two-phase commits) that meet each requirement.

HardTechnical
39 practiced

Given a table 'writes(entity_id STRING, version INT, payload JSON, written_at TIMESTAMP)' representing multiple write attempts to storage, write an ANSI SQL query or Python pseudocode to compute the compacted view that retains the latest successful write per entity_id (preferring higher version then latest written_at). Explain how to treat tombstones (null payloads) and concurrent same-version writes.

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.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.