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

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.

MediumTechnical
40 practiced

Compare low-latency exactly-once approaches (e.g., Kafka/Flink transactions) with at-least-once processing plus deduplication when designing a pipeline for analytics versus one for payments. Discuss throughput, complexity, operational burden, and failure scenarios for each workload.

HardSystem Design
42 practiced

Design an architecture to provide exactly-once semantics for CDC replication from an OLTP system (Postgres) into a lakehouse (Delta/Iceberg) that combines streaming changes and periodic batch replays. Explain ordering, idempotency, transactional boundaries, and how you reconcile streaming events with batched backfills without double-counting.

HardSystem Design
29 practiced

Discuss techniques to approach exactly-once guarantees when integrating with a non-idempotent third-party API that only supports at-most-once semantics. Propose system-level redesigns such as the outbox pattern, dedicated idempotency proxies, or compensated eventual-consistent workflows, and analyze trade-offs.

That is every published Data Reliability and Fault Tolerance question for Cloud Architect so far. Browse the other topics in this category, or practice this one interactively.