Skip to content
Tech Interview Prep
Technical interview guide

Master Data Management

Maintaining one authoritative version of core business entities (customers, products) across many systems.

Minutes to read
4
Practice MCQs
25
Interview Q&A
25
Edition
v5
Editorial status
Reviewed

Scope: IBM InfoSphere and watsonx.data MDM guidance, Microsoft Purview MDM guidance, W3C PROV-O, EU GDPR, and NIST Privacy Framework current 2026-08-31.

Interview Q&A

Treat each question like a live interview question: answer out loud first (structure, assumptions, tradeoffs), then open the model answer to spot gaps and rehearse a tighter follow-up.

Curated: · Written: · Reviewed:

25 questions

Q&A-2

Choose between registry, centralized, and coexistence MDM.

Answer

The three styles differ on one axis: who owns the write for an attribute. Registry keeps each source authoritative and the hub holds only an index; centralized moves authority into the hub; coexistence keeps both the hub and the sources writable and persists a synchronized composite. So the decision is per attribute, not per program. I'll assume a customer domain with three sources (CRM, billing, loyalty) since that's the shape that forces the choice.

Mechanism.

Registry. The hub stores match/merge keys and a cross-reference table mapping each source's local ID to a global ID. It stores no mastered attributes. A read of the composite entity fans out to every source at query time and stitches the result. Writes never touch the hub: they go to the owning source. Cheapest to stand up, and the only style that doesn't require changing source write paths.

Centralized. The hub owns the golden record. Sources publish changes to the hub (event or batch), the hub validates, applies survivorship rules, and commits. Consumers read the hub. In the transactional variant the hub also accepts writes and distributes them back; in the consolidation variant it's read-only and sources keep writing locally.

Coexistence. The hub owns the golden record and each source keeps its own writable copy. Changes flow source → hub → other sources, bidirectionally. Pick this when a system genuinely can't give up local writes: an offline-capable field app, or a system of record you don't control.

Worked comparison (figures hypothetical, for the three-source customer domain):

RegistryCentralizedCoexistence
Golden recordnone; virtualhubhub + source copies
Composite read p99~180 ms (3 sources × ~50 ms + stitch)~15 ms (one hub lookup)~15 ms hub, stale up to propagation lag
Write pathsource onlyhub (or source→hub)source and hub
Conflict handlingnone: last source wins per attributesurvivorship rules in hubsurvivorship + loop suppression
Source outagepartial viewunaffectedunaffected for reads, drift on writes

Trace: customer changes billing address in CRM. Registry: CRM commits locally; the next composite read pulls the new address from CRM, the tax ID from billing, the tier from loyalty; if billing is down the view returns partial and you need a defined policy for that. Centralized: CRM emits an event, the hub validates and commits, consumers see it after hub commit. One write path, one place to enforce uniqueness. Coexistence: CRM commits locally and publishes; the hub masters and republishes to billing and loyalty; the hub must not echo back to CRM or you get a loop.

Failure modes. Registry: N+1 fan-out means one slow source drags the whole view, and with no central enforcement duplicate customers persist. Detect with match-rate and duplicate-count reports. Centralized: the hub is a write bottleneck and single point of failure, and any source that keeps writing locally drifts. Detect with a nightly reconciliation diff count. Coexistence: update loops (A→hub→B→hub→A) and concurrent conflicting writes in two systems. Detect with loop counters and version-vector conflict logs.

Decision. Put compliance-critical, single-valued attributes (tax ID, legal name) in centralized. Leave attributes where one system is clearly authoritative and stakes are low (loyalty tier) in registry. Use coexistence only where a source must stay writable, and budget for the loop suppression and reconciliation it costs. Then specify conflict resolution, propagation-lag SLO, outage mode, and exit path before you build.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-6

Define survivorship for customer attributes.

Answer

Core answer. Survivorship is the per-attribute rule that decides which source's value becomes the golden record value for a customer, and what is kept alongside it. It is not one rule for the whole record: billing_phone, preferred_locale, tax_id and marketing_consent have different authorities, so you define survivorship once per attribute and re-evaluate it on every recompute.

Assumptions I'd state up front: every source is identified and ranked; each incoming value carries source, effective time and a verification state; and the golden record must be reproducible from the same inputs, so ties cannot be left to chance.

Mechanism. Evaluate a fixed rule order and stop at the first rule that separates the candidates:

  1. Verified beats unverified.
  2. Source authority for that attribute.
  3. Most recent effective time.
  4. Deterministic tiebreak (source id, then value hash).

Worked example, hypothetical data for one customer:

attributesourcevalueverifiedeffective_fromauthority rank
billing_phoneBilling+1-415-555-0199yes (SMS OTP)2024-06-111
billing_phoneCRM+1-415-555-0142no2024-03-022
billing_phoneSupport+1-415-555-0142no2024-07-193
preferred_localeWeb profileen-USno2024-08-011
preferred_localeCRMen-GBno2024-09-142

Trace: billing_phone resolves at rule 1. Billing is verified, so it wins even though Support's value is newer. preferred_locale has nothing verified, so rule 2 applies: the self-service profile is authoritative for locale, so en-US wins even though CRM's en-GB is newer. Both outcomes are explainable from the table alone, which is the point: a steward can see why a value won without reading code.

Trade-offs. Source-priority is stable and easy to explain but wrong when the authoritative source is stale. Verified-first is accurate but needs verification TTLs and coverage, or an old OTP outranks a fresh correction. Latest-wins is cheap and flips on noise. Don't apply one global rule across all attributes; consent and tax identifiers need their own authority and retention rules.

Failure modes.

  • Stale-but-newer feed. A nightly batch re-stamps effective_from on unchanged rows, so an abandoned phone number looks fresh. Detect by comparing value hash against effective time and alerting when time advances without a value change. Cost: the golden record flips back to a number the customer no longer answers.
  • Verification that never expires. A 2024 OTP still outranks a 2026 correction. Detect by counting winning values whose verification is older than the attribute's TTL (say 180 days for phone). Cost: corrections silently lose.
  • Non-deterministic tie. Two sources share rank and timestamp, so recompute produces different golden records. Detect by running recompute twice and diffing outputs; any diff is a tie bug. Cost: the audit trail cannot be reproduced.
  • Orphaned provenance. A source is dropped from the ranking but the golden record still cites it. Detect with a provenance-to-ranking join that must return zero rows.

Close. Define the rule order per attribute, keep the losing values and their provenance, expose the winning reason and freshness on the record, and route genuine ambiguity to stewardship rather than letting a tiebreak decide silently.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-3

Design an entity-resolution pipeline.

Answer

Core answer (first 90 seconds)

Three things decide the design before any code: what a record represents, the cost asymmetry between a false merge and a false split, and the scale. False merges are usually the expensive direction: merging two customers corrupts billing, entitlements and history, and unwinding it means re-splitting downstream state. False splits are cheaper: a duplicate is noise, a wrong merge is an incident. So I bias the auto-match band toward precision and route the ambiguous middle to human review.

The pipeline is normalize → block → compare → score → cluster → persist → evaluate.

Normalize. NFKC Unicode normalization, casefold, trim. Phones to E.164 with libphonenumber (region-aware). Addresses with libpostal. Names: don't over-normalize. "Bob"/"Robert" is a nickname mapping, not a normalization, and applying it blindly merges distinct people. Keep the raw value next to the normalized one.

Block. Pairwise comparison is O(n²): 10M records is ~5×10^13 pairs. Blocking cuts the candidate set. Union several recall-oriented keys, because any single key misses matches: sorted-neighborhood on name, a Double Metaphone phonetic key, and zip+last-name. Average block size 100 on 10M records yields ~5×10^8 candidate pairs: five orders of magnitude down. Blocking recall is the ceiling for the whole pipeline; measure it on labeled pairs before tuning anything downstream.

Compare and score. Fellegi-Sunter: per feature, m = P(agree | match), u = P(agree | non-match), weight = log2(m/u). Sum the weights and add the prior log-odds.

featuremuweight (bits)
last name agrees0.900.02log2(45) ≈ 5.49
DOB exact0.950.001log2(950) ≈ 9.89
zip agrees0.700.10log2(7) ≈ 2.81

Sum ≈ 18.2 bits. If 1 in 10,000 pairs is a true match, prior log-odds = log2(1/9999) ≈ −13.3. Posterior ≈ 4.9 bits → odds ≈ 30:1 → P(match) ≈ 0.97. Set the auto-match band where expected cost is minimized: cost = FP × cost_false_merge + FN × cost_false_split, using labeled pairs to estimate FP and FN rates at each threshold.

Cluster. Transitive closure bridges. A–B scores 0.98, B–C scores 0.98, A–C scores 0.40. Closure merges all three; if A and C are a father and son at the same address, the cluster is wrong and now poisons every downstream join. Guard: require a minimum edge weight for a merge, cap cluster size, and alert on the cluster-size distribution. A 50-record cluster from a source that holds one record per person is the signal.

Persist and evaluate. Store pairwise evidence, model version and thresholds so any decision is reproducible. Track pair-level precision/recall and B-cubed cluster precision/recall, sliced by source and population, after every model or rule change.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-5

Set automatic match and clerical-review thresholds.

Answer

What a strong candidate says first

Two cutoffs on a calibrated match probability p: t_auto (p ≥ t_auto → merge, no human) and t_reject (p < t_reject → no merge, no human). Everything between goes to clerical review. Derive them from a cost-weighted decision rule, then clamp to review capacity: capacity, not cost, is what usually fixes the final numbers.

State three assumptions: the scorer emits a calibrated probability, not a raw score; you have a few thousand labelled pairs from current data; per-pair costs are known to an order of magnitude.

The decision rule

For a pair with posterior p, the three actions cost:

actionexpected cost
auto-match(1 − p) · c_FP
auto-nonmatchp · c_FN
reviewc_review

Review only when it beats both, which gives the band edges directly:

t_reject = c_review / c_FN, t_auto = 1 − c_review / c_FP.

With c_FN = $40 (duplicate outreach, split history), c_FP = $400 (wrong billing, privacy exposure, unwind), c_review = $2.50 (3 min at $50/h loaded): t_reject = 0.0625, t_auto = 0.99375. That band is huge: the cost-optimal answer is "review almost everything," which nobody can staff. The rule gives the shape; capacity sets the cut.

Worked example (hypothetical: 12,000 candidate pairs/day after blocking, 3,000 true matches)

| band | pairs | true | precision | cumulative recall | | ≥0.99 | 1,000 | 990 | 0.990 | 0.33 | | 0.95–0.99 | 900 | 855 | 0.950 | 0.62 | | 0.85–0.95 | 1,100 | 660 | 0.600 | 0.84 | | 0.60–0.85 | 2,000 | 400 | 0.200 | 0.97 | | 0.20–0.60 | 3,000 | 90 | 0.030 | 1.00 | | <0.20 | 4,000 | 5 | 0.001 | 1.00 |

Capacity: 2 analysts × 7 productive hours = 840 min/day ÷ 2.5 min = 336 pairs. The cost-optimal band is 8,000 pairs ≈ 333 analyst-hours/day: unaffordable. So hold t_auto at 0.99 (1,000 pairs, 10 false merges = $4,000/day) and spend all 336 slots on the top of the 0.95–0.99 band, which puts t_reject near 0.97. Everything below auto-nonmatches, missing ~1,690 true matches = $67,600/day. Total ≈ $72,400/day.

The lever that pays is capacity, not threshold tuning. Adding five analysts (7 total, 2,940 min → 1,176 pairs) covers the whole 0.85–0.95 band for ~$2,300/day of labour. That band holds 660 true matches ($26,400 if auto-nonmatched) and 440 non-matches ($176,000 if auto-matched). Review wins against either alternative by an order of magnitude.

What moves the thresholds

Matcher quality first: if the score distributions of true and false pairs overlap, no threshold separates them and you are just choosing which error to eat. Blocking volume second: halving candidate pairs halves review demand without touching the cut. Error asymmetry third: sanctions or PEP screening has c_FP ≫ c_FN, so t_auto → 1 and every candidate above a low floor goes to a human. Marketing dedup has c_FN ≫ c_FP, so you auto-match aggressively and accept duplicates.

When not to auto-match at all

High-harm identities (sanctions/PEP, KYC, accounts holding funds, minors) get t_auto = 1.0 by policy regardless of the cost math. Same for any source or locale the scorer has not been validated on: hold it in review until you have labels.

Failure modes and detection

  • Score drift: a new feed or changed address format shifts the distribution. Watch the daily share of pairs per band and the PSI of the score distribution against the calibration sample; alert when review-band volume moves >20% week over week.
  • Auto-match precision decay: adjudicate 200 sampled auto-matches blind each week. If precision falls below the assumed 0.99, your false-merge cost is 10× the model. The queue will not tell you this.
  • Review starvation: when the queue backs up, time-per-pair drops and review precision falls. Track it; a >30% drop means review is no longer the control you assumed.
  • Feedback contamination: if analyst overrides train the model without holding out the audit sample, the model learns to agree with itself.

Governance

Version thresholds as config alongside the calibration-sample hash, the cost inputs and the resulting confusion matrix. Ship changes through a replay over the last 30 days of pairs showing the delta in auto-match volume, review volume and expected error cost; roll back if review volume exceeds capacity or sampled precision drops.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-4

Evaluate whether a matching model is production-ready.

Answer

What a strong candidate says first (60–120s). "Production-ready" isn't a model metric: it's whether the error profile at the operating point you'll actually run is acceptable, and whether the review queue can absorb the uncertain band. So I'd clarify three things before touching a metric: what the entity is (customer, patient, household), the cost asymmetry between a false join and a false split, and daily volume. Then I'd gate on four things: a labeled set that mirrors production, band-level precision/recall, a cost-and-capacity model, and drift monitoring with a rollback path. A model that scores 0.98 AUC on random pairs tells you nothing, because random pairs are almost all non-matches.

1. Build the labeled set from blocking output, not at random. Sample pairs stratified by score band and by source, language, and sparsity stratum, then adjudicate with two independent labelers and a third for disagreements. Size it to the claim: the rule of three says zero observed errors in n trials bounds the true error rate at roughly 3/n at 95% confidence. To defend a 1% precision floor you need n ≥ 300 confirmed matches per stratum, so a 0.99 claim across five strata is ~1,500 adjudicated pairs, not 200.

2. Report by band, not aggregate. A Fellegi-Sunter model (Splink is the common open-source implementation; Dedupe and Zingg are alternatives) gives you a score, and you set two thresholds. Illustrative figures for a 2M-record/day pipeline:

BandScoreVolume/dayPrecisionAction
auto-match≥ 0.951.9M0.995merge silently
review0.60–0.95100k0.88human queue
non-match< 0.60——drop

Overall recall here is ~0.93. Aggregate accuracy would read 0.999 and hide the 100k uncertain pairs entirely.

3. Do the capacity arithmetic before you ship. 100k review pairs/day at 30 seconds each is ~833 reviewer-hours/day: infeasible. That number, not the AUC, is what forces you to either raise the auto-match threshold, improve blocking, or accept the false-join cost. Compare against a deterministic rules baseline on the same labeled set: if a reliable unique ID covers >90% of records, rules win on cost and explainability; below that, recall collapses on typos and transliteration and probabilistic matching earns its complexity.

4. Failure modes, with detection.

  • Bridge records. A shared attribute merges clusters transitively: A={J. Smith, 555-0101}, B={John Smith, 555-0101}, C={Jane Smith, 555-0101}. AB (0.97) and BC (0.96) clear the threshold; A~C (0.71) does not, yet all three collapse into one cluster. Detect by alerting when any single attribute value appears in more than one auto-match edge, or when cluster size exceeds the p99.9 of the historical distribution.
  • Drift. New locale, schema change, or recycled phone numbers shift the score distribution. Track match rate per source per week and alert on a >10% week-over-week move.
  • Blocking recall loss. Blocking keys silently drop true matches. Detect by sampling pairs from a second, independent blocking pass and measuring the overlap.

Ship gate. Named threshold owners, a canary on 1% of traffic, dashboards on band volumes and cluster-size distribution, and a tested rollback. Without those, the model is a demo.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-7

Create a data-stewardship workflow for suspected duplicates.

Answer

What I'd say first

Before designing anything, pin down what "duplicate" means for this entity: there is no universal definition of identity. For a customer it's "same real-world party"; for a product it's "same SKU"; for a person in a regulated system it may be statutory. I'd assume records arrive from multiple sources with different authority, matching is probabilistic, and merges are only reversible if we keep the pre-merge state.

The workflow

  1. Score. Run a probabilistic matcher: Fellegi–Sunter style. Block on cheap keys (normalized email, phone, tax ID), then build a comparison vector over name, address, DOB with per-field m and u probabilities producing a match weight. Splink is a common open-source implementation; commercial MDM tools do the same. The output is a score, not a boolean.

  2. Band. Convert score to a decision band. Example thresholds (hypothetical, tune per entity): ≥0.95 auto-merge, 0.70–0.95 human review, <0.70 auto-nonmatch. Band width is the whole design: too wide and stewards drown, too narrow and you auto-merge wrong.

  3. Queue. Order the review band by expected harm × confidence × deadline. Harm = downstream consequence (billing, credit, safety). Confidence = distance from the band edge. Deadline = regulatory or SLA clock.

  4. Decide. The steward sees normalized and original values side by side, source authority, existing relationships, and downstream consumers. Actions: match, non-match, defer, escalate, merge, split. Each with a reason code. High-risk merges (regulated entity, financial impact above a threshold) need a second approver.

  5. Propagate. Write the surviving ID, keep before/after plus the model version and score that produced the candidate, then notify consumers. A reconciliation job compares downstream row counts and key coverage.

Artefacts

bandscoredaily volumehandling
auto-merge≥0.954,000straight-through, audited sample
review0.70–0.95600steward queue
auto-nonmatch<0.7040,000logged, no action

Capacity arithmetic: 600 cases/day at 90 seconds each = 15 steward-hours/day, about 2 FTE. If precision drops and the review band doubles to 1,200, you need 4 FTE, or you widen auto-merge and accept more false merges.

Worked trace: two records share a phone; names "Jon Smith" / "Jonathan Smith"; DOB off by one day. Blocking key hits on phone. The comparison vector gives high weight on phone and name, moderate on DOB → score 0.88 → review band. Steward sees both sources, source A is the CRM of record, merges into A's ID with reason code DUPLICATE_CONFIRMED; no second approver, below the financial threshold.

Trade-offs and when not to use it

Auto-merge is cheap and fast but effectively irreversible; human review is accurate but doesn't scale. If the entity has statutory identity (a legal person, a regulated account) don't auto-merge at all: route everything to review, because a wrong merge is a compliance event, not a data-quality event. If volume is tiny (under ~100/day), skip the banding machinery and review everything.

Failure modes

  • Rubber-stamping: stewards approve at 99% because the queue is long. Detect by sampling 5% of approvals and measuring overturn rate; if overturns exceed ~2%, the band is too wide or the queue too deep.
  • Merge cascade: one wrong merge propagates through downstream joins. Detect via the reconciliation job on row counts and orphaned foreign keys.
  • Conflicting edits: two stewards act on the same case. Prevent with optimistic concurrency: a version stamp on the case, rejecting stale writes.
  • Sensitive exposure: stewards see PII they don't need. Redact fields not used in the decision and log every reveal.

Metrics: backlog size, case aging (p95 time in queue), overturn rate on the audit sample, and downstream error rate attributable to merges, not clicks.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-8

Recover from a false merge that reached downstream systems.

Answer

Clarify first. Two things decide the whole recovery: is this a false merge (two real entities joined into one cluster) or a false split, and which published entity version did each downstream consumer actually read? A false merge is the worse case, because the cluster ID is the join key everywhere downstream: the moment it is published, every table keyed on that ID attributes one entity's data to the other.

Assumptions I'd state: source records are immutable and retained; the entity store keeps versioned cluster membership; publication is an append-only event log with per-consumer offsets; consumers are idempotent by (entity ID, version).

Answer. Freeze publication for the affected cluster only, not the pipeline. Pin the bad version, compute the split from source records, publish a new version with a deterministic old-to-new ID mapping, then drive every consumer to reconcile against it.

Why it propagates. Say cluster C held record A, then at v41 absorbed record B. Downstream, C is a single key. A one-row-per-entity table now holds the union of A's and B's attributes: B's phone number sitting on A's row. A one-row-per-member table doubles C's row count. Analytics counts inflate, billing charges A for B's usage, and any export of C leaks B's PII to whoever holds A. Nothing downstream can detect this on its own; the merge is invisible in the published shape.

Steps, with the reason each works:

  1. Freeze C's publication (pause the topic partition, or flip the publish flag for that cluster). Other clusters keep flowing, so the freshness cost is bounded to one entity.
  2. Blast radius from lineage: the version history gives the merge version (v41) and the absorbed records; consumer offsets tell you who read v41 or later. That set, not the whole batch, is what you reconcile.
  3. Snapshot the bad version and its source records before touching anything. You need it for audit and, if two people's data merged, for a disclosure assessment.
  4. Split: restore A's cluster and give B a new ID, or issue two fresh IDs. Recompute composites from source records rather than subtracting B's contribution: a fraud score or segment membership triggered by the merge is not linear, so subtraction leaves residue.
  5. Publish versioned correction events carrying the mapping, and tombstone v41 so a late or lagging consumer cannot resurrect it.
  6. Reconcile: invalidate caches keyed on C, recompute affected analytics partitions, adjust billing, correct or recall exports.

The real trade-off is which side keeps the old cluster ID:

choicecostwhen it wins
Reuse C for A (larger/older entity)B's consumers must remap 1-to-2; A's consumers see no changemost consumers key on C and cannot handle a 1-to-2 split cheaply
Issue two fresh IDsevery consumer remaps; cleanest historyfew consumers, or the ID is externally visible and must not silently change meaning

Failure modes and detection:

  • A consumer cached v41 and never re-reads: its entity count or checksum diverges from the store. Alert on the divergence; do not assume the event landed.
  • A non-idempotent consumer double-applies the correction: duplicate-key counts spike.
  • Reusing C for the wrong side leaves B's data attributed to A, silently. Sample the split entity's members against source records.
  • Recompute cost: a cluster with 10k members and three years of events can take hours. Scope it before promising an SLA.

Root cause closes the loop: threshold too loose, blocking key too coarse, a bad source feed, or a reviewer who approved it. Fix that before re-enabling automatic merges, or you will repeat it.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-17

Handle reused or recycled source identifiers.

Answer

First I'd pin down what "identifier" means here, because the answer changes with it. If the source key is a surrogate the source controls and never reissues (a UUID, a Snowflake ID) reuse isn't a problem and I link on it directly. The problem is keys that get recycled: phone numbers, employee IDs after a rehire, device advertising IDs after a user reset, account numbers after closure, or the same key appearing in a different tenant. So my first question is whether the source guarantees uniqueness forever or only uniqueness among currently-active records. Most sources guarantee the latter, and that's the assumption I'd state out loud before designing anything.

Assuming recycling, I treat a source key as a time-bounded claim, not as identity. The stored fact is (source, key, valid_from, valid_to, observed_at), and linking becomes a point-in-time query: which entity held this key at the moment the event happened? A key match alone never merges two records: it merges only when the validity intervals overlap.

Why that matters: reuse breaks the assumption that key → entity is a function. If you keep a single current mapping, a recycled key silently rewrites history. The new holder's events get attributed to the old member, and the old member's history gets contaminated. That's a false merge, and it's the expensive direction: it leaks one person's data into another's profile, which is a privacy incident, not just a data-quality bug. The mirror failure is a false split: you refuse to link a re-observed key and create a duplicate member.

Bi-temporal storage fixes the merge by keeping two time axes: valid time, when the key actually belonged to the entity in the world, and system time, when we recorded that belief. You can then answer "who held +1-555-0100 on 2024-03-02?" and "what did we believe on 2024-03-05?" independently. When a source tells you a key was released, you close the interval rather than deleting the row.

observed_atsourcekeyeventnaive linkbi-temporal link
2024-01-10crmemp-4471hiremember Amember A (valid 01-10 → 03-01)
2024-03-01crmemp-4471terminationmember Aclose A's interval at 03-01
2024-03-20crmemp-4471hiremember A: wrongnew member B (valid 03-20 →)

Walk the third row. Naive: emp-4471 already maps to A, so the hire attaches to A. A now has two hire events and B is invisible. Bi-temporal: the lookup asks for the holder at 2024-03-20; A's interval closed on 03-01, so there's no open claim and the linker creates B. If the source later sends a late termination for A after B's hire, the system-time axis lets you correct A's interval without touching B.

On trade-offs, I'd choose per source, not globally. Aggressive linking, merge on key match, is right when the source guarantees non-reuse and you're optimizing for recall; it's cheap and keeps one profile per person. Conservative linking: key match plus an overlapping validity window plus a second corroborating signal such as email, national ID or device fingerprint: is right when reuse is possible and a false merge is high-harm, say regulated data or anything that grants access. The cost is duplicates and a manual review queue. Overlap alone isn't sufficient corroboration: two records can share a key and a common name and still be different people.

Concrete failure modes and how I'd catch them. A stale event revives a closed interval when an out-of-order event with an old timestamp arrives after closure: compare event time against interval bounds, reject or route to review, and alert on the rate of out-of-window events. Tenant migration collides keys across tenants: namespace the key with tenant and enforce uniqueness on (tenant, source, key). Retention is the third: you must not keep retired identifiers forever, so keep the linkage that A held key K but drop or hash the raw key after the retention window, which preserves history without exposing a retired identity.

The test set I'd build is exactly those cases: account close and reopen, number recycling, source restore from backup replaying old events, and tenant migration. Each is a scenario where the naive current-mapping design produces a wrong merge.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-9

Onboard a new source into an existing MDM domain.

Answer

Three things change the whole plan, so I'd pin them down in the first five minutes: what decision this source's data drives, who owns the record at the source, and whether I'm allowed to write back. I'll assume a read-only feed, no writeback, and that the domain keeps its existing golden-record model. If writeback is on the table, I'd push for a registry pattern instead: the domain stores cross-references and match scores, the source stays system of record, consumers federate reads. Lower risk, trivially reversible, but every consumer now has to join.

Profile before you match. The point of profiling isn't a checklist, it's finding the thing that will silently corrupt the domain. Grain first: is one row a person, a person-account pair, or an event? If the source is event-grained and the domain is party-grained, you need a collapse rule and you need to decide which event wins. Then keys: is the source key stable, or is it reused after a merge in the source system? Reuse is the one that bites, because it looks fine on day one and produces wrong merges in month three. Then nulls and locale: a date column that's MM/DD/YYYY for US rows and DD/MM/YYYY for the rest will coerce cleanly and be wrong.

A shadow match run gives you the check. Load the source into staging, run it through the existing matcher without publishing, and look for source keys that landed in more than one cluster:

SQL
SELECT source_system, source_key, COUNT(DISTINCT cluster_id) AS clusters
FROM shadow.match_assignments
GROUP BY source_system, source_key
HAVING COUNT(DISTINCT cluster_id) > 1;

On a four-row sample ((crm, C-1, 100), (crm, C-1, 101), (crm, C-2, 100), (billing, B-9, 101)) the grouping gives (crm, C-1) two distinct clusters, (crm, C-2) one, (billing, B-9) one. One row comes back: crm, C-1, 2. That's a reused key. The same sample also shows cluster 100 holding two CRM keys, which a companion query grouped by cluster_id surfaces: that's an over-merge, and it's the more expensive of the two.

Thresholds are a trade-off, not a default. Probabilistic matching beats deterministic rules on transliteration and typos, but it hands you a score you have to cut. A workable starting shape, tuned against labelled pairs from your own data:

BandActionWhy
≥ 0.92auto-mergehigh precision, cheap
0.75–0.92steward reviewwhere the errors live
< 0.75auto-rejectkeeps the queue finite

Widen the review band and you buy precision with steward time. Do the arithmetic before go-live: 4.2M source records, 3% landing in the band, is 126,000 pairs. At 20 seconds each that's 700 steward-hours, roughly 117 steward-days at six productive hours a day. That's the number that decides whether you tune the matcher or hire. Deterministic rules are the alternative (explainable, no queue) but they miss Katherine/Kathy and anything non-Latin, so they under-merge quietly.

Cutover and the failure modes. Canary a slice of the source, reconcile counts per consumer, then widen. The failures I watch for: over-merge, detected by cluster size distribution and by clusters spanning unrelated surnames or birth dates; under-merge, detected as duplicate rate on a labelled holdout; survivorship flip-flop, where the golden value oscillates between runs. Count attribute changes per entity per run and alert when it climbs; and silent coercion, caught by diffing null-rate and format histograms between staging and source. Keep the disable path reversible: a flag that stops publication without deleting the cross-references, so you can back out in one deploy.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-16

Integrate master data after an acquisition.

Answer

Assume both companies run separate MDM systems: one on Informatica, one on a homegrown Postgres. Customer IDs are internal and don't overlap. Legal has flagged that EU customer data can't leave the EU without standard contractual clauses. The goal is a single golden record per real-world entity without breaking downstream systems.

I'd start with a 90-day governance sprint. Stand up a joint council with authority to decide entity grains and survivorship. Profile both systems: count records, measure overlap, list identifiers. For customer, the grain is party, not account. Identifiers: internal IDs, tax ID, DUNS, email, phone. Build a crosswalk table mapping source IDs to a new golden ID.

Then run probabilistic matching in shadow mode. Use a tool like Splink or a Spark job with Jaro-Winkler on name and address, exact on tax ID. Label a sample of 1,000 pairs to tune thresholds. For customer, set auto-merge at match probability >0.95, review 0.8–0.95, reject below 0.8. Measure false positive rate on the labelled set. If it's above 1%, tighten thresholds.

Why shadow mode? A false merge in production can combine two customers' credit limits, causing a $50k order to ship to the wrong address. In shadow, you measure the blast radius: for each false merge, how many orders, invoices, and support tickets are affected? Suppose 0.5% of 3.5M customer records are false merges: that's 17,500 customers. If each has 2 orders on average, that's 35,000 orders to untangle. Manual review at 100 records/hour takes 175 hours, about 4.5 weeks for one reviewer. So you need a review queue and a team.

Migrate in waves by domain: first product (lower risk), then supplier, then customer. Each wave: freeze source, run matching, load to golden record, reconcile row counts and key business metrics (e.g., total open orders). Keep the old system read-only for 30 days for rollback.

Trade-offs: Deterministic matching (exact tax ID) is fast and precise but misses records with missing or dirty IDs. Probabilistic matching catches more but needs tuning. Survivorship: for address, use most recent; for credit limit, use acquiring company's system as authoritative. When not to merge: if two entities are legally separate (e.g., different tax IDs in different countries), keep them as separate parties with a 'related party' link. Don't force a merge just because names are similar.

Failure modes: False splits. Same customer appears twice. Detect by monitoring duplicate orders from same email. False merges: detect via customer complaints or sudden changes in order patterns. Data loss: reconciliation checksums on row counts and key fields. Broken foreign keys: run referential integrity checks after each wave.

Here's a comparison of matching strategies:

StrategyWhen to useFalse positive riskCost
Deterministic (exact tax ID)High-quality IDsLowLow
Probabilistic (name+address)Missing IDsMediumMedium (tuning)
Manual reviewAmbiguous matchesVery lowHigh (labor)

Worked example: Match A: 'John Smith, 123 Main St, 123-45-6789' and B: 'Jon Smith, 123 Main Street, 123-45-6789'. Exact tax ID matches, so deterministic merge. If tax ID missing, probabilistic: name similarity 0.9, address similarity 0.95, combined score 0.92. Auto-merge if threshold 0.9.

Reconciliation query after each wave:

SQL
SELECT (SELECT COUNT(*) FROM source_customer) AS source_count,
       (SELECT COUNT(*) FROM golden_customer) AS golden_count,
       (SELECT COUNT(*) FROM golden_customer WHERE source_id IS NULL) AS orphan_count;

If orphan_count > 0, stop and fix.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-13

Design householding without conflating people.

Answer

Core (first 90 seconds). Assume person is the system of record and a household is a derived grouping built for one stated purpose: marketing suppression, insurance rating, KYC. The rule that decides the design: household is a separate entity, membership is a dated edge, and no person attribute is ever written from a household. A person belongs to zero, one, or several households at once (home, work address, care facility), so a household_id column on person is wrong by construction: it forces one-to-one and silently overwrites on every move.

SQL
CREATE TABLE person (
  person_id  BIGINT PRIMARY KEY,
  legal_name TEXT NOT NULL
  -- no household_id here, ever
);

CREATE TABLE household (
  household_id BIGINT PRIMARY KEY,
  purpose      TEXT NOT NULL,   -- 'marketing_suppression', 'insurance_rating'
  status       TEXT NOT NULL    -- 'active', 'dissolved'
);

CREATE TABLE household_membership (
  household_id BIGINT NOT NULL REFERENCES household,
  person_id    BIGINT NOT NULL REFERENCES person,
  role         TEXT NOT NULL,   -- 'policyholder','dependent','roommate'
  valid_from   DATE NOT NULL,
  valid_to     DATE,            -- NULL = current
  source       TEXT NOT NULL,   -- 'policy_app','address_match','manual_review'
  confidence   NUMERIC(3,2) NOT NULL,
  PRIMARY KEY (household_id, person_id, valid_from)
);

Worked trace. Two records: John A. Smith and J. Smith, both at 123 Main St Apt 4. Address match alone scores 0.40; Smith is a top-10 US surname, so surname adds ~0.05. No shared policy, payment instrument, or dependent DOB. Total 0.45: below the 0.60 auto-link floor, so they stay two persons with no membership edge. Contrast: same address + shared auto policy number + a dependent whose DOB matches the second record → 0.95, which links with role='dependent', source='policy_app'. The threshold is a policy knob: 0.60 for suppression (a false merge costs one suppressed mailer), 0.95 for credit or KYC (a false merge attributes one person's debt to another).

Trade-offs.

ApproachConflation riskCostUse when
household_id on personHigh: one-to-one, overwrites on moveCheapestSingle-purpose mailing list only
Household entity + dated membership edgesLowJoin cost, needs stewardshipDefault for multi-purpose
No householdingNoneLose household-level rating/suppressionHousehold value is marginal

The deciding criterion is the cost of a false merge versus a false split, and it differs per purpose, which is why purpose sits on the household, not on the person.

Failure modes and detection.

  • False merge from address reuse. Detect with a monthly audit: sample 200 auto-linked edges, adjudicate by hand, track precision; hold auto-linked precision ≥0.98.
  • Membership churn. Count join/leave events per household per 90 days; more than two changes is a linkage smell and routes to review.
  • Consent conflation. CCPA/CPRA permits a household-level access or deletion request only when every member verifies (Cal. Civ. Code §1798.105(c), §1798.115(c)); opt-out of sale stays individual. So a household must never become the unit of consent: measure suppressed-person count caused by a housemate's opt-out.

Ambiguous cases (shared housing, custody, business addresses) get a manual_review edge with valid_to set, not a silent merge.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-15

Govern organizational hierarchies in MDM.

Answer

What I'd say first. "Govern" here means the hierarchy is a dated graph with a named owner per edge, not a tree someone edits in a UI. I'd open by asking which hierarchies exist and who owns each one, because "one tree or several" falls out of that answer. Then I'd model every edge as (parent, child, hierarchy, valid_from, valid_to, system_from, system_to, authority, source) and let the database reject the bad states instead of a steward's checklist.

Assumptions: the org has at least legal ownership, HR reporting and sales territory, and they disagree. After an acquisition the legal parent is the acquirer while reporting still rolls to the old division head. If they never disagree, one tree is right and cheaper.

Mechanism. Two constraints do the work. First, an exclusion constraint stops a child having two parents in the same hierarchy on the same day:

SQL
CREATE EXTENSION btree_gist;   -- needed for = on text inside a GiST index
CREATE TABLE org_edge (
  edge_id     bigint PRIMARY KEY,
  hierarchy   text NOT NULL,        -- 'legal' | 'reporting' | 'territory'
  parent_id   text NOT NULL,
  child_id    text NOT NULL,
  valid_from  date NOT NULL,
  valid_to    date NOT NULL DEFAULT '9999-12-31',
  system_from timestamptz NOT NULL DEFAULT now(),
  system_to   timestamptz NOT NULL DEFAULT 'infinity',
  authority   text NOT NULL,
  source      text NOT NULL,
  EXCLUDE USING gist (hierarchy WITH =, child_id WITH =,
                      daterange(valid_from, valid_to) WITH &&)
);

Second, cycles. A recursive walk that prunes on "already seen" hides the cycle; one that flags it finds it:

SQL
WITH RECURSIVE walk AS (
  SELECT parent_id AS root, child_id AS node,
         ARRAY[parent_id, child_id] AS path, false AS cycle
  FROM org_edge WHERE hierarchy='reporting' AND valid_to='9999-12-31'
  UNION ALL
  SELECT w.root, e.child_id, w.path || e.child_id, e.child_id = ANY(w.path)
  FROM walk w JOIN org_edge e ON e.parent_id = w.node
  WHERE e.hierarchy='reporting' AND e.valid_to='9999-12-31' AND NOT w.cycle
)
SELECT DISTINCT root, path FROM walk WHERE cycle;

Trace it on A→B, B→C, C→A. Seed rows: (A,B,[A,B]), (B,C,[B,C]), (C,A,[C,A]). Expanding (A,B) gives (A,C,[A,B,C],false); expanding that gives (A,A,[A,B,C,A],true) because A is already in the path. The walk stops there and returns root A. On SQL Server the same query without a guard dies at the default OPTION (MAXRECURSION 100); Oracle needs CONNECT BY NOCYCLE plus CONNECT_BY_ISCYCLE or it raises ORA-01436.

Backdated reorg, with numbers. Division D books $180M a year and reports to West. On 2024-09-10 HR backdates a move to East effective 2024-01-01. Correct handling: close West→D at valid_to 2023-12-31, insert East→D from 2024-01-01, and close the old system-time rows at 2024-09-10 rather than overwriting them. The Q1 2024 rollup moves 90 days of D, 180M × 90/366 ≈ $44M, from West to East. Overwrite instead of close and the January report you already published no longer reconciles, and nobody can prove which version was sent.

Failure modes and how you catch them. Overlapping edges: the EXCLUDE constraint rejects at insert; without it a child has two parents for a day and headcount double-counts. Cycles from a bulk load: the nightly walk above returns rows; the cost is a rollup that errors or never finishes. Backdated correction not propagated: entitlement still grants West's manager access to D. Detect by diffing the entitlement snapshot against the current hierarchy and counting users whose access set changed. Disputed links: keep source and authority on the edge so every link has an owner and a provenance trail.

Trade-off. Separate named hierarchies cost more stewardship, three edges to maintain per reorg, but they survive acquisitions and matrix reporting. One universal tree is right when a single authority owns every edge and no consumer joins across hierarchies; below a few hundred nodes with one HR system, that is the cheaper answer.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-14

Design product master data management.

Answer

What I'd say first (60–120s)

Assume a multi-channel retailer/manufacturer: ~200k SKUs, an ERP, a PIM, a commerce platform, a WMS, and a regulatory feed. I'd split the domain into five grains, each with one owner and one key, and never let a single "product" row carry all of them:

grainkeyownerexample
product conceptconcept_idmerchandising"Trail Runner 5"
trade item / variantGTIN-14product data stewardsize 44, black
SKU / inventory itemsku_idsupply chainDC-level unit
offeroffer_id (sku × channel × price list)pricingweb price
assortment(location_id, sku_id)category/spacestore 412 carries it

The trade item is the master identity: GTIN-14 is the GS1 key, minted from the company prefix, and everything else crosswalks to it. Price and on-hand stay transactional: they change per channel and per minute, so they belong to the offer and the inventory system, not the golden record.

Why it behaves this way

Attributes carry valid_from/valid_to (ISO 8601, UTC) rather than being overwritten, because an order, a label, and a customs filing must be reproducible as of the transaction date. If you overwrite country-of-origin, last quarter's shipments can no longer be defended. Orders therefore store the resolved version id, not just the GTIN.

Crosswalks drift because every source system mints its own key. When a supplier merges two items or a retailer splits a bundle, the mapping silently becomes many-to-one or one-to-many. That is a data problem, not a code bug, so you detect it with cardinality assertions, not exceptions.

Trade-offs

Central MDM (PIM holds the golden record, systems read-only) versus a registry (PIM holds pointers, systems stay authoritative). Choose central when you have more than one channel or any regulatory exposure; choose registry when systems are already authoritative and change rates are low. Don't build MDM for a single-channel, single-ERP shop under ~5k SKUs: the ERP item master is enough.

Failure modes and detection

  1. Duplicate GTIN across suppliers. Detect: unique index on GTIN-14 plus a nightly reconciliation of the inbound GDSN feed. Cost: two inventory records, wrong on-hand, oversell.
  2. Overlapping effective windows. Detect: self-join on interval overlap.
SQL
SELECT a.gtin, a.attr, a.valid_from, a.valid_to, b.valid_from, b.valid_to
FROM attr_version a
JOIN attr_version b
  ON a.gtin = b.gtin AND a.attr = b.attr AND a.id < b.id
WHERE a.valid_from < b.valid_to AND b.valid_from < a.valid_to;

Cost: an order priced or regulated against the wrong version. 3. Crosswalk drift. Detect: orphan-key count and a 1:1 cardinality check on the mapping table. Cost: a regulatory output cites the wrong ingredient.

Checkable detail

GTIN check digits are computed, not trusted. For EAN-13 400638133393, weights alternate 1,3 from the left: 4+0+0+18+3+24+1+9+3+9+9+9 = 89, so the check digit is (10 − 89 mod 10) mod 10 = 1 → 4006381333931. Prefix indicator 1 and recompute for GTIN-14: 3+4+0+0+18+3+24+1+9+3+9+9+9 = 92 → check 8 → 14006381333938. Validate on ingest; a bad check digit is a supplier feed error, not a downstream one.

What would change the decision: if food/pharma regulation or B2B GDSN sync is in scope, central MDM wins outright; if the catalog is purely internal and single-channel, a registry is cheaper and the ERP stays authoritative.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-23

Govern shared reference data alongside master data.

Answer

What I'd say first

Reference data is the shared vocabulary: country codes, currency codes, GLNs, ICD-10 diagnoses, internal product hierarchies. Master data is the instances that use that vocabulary: the customer, the location, the claim. The common mistake is governing both in one pipeline. Reference data is small, slow, and often owned by a standards body you don't control; master data is large, fast, and owned by your business. So govern reference data as its own versioned dataset, and have master records point at a version rather than a bare code.

Assumptions I'd state up front: more than one consuming system, at least one of them batch; some code sets are externally owned (ISO, WHO, GS1) so their change dates aren't yours to pick; and history has to stay interpretable for audit.

Why a bare code isn't enough

If a code is ever reused, every historical join on that code silently changes meaning. ISO 3166-3 exists precisely to hold formerly used country codes so they are never reassigned; the same discipline applies to your internal sets. Each value therefore carries code, definition, hierarchy parent, labels per locale, status, valid_from/valid_to, and replacement_code. Master attributes store the code plus the version, or the valid-time interval, which is what makes historical joins temporal.

The join that decides it:

SQL
-- naive: today's meaning applied to a 2019 fact
SELECT f.amount, c.name FROM fact f JOIN country c ON f.country_code = c.code;

-- temporal: meaning as of the fact's date
SELECT f.amount, c.name FROM fact f
JOIN country c ON f.country_code = c.code
  AND f.booked_at >= c.valid_from
  AND (c.valid_to IS NULL OR f.booked_at < c.valid_to);

The first query returns a row for a code retired in 2021 and later re-pointed; the second returns the label that was true when the fact was booked. Same data, different answer: that is the entire reason for effective dating.

code setauthoritychange cadencecompatibility window
ISO 3166-1 alpha-2ISOrare, yearskeep retired code readable indefinitely
ISO 4217 currencyISOa few per yeardual-publish old and new for 2 release cycles
GLN (13-digit)GS1on onboardingnever reuse; retire only
ICD-10 → ICD-10-CMWHO / CMSannual, Oct 1 in the USmap both for one full fiscal year

Those windows are illustrative. The rule is that a window is at least as long as the slowest consumer's release cycle.

Trade-offs

Central governance buys one definition and one audit trail; it costs a change board, and that latency is the thing to weigh. If a code set has a single consumer, no regulatory obligation, and changes less than once a quarter, a checked-in lookup table with a unit test is the better answer: central governance would put a two-week release train in front of a change that should ship in an hour. Federate when the mapping is genuinely local, like a site's internal cost centre. Centralize when two systems must agree on the same meaning, or a regulator will ask.

Failure modes and how you'd see them

  • Silent reuse of a retired code. Detect with a uniqueness constraint on (code_set, code, valid_from) plus an alert on any insert whose code already has a non-null valid_to. Blast radius: every historical report joined on that code, usually found by finance rather than by you.
  • Unknown or future code in a feed. Decide reject versus quarantine explicitly; count unmapped codes per feed and alert on non-zero. Blast radius: a batch load that either fails hard or silently drops rows.
  • Version skew during partial rollout. Track a per-consumer version watermark and alert when a consumer is more than one version behind. Blast radius: two systems disagreeing about the same customer's segment.
  • Label or locale drift. Labels are presentation only; never key on them. Detect by asserting no join uses a label column.

Publish immutable versions, reconcile subscribers against the published version, and rehearse historical interpretation and rollback before you need them.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-18

Evolve a master entity schema without breaking consumers.

Answer

The 90-second answer. Assume the master entity is a canonical Customer record with three consumer surfaces: an Avro-encoded Kafka topic, a Postgres customer_master table, and a REST API. Assume you cannot coordinate a flag day: some consumers ship quarterly. Then classify the change before touching anything, because only one of the four classes is actually free.

Additive (new optional field), semantic (same field, new meaning), identity (the key changes), authorization (who may see the field). Additive is backward compatible and can ship today. The other three are not, and each needs a parallel representation plus a migration window. Then expand/contract: add the new shape, dual-write from a single authority, migrate readers, and remove the old shape only when measured usage is zero.

Why readers-first works. Avro resolves each record against the reader's schema, not the writer's. If the reader's schema has a field the writer's record lacks and that field has a default, the reader fills the default; if it has no default, deserialization throws. So adding an optional field with default: null is safe for old readers (they ignore it) and new readers (they get null on old records). Deploying readers first means no reader ever sees a record shape it cannot resolve.

changeexampleregistry verdictrollout
additiveadd given_name (default null)BACKWARD compatiblereaders first, then writer
semanticstatus ACTIVE/INACTIVE → A/Icompatible, silently wrongnew field status_code, dual-publish, deprecate
identitycustomer_id int → UUIDincompatibleparallel column + mapping table
authorizationnew PII fieldcompatiblefield-level policy before the field ships

Confluent Schema Registry's default compatibility level is BACKWARD, so an incompatible registration is rejected in CI (HTTP 409 from the registry) rather than at 3am in a consumer.

Worked trace: the identity change. customer_id is an int; you need a UUID. You cannot rewrite it in place. Add customer_uuid nullable plus a mapping table customer_id_map(legacy_id int primary key, uuid uuid unique, mapped_at timestamptz). Dual-publish both from the MDM service: one writer, so no split-brain. Backfill the mapping, then migrate readers one at a time. Drop customer_id only when the legacy topic's consumer-group lag is zero and the API access log shows no customer_id reads for 30 days.

Arithmetic (hypothetical): 40M rows at 2,000 rows/s batched is 20,000 s ≈ 5.5 h; a 4-hour window needs ~2,800 rows/s, so run it in chunks with a resumable cursor rather than one transaction.

Failure modes.

  • Semantic drift passes every schema check. Detection: a value-domain assertion in the consumer contract test (Pact, or a dbt test on the allowed set). The registry will not catch it.
  • Backfill clobbering steward corrections. Detection: skip rows where steward_edited_at > backfill_started_at, and alert when a derived value differs from a previously corrected one.
  • Dual-write divergence. Detection: nightly count of customer_uuid IS NULL on rows written after the cutover; anything above zero means a writer bypassed the authority.
  • Null-default trap: adding a required field with no default breaks every old reader at deserialization. The registry catches it pre-merge: that is the point of running it in CI.

Deprecation: publish a deadline, keep the old field readable until it, and keep a rollback that re-enables the old writer for one release.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-10

Design reliable master-data distribution.

Answer

Core answer (first 90 seconds)

I'd clarify two things before designing: is there one system of record per entity, and are consumers allowed to be eventually consistent? If yes to both, the design is a versioned change stream plus periodic snapshots, with idempotent consumers.

The contract is the foundation. Every entity gets an immutable ID assigned by the source: a UUIDv7 or a source sequence. Every change event carries an event ID, the entity ID, a monotonic per-entity version, the operation (upsert or delete), an effective timestamp, a schema version, and provenance (which source, which actor). Consumers key on entity ID and apply an event only if its version is greater than the last version they applied for that entity.

For transport I'd use a transactional outbox rather than dual-writing to Kafka. The business write and the outbox row commit in one transaction; a relay (Debezium reading the outbox table, or a poller) publishes to Kafka. That removes the dual-write failure where the database commits but the publish fails. If the source is Postgres and I can't change the write path, Debezium on logical replication gives the same guarantee straight from the WAL.

Ordering: Kafka orders within a partition, so I partition by entity ID. All events for one entity land on one partition and stay ordered. That is the ordering scope: per entity, not global.

Trade-offs

CDC versus outbox: CDC is less application code but couples you to the database's replication slot and schema; outbox is explicit and portable but adds a table and a relay you have to monitor. I'd pick outbox when the source is shared or the schema changes often.

Push versus pull: Kafka push gives p99 propagation under a second at moderate volume; a pull API gives consumers backpressure but adds polling latency and load. For master data, push is usually right.

Snapshot versus incremental-only: a full snapshot of 50M rows at 100k rows/s takes roughly 8 minutes and is self-healing; incremental-only drifts silently. I'd run a weekly snapshot for reconciliation and on-demand snapshots for new consumers.

Failure modes and detection

Duplicates: at-least-once means the same event can arrive twice. Detection is a counter of duplicate event IDs or version regressions per consumer; if it climbs, the idempotency store is broken.

Reordering: version regression for an entity. Detection is an alert when an applied version goes backwards. If that fires often, the partition key is wrong.

Missing events: consumer lag grows and never drains, or a reconciliation job finds entities in the source that are absent downstream. Detection is a per-entity-type count or checksum compared daily.

Late events: an event whose effective time is older than a correction already applied. Detection is an effective-time versus applied-time skew metric.

Poison message: a consumer stuck retrying one event. Detection is DLQ depth plus lag that stops advancing.

Artefact: idempotent apply

Python
# consumer, Python 3.12
def apply(event, store):
    last = store.get_version(event.entity_id)
    if last is not None and event.version <= last:
        return  # duplicate or stale
    store.upsert(event.entity_id, event.payload, event.version)

Artefact: reconciliation arithmetic

If the source has 50M entities and the consumer is missing 0.1%, that is 50k entities to repair. A daily checksum over entity IDs catches that; a full snapshot repair takes about 8 minutes at 100k rows/s.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-22

Migrate consumers from local customer keys to a master ID.

Answer

Core answer (first 90 seconds). Before touching consumers, I'd pin down three things: how many source namespaces exist, whether the master ID service keeps point-in-time history, and whether any consumer does a join that must reproduce a number someone already reported. If the master service has no temporal history, I'd stop: migrating would trade a working join for a lossy one. Assuming it does, the answer is: don't point consumers at the master ID directly. Publish an append-only crosswalk from (source_namespace, source_key) to master_id, versioned and immutable, and have consumers resolve through it. Then migrate in risk waves, oldest and least-coupled consumers last.

The crosswalk is the whole design. Every row carries an open/closed validity interval, so a join is as-of, not latest:

columnexamplewhy it exists
source_namespacebillingtwo systems both have cust_8812
source_keycust_8812the local key
master_idm_4471canonical identity
valid_from2024-03-01T00:00Zas-of join lower bound
valid_to2024-06-01T00:00Zupper bound, exclusive
confidence1.0 or 0.7probabilistic matches stay visible
provenancemerge:case_991audit trail for a merge

Why as-of matters: a trace. A billing event at 2024-05-10 for billing/cust_8812. The crosswalk holds two rows for that key: → m_4471 valid 2024-03-01..2024-06-01, and → m_9002 valid 2024-06-01..∞. As-of 2024-05-10 resolves to m_4471. A naive latest-row join resolves to m_9002 and silently moves May revenue to the wrong customer, and re-running last quarter's report now produces a different number. That is the failure that gets an identity migration rolled back.

Shadow resolution and dual-read. Run the new resolution path alongside the old one, log both keys per event, and compare. Serve the old key until the mismatch rate is under a threshold you set in advance: say 0.1% of daily events: for two consecutive days. Dual-read doubles read QPS and needs a reconciliation job; dual-write risks divergence and demands idempotent writes; big-bang cutover is cheapest but rollback is a restore. Pick by whether you can tolerate stale reads for the window and whether the write path is idempotent.

Failure modes, with signals.

  • Non-point-in-time join. Detection: reconcile monthly aggregates before and after; alert if any closed month moves more than 0.1%. Cost: restated financials.
  • Crosswalk miss. Detection: per-namespace miss counter. If misses exceed 0.5% of daily volume, halt the wave: unresolved keys are usually a source system you forgot to inventory.
  • Split entity. One source key fans out to two masters. Detection: fan-out count > 1 per key. A consumer taking the first row drops half the history.
  • Cache keyed on the old key. After a merge, two entries for one customer, stale reads. Detection: duplicate-entity count and master-key cache hit ratio.

Sizing. 40M customers across 3 namespaces is roughly 120M crosswalk rows; at ~30 bytes each that is about 4 GB: cacheable locally. At 50k events/s a 2 ms network lookup per event is 100 CPU-seconds per second, so the crosswalk belongs in a local cache with a TTL, not behind a per-event RPC.

Rollback. Keep source keys on every row and never rewrite historical identity without an explicit temporal policy. Rollback is then a config flip back to the old resolution path, not a data restore.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-12

Handle a correction or deletion request in MDM.

Answer

Core answer. Assume a GDPR Art. 17 erasure or Art. 16 rectification request against one data subject, and an MDM hub holding a golden record plus cross-reference (XREF) rows pointing at source-system keys. The job is not "delete the row." It is: resolve the subject to the correct member, decide per attribute whether the law requires erasure, rectification, or suppression, recompute the golden record, then publish versioned changes downstream, and be able to prove each step. GDPR gives you one month to respond (Art. 12(3)), extendable by two; CCPA/CPRA gives 45 days, extendable to 90. That clock starts at verified receipt, not at the first internal ticket.

Assumptions I'd state out loud. One verified data subject or authorized agent; a hub with survivorship rules and a trust score per source; subscribers (warehouse, marketing, analytics) that consume published events. If any of those is false, the plan changes.

Mechanism. MDM separates the source record from the master record. A correction usually lands in the source system of record, then survivorship recomputes the golden record from all surviving sources. A deletion is harder: you must decide whether to remove the source row, tombstone it (keep the key, null the PII, record reason and date), or suppress it (keep the data, hide it from normal access). Then the XREF table, match evidence, and any merged/unmerged history have to stay consistent, or the next batch rebuild resurrects the value.

OptionWhat it doesUse whenCost
Hard deleteRemoves row + XREFNo retention obligation, no replay riskBreaks lineage; can't prove erasure later
TombstoneKeeps key, nulls PII, records reason/dateYou must prove erasure and block replayRead paths must honor the marker
SuppressKeeps data, hides from normal accessLegal-obligation retention (tax, AML)Data still exists; needs access control

Worked trace. Golden record GR-1042, member M-88213, three XREF rows. Survivorship = highest source trust wins per attribute.

  • CRM (trust 90) → email, updated 2024-03-02
  • Billing (trust 70) → phone, updated 2024-01-11
  • Support (trust 50) → postal, updated 2023-08-01

Legal rules: email erased (marketing consent), phone retained under a billing/tax obligation, postal suppressed. Apply: tombstone the CRM email, leave Billing phone, mark postal suppressed. Recompute: email now empty (no surviving source), phone unchanged from Billing, postal shows the suppressed marker. Publish a versioned event (v7, effective date) to each subscriber and require an ack. If a subscriber replays a v6 snapshot, the tombstone and version watermark reject it.

When to refuse. If the requester isn't verified as the subject or authorized agent; if the attribute sits under a legal-obligation retention; or if the match is a false positive and the record belongs to someone else. Refuse, log the reason, and route to privacy/legal: don't silently delete.

Failure modes. False match → you delete another person's data; detect via match score below threshold and a manual review queue. Survivorship recompute pulls the deleted value back from a lower-trust source; detect with a post-recompute diff on the golden record. Subscriber replay from a stale snapshot; detect by version/watermark check and alert on any publish with an older version. Unmerge not propagated, leaving the XREF still linking two members.

What would change the decision. Jurisdiction (CCPA vs GDPR scope), whether the attribute is a legal-obligation record, and whether the entity is a party or a hierarchy node: a hierarchy deletion cascades differently than a single member.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-11

Assess privacy risk in a customer-360 master.

Answer

First 90 seconds. Pin the purpose and the lawful basis before anything else: a customer-360 master is only as risky as the linkage it enables. Assumptions: B2C retailer, EU and US customers, no special-category data, master serves service and marketing. The risk is three things: re-identification from joined quasi-identifiers, purpose creep, and false merges that show one customer another's data. Assess by measuring uniqueness, match precision, and purpose drift: in that order.

Mechanism: quasi-identifiers. Sweeney's US census analysis: 87% of the population is uniquely identified by 5-digit ZIP, date of birth and sex. In a master, email, phone, device ID and address behave the same way. Hashing an email is not anonymisation under GDPR Recital 26 while you hold the salt: it is pseudonymisation. So run a k-anonymity count over every quasi-identifier combination:

Python
from collections import Counter
rows = [  # (id, zip5, dob, sex)
    ("c1", "94103", "1988-03-02", "F"),
    ("c2", "94103", "1988-03-02", "F"),
    ("c3", "94103", "1988-03-02", "F"),
    ("c4", "94103", "1975-11-20", "M"),
    ("c5", "10011", "1990-07-14", "F"),
    ("c6", "10011", "1990-07-14", "F"),
]
qi = lambda r: (r[1], r[2], r[3])
counts = Counter(qi(r) for r in rows)
for r in rows:
    print(r[0], counts[qi(r)])

Trace: the three 94103/1988-03-02/F rows land in one bucket of 3; c4 is alone; the two 10011/1990-07-14/F rows share a bucket of 2. Output:

c1 3
c2 3
c3 3
c4 1
c5 2
c6 2

k = 1, so this slice fails any k≥5 bar. k≥5 for internal release and k≥20 for external is common practice, not law. At 1M customers, every bucket of size 1 is a re-identification risk.

Trade-offs: how you match.

StrategyPrecisionRecallFailure modeUse when
Deterministic (exact email or phone)highlowmisses the same person with two emailsregulated attributes, financial or health data
Probabilistic (name + DOB + address)lowerhighfalse merge exposes A's history to Bmarketing, with a review band

Review band example, not a default: score ≥0.95 auto-merge, 0.80–0.95 manual review, <0.80 no merge.

Cost asymmetry, worked. Hypothetical: 40,000 candidate pairs auto-merged at precision 0.98 → 800 false merges. Each is a personal data breach under GDPR Art. 4(12), reportable to the supervisory authority within 72 hours under Art. 33. At €150 per record in notification and remediation, that is €120,000 plus regulatory exposure (Art. 83(5): up to €20M or 4% of global annual turnover, whichever is higher). Recall 0.90 against 40,000 true duplicate pairs → 4,000 missed merges, each a duplicate mailing at $3 → $12,000. Roughly 10:1 against false merges. That ratio is why regulated attributes get deterministic matching only.

When not to build. No lawful basis for the new purpose (Art. 5(1)(b)); per-domain queries answer the question; special-category data would be linked without an Art. 9 condition; false-merge cost is high (financial, medical). If health data is in scope, HIPAA Safe Harbor's 18 identifiers are a useful floor. Federated query or a per-domain mart is then the right answer.

Failure modes and detection. False merge: two John Smiths at one address; detect via a bimodal match-score histogram, a manual review queue, and precision below 0.99 on an audit sample. Household exposure: shared address or IP; detect via address fan-out >1 adult and the device graph; example: a family plan where one login shows everyone's orders. Purpose creep: master built for service, used for ad targeting; detect via query-log purpose tags and team access reviews. Re-identification: ZIP+DOB+sex; detect via the uniqueness count above.

The assessment is not a checklist: what linkage is necessary, what is the match precision, what is the uniqueness, what is the cost of being wrong. Can't answer those, don't build the master.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-24

Change a production matching algorithm safely.

Answer

What I'd say in the first two minutes

I'd pin the scenario before answering: this is entity resolution over roughly 40M customer records, the current matcher is a deterministic rule set (normalized name plus postcode blocking, then field-level rules), and the proposed change is a learned pairwise model with a score threshold. The safe move is not "evaluate the model": it's ship the diff, not the model. Freeze an immutable snapshot, replay both versions over it, and diff the outputs at the level of individual decisions. Aggregate precision and recall tell you the model is better on average; the diff tells you which 4,200 merges you are about to make that you cannot cleanly undo.

Alternatives, and when each is the right one

ApproachCatchesMissesCost
Offline metrics on a labelled pair setModel quality, threshold choiceCluster-level and downstream effectsHours; use as a gate, never as the decision
Shadow replay on a frozen snapshotFull decision diff, zero user impactLive traffic distribution, feature-pipeline driftOne replay cluster, ~2x batch compute
Dual-run in production (serve old, log new)Real distribution, driftNothing about reversibility2x inference cost, PII handling for the shadow log
Canary by bounded populationReal decisions on real usersOnly the canary sliceNeeds merge reversal and a kill switch
Big-bang swapNothingEverythingOnly defensible when the change is provably a subset: e.g. adding a blocking key that can only split blocks, never merge

The deciding criteria are blast radius (how many clusters change), reversibility (merges are the hard direction: downstream rows were rewritten), and whether you have labels at all. If you don't, replay plus a golden duplicate set is the only honest option.

The arithmetic I'd bring to the review

Illustrative numbers: 40M records, 1.2M clusters. Replay shows the new model flips 3.1% of pairwise decisions, touching 37k clusters: 4,200 merges (two clusters become one) and 900 splits. Merges are the dangerous direction: a false merge contaminates both entities' history. Billing holds 1.4M open invoices keyed to entity IDs, and those 4,200 merges touch about 11k of them. That is the number the accountable owner signs off on, not "the model is 2 points better on F1".

Failure modes, with the signal that catches each

FailureDetectionCost when it lands
Feature-pipeline drift: model version pinned, normalization library updated separatelyLog a feature hash per decision; alert when production hash differs from the replay hashA day of debugging before anyone trusts the diff again
Threshold tuned in config without replayConfig change triggers the replay job in CISilent recall loss, discovered by stewards
Rollback restores old cluster IDs but downstream already wrote merged IDsKeep a crosswalk of old→new entity IDs for 30 days; forward-repair job re-splitsManual steward cleanup, ~11k invoice records
Blocking-key change silently drops candidate pairsRe-score a golden set of ~5k known duplicates each run; alert if recall drops below 0.97Recall decays with no error anywhere

Review and rollout

Freeze unrelated bulk changes: an address-normalization rewrite landing the same week makes the diff unattributable. Canary by bounded source or population, publish the code, normalization, blocking, feature and threshold versions together, and keep the crosswalk so rollback is a forward repair rather than a restore. High-blast-radius merges go to the accountable owner plus a privacy reviewer, because a false merge across two people is a data-protection event, not a quality regression.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-20

Monitor an MDM service in production.

Answer

Assumptions

An MDM service that ingests from several source systems, resolves entities with probabilistic matching behind a score threshold, routes uncertain pairs to stewards, and publishes golden records to subscribers. Example scale: 40M entities, ~2M source updates/day, batch plus streaming. Figures below are illustrative, not measured.

Core answer

Monitor four layers, and in each pick the one or two metrics that change a decision. A dashboard of forty counters tells you nothing at 3 a.m.

Ingestion. Source freshness (age of the newest record per source) and completeness (fraction of expected fields non-null). A stalled feed shrinks the candidate pool, so match rate falls for a reason that has nothing to do with matching. Alert when newest-record age exceeds twice the source's median inter-arrival time.

Matching. Candidate volume per blocking key, match-score distribution, cluster-size distribution, and the auto/review/nonmatch split. Cluster-size distribution is the leading indicator of drift: if the median stays at 1.0 but p99 moves from 4 to 30, the threshold or a normalization rule has loosened and you are merging distinct entities. If auto-match rate drops 8 points while candidate volume is flat, the score distribution shifted: usually a new source's formatting.

Stewardship. Queue depth and age, and overturn rate (steward reverses an auto decision). Overturn rate is the closest thing to ground truth on auto decisions.

Publication. Publication lag, failure count, and subscriber reconciliation: does the subscriber's count and checksum match what you published.

Trade-offs

Sampled audit versus full audit. Auditing every merge at 2M updates/day is unaffordable; sample stratified by risk (new source, high cluster size, narrow score margin). 200 records/day at ~2 min each is ~7 steward-hours/day. Run a 1,000-record audit before promoting any rule, model or threshold change.

Monitoring only downstream consumer complaints is cheap but lags by days and only surfaces merges that hurt someone. Use it as a backstop, not the primary signal.

Failure modes and detection

metricmechanism it revealsexample alert
source freshnessstalled feed shrinks candidate poolnewest record > 2× median inter-arrival
cluster-size p99threshold or normalization looseningp99 > 3× 30-day baseline
auto-match ratethreshold or model shift±5 points within one model version
overturn rateauto decisions wrong> 5% over 7 days
publication lag p99downstream staleness> 15 min
subscriber checksumsilent publish failureany mismatch

Silent semantic drift. A source changes date format or name order; normalization still "succeeds" but produces wrong keys. Detect with a per-source score-distribution shift against a 30-day baseline (PSI > 0.2).

Threshold drift from a retrain. Version-stamp every decision with rule/model/entity version; alert if auto rate moves more than 5 points inside one version.

Steward backlog. Queue age p95 above 24h means auto decisions are going unreviewed and the queue is the real bottleneck.

Worked trace

Day 0 baseline for source A: match-score median 0.92, auto rate 71%. Day 1, A ships names as "Last, First". Normalization does not strip the comma, so the blocking key on the first token becomes "Last,": candidate volume for A drops 40% and auto rate falls to 63%. Freshness and completeness stay green: the feed is on time and full. Only the per-source score distribution and candidate volume catch it. That is the argument for slicing every metric by source, domain, locale and risk population.

Cost arithmetic

If 1 in 10,000 auto-merges is a false merge at 500k merges/day, that is 50 bad merges/day. At 20 minutes of downstream cleanup each, ~17 engineer-hours/day. A 1,000-record audit that catches a 2-point precision drop pays for itself the same week.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-19

Design availability and disaster recovery for MDM.

Answer

Clarify first. MDM here is a hub holding golden records for ~50M entities, fed by ~12 source systems, consumed by ~40 subscribers over CDC. Peak authoring ~2k writes/s, reads ~20k/s. I'll assume one primary region, three AZs, and that subscribers tolerate bounded staleness but never duplicate golden records. If any of that is wrong, the numbers move but the shape doesn't.

The core decision is to split the paths, because they have different failure economics. Reads and match/serve must stay up; authoring can drop to read-only; publication must never lose or reorder a committed change.

pathSLORTORPOdegradation
read/serve99.95%, p99 150 ms5 minn/aserve versioned cache, staleness bound 60 s
match99.9%15 min0run deterministic matching off the replica
author/steward99.9% business hours4 h0read-only, reject writes
publish/CDC99.9%30 min0no lost events

Mechanism. Hub state: golden records, match rules, source mappings, audit, event offsets, encryption keys: replicates synchronously across the three AZs via quorum consensus, so AZ loss is RPO 0, RTO ~0. Cross-region is async with a 2 s p99 lag budget; that lag is the region-loss RPO. Keys replicate through the same quorum: losing the KMS material is losing the data, so it is not a separate backup.

Trade-off: queue vs fail closed. The criterion is idempotency and replay safety. Source ingest writes carry a natural key plus source version, so they are idempotent and can queue in a durable log and replay. Steward merges are human decisions made against current state, non-idempotent, so they fail closed: accepting them against a stale replica is exactly how you get two golden records for one entity. Rule: queue idempotent keyed writes, fail closed on state-dependent human writes.

Failure modes and detection.

  • Split-brain authoring → duplicate golden records. Detect: nightly duplicate scan counting entities with more than one active golden record; alert on any nonzero. Cost: manual merge, ~15 min per record.
  • CDC replay → subscriber double-applies. Detect: idempotency-key collision counter per subscriber; alert on nonzero. Mitigate: upsert keyed by (entity_id, version).
  • Partial restore → hub behind its own event log. Detect: hub version watermark vs subscriber offsets; block publication until reconciled.

Trace of a region-loss failover. Primary down at T0 → quorum lost, writes fail closed within 5 s → promote async replica at T0+8 min (2 s lag, so up to 2 s of committed writes lost) → drain and repoint subscribers by T0+10 min → reconcile sources and subscribers against the promoted hub, ~20 min → reopen publication at T0+30 min. RTO 30 min, RPO 2 s.

Exercise exactly those: region loss, broker replay, partial restore, duplicate events, match-rule rollback.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-25

Test MDM before a production launch.

Answer

The go/no-go test is a golden-record reconciliation against a frozen snapshot with labelled true identities. Everything else (survivorship, privacy, events) runs against that same snapshot, so a failure is reproducible and a fix is verifiable.

Assumptions I'd state up front: a party/customer hub, batch plus near-real-time ingestion, probabilistic matching with deterministic overrides, a steward UI, and downstream consumers reading via API and change events. If any of those is wrong the plan changes, so I'd confirm them in the first minute.

Then the tiers, each with an expected result rather than a topic.

Grain and mapping. Load N source rows and assert staging rows = hub source rows = N, one row per source record per system. Any delta is a mapping or ingest-dedup bug, and it invalidates every downstream count, so it runs first.

Matching quality on labelled pairs. This is the number that decides launch. Blocking recall is the fraction of true duplicate pairs that survive blocking into the comparison stage; matching can never recover a pair blocking dropped, so it is a hard floor. Illustrative: 12,000 labelled true pairs, blocking passes 11,280 → 94.0% recall. I'd gate launch at ≥95% and treat anything below as a blocking-key defect, not a matcher defect. Precision is measured after thresholding as cluster purity, and it is the softer gate: a false merge is visible and correctable by a steward, a missed merge silently fragments an identity and corrupts every downstream join.

Survivorship. For each golden field, assert the surviving value traces to a named source and rule. A field-level provenance audit catches rule-ordering bugs that a spot check misses.

Lifecycle. Merge, split, unmerge, manual override, and steward concurrency. Two stewards editing one cluster must surface a conflict, not silently lose an update: test with two concurrent edits and assert the second is rejected or merged, never overwritten.

Non-functional. Privacy views, rights/deletion propagation, event idempotency, schema change, source outage, restore, consumer reconciliation.

gatemetriclaunch threshold
grainhub source rows / staging rowsexactly 1.000
blocking recalltrue pairs surviving blocking≥ 0.95
cluster puritycorrect pairs / pairs in cluster≥ 0.98
event idempotencyconsumer state after double replayunchanged
deletioncanary PII present after rights requestabsent

Thresholds are starting points to be set from the labelled set, not universal constants.

Trade-offs. Full-volume replay versus a labelled sample: full volume catches scale bugs (blocking-key cardinality, matcher memory) but gives no ground truth; the labelled sample gives recall and precision but not scale. Run both: sample for quality gates, full volume for throughput and memory. Deterministic-only matching is cheaper and explainable but misses transliteration and nickname variants; probabilistic catches them at the cost of a threshold you must tune and defend. Blocking-key breadth trades recall against candidate volume: a wider key raises recall and the matcher's cost.

Failure modes and how they show up:

  • Blocking key too narrow → labelled recall drops below the floor; detected by the recall metric, not by eyeballing merges.
  • Survivorship rule order wrong → golden value contradicts the source of truth; detected by the provenance audit.
  • Event replay not idempotent → consumer double-counts; replay the same batch twice and assert consumer state is unchanged.
  • Deletion not propagated → PII survives in the hub or a consumer; detected by an end-to-end rights request against a canary record.
  • Steward concurrency → lost update; detected by the concurrent-edit test above.

Before expanding scope, require a named owner for every gap, rollback evidence (restore the snapshot and prove the hub returns to the pre-load state), and post-launch sampling of merges to confirm the recall measured on labels holds on live traffic.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-21

Evaluate an MDM vendor or platform.

Answer

Treat it as a bake-off, not a demo review. Pick the two or three entity domains that carry your hardest matching (usually person/customer and supplier, because they have the most variation) pull 5,000–20,000 labeled pairs from your own data, and run every vendor against the same corpus with the same rubric. The demo tells you nothing; the corpus tells you everything.

What I'd actually measure

Ground truth first: hand-label pairs as match / non-match, then group them into true clusters. For each vendor compute pairwise precision and recall, cluster-level F1, and, the number that decides most deals, the false-merge rate.

Worked example, hypothetical figures:

  • Corpus: 10,000 labeled pairs, 400 are true matches.
  • Vendor A returns 410 matches: 380 correct, 30 false merges. Precision 92.7%, recall 95.0%.
  • Vendor B returns 520 matches: 400 correct, 120 false merges. Precision 76.9%, recall 100%.

B finds 20 more true matches than A and creates 90 more false merges. If a false merge corrupts a billing or regulatory record, that trade is almost never worth it. That arithmetic, not the feature list, is the argument you take to the buying committee.

Why the numbers move

Recall is capped by blocking. If the blocking key is too narrow (say, exact postal code plus first initial), true duplicates that differ in either field never reach the scorer, and no threshold fixes it. Detect it by measuring recall on known-duplicate pairs that share no blocking key.

Precision is set by the threshold and by how well the scorer is calibrated. Deterministic rules are explainable and cheap to audit but brittle to format drift. Probabilistic matching (Fellegi–Sunter) needs calibrated m and u probabilities per attribute; if the vendor can't show you those, you can't reason about what a threshold change will do. ML matchers need labeled data and drift monitoring: retrain cadence is a real line item.

Trade-offs

A full MDM suite (Informatica, Reltio, Stibo, SAP MDG) earns its cost when you have multiple domains, hierarchy and reference data, stewardship workflow, and lineage for audit. If you have one domain, one system of record, and a small team, a matching library (Splink, Zingg, Senzing) plus your own workflow is cheaper and more transparent. Say which side you're on before you score anything.

Failure modes and how you'd see them

  • Blocking too narrow → recall drops silently. Detect: recall on a held-out duplicate set with no shared key.
  • Threshold drift after a data shift → false merges rise. Detect: rolling false-merge rate on a re-labeled sample.
  • Steward backlog → merges stall. Detect: p95 age of the review queue. At 500 candidate pairs/day and 3 minutes each, that's 25 steward-hours/day: roughly 3–4 FTE. Model that before you sign.
  • Lock-in via proprietary rules → you can't leave. Detect: export the match rules and golden records, then run them in a second environment. If that fails, you don't own your data.

Exit

Before signing, prove portability: full export of rules, golden records, and history, restored into a test instance. Security, subprocessors, data residency, and audit rights are contract terms, not evaluation criteria: check them, but don't let them crowd out the accuracy test.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-1

Design customer master data management for three source systems.

Answer

What I'd say first

Before designing anything I'd pin down three things: what "customer" means here (person, account, or household, because they merge on different keys) whether each source is a system of entry or a system of record for any attribute, and what consumers actually need: a golden ID to join on, or a full golden record.

Assumptions I'd state out loud: three sources. Salesforce (CRM), a billing platform, and Zendesk (support). CRM is system of entry for contact details, billing is authoritative for legal name and tax ID, support is authoritative for nothing but contributes interaction history. The mastered entity is the person; accounts are a separate hierarchy.

The design

Identity resolution runs as a batch plus streaming pipeline. Each source emits change events; I normalize, block, match, then auto-merge, queue for review, or reject.

Normalization: emails lowercased and trimmed, phones to E.164, names canonicalized, addresses through a postal standardizer. Without this, "Bob" and "Robert" never match.

Blocking: comparing all pairs across 3M records is ~4.5×10^12 comparisons. Infeasible. I block on (soundex of last name, first 3 chars of postal code), which cuts candidate pairs by roughly four orders of magnitude.

Matching: a Fellegi-Sunter probabilistic model (Splink implements this) with deterministic overrides. Exact email match is a deterministic auto-merge. Everything else scores.

Worked trace: a CRM record vs a billing record, illustrative m/u values:

  • email exact: m=0.95, u=0.001 → log2(0.95/0.001) ≈ 9.9
  • last name exact: m=0.9, u=0.02 → ≈ 5.5
  • postal exact: m=0.8, u=0.05 → ≈ 4.0
  • phone mismatch: m=0.1, u=0.9 → ≈ −3.2

Total ≈ 16.2 → auto-merge.

Thresholds, tuned on labeled pairs: ≥10 auto-merge, 5–10 human review, <5 reject. I'd tune on ~2,000 known pairs and pick the band that keeps false-merge rate under 0.5% while holding false-split under 2%.

Survivorship: per-field authority. Billing wins legal_name and tax_id; CRM wins email and phone; support contributes nothing authoritative. Each attribute carries valid_from/valid_to (SCD2) so a late-arriving billing correction doesn't overwrite a newer CRM email.

Publishing: golden records go to a compacted Kafka topic keyed by golden_id; consumers upsert idempotently on (golden_id, version). Golden IDs are surrogate UUIDs: never reuse a source key, or a source re-key silently corrupts joins.

Trade-offs

Deterministic-only matching is cheap, explainable, auditable: right when you have a strong unique key like tax ID. It fails on the long tail: no shared key, typos, name changes. Probabilistic catches those but needs labeled data and drifts as data changes, so retune quarterly. I'd run deterministic as a fast path and probabilistic for the remainder.

Failure modes

False merge: two people in one household collapsed. Detect by monitoring post-merge attribute conflict rate; a spike means the threshold is too loose. Cost: a wrong bill, a privacy incident. Fix: unmerge, which requires keeping member provenance so you can split back to source records.

False split: one person as two golden records. Detect by duplicate rate in downstream joins. Cost: split marketing spend, broken support history.

Both need a review queue with a named steward, plus rights handling (deletion propagates to all members) and rollback to a prior golden version.

Curated: · Written: · Reviewed:

Difficulty: Hard