1. University MCA (AI/ML) Semester 2
  2. CAB206
  3. Unit 2

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

Question 1 · Tier 2, Understand

Which quality dimension is violated by an age value of -4 or 210?

  1. Completeness
  2. Validity
  3. Uniqueness
  4. Timeliness
Show the answer

B. These values fall outside the allowed range for a human age, so they fail validity rules.

Question 2 · Tier 2, Understand

A column has 1,000 rows and 40 are null. What is its completeness?

  1. 96%
  2. 4%
  3. 40%
  4. 60%
Show the answer

A. Completeness = (1,000 - 40) / 1,000 = 96%.