All Questions
Guardrails And Safety easy

Your team logs every prompt and response for debugging. Users sometimes paste card numbers and phone numbers into chat. A teammate proposes a nightly job that scans the log store and redacts PII. What is the problem with this plan?

  1. A Regex redaction misses PII, so the nightly job should use an ML-based detector instead.
  2. B Redaction is unnecessary if the log store is encrypted at rest with access limited to engineers.
  3. C The raw PII already sits in logs and backups until the job runs; redact before writing instead.
  4. D Redacting logs breaks debugging, so it is safer to keep raw logs and shorten retention to a week.

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

Get the app

Related questions