CAB206 · Unit 2: Data warehousing and ETL
Data quality, profiling and governance
8 practice questions
Key points
- Quality: accuracy, completeness, consistency, validity, uniqueness, timeliness
- Profile before you clean
- Empty string is not null in pandas; check both
- Governance = owners, stewards, catalog, lineage, MDM, access control
- Completeness % = non-null / total
Bad data gives bad decisions, so BI invests in data quality and governance.
Dimensions of data quality
- Accuracy: values reflect reality.
- Completeness: required values are present (not null or missing).
- Consistency: the same fact agrees across systems and formats.
- Validity: values follow the allowed format, type or range.
- Uniqueness: no unwanted duplicates.
- Timeliness: data is fresh enough for its use.
Data profiling measures these on real data: null counts, distinct counts, min/max, value patterns, duplicate keys, referential integrity.
Cleaning includes removing duplicates, standardising formats (dates, case, units), handling missing values (drop, impute or flag) and treating outliers. Be careful: in many tools an empty string is not a null, so completeness checks must handle both.
Data governance is the framework of roles, policies and standards for managing data as an asset.
- Data owner / steward: accountable for a domain's definitions and quality.
- Data catalog and glossary: where data is described and discovered.
- Lineage: tracing a figure back through transformations to its sources.
- Master data management (MDM): one trusted record for core entities such as customers and products.
- Access control and privacy: who may see what, including masking of sensitive fields.
Try two questions
Which quality dimension is violated by an age value of -4 or 210?
- Completeness
- Validity
- Uniqueness
- Timeliness
Show the answer
B. These values fall outside the allowed range for a human age, so they fail validity rules.
A column has 1,000 rows and 40 are null. What is its completeness?
- 96%
- 4%
- 40%
- 60%
Show the answer
A. Completeness = (1,000 - 40) / 1,000 = 96%.