Data Operations and Support

An order-line dataset allows repeated order IDs and repeated line numbers, but each order ID–line number pair must identify exactly one record, with neither value null. Which AWS Glue Data Quality rule definition meets these requirements?

Show the answer

Correct answerA. Require each pair to be unique and both values non-null.

AWhy this is right: Composite primary-key validation enforces unique pairs and non-null values without requiring either column to be individually unique.

BWhy not this: Independent uniqueness would reject valid records that reuse an order ID or a line number in different pairs.

CWhy not this: Pair uniqueness alone does not satisfy the explicit requirement that neither component may be null.

DWhy not this: Non-null checks do not prevent duplicate order ID–line number pairs.

A composite primary key requires uniqueness of the column combination and non-null values in its components. Independent uniqueness is too restrictive because each column is allowed to repeat.