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
Related questions
A data scientist wants to implement reinforcement learning with a reward model, but must keep training workload managed and secure. Which AWS service pattern best aligns with managed training and secure data handling?
View question →
A company migrates from a single AWS Region to a multi-Region deployment for lower latency. They use managed inference endpoints and store embeddings for RAG. Which strategy is most likely to maintain consistency of retrieval results?
View question →
A healthcare startup needs patient-note anonymization and downstream model inference must be repeatable across time. Which approach best meets auditability and determinism requirements when using AWS managed AI services?
View question →
A team builds a customer-support assistant using retrieved FAQ passages plus live order data. During a review, they notice answers often omit the user’s order status even when it is present in the retrieved context. Which root-cause is most consistent with this behavior?
View question →
You are designing a multi-account GenAI architecture for an enterprise. Which identity and access approach best reduces risk while still enabling least-privilege access to model endpoints?
View question →
A team must evaluate a generative model for safety across multiple categories (harassment, self-harm, confidential data). They need repeatable results and traceability. What is the best evaluation approach?
View question →