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

Design an approach to compute per-city, per-minute aggregates (trip count, median fare, median ETA) updated every minute for dashboards. Would you use materialized views, streaming pre-aggregations, or periodic batch aggregation, and why? Justify the trade-offs in latency, cost, and accuracy, calling out anything (like a median) that doesn't aggregate as cleanly as a sum or count.

MediumTechnical
31 practiced

A product analytics dashboard must be updated every 10 minutes and serve thousands of users. Compare three architectures: (A) pure batch with 10-minute micro-batches, (B) a streaming engine, and (C) hybrid (CDC plus periodic batch backfills). For each, discuss cost, latency, complexity, and operational burden, and pick one with justification.

HardTechnical
36 practiced

Your streaming aggregation for daily totals disagrees with the nightly batch totals by 2% for the last month. The streaming pipeline uses a 5-minute watermark and 10 minutes of allowed lateness. Walk through an investigation and remediation plan: how would you quantify the impact of late events on the discrepancy, and how would you correct the historical daily totals once you know the cause?

MediumBehavioral
33 practiced

Tell me about a time you had to reconcile competing priorities between a stakeholder who wanted 'real-time analytics' and engineers who argued for batch processing on cost grounds. Describe how you approached the disagreement, how you evaluated the actual trade-offs, and the outcome.

HardSystem Design
36 practiced

Design a near-real-time feature store that supports both offline batch features and online features with a 1-minute freshness target. How do you reconcile the two, so a value computed by the nightly batch job and the same value computed by the online path don't silently drift apart, and how do you version features as the reconciliation logic changes?

Unlock Full Question Bank

Get access to all 19 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.