All Questions
Evals And Observability medium

A health-adjacent assistant serves 5M requests per day. Engineers want prompt and output logs for debugging, and legal is worried about storing sensitive user text. Which logging policy best balances both concerns?

  1. A Fully log a small sample plus all errors and flagged sessions, redact PII before storage, and keep the content under a short retention window.
  2. B Log every prompt and output in full but encrypted at rest, since encryption by itself satisfies privacy requirements and maximizes debug coverage.
  3. C Log only metadata such as token counts, latency, and status codes, since prompt content is rarely needed to debug quality issues in LLM apps.
  4. D Log every request in full but hash the user ID, since removing the direct identifier makes prompt contents anonymous and safe to retain.

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

Get the app

Related questions