The interview problem
A customer connector clears fields unexpectedly because two APIs disagree about null, empty strings and omitted fields. Establish a contract.
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
Assume partial updates and fields that may be intentionally cleared. Build a field-level matrix for absent, null, empty string and explicit value under each endpoint's semantics. Preserve those distinctions during parsing and mapping; do not use a generic truthiness filter. Add fixtures approved by the customer and version the transformation contract. Dry-run changes against representative records before replaying updates.
2. Trace the design or derivation
Enumerate field states → map endpoint semantics → dry-run changes → apply versioned adapter → reconcile
Put the state matrix in executable contract fixtures shared with the customer where possible. Include an unchanged record, an intentional clear and an explicit replacement for each risky field. When an upstream API changes its behavior, these fixtures should fail before a scheduled sync clears thousands of values.
3. Calculate the example
For a contact with phone '123', an omitted phone may mean keep '123', null may mean clear it, and an empty string may be invalid or a distinct value. Collapsing all three to null turns a harmless partial update into data loss.
4. Failure cases and trade-offs
Create and update endpoints may interpret the same field differently. A universal normalization rule is easy to implement but can destroy intent. Explicit per-field mappings cost maintenance yet make behavior reviewable. For ambiguous historical records, reconcile with the source rather than guessing whether a clear was intended.
5. Validation, follow-ups and self-review
Test all four states for create, update and retry paths. Follow-up: how would array replacement differ from element removal? Self-review: specify operations, not just data types.
Sources and related practice
Technical reference: www.rfc-editor.org — A concrete patch format where null removes fields; other APIs require their own contract.
Source publication/update: October 2014. 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 Integrate an AI workflow with an unreliable legacy API; Recover a partially accepted customer import.
Continue your preparation
Choose a connected learning path or browse more FDE interviews questions. Read our editorial method and attribution policy.