When identifying duplicates, how do you decide which record to keep as the master record?

Quick Overview

Asks how to choose the surviving master record when several rows describe the same entity. Tests survivorship rules, field-level merging, deterministic tie-breaking, lineage for audits and unmerges, and the risks of merging records that do not truly match.

When identifying duplicates, how do you decide which record to keep as the master record?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

When identifying duplicates, how do you decide which record to keep as the master record? ```hint Picture a concrete cluster Imagine three copies of one customer, each with a different field missing, stale or malformed, and decide what the surviving record should look like. ``` ```hint Rerun it tomorrow Ask what should happen if the same deduplication job runs again on the same data, or on the same data plus one new duplicate. ``` ### What a Strong Answer Covers - The criteria used to rank duplicate records and how they are ordered against each other - Whether the master is one whole row or is assembled field by field - How ties are broken so every run gives the same result - How lineage is kept so merges can be audited and reversed - What happens to data and systems that referenced the records that lost ### Follow-up Questions - Two sources disagree on a customer's address and both were updated on the same day. How do you resolve it? - How do you keep the master ID stable when a new duplicate arrives next week? - What do you do when a merge turns out to have combined two different people?

Overview: Asks how to choose the surviving master record when several rows describe the same entity. Tests survivorship rules, field-level merging, deterministic tie-breaking, lineage for audits and unmerges, and the risks of merging records that do not truly match.

Nov 25, 2026
mediumData ScientistOtherData Manipulation (SQL/Python)
0
0

When identifying duplicates, how do you decide which record to keep as the master record?

What a Strong Answer Covers Guidance

  • The criteria used to rank duplicate records and how they are ordered against each other
  • Whether the master is one whole row or is assembled field by field
  • How ties are broken so every run gives the same result
  • How lineage is kept so merges can be audited and reversed
  • What happens to data and systems that referenced the records that lost

Follow-up Questions Guidance

  • Two sources disagree on a customer's address and both were updated on the same day. How do you resolve it?
  • How do you keep the master ID stable when a new duplicate arrives next week?
  • What do you do when a merge turns out to have combined two different people?