Data Preparation for ML and AI

An AWS Glue job enriches S3 transaction records with an RDS customer table containing one row per customer ID. Every transaction must remain, even when no customer matches; which operation should the engineer use?

Show the answer

Correct answerC. Left outer join transactions to customers on customer ID

AWhy not this: A full outer join also includes unmatched customers, introducing rows without transactions.

BWhy not this: A cross join pairs every transaction with every customer rather than matching customer IDs.

CWhy this is right: A left outer join preserves all transactions and adds customer attributes where a match exists.

DWhy not this: An inner join discards transactions whose customer IDs have no match.

A left outer join preserves every transaction and supplies null customer attributes when no match exists. A full outer join also introduces customer-only rows, which are not transaction records.