The interview problem
A support team approves a drafting pilot. Design the integration across its ticketing system, internal documents and identity provider, with a four-week delivery window.
Original FDE practice case. This scenario follows customer discovery and is not attributed to a company question bank. Reviewed September 26, 2026. All workload numbers and acceptance thresholds below are illustrative practice assumptions.
1. Map the integration contract
Clarify document formats, update frequency, identity mapping, ticket API limits and which customer data may leave the environment. Inventory who owns each integration and the credentials it requires. A useful first release reads one queue and one approved knowledge source, drafts internally, and leaves sending to the support agent.
Spend 8 minutes on dependencies, 12 on identity and retrieval, 10 on write semantics, 8 on evaluation and 7 on rollout. Draw trust boundaries around the customer environment, your service and the model provider. “Use RAG” does not resolve any of these contracts.
2. Enforce authorization outside the model
A connector ingests document ID, version, content and access metadata. Normalize and chunk the content, retain citations to source versions, and track ingestion failures. At query time, derive identity from authenticated claims rather than a tenant ID supplied in free text. Filter candidate retrieval by permissions and enforce authoritative access checks before sending content to the model.
POST /drafts includes ticket ID, ticket version and an idempotency key. Store draft ID, source versions, model/prompt version and review state. The model produces a suggested answer with evidence; it does not decide whether a user may access a source. A tool broker authorizes any ticket write and checks that the ticket has not changed since review. A stale draft must be reconciled before sending.
3. Estimate the small system honestly
Assume 500,000 documents at a mean 20 KB: about 10 GB of raw text. At five chunks per document, there are 2.5 million chunks. A 1,536-dimensional float32 vector needs 6,144 bytes, so raw vectors take about 15.36 GB before index, metadata, text storage and replicas. These are chosen dimensions, not a claim about any specific embedding API.
For 200 agents making six requests/hour, average demand is only 1,200/hour or 0.33 requests/second. Bursts and document ingestion may matter more than average online scale. Start with a simple service and bounded worker queue; measure first rather than inventing a global microservice fleet.
4. Design the uncomfortable cases
A document’s access is revoked after indexing. Short cache lifetimes alone leave a leak window; use current authoritative authorization before use, and propagate deletions into indexes and caches. If authorization cannot be checked, fail closed for the affected content and let the user continue with the existing support workflow.
A retrieved document contains instructions to email its contents externally. Treat it as evidence, not authority to invoke a tool. A ticket write times out after possibly succeeding: reconcile using the action ID or the customer API’s idempotency facility. If neither is available, show an unknown state and inspect the ticket before retrying. Blind retry can send duplicate replies.
5. Validate usefulness with customer cases
Build a reviewed evaluation set with answerable, unanswerable, stale-policy and restricted-document cases. Measure retrieval recall on authorized evidence separately from answer correctness. Add citation support checks and a useful refusal path. Track human edits and review time; an accepted draft is not necessarily correct, especially when users are rushing.
Fine-tuning may help style or task behavior, but it does not by itself solve document freshness or per-user access. Prefer a retrieval baseline first for this scenario, then use error analysis to justify any additional training. Demonstrate a permission-revocation failure drill before expanding the pilot.
6. Customer-facing explanation and rubric
Sample explanation: “Your existing identity system remains the source of access decisions. The assistant drafts from authorized documents and shows evidence. Support agents review replies before sending. If the knowledge connector or authorization service fails, your current ticket workflow remains available.”
Score 0–2 each for identity boundaries, versioned ingestion, write correctness, useful evaluation and fallback workflow. Two points require a concrete implementation choice and limitation. Senior follow-up: a customer will not allow document text to leave its network. Compare local deployment, an approved regional service and a reduced-scope workflow without promising an unavailable capability.
Walk a timed-out send through its states
Exercise: an agent approves draft D for ticket revision 12. The send request times out. The API supports an idempotency key and a status lookup by that key. Draw the state transitions before discussing retry policy.
Persist K, the intended payload digest, ticket revision and approval reference before issuing the call. If the destination reports success for K, store the result without sending again. If it allows safe retry within a documented retention window, retry the same operation with K and identical intent. Reject reuse of K with a changed payload. Check authorization and the applicable revision precondition at the destination’s effect boundary; a local check before a network call does not eliminate a concurrent update.
If the ticket advanced to revision 13 and no send committed, return to review rather than applying an obsolete reply. If the send already committed, report it and reconcile the changed ticket; do not claim rollback recalls an email. A durable local operation record alone cannot make an external API exactly-once.
Self-check: explain the destination’s retention and atomicity guarantees, and the manual reconciliation path when those guarantees are absent. AWS’s idempotency discussion provides the underlying retry contract; this ticket scenario is original.
Original practice drill added October 11, 2026. All observations and numerical assumptions in this drill are illustrative.
Use this case in the seven-day FDE interview plan.
Sources and next steps
- OpenAI: public FDE role description
- Anthropic: public FDE role description
- Anthropic: evaluating agent outcomes
References support the underlying concepts; the proposed architecture, exercises, and rubric are our own. Review the RAG design and debug a failed pilot.
Continue your preparation
Choose a connected learning path or browse more FDE interviews questions. Read our editorial method and attribution policy.