Data Quality and Validation Questions

Ensuring correctness and trust in data: validation rules, constraints, completeness/accuracy/timeliness checks, and quality frameworks. Covers designing validation into pipelines, quality gates before publishing, and handling edge cases and real-world dirty data. Central to any data engineering or analytics role.

HardSystem Design
41 practiced

Design a production system for detecting distribution drift in a numeric or categorical feature/column: describe the statistical tests or metrics you would use (a KS-test or chi-squared test against a baseline, or a Population Stability Index computed incrementally from stored histograms rather than recomputed from scratch each time), how you would set alert thresholds and account for seasonality so you do not fire on every transient spike, and how you would control the false-discovery rate when running this check across thousands of columns or metrics simultaneously.

EasyTechnical
32 practiced

Design a small dashboard of data-quality KPIs for stakeholders who are not engineers: which five to eight metrics would you include (for example null rate, schema-mismatch count, duplicate rate, freshness, SLA-pass rate), what aggregation cadence makes sense for each (real-time, hourly, daily), and how would you present a composite "quality score" that is honest about which dimension is driving a low score rather than hiding it behind a single number?

EasyTechnical
36 practiced

You receive an unfamiliar dataset from a partner team or a new source you've never seen. What are your first ten actions to profile and validate it before anyone uses it in reports or models? Include the quick checks you'd run first, the deeper validations you'd follow up with, and how you'd document initial findings for stakeholders.

MediumTechnical
43 practiced

Why does a single, versioned source of truth for a metric's definition matter, and what breaks when it is missing? Give an example of a metric silently changing meaning (for example "active user" being redefined) and describe a structured framework for evaluating data quality across two sources reporting different values for the same KPI: how you would compare lineage, freshness, and transformation logic to decide which source (or which reconciled figure) to trust, and how you would communicate the remaining uncertainty.

EasyTechnical
36 practiced

List and briefly compare simple statistical methods for detecting outliers in a numeric column (z-score, IQR/boxplot fence, and a robust alternative like median absolute deviation). For each, state an assumption it relies on, a situation where it gives misleading results (for example on a heavily skewed or heavy-tailed distribution), and its computational cost at scale. When would you prefer the robust method over a simple z-score threshold?

Unlock Full Question Bank

Get access to all 42 Data Quality and Validation interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.