An enterprise AI assistant must block responses containing customer PII before data is logged. Which architecture BEST satisfies this requirement?

Answer

Add an output validation hook before logging

Explanation

An output validation hook placed before logging ensures that AI-generated content is inspected for PII *after* generation but *before* persistence. This programmatic enforcement layer can detect, redact, or block sensitive information, providing a robust safeguard against data leakage. Relying solely on prompt instructions (A) is insufficient, as LLMs can still inadvertently generate PII. A preprocessing hook (B) validates inputs, not outputs, and thus won't catch PII generated by the model. Higher token limits (D) affect conversation length but not content moderation or PII blocking mechanisms.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list