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.
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.
You own a data transformation function that normalizes user records (addresses, phone numbers) before they enter the warehouse. Write a focused set of unit tests for it, explicitly covering: a normal well-formed input, a completely empty or zero-row input, a single-row input, a malformed/unparseable value, and an unexpected extra field. For each test state what you are asserting and why a data-quality-focused test suite needs the zero-row and malformed cases as much as the happy path.
Tell me about a time you discovered a data-quality issue that materially affected a business decision or a production metric. Using the STAR format, describe the situation, how you discovered the issue, the investigative steps you took to find the root cause, the remediation you implemented, how you communicated impact to stakeholders, and what preventive measure you put in place afterward so the same class of issue would not recur silently.
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 deduplication strategy for a high-throughput streaming pipeline (hundreds of thousands of events per second) where duplicates arrive due to producer retries, out-of-order delivery, and multiple event sources. Compare exact windowed stateful dedup (with watermarking and TTL-bounded state) against approximate approaches (Bloom filters), discuss the false-positive/negative trade-offs of the approximate option, and explain how you would size and checkpoint state so the job recovers correctly after a restart.
Unlock Full Question Bank
Get access to all 43 Data Quality and Validation interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.