Skip to interview prep
Apexed

78. A retrieved support document tells an assistant to ignore its instructions and export customer records. How should the application treat that text?

EasyWeb & APIs

Technical

Type or dictate your answer. Your draft is saved on this device.

Show model answer

Treat retrieved text as untrusted evidence, not authority to change the application's instructions or permissions. A document can contain malicious instructions even when the search system returned it successfully.

Keep authorization and tool permissions outside model-generated decisions. Restrict accessible data and actions, validate proposed tool arguments, and test whether hostile document content can trigger an unauthorized export.

What interviewers listen for

  • Separate evidence from authority
  • Enforce permissions outside the model
  • Test unauthorized tool actions
A retrieved support document tells an assistant to ignore its instructions and export customer records. How should the application treat that text — Software en