The interview problem
A customer wants employees to upload arbitrary documents for AI extraction by Friday. Design a limited launch that handles malformed files and keeps unsafe content out of the main workflow.
Original practice, not a reported company interview. All scenarios and worked numbers are illustrative. Interview date: not applicable. Sources retrieved September 30, 2026.
1. Scope and assumptions
Agree on an initial allowlist of formats, sizes and document purposes. Scanning is one control, not proof that a file is harmless. No direct execution of uploaded macros or scripts is required.
2. Worked approach
upload → quarantine → bounded validation/parser → approved derivative → customer workflow
Upload into isolated quarantine storage with generated object names and scoped access. Validate size, declared format and actual structure, then process with bounded parsers in a restricted worker. Only publish an approved derived representation after checks succeed; retain a status record for pending or rejected input.
Separate file access from model instructions: document text is untrusted data. Extraction workers should not gain broad credentials because a document requests a URL fetch. Give the customer a supported-format guide, rejection reason codes and an owner for exceptions rather than a promise to accept everything.
3. Calculate the example
With a 20 MB upload limit and 500 concurrent uploads, raw in-flight payload can reach 10 GB before buffering copies. A compressed 5 MB archive expanding to 2 GB exceeds a 200 MB expanded-content limit by 10× even though the upload passed. Bound decompressed bytes, nested depth, parser time and output size independently.
4. Failure cases and trade-offs
Trusting filename extensions lets misleading content reach a parser. A scanner timeout must not become an implicit pass. Serving original uploads under the application's active-content origin can create a separate risk from model extraction. Repeated failures can exhaust worker slots.
A narrow supported set makes the deadline achievable and reviewable. More formats increase business coverage but expand parser and operational responsibilities. A manual exception lane can bridge the gap if its cost and response time are explicit.
5. Validate the result
Use benign malformed fixtures, oversized expansions and parser timeouts to verify containment and user-facing status. Confirm rejected files never become searchable, access controls apply to originals and derivatives, and retry behavior is bounded.
6. Interview follow-ups and self-review
Who can release a quarantined document? How is a parser vulnerability patched across existing files?
Reward scoped launch negotiation, isolated processing, multiple resource limits and honest exception ownership.
Sources and related practice
Technical reference: cheatsheetseries.owasp.org — Upload-control background; launch workflow and capacity examples are original.
Exact publication/update date not established in this review. Retrieved September 30, 2026. This reference supports the named technical concept; the proposed workflow and examples are original, not a documented vendor implementation or interview report.
Continue with Integrate through a restricted customer network; Design repeatable onboarding for enterprise AI tenants.
Continue your preparation
Choose a connected learning path or browse more FDE interviews questions. Read our editorial method and attribution policy.