What are the conceptual differences in data cleaning strategies for batch processing versus real-time streaming data?

Quick Overview

Asks how data cleaning strategies differ between batch pipelines and real-time streaming pipelines. Tests reasoning about available context, latency versus completeness, late and out-of-order events, bad-record handling, and state for deduplication and enrichment.

What are the conceptual differences in data cleaning strategies for batch processing versus real-time streaming data?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

What are the conceptual differences in data cleaning strategies for batch processing versus real-time streaming data? ```hint What each side knows Think about how much of the data each approach can see at the moment it decides whether a record is valid, an outlier or a duplicate. ``` ```hint Time Consider what should happen to an event that arrives an hour after the window it belongs to has already been processed. ``` ### What a Strong Answer Covers - Contrasts the context each mode has (the full dataset versus the current record plus bounded state) and which cleaning operations that allows. - Explains the trade-off between latency and completeness. - Covers late and out-of-order events in streaming, and how batch pipelines deal with data that lands after a run. - Describes how bad records are handled in each mode without losing them silently. - Discusses state for deduplication and enrichment, and how batch and streaming results are kept consistent. ### Follow-up Questions - How would you deduplicate events in a stream when duplicates can arrive days apart? - How do you impute a missing numeric value in a stream when you cannot compute a global median? - A streaming dashboard and the nightly batch table disagree on yesterday's totals. How do you decide which is right and reconcile them? - What would you monitor to catch data quality problems in a streaming pipeline before they reach downstream consumers?

Overview: Asks how data cleaning strategies differ between batch pipelines and real-time streaming pipelines. Tests reasoning about available context, latency versus completeness, late and out-of-order events, bad-record handling, and state for deduplication and enrichment.

PracHub logo
General
Nov 24, 2026
mediumData ScientistOtherData Manipulation (SQL/Python)
0
0

What are the conceptual differences in data cleaning strategies for batch processing versus real-time streaming data?

What a Strong Answer Covers Guidance

  • Contrasts the context each mode has (the full dataset versus the current record plus bounded state) and which cleaning operations that allows.
  • Explains the trade-off between latency and completeness.
  • Covers late and out-of-order events in streaming, and how batch pipelines deal with data that lands after a run.
  • Describes how bad records are handled in each mode without losing them silently.
  • Discusses state for deduplication and enrichment, and how batch and streaming results are kept consistent.

Follow-up Questions Guidance

  • How would you deduplicate events in a stream when duplicates can arrive days apart?
  • How do you impute a missing numeric value in a stream when you cannot compute a global median?
  • A streaming dashboard and the nightly batch table disagree on yesterday's totals. How do you decide which is right and reconcile them?
  • What would you monitor to catch data quality problems in a streaming pipeline before they reach downstream consumers?