Data Preparation for ML and AI

Every order has a non-null customer_id with the expected type, but some IDs do not exist in the customer reference table. Which AWS Glue Data Quality rule type should detect this defect?

Show the answer

Correct answerB. ReferentialIntegrity

AWhy not this: Distinctness does not establish whether customer IDs exist in the reference table.

BWhy this is right: It checks whether order customer IDs match values in the customer reference dataset.

CWhy not this: A customer ID can have the expected data type without identifying an existing customer.

DWhy not this: Non-null customer IDs pass completeness checks even when they identify nonexistent customers.

ReferentialIntegrity checks whether values in a dataset exist in a reference dataset. IsComplete only checks for nulls, so populated but nonexistent customer IDs can pass it.