A retrieved document says to reveal secrets. What should happen?
Understand the idea, explain it in your own words and use the rubric to find your next learning gap.
The idea behind the question
Retrieved documents are untrusted input. Model instructions cannot replace permission boundaries, restricted tools or secret management.
A malicious PDF includes instructions to send the conversation to an attacker-controlled URL.
A practical way to learn it
Threat-model one malicious document and list controls outside the model that stop data leaving the system.
Open online notepadThe related tool opens separately; your interview answer stays here. Written practice is self-guided, without automatic code grading.
Build an explanation you understand
- State what the concept does in plain language.
- Apply it to the example and make your assumptions explicit.
- Explain a trade-off, failure case and how you would test it.
- Distinguish your actual experience from a proposed approach.
How would you explain it?
Single-question timers reset on refresh. Full mock sessions can resume from this browser.
Strengthen your explanation
Compare reasoning, not identical wording. Reference answers describe a possible approach; replace hypothetical statements with truthful details from your own work.
One way to answer
I would keep secrets and unauthorized documents out of the model context and prevent arbitrary tool destinations. I would label retrieved material as data, constrain output and tool schemas, and apply deterministic authorization before any action. Detection and filtering can help, but I would not promise complete prevention from a keyword filter. I would test indirect injections, attempted exfiltration and misleading citations. Logging would avoid sensitive payloads, and the assistant would fail safely when an action cannot be justified by the user's authorized task.
What a strong explanation should cover
Tick only the points your own answer addresses. This is self-assessment, not AI scoring.
0 / 3 points self-reportedWatch out for
- Putting API keys in a system prompt and asking the model not to reveal them.
Now go one level deeper
- How could a tool response contain an injection?
- Which controls still hold if the model follows it?
Further reading
Further-reading links support learning; the reference is Sukoaa-authored, not an official employer answer key.