Data Quality & Testing
Define what good data means for a dataset and enforce it automatically with checks, unit and end-to-end pipeline tests, and quarantine before bad data reaches consumers.
5 objectives 6 steps about 140 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Express quality requirements as measurable checks across completeness, uniqueness, validity, consistency, timeliness and accuracy.
- Implement schema, constraint, referential and distribution checks with a framework (dbt tests, Great Expectations or Soda) at ingestion and after transformation.
- Unit-test transformation logic with fixed input and expected-output fixtures and run all checks in CI.
- Choose a failure policy per check (block, warn or quarantine) and implement write-audit-publish so a bad batch never replaces good published data.
- Test a pipeline end to end against disposable containerized source and target databases with seeded data, assert on its outputs, and smoke-test each deployment before its data is published.
Lesson plan
6 steps, about 140 min · 5 of 5 lessons available so far
- From Quality Dimensions to Concrete Checks Concept · 20 min
- Lab: Declarative Checks on Raw and Modeled Data Lab · 30 min
- Lab: Unit Tests for Transformation Logic Lab · 25 min
- Write-Audit-Publish and Quarantine Patterns Worked example · 25 min
- Lab: End-to-End Pipeline Tests with Disposable Databases Lab · 25 min
- Check: Triage a Failing Quality Suite Knowledge check · 10 questions
Practise it
Add a quality suite to an existing pipeline: at least ten checks covering four quality dimensions, two unit tests for transformation logic, one end-to-end test that runs the pipeline against containerized databases in CI, and a write-audit-publish step that holds back a deliberately corrupted batch while the previous good data stays published.
References
Hard prerequisites
None.
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.