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.

HardSystem Design
44 practiced
Design an organization-wide Data Quality Platform that validates both batch and streaming datasets, provides a rules engine for checks, stores historical quality metrics, supports alerting and quarantine/replay, and offers a self-serve UI for dataset owners. Target scale: 500k events/sec streaming, 100TB/day batch, 1000 tracked datasets. Describe architecture, core components, data flows, multi-tenancy, and how you would provide real-time checks with historical trend analysis.
HardTechnical
34 practiced
A nightly Spark validation job that computes many column-level aggregations across 3 PB of Parquet data is running out of memory and taking 10 hours. Propose a prioritized set of optimizations (partitioning strategy, predicate pushdown, column pruning, vectorized readers, shuffle reduction, combining aggregations, bloom filters, caching, cluster sizing) you would test. For each optimization estimate expected impact and trade-offs.
HardTechnical
38 practiced
Design an algorithm or system to detect anomalous datasets across multiple dimensions (row_count, null_rates, column correlations, value ranges) and produce a ranked list of likely root-cause candidates (e.g., source pipeline X, schema change, commit Y). Explain scoring, normalization across datasets, prioritization criteria, and how you'd surface the results to engineers.
MediumTechnical
39 practiced
Implement an efficient de-duplication strategy in PySpark for events when duplicates arrive out-of-order. Requirements: keep the record with the latest event_ts per event_id, operate at petabyte data scale by partitioning sensibly, ensure the job is idempotent, and handle ties deterministically. Provide code outline and discuss performance considerations.
EasyTechnical
33 practiced
You have a users table(users_id PK, email text, created_at timestamp). Write a BigQuery-compatible SQL query to find potential duplicate accounts by canonicalized email (ignore case and surrounding whitespace), and return the most recent row per canonical email. Explain how this query helps identify duplicates for cleanup.

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.