The interview problem
A customer document named with a slash or percent sign resolves to the wrong resource. Establish the identifier transport 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
Separate opaque resource IDs from display names where possible. Define whether an API path accepts encoded segments and ensure each layer decodes exactly as specified. Test the client, proxy and application together; preserve raw request evidence without sensitive query values.
2. Trace the design or derivation
Display name or ID → client encoding → proxy routing → one defined decode → resource lookup
Authorize the resolved resource, not an unnormalized path string that later changes meaning. Include round-trip fixtures in the integration handover. Keep the display name independent from storage identity so a rename does not unexpectedly move an API resource.
3. Calculate the example
The display string A/B is one name in some systems but two path segments if inserted unescaped into a URL. Double encoding can turn an intended percent escape into a literal sequence rather than the same resource.
4. Failure cases and trade-offs
Different proxy normalization can undermine routing or authorization. Decoding repeatedly until text looks readable creates ambiguity. Unicode normalization is a separate contract.
5. Validation, follow-ups and self-review
Acceptance: test slash, percent, space and non-ASCII names through the actual proxy. Follow-up: should the API use stable IDs instead? Self-review: identify each encode/decode boundary.
Sources and related practice
Technical reference: www.rfc-editor.org — URI path segments and percent encoding.
Source publication/update: January 2005. 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 Agree on Unicode identifier matching; Integrate an AI workflow with an unreliable legacy API.
Continue your preparation
Choose a connected learning path or browse more FDE interviews questions. Read our editorial method and attribution policy.