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.
You discover that a nightly transform has been silently producing incorrect numbers for weeks or months (for example a bad join that undercounted revenue, or a float-rounding bug that drifted a running total). Outline the full incident-response structure: scoping how far back and how widely the corruption spread, computing the business impact, designing and validating a backfill to restore correct historical numbers, communicating to stakeholders and (where relevant) auditors, and the systemic prevention you would put in place so a silent numeric error like this is caught automatically next time.
Define a set of measurable Service-Level Objectives (SLOs) for data quality on a pipeline that feeds business-critical dashboards: freshness (how stale can the data be), completeness (what fraction of expected records must arrive), and accuracy (how much deviation from a reconciled figure is tolerable). Propose concrete SLI definitions and target thresholds, explain what an error budget means in this context and what happens operationally when it is exhausted, and how you would report SLA compliance to the teams who depend on this data.
Late-arriving records (for example a payment or event that lands hours or days after its event time) can invalidate already-computed daily aggregates. Design a safe backfill and reconciliation strategy: how you detect that a historical aggregate needs correcting, how you reprocess without corrupting concurrently-running dashboards, how you preserve an audit trail of the correction, and how you decide when a metric is "final enough" to stop reprocessing versus always remaining provisional.
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?
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?
Unlock Full Question Bank
Get access to all 30 Data Quality and Validation interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.