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.

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?

EasyTechnical
37 practiced

You are reviewing a dataset where a small but nonzero fraction of a required numeric field (for example 1.2% of sales_amount) is NULL. Walk through the decision process for choosing between dropping the affected rows, imputing a value, quarantining the records for manual review, or alerting the upstream owner and leaving the data untouched. What business, statistical, and operational factors tip the decision each way, and how would this change if the field were a billing amount rather than a marketing attribute?

EasyTechnical
53 practiced

You are computing a rate metric such as conversion_rate = clicks / impressions where the denominator can be zero or NULL. Write a robust expression that avoids a division-by-zero error and defines the result precisely for each edge case: NULL numerator, zero denominator with a nonzero numerator, and zero denominator with a zero numerator. Then describe how the same defensive pattern should be applied consistently across SQL, application code, and the dashboard layer so a currently-empty group renders as an explicit "no data" state rather than a misleading zero or a crashed query.

HardTechnical
32 practiced

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.

EasyTechnical
44 practiced

You are onboarding a new third-party data feed (CSV or JSON) into the analytics platform. Define the minimum schema-validation checklist you would enforce before making it available to consumers: required fields, type and cardinality checks, allowed-value/enum checks, and referential checks against existing dimensions. For each check, state whether it should block ingestion or only warn, and what the most common data-quality issues are for a feed of this kind (missing fields, inconsistent formats, unexpected new categorical values).

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.