A finance director opens the month-end pack and finds a supplier counted twice. A model that scored leads correctly last quarter starts ranking the wrong accounts. A migration goes live and, three weeks later, someone notices that closed contracts have reopened. In each case the data was wrong long before anyone looked at it, and nothing was in place to stop it.
Data quality assurance is the practice of testing data at defined checkpoints, automatically, before anyone relies on it. It sets the rules a dataset must meet, places tests at ingestion, transformation, release and migration, and gives every failure a named owner. Its aim is prevention: bad data is stopped before it reaches a report or a model.
Software teams stopped shipping untested code a long time ago. Every change runs through tests, a failed test blocks the release, and someone is responsible for fixing it. Data quality assurance applies the same discipline to data. The rules are written down, the checks run on their own, and a failure goes to a person rather than into a log nobody reads.
This guide is for the people who own data that others depend on: heads of data, analytics leads, finance systems owners and anyone running a warehouse or a migration. It explains what assurance means, how it differs from quality control, where tests belong, how to choose data quality tooling, who owns what, and how to make the whole practice routine rather than a one-off clean-up.
What data quality assurance means
Data quality assurance is a set of agreed rules, expressed as tests, that run at fixed points in the life of a dataset. Each test checks one thing: that a key is never empty, that an order date is not in the future, that every invoice links to a known supplier, that a table arrived on time. When a test fails, the data is held back or flagged, and the owner is told.
The rules come from the standard dimensions of quality: accuracy, completeness, consistency, timeliness, validity and uniqueness. Our guide to data quality dimensions and how to measure them covers each one in detail. Assurance turns those dimensions from a description into a check that runs every time the data moves.
The idea is well established in the public sector. The UK Statistics Authority publishes a framework for the quality assurance of administrative data, which sets out how analysts gain confidence that data from operational systems is fit for the purpose it will serve. The principle carries directly into commercial work: you decide what the data is for, you state what good looks like for that purpose, and you check it before it is used.
What assurance is not
Assurance is not a cleansing project. Cleaning a dataset once fixes the errors that exist today, and our article on what data cleaning involves explains that work. Assurance is what stops the same errors returning next month. It is also not a tool. Tools run the tests, but the rules, the checkpoints and the ownership are decisions that people make.
Assurance versus quality control
The two terms are often used as if they mean the same thing. They do not. Quality assurance is about prevention: designing the process so that bad data cannot pass a checkpoint. Quality control is about detection: inspecting data that already exists, or output that has already been produced, and finding what is wrong with it.
- Assurance happens before use. Tests run inside the pipeline and block or flag data before a report, a model or a downstream system receives it.
- Control happens during or after use. Monitoring, audits, sample reviews and reconciliations find problems in data that is already live.
- Assurance is built into design. It depends on written rules, data contracts with source teams and validation at the point of entry.
- Control is built into operations. It depends on observability, dashboards and people who investigate when something looks wrong.
You need both. Assurance cannot anticipate every failure, because some problems only appear once data is in use, such as a slow shift in the mix of values or a source system that quietly changes its meaning. Control catches those. What control cannot do is stop the same known error from reaching a report for the tenth time. That is the job of an assurance test written the first time it happened.
Quality control tells you the data was wrong. Quality assurance stops it reaching anyone while it is wrong.
Both sit inside a wider governance model that decides who sets the rules and who is accountable for them. Our guide to data quality governance models and strategy covers that layer.
Where tests belong in a pipeline
A test is only useful if it runs at the right point. Too early and it cannot see the problem. Too late and the bad data has already been used. The cleanest way to place tests is to follow the medallion architecture: raw data lands in bronze, is cleaned and conformed in silver, and is shaped for business use in gold. Each move between layers is a checkpoint.
At ingestion
Ingestion tests check that what arrived is what was promised. They confirm the schema matches, the file or table arrived on time, row counts are within the expected range and key fields are populated. These tests protect you from changes in source systems that nobody announced. They work best when the promise is written down as a data contract between producer and consumer, so a failure points to a specific agreement and a specific team.
During transformation
Transformation tests check the logic you apply. Primary keys stay unique after a join. Every order links to a customer that exists. Status fields hold only accepted values. Currency conversions produce totals that match the source within an agreed tolerance. This is where most business rules live, and where most silent errors are introduced, so it is usually where the largest number of tests sit.
At release
Release tests are the final gate before data reaches gold, the semantic layer and the people who use it. They check the figures the business will see: that revenue for the period reconciles to the ledger, that headcount matches the HR system, that no metric has moved by an implausible amount since yesterday. A failure here should hold the release, so that a dashboard shows yesterday's correct figures rather than today's wrong ones.
Blocking and warning tests
Not every failure should stop a pipeline. Give each test a severity. A blocking test halts the load when it fails, and suits rules where wrong data would cause real harm, such as duplicate payments or broken keys. A warning test lets the data through and alerts the owner, and suits rules where a small deviation is tolerable while someone investigates. Deciding the severity is a business judgement, not a technical one.
Testing data during a migration
A migration is the point where assurance matters most and is most often skipped. Data moves from one structure to another, mappings are rewritten, and the people who understood the old system may not be involved. Without tests, errors arrive in the new platform looking exactly like correct data.
- Profile the source first. Measure null rates, duplicates, value ranges and orphaned records in the old system, so you know which problems you are inheriting and which ones the migration creates.
- Write the mapping rules as tests. Every rule that says a field becomes another field, or a code becomes a new code, should have a test that proves it held for every row.
- Reconcile at several levels. Compare row counts per table, totals for financial and quantity fields, and record-level checks on keys, so a match at the top does not hide mismatches underneath.
- Run old and new side by side. A parallel period, where both systems produce the same reports, shows differences that row checks miss.
- Keep the tests after cutover. The checks you wrote for the migration become the ongoing assurance suite for the new platform.
Our six-stage data migration framework shows where these checks sit in the plan, and the guide to data reconciliation between systems explains how to investigate figures that do not agree. The principle is simple: a migration is finished when the data is proven to match, not when the load job completes.
Choosing data quality tooling
Data quality tooling falls into four broad groups. Most organisations use more than one, because each covers a different part of the job.
- Tests inside the transformation layer. Tools such as dbt let engineers write tests next to the models they check, so tests are versioned and reviewed with the code.
- Open-source validation frameworks. Great Expectations turns assumptions into coded expectations grouped into suites, and Soda uses readable YAML checks that analysts can write as well as engineers.
- Platform-native checks. Cloud platforms now include their own rules engines, such as AWS Glue Data Quality and the expectations built into Databricks pipelines.
- Observability platforms. Tools such as Monte Carlo learn what normal looks like and flag unusual changes. They are closer to quality control than assurance, and they complement written tests rather than replace them.
The criteria that matter
- Where your data lives. A tool that runs natively on your warehouse avoids moving data out to test it.
- Who writes the tests. If business owners need to read and adjust rules, a declarative format suits better than code alone.
- How it runs. Tests should run inside your orchestration, on every load, and be able to stop a pipeline when a blocking test fails.
- Where failures go. Alerts should reach a named owner in the tool they already use, with enough context to act.
- How results are stored. Test results should be written to a table in the warehouse, so you can track quality over time and show an auditor what was checked and when.
- What it costs to run. Compute charges for scanning large tables can grow quickly, so check how the tool samples and schedules.
Choose the tool after you have written the first set of rules, not before. A short list of the rules that matter most, with their checkpoints and owners, tells you which tool fits. Buying a platform first tends to produce many generic checks and few that reflect the business.
Roles and ownership
A test without an owner is a notification nobody acts on. Assurance works when each part of the work has a clear person behind it.
- The data owner is a business lead who decides what good means for a dataset, sets thresholds and decides whether a failure blocks or warns.
- The data steward maintains the definitions and rules, and keeps them current as the business changes.
- The data engineer writes the tests, places them at the right checkpoints and keeps them running.
- The analyst or data consumer uses the data, reports problems the tests missed and suggests new rules.
The difference between a quality assurance role and a data analyst role follows from this. An analyst works with data to answer questions. A person doing quality assurance designs and maintains the checks that make those answers safe to rely on. In smaller teams one person often does both, which is fine as long as the assurance work is scheduled and not squeezed in after the analysis is due.
Every test needs a name next to it, and every name needs the authority to fix the cause.
Ownership also means fixing causes rather than symptoms. If the same test fails every week because a source team enters dates in two formats, the fix is an agreement with that team, not a cleaning step that hides the problem.
Making assurance routine
Assurance only works if it is part of normal delivery. A suite of tests written once and never reviewed decays as quickly as the data it was meant to protect.
- Keep tests in version control, next to the pipeline code, and review them with every change.
- Run the full suite automatically whenever a pipeline or model changes, before it reaches production.
- Make tests part of the definition of done. A new table or report does not ship without them.
- Write a test every time a data incident happens, so the same error cannot pass twice.
- Review failures on a fixed schedule, and retire or adjust tests that fail often without anyone acting.
- Publish the results. A data quality dashboard for engineers, owners and executives shows where quality is improving and where it is not.
Start with one dataset that people depend on, such as the figures in the monthly management pack. Write the ten or so rules that would have caught the last few problems, place them at the right checkpoints and assign owners. When that dataset stops causing surprises, the case for extending assurance to the next one makes itself. This is also how data becomes AI-ready: a model amplifies whatever it sits on, so tested data is a precondition for any AI built on top.
Where this leaves you
Data quality assurance is a decision to treat data like code. You write down what good looks like, you test for it at ingestion, transformation, release and migration, and you give every failure an owner who can fix the cause. Quality control still has its place, catching the problems no rule anticipated, but it cannot replace tests that stop known errors before anyone sees them.
The order matters. Agree the rules and owners first, place the tests second and choose the tooling third. Start with the dataset that causes the most trouble, prove the approach there and extend it from a working example rather than a plan.
Our data consultancy work builds assurance into the data foundation from the start: written rules, tests at each layer and named owners, so your teams have one version of the truth they trust. When the data is moving platform, our data migration service reconciles row by row and supports you past cutover, with the tests left in place. If you are unsure where your own checkpoints should sit, Talk to us and we will tell you honestly what your data needs first, including when that is not us.
Frequently asked questions
What is data quality assurance?
Data quality assurance is the practice of testing data at defined checkpoints, automatically, before anyone relies on it. You write rules based on accuracy, completeness, consistency, timeliness, validity and uniqueness, run them as tests at ingestion, transformation, release and migration, and give every failure a named owner. The aim is prevention, so that bad data is stopped before it reaches a report, a model or another system.
What is the difference between data quality assurance and data quality control?
Data quality assurance is about prevention. It designs tests into the pipeline so that bad data is blocked or flagged before it is used. Data quality control is about detection. It inspects data that is already live, through monitoring, audits and reconciliations, and finds what went wrong. Most organisations need both: assurance stops known errors from recurring, and control catches the problems that no rule anticipated.
How do you quality assure data?
Start by agreeing what the data is for and what good looks like for that purpose. Write those expectations as specific rules, such as unique keys, accepted values and totals that reconcile to source. Place the rules as automated tests at ingestion, during transformation and before release. Give each test a severity, blocking or warning, and a named owner. Store the results, review failures on a schedule and add a new test after every incident.
Why is data quality assurance so important for a business?
Decisions, reports and AI systems are only as reliable as the data underneath them. Without assurance, errors reach a management pack or a model before anyone notices, and the business acts on wrong figures. Assurance stops known problems at a checkpoint, gives someone responsibility for fixing the cause and produces a record of what was checked. That record also helps when an auditor or regulator asks how a figure was produced.
What is the difference between quality assurance and a data analyst?
A data analyst works with data to answer business questions and produce reports. A person doing data quality assurance designs and maintains the tests that make those answers safe to rely on: the rules, the checkpoints and the alerts when something fails. Analysts are often the first to spot a problem the tests missed, so the two roles work closely. In smaller teams one person may do both.