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
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?

MediumSystem Design
34 practiced

Design an automated reconciliation system that compares a daily aggregate (for example total revenue or order count) between an OLTP source system and the analytics warehouse's derived table. Specify the tolerance you would allow (absolute vs percentage difference), how you would use partition-level checksums or row-count comparisons to localize a discrepancy without a full re-scan, how the check handles late-arriving records, and what happens when a discrepancy exceeds tolerance: does it block downstream consumption or only alert?

MediumTechnical
32 practiced

Outliers in a metric like average order value can heavily skew a dashboard or a downstream model. Compare practical handling strategies (winsorizing/capping, trimming, switching to median, or showing a separate outlier-annotated view) in terms of their business implications and interpretability for stakeholders, and explain when you would choose to present the outlier-stripped metric alongside the raw one rather than replacing it entirely.

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.

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 43 Data Quality and Validation interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.