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.

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.

HardTechnical
29 practiced

Compare coordinator-based two-phase commit (2PC), a write-ahead-log-plus-idempotent-sink (log-based/replay-and-compaction) approach, and eventual-consistency-with-compensating-transactions for writing to multiple heterogeneous sinks atomically. Discuss failure modes, blocking behavior, performance implications, recovery procedures, hybrid approaches that combine two of these, and cases where none of them is sufficient on its own.

EasyTechnical
41 practiced

What does it mean for a data pipeline operation to be idempotent, and why does it matter for a system that retries failed work or replays events? Describe three concrete patterns for making a sink idempotent: upsert or merge by primary key with a version or timestamp, transactional writes with atomic commit, and content-addressable or object-versioned writes. For each, explain when it applies and its trade-offs in cost, latency, and complexity.

That is every published Data Reliability and Fault Tolerance question for Site Reliability Engineer (SRE) so far. Browse the other topics in this category, or practice this one interactively.