All Questions
Ai Coding And Product Systems easy

You are building a workspace AI that answers questions over a company's documents. Some documents are visible only to the HR team. Where should the system enforce document permissions?

  1. A Include each document's ACL in the prompt and instruct the model not to reveal restricted content.
  2. B Filter retrieval results by the user's permissions before any text reaches the prompt.
  3. C Index only documents that every employee can read, so no permission checks are ever needed.
  4. D Let the model answer freely, then scan the output for restricted keywords before returning it.

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

Get the app

Related questions