InterviewStack.io LogoInterviewStack.io

Data Quality and Validation Questions

Covers the core concepts and hands on techniques for detecting, diagnosing, and preventing data quality problems. Topics include common data issues such as missing values, duplicates, outliers, incorrect labels, inconsistent formats, schema mismatches, referential integrity violations, and distribution or temporal drift. Candidates should be able to design and implement validation checks and data profiling queries, including schema validation, column level constraints, aggregate checks, distinct counts, null and outlier detection, and business logic tests. This topic also covers the mindset of data validation and exploration: how to approach unfamiliar datasets, validate calculations against sources, document quality rules, decide remediation strategies such as imputation quarantine or alerting, and communicate data limitations to stakeholders.

HardTechnical
30 practiced
You must deduplicate a dataset with billions of customer records. Propose a scalable architecture using blocking and locality-sensitive hashing (LSH/MinHash). Describe data structures, parameter tuning, candidate generation, scoring, and how to incorporate manual review for uncertain matches.
HardTechnical
31 practiced
You're asked to recommend a governance policy: enforce strict data constraints upstream (source) or validate/fix downstream in ETL. As lead analyst, present the trade-offs (latency, ownership, cost, product velocity), propose a hybrid policy and criteria for escalating schema changes to engineering.
HardTechnical
31 practiced
Design an efficient anomaly detection approach for daily revenue time series across 100k stores. Discuss algorithms (rolling z-score, seasonal decomposition, STL, FB Prophet, hierarchical models), compute resource trade-offs, batching vs streaming, and strategies to reduce false positives across noisy small stores.
MediumTechnical
39 practiced
When datasets are too large to scan fully, what sampling strategies (random, stratified, reservoir, hash-based) would you use to validate quality? Explain trade-offs, reproducibility, and how you'd detect rare but important issues that sampling might miss.
EasyTechnical
42 practiced
You have a Postgres table `users(user_id INT PRIMARY KEY, email TEXT, signup_date TIMESTAMP, last_login TIMESTAMP)` containing 5M rows. Write a SQL query that returns a row per column with the number of NULLs and the number of empty-string values (for text columns). Explain any assumptions and discuss how you'd run this check across dozens of tables efficiently.

Unlock Full Question Bank

Get access to hundreds of Data Quality and Validation interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.