All Questions
Guardrails And Safety medium

Your team logs full prompts and responses for debugging and plans a nightly batch job that redacts emails, phone numbers, and card numbers from the log store. Compliance rejects the plan. What should you do instead?

  1. A Redact at ingestion before anything is written; by the nightly run, raw PII already sits in log storage, replicas, and sinks.
  2. B Keep nightly redaction but encrypt logs at rest with managed keys, which satisfies the requirement since only staff can read them.
  3. C Instruct the model in its system prompt never to repeat PII in responses, so the logged outputs contain nothing to redact.
  4. D Keep raw logs but cut retention to 24 hours, which bounds the exposure window and makes the nightly redaction job unnecessary.

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

Get the app

Related questions