InterviewStack.io LogoInterviewStack.io

Batch, Streaming, and Real-Time Serving Trade-offs Questions

Reasoning about when to use batch, micro-batch, or continuous streaming and how to serve low-latency analytics: latency, cost, complexity, and correctness trade-offs; lambda vs kappa architectures; and reprocessing semantics. Covers real-time aggregation, freshness vs consistency trade-offs, and reconciling streaming results with batch ground truth, including geospatial and high-throughput real-time workloads under eventual consistency. The data-systems judgment topic for choosing and reconciling batch versus real-time approaches, distinct from the hands-on streaming transport itself.

MediumTechnical
32 practiced

A pipeline ingests 5 TB/day and needs hourly aggregations. Compare always-on streaming versus hourly micro-batch for this specific workload: cost, latency, and operational complexity. Recommend concrete optimizations (file format, partitioning, compaction, compression) that keep compute and query costs down without missing the freshness bar the business actually needs.

HardSystem Design
33 practiced

You must recommend moving a high-throughput analytics pipeline from nightly batch to near-real-time streaming. Build a decision framework comparing latency, cost, operational complexity, data correctness, and business value, then outline a phased migration plan (parallel run, parity validation, cutover) and a rollback strategy.

HardSystem Design
27 practiced

You maintain a Lambda architecture (separate batch and stream code paths). Provide a step-by-step migration plan to Kappa (a single streaming-based codepath with replay): code refactoring, state migration, reprocessing/backfill plan, tests to ensure parity with the old outputs, and a rollback strategy. What are the main risks, and how do you mitigate each?

MediumTechnical
29 practiced

Compare batch processing and stream processing as general models, then bring Lambda and Kappa architecture into the comparison. For a concrete analytics workflow of your choosing, walk through why you would pick pure batch, pure streaming, Lambda, or Kappa.

EasyTechnical
34 practiced

Explain the real differences between batch processing and stream processing for a production data platform: latency, throughput, cost, operational complexity, and correctness. Give one concrete workload that clearly favors each approach, and describe a scenario where a hybrid of the two is the right call.

Unlock Full Question Bank

Get access to all 6 Batch, Streaming, and Real-Time Serving Trade-offs interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.