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 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?
You have limited engineering capacity and a backlog of data-quality issues with varying severity and varying business impact, and multiple teams are each requesting their own fix be prioritized first. Describe a prioritization framework you would use to decide what to work on next, and how you would build cross-team alignment and commitment for a shared solution (for example a common validation framework) rather than everyone patching their own pipeline independently.
For a global product, should event timestamps be stored in UTC or as local time with a timezone offset? Explain the recommended approach and why, and describe the concrete pitfalls of getting this wrong: daily aggregations computed on naive local timestamps silently shifting by a day around a daylight-saving transition, and the extra metadata (user timezone, offset at time of event) you need to store to correctly present results in a user's local day later.
Before joining or deduplicating customer data from multiple sources, identifiers such as emails, phone numbers, and addresses must be canonicalized. Give concrete normalization rules for each and explain why skipping canonicalization silently breaks both joins and dedup, and describe when you would fall back to an external reference dataset (postal API, ISO country codes) instead of local rules alone.
During ingestion you find data-type mismatches across sources: a numeric field arriving as the string 'N/A', dates in several formats, a join key stored as INT in one source and VARCHAR in another, and a product-catalog feed mixing cents and dollars for the same 'price' field with no currency code. Propose detection strategies for each class of mismatch and both a short-term SQL-level fix and a longer-term ETL contract that prevents recurrence, including how you would document the canonical type/unit for each field.
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.