Data Operations and Support

An engineer is preparing orders in AWS Glue DataBrew and must add a region name from a lookup dataset matched by region code. Every order must remain, including orders without a matching code; which operation should the engineer use?

Show the answer

Correct answerC. Left join orders to the lookup dataset.

AWhy not this: Aggregation summarizes orders rather than enriching each order with a lookup attribute.

BWhy not this: A union appends rows rather than matching records to add region attributes.

CWhy this is right: With orders on the left, a left join retains unmatched orders and adds matching region names.

DWhy not this: An inner join removes orders that have no matching region code in the lookup dataset.

A left join keeps every order and adds lookup attributes where region codes match. An inner join would discard orders whose region codes have no matching lookup record.