Interview's MateData Engineer
Interview's Mate

Data Engineer

SQL · Spark · Lakehouse · Streaming

Visualizer

DSA Visualizer
All 32 lessons
Custom Playground
Try your own examples

Learning

System Design
31 architecture topics
SQL Learning
160 foundations → production topics
AI Engineering
160 LLM → backend topics
Data Science
160 Python → MLOps topics
Data Engineer
160 SQL → streaming topics
Docker
160 Docker learning topics
Kubernetes
160 K8s fundamentals → cloud
Java LearnSoon
Coming soon
Python Learn
Interview Q&A & internals
JavaScript Learn
Closures, async & DOM Q&A
Tech Learn
Search, practise & track Q&A
AI DSA Practice
Solve coding problems
Theme
Home
Data Engineer topics
Lesson 141/ 160
08. Data Quality, Governance, Security & AI Infrastructure

Data Quality Dimensions (Accuracy, Completeness, Consistency, Timeliness, Validity)

Define quality along accuracy, completeness, consistency, timeliness, and validity with clear owners.

BeginnerAccuracy · Completeness · Timeliness3 quiz questions
Practice Generative AI Q&A
In plain wordsDiagramTheoryStep by stepWhen to use itInterview cluesMistakes to avoidQuiz (3)Practice

In plain words

Entity, field, and logical interval. Next, source reconciliation or domain rule. Finally, quarantine, route owner, and consumer impact.

Think of it like…

Quality dimensions are independent gauges on an aircraft: a full fuel tank says nothing about whether it is the right fuel, its calibration is correct, or the reading arrived before takeoff.

Where you’ve seen it

Orders are complete only if source and warehouse business-key counts reconcile at dt, accurate if amounts match ledger totals within tolerance, valid if currency is ISO 4217, consistent if customer status agrees across marts, and timely within 30 minutes.

Words you’ll hear

Accuracy
Agreement of data values with the authoritative real-world or reconciled source fact.
Completeness
Presence of expected records and required field populations over an explicit universe.
Timeliness
Availability by the agreed deadline, often measured from source event to consumer-visible partition.
Operational boundary
A 100% non-null table can still be inaccurate or stale, one aggregate check can hide missing partitions, and quality with no severity/owner/consumer context produces alerts nobody can act on. Define each check's dataset grain, trusted source or invariant, threshold, window, owner, and consumer impact; publish measured evidence and quarantine broken partitions rather than only counting failed rows.

Visual diagram

Loading interactive diagram

Theory & deep dive

Accuracy: the working mechanism

Data quality is measured as accuracy to a trusted fact, completeness of required records/fields, consistency across systems, timeliness to an SLO, and validity against allowed schemas and domains.

Entity, field, and logical interval. Source reconciliation or domain rule, then threshold, evidence, and trend; this exposes the state governed by Timeliness.

Data Quality Dimensions in one concrete design

Orders are complete only if source and warehouse business-key counts reconcile at dt, accurate if amounts match ledger totals within tolerance, valid if currency is ISO 4217, consistent if customer status agrees across marts, and timely within 30 minutes.

Key takeaway: Data quality is measured as accuracy to a trusted fact, completeness of required records/fields, consistency across systems, timeliness to an SLO, and validity against allowed schemas and domains

Data Quality Dimensions: failure mode and production response

A 100% non-null table can still be inaccurate or stale, one aggregate check can hide missing partitions, and quality with no severity/owner/consumer context produces alerts nobody can act on.

Define each check's dataset grain, trusted source or invariant, threshold, window, owner, and consumer impact; publish measured evidence and quarantine broken partitions rather than only counting failed rows. Track Expected population as "denominator for missing-record rate", and make Tolerance visible to the dataset owner.

Key takeaway: Define each check's dataset grain, trusted source or invariant, threshold, window, owner, and consumer impact; publish measured evidence and quarantine broken partitions rather than only counting failed rows.

How it works, step by step

Step 1 of 4
Accuracy

1. Scope grain

Entity, field, and logical interval. Data quality is measured as accuracy to a trusted fact, completeness of required records/fields, consistency across systems, timeliness to an SLO, and validity against allowed schemas and domains.

entity, field, and logical interval
Key numbers at this step
Expected population
denominator for missing-record rate
Completeness
Presence of expected records and required field populations over an explicit universe.

When to use it & trade-offs

What it is

Data quality is measured as accuracy to a trusted fact, completeness of required records/fields, consistency across systems, timeliness to an SLO, and validity against allowed schemas and domains. Orders are complete only if source and warehouse business-key counts reconcile at dt, accurate if amounts match ledger totals within tolerance, valid if currency is ISO 4217, consistent if customer status agrees across marts, and timely within 30 minutes.

Why it matters: A 100% non-null table can still be inaccurate or stale, one aggregate check can hide missing partitions, and quality with no severity/owner/consumer context produces alerts nobody can act on. Define each check's dataset grain, trusted source or invariant, threshold, window, owner, and consumer impact; publish measured evidence and quarantine broken partitions rather than only counting failed rows.

When to reach for it

  • Define quality along accuracy, completeness, consistency, timeliness, and validity with clear owners.
  • Choose Accuracy because it provides this capability: Agreement of data values with the authoritative real-world or reconciled source fact.
  • Keep evidence for Expected population at "denominator for missing-record rate" so the last production stage-Act - quarantine, route owner, and consumer impact-remains testable.

When to avoid or be careful

  • A 100% non-null table can still be inaccurate or stale, one aggregate check can hide missing partitions, and quality with no severity/owner/consumer context produces alerts nobody can act on.
  • Do not conflate Completeness with Accuracy. The second concept contributes different behavior: Presence of expected records and required field populations over an explicit universe.
  • Release only after this guardrail is in place: Define each check's dataset grain, trusted source or invariant, threshold, window, owner, and consumer impact; publish measured evidence and quarantine broken partitions rather than only counting failed rows.

Accuracy / Completeness / Timeliness - roles, limits, and operating cost

Accuracy
Best for: Agreement of data values with the authoritative real-world or reconciled source fact.

Strengths: Agreement of data values with the authoritative real-world or reconciled source fact. Data quality is measured as accuracy to a trusted fact, completeness of required records/fields, consistency across systems, timeliness to an SLO, and validity against allowed schemas and domains.

Watch out: A 100% non-null table can still be inaccurate or stale, one aggregate check can hide missing partitions, and quality with no severity/owner/consumer context produces alerts nobody can act on.

Completeness
Best for: Presence of expected records and required field populations over an explicit universe.

Strengths: Presence of expected records and required field populations over an explicit universe. In this workflow it supports: Measure - threshold, evidence, and trend.

Watch out: The operating cost is real: explicit absolute/percentage error for numeric accuracy.

Timeliness
Best for: Availability by the agreed deadline, often measured from source event to consumer-visible partition.

Strengths: Availability by the agreed deadline, often measured from source event to consumer-visible partition. Its output can be checked with Freshness SLO.

Watch out: Operating guardrail: Define each check's dataset grain, trusted source or invariant, threshold, window, owner, and consumer impact; publish measured evidence and quarantine broken partitions rather than only counting failed rows.

Interview signals & numbers to know

When this topic comes up

  • “Where is the failure boundary for Accuracy, and how would Expected population reveal it?”
  • “Why is Completeness distinct from this behavior: availability by the agreed deadline, often measured from source event to consumer-visible partition?”
  • Production clue: A 100% non-null table can still be inaccurate or stale, one aggregate check can hide missing partitions, and quality with no severity/owner/consumer context produces alerts nobody can act on.
  • Design probe: Define each check's dataset grain, trusted source or invariant, threshold, window, owner, and consumer impact; publish measured evidence and quarantine broken partitions rather than only counting failed rows.

Benchmarks & rules of thumb

Expected population -
denominator for missing-record rate
Tolerance -
explicit absolute/percentage error for numeric accuracy
Freshness SLO -
p95 or maximum source-to-serve delay

Common mistakes & follow-ups

Common interview mistakes

  • A 100% non-null table can still be inaccurate or stale, one aggregate check can hide missing partitions, and quality with no severity/owner/consumer context produces alerts nobody can act on.
  • Reporting success from a job exit code without checking Expected population and Tolerance.
  • Treating this example as complete without replay, rollback, or access boundaries: Orders are complete only if source and warehouse business-key counts reconcile at dt, accurate if amounts match ledger totals within tolerance, valid if currency is ISO 4217, consistent if customer status agrees across marts, and timely within 30 minutes.

Likely interviewer follow-ups

  • How would you prove this contract instead of only checking that the command ran: Agreement of data values with the authoritative real-world or reconciled source fact.
  • What does the recovery plan do when this occurs? A 100% non-null table can still be inaccurate or stale, one aggregate check can hide missing partitions, and quality with no severity/owner/consumer context produces alerts nobody can act on.
  • When is Accuracy insufficient for Tolerance, and what does adding Completeness cost in Expected population?
Interview tip: Lead with the data path and failure boundary: Data quality is measured as accuracy to a trusted fact, completeness of required records/fields, consistency across systems, timeliness to an SLO, and validity against allowed schemas and domains. Then make the answer operational: Define each check's dataset grain, trusted source or invariant, threshold, window, owner, and consumer impact; publish measured evidence and quarantine broken partitions rather than only counting failed rows.

Knowledge check

Loading quiz

Put it into practice

Practice related interview Q&A

Apply Data Quality Dimensions (Accuracy, Completeness, Consistency, Timeliness, Validity) with data engineer interview Q&A and hands-on practice.

Open Data Engineer Q&A →Machine Learning Q&A
Previous topic
End-to-End Real-Time CDC → Kafka → Flink → Iceberg Pipeline
Next topic
Automated Data Validation Frameworks (Great Expectations, Soda Core, Pandera)