The interview problem
Two acquired business units both use account ID 123. Integrate them without merging unrelated accounts.
Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.
1. Scope and worked approach
Define identity as namespace plus source ID until an approved entity-resolution process establishes equivalence. Preserve lineage through every API, table and export. Separate namespace migration from deduplication and require explicit mappings for cross-unit consolidation.
2. Trace the design or derivation
Source namespace and ID → composite identity → optional approved mapping → downstream lineage
Keep an immutable internal ID if display namespaces may change. During migration, support explicit aliases with expiry rather than silently rewriting every incoming source identifier. Produce a conflict report that the customer data steward can adjudicate.
3. Calculate the example
(Unit A,123) and (Unit B,123) are two records. Dropping the namespace converts two valid identifiers into a false match even though each source is internally unique.
4. Failure cases and trade-offs
A numeric primary key alone cannot represent multi-source identity. Renaming a namespace without updating downstream references creates dangling links. Similar names are not sufficient evidence of common ownership.
5. Validation, follow-ups and self-review
Acceptance: test collisions, mapped equivalents and namespace renames. Follow-up: how should users search across units? Self-review: distinguish source identity from resolved identity.
Sources and related practice
Technical reference: www.postgresql.org — Multicolumn uniqueness and referential integrity.
Source publication/update: Not established. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.
Continue with Resolve customer entities across noisy records; Transfer a deployment when customer ownership changes.
Continue your preparation
Choose a connected learning path or browse more FDE interviews questions. Read our editorial method and attribution policy.