Question 60
A production Lakeflow pipeline receives ordered insert, update and delete events from operational services. The change record shows Use the full composite natural key in the AUTO CDC `KEYS` clause. The acceptance test concerns: A source has duplicate business keys and the target must distinguish two branches. Which outcome confirms it?
Explanation
Correct Answer
The team used Use the full composite natural key in the AUTO CDC `KEYS` clause to fulfill “A source has duplicate business keys and the target must distinguish two branches.” Observing Updates affect only rows matching the complete business key confirms the intended effect in the resulting workload.
Incorrect Answers
A delete operation produces the expected removal for its key pertains to a different control (Configure AUTO CDC delete handling with the correct `APPLY AS DELETE WHEN` condition) and a different need (Delete events must remove the current SCD1 record according to a source operation field). It cannot establish that Use the full composite natural key in the AUTO CDC `KEYS` clause met the stated goal.
This signal belongs to the adjacent case “Auditors require the prior attribute values and validity intervals when a dimension changes,” whose remedy is Configure AUTO CDC to store SCD Type 2 history. The observed result for the present requirement is Updates affect only rows matching the complete business key.
A late lower-sequence update leaves the newer target state intact pertains to a different control (Use the event sequence column in AUTO CDC `SEQUENCE BY`) and a different need (Events may arrive out of order and must not overwrite a newer record with stale values). It cannot establish that Use the full composite natural key in the AUTO CDC `KEYS` clause met the stated goal.