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

Define idempotency in the context of data pipelines and describe three practical patterns for achieving idempotent ingestion under retries: unique message/idempotency keys, idempotent upserts (merge semantics on a natural or surrogate key), and a dedicated dedupe/staging table. For each pattern, describe a pitfall (a non-idempotent side effect that retries can trigger even when the write itself is idempotent) and how you would test idempotency under a simulated retry/failure scenario.

EasyTechnical
33 practiced

Explain the difference between a schema mismatch (a field's structure or presence changed, for example a JSON field sometimes arriving as an array and sometimes as a scalar) and a simple data-type inconsistency (a numeric value arriving as text). Give a concrete example of each and describe the downstream consequences for analytics: a failed load, a silently broken join, or a miscalculated aggregate.

MediumSystem Design
34 practiced

Design an approach to detect schema drift arriving from an upstream source at validation-gate time: added, removed, renamed, or changed-type columns, and unexpected new categorical values in a value-set field. Cover detection (comparing incoming batch schema against a registered expectation), alerting and routing of the drift event, and how the pipeline should react by default (quarantine the affected batch vs coerce and continue with a logged warning) when a drift is detected but has not yet been triaged.

HardSystem Design
31 practiced

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.

HardSystem Design
30 practiced

You must deduplicate several billion customer records at national or multi-region scale, where full pairwise comparison and even a naive ROW_NUMBER-partition dedup are computationally infeasible (a job using that pattern now takes 12+ hours on a petabyte-scale table). Propose a scalable architecture using blocking plus locality-sensitive hashing (MinHash/LSH), discuss the space/time trade-offs against exact full-sort deduplication, and explain how you would validate that the approximate approach's precision and recall are acceptable before relying on it in production.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.