An AWS Glue job combines S3 orders with RDS customer history containing nonoverlapping effective-date ranges for each customer. Every order must retain the customer's region at purchase time, including orders with no matching history; which integration is appropriate?
Show the answer
Correct answerB. Left join on customer ID and the order timestamp within the history's effective range.
AWhy not this: The earliest region may be historically wrong, and a full outer join also introduces unmatched history records.
BWhy this is right: The left join preserves all orders, and the time condition selects the historically valid customer record.
CWhy not this: The most recent customer region may differ from the region valid when an older order was placed.
DWhy not this: An inner join removes orders that have no matching customer history.
A left join preserves unmatched orders, while the effective-date condition selects the region valid at purchase time. An inner temporal join finds the historical region but drops orders without matching history.