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
32 practiced

Implement an idempotent HTTP POST handler in Python (Flask or plain WSGI) that accepts JSON with a unique request_id and payload. The handler must return a cached response for repeated request_id values. Use an in-memory store with TTL for this exercise and show concurrency-safe code and O(1) lookups.

HardSystem Design
40 practiced

Architect a replayable ingestion pipeline that supports transactional reprocessing: guarantees ordering per key, deduplication, idempotent sinks, and the ability to replay from arbitrary offsets across Kafka and object-storage input sources. Include the metadata/tracking store design, how you will coordinate replays across multiple pipelines, and how to ensure correctness and performance during reprocessing.

MediumSystem Design
30 practiced

Design a DLQ and retry strategy for a pipeline that writes to a flaky external HTTP API, or depends on several intermittently-failing third-party services more broadly: include error classification, exponential backoff with jitter, circuit breaker thresholds, durable buffering and handoffs to guarantee at-least-once delivery, a DLQ schema, and replay tooling, while avoiding dropping high-priority events during a downstream outage.

HardTechnical
34 practiced

You have a streaming ETL that consumes messages and processes them one-by-one with a function that may occasionally fail. Design a checkpointing and retry mechanism in Python to ensure exactly-once processing semantics across crashes, considering idempotency, offset storage, and external systems. Outline code-level strategies and discuss trade-offs.

MediumSystem Design
29 practiced

You operate a streaming enrichment pipeline that issues thousands of downstream API requests per second to a third-party service, which sometimes fails or rate-limits you. Design a retry policy and circuit-breaker approach that prevents cascading failures while minimizing data loss. Include backoff strategy, concurrency limits, queuing, local caching and batching, fallback behavior, and monitoring thresholds.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.