A chatbot must detect and block sensitive data leakage in user prompts and model outputs. Which control combination is most appropriate?

Answer

Use a policy-based content moderation/guardrail approach with PII detection before sending to the model and a second check on the model output

Explanation

Two-stage screening (pre-model and post-model) catches both input PII and any regenerated sensitive content. Pure string matching and unredacted logging increase leakage risk.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list