InterviewStack.io LogoInterviewStack.io

Real Time and Batch Ingestion Questions

Focuses on choosing between batch ingestion and real time streaming for moving data from sources to storage and downstream systems. Topics include latency and throughput requirements, cost and operational complexity, consistency and delivery semantics such as at least once and exactly once, idempotent and deduplication strategies, schema evolution, connector and source considerations, backpressure and buffering, checkpointing and state management, and tooling choices for streaming and batch. Candidates should be able to design hybrid architectures that combine streaming for low latency needs with batch pipelines for large backfills or heavy aggregations and explain operational trade offs such as monitoring, scaling, failure recovery, and debugging.

MediumTechnical
131 practiced
Using Apache Spark Structured Streaming (PySpark), describe (pseudocode is fine) how you would compute a 5-minute tumbling window aggregation of events grouped by user_id, handling late events up to 10 minutes with watermarks, and write results as partitioned Parquet files to S3. Mention checkpointing and write semantics.
EasyTechnical
91 practiced
Define 'at least once', 'at most once', and 'exactly once' delivery semantics in the context of stream ingestion. For each semantic give a concrete example of a failure mode that can lead to duplicate or missing data, and one practical mitigation technique.
MediumTechnical
73 practiced
Implement idempotent write logic in pseudocode for a streaming job that writes user profile events to a database which only supports upserts by key. Describe how you would avoid race conditions from concurrent writers and ensure correctness under retries.
HardTechnical
77 practiced
A large reprocessing job produced duplicated records and skewed aggregates in your analytics data lake. Propose a step-by-step remediation plan to repair historical data with minimal downtime, ensure reproducibility, and provide an audit trail of corrections.
HardTechnical
81 practiced
Implement pseudocode for a sliding-window deduplication that drops duplicates of event_id within a 1-hour sliding window using limited memory. Describe data structures and expiration logic. Assume high ingest rate and requirement to evict old keys efficiently.

Unlock Full Question Bank

Get access to hundreds of Real Time and Batch Ingestion interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.