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.

HardSystem Design
49 practiced

Design a near-real-time dashboarding pipeline for product metrics that must keep event-ingestion latency under 5 seconds while sustaining 20,000 events/sec. Size the ingestion and processing layers, choose a storage layer for serving (fast OLAP vs. real-time store), and describe the caching strategy that gets read latency under a second for dashboard queries.

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?

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.

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?

MediumTechnical
33 practiced

Compare the Lambda and Kappa architectures for combining batch and streaming processing: what components does each have, what operational complexity does maintaining two codepaths (Lambda) versus a single replayable streaming codepath (Kappa) actually cost you, and when would you choose one over the other?

Unlock Full Question Bank

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