Quiz 6 Question 3 of 20

A branch's ticketing point-of-sale system occasionally re-sends the same transaction record after a network retry, so a Lakehouse table built from a PySpark notebook ends up with exact duplicate rows sharing the same transaction ID. Which PySpark approach removes those duplicates before the data is written downstream?

Select an answer to reveal the explanation.

Motivation