All Questions
Guardrails And Safety easy

Your chat UI renders Markdown images. A security review shows that an injected document can make the model output an image tag pointing to attacker.com/log?d= followed by the user's chat history. What is the most effective fix?

  1. A Tell the model in the system prompt never to include conversation data in image URLs.
  2. B Scan user messages for suspicious URLs and reject them before they reach the model.
  3. C Run a toxicity classifier on the response so harmful content never reaches the user.
  4. D Only render images and links from an allow-list of trusted domains in the client.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions