Which approach best supports safe handling of sensitive data in a RAG workflow when documents may include PII?
Answer
Apply data protection, masking/redaction, and least-privilege access before storing or retrieving
Explanation
Protecting and minimizing sensitive data (e.g., masking/redaction) plus least-privilege access reduces exposure throughout the pipeline. Sending raw documents or disabling controls increases risk.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
You want to evaluate whether a RAG system retrieves the right sources before generating an answer. Which metric or evaluation strategy best reflects retrieval quality?
View question →
A developer must build an event-driven workflow that summarizes documents and stores results. Which AWS service is best suited for coordinating multiple steps with branching logic and retries?
View question →
Which AWS feature helps you mitigate prompt injection risks in RAG by preventing untrusted retrieved text from overriding system instructions?
View question →
When using managed vector search to support RAG, what is the key reason to store embeddings in a vector index separate from the original documents?
View question →
When building a retrieval augmented generation (RAG) pipeline, what is the primary purpose of chunking documents before embedding?
View question →
Which service feature in AWS helps you manage access control for foundation models and generative AI endpoints across users and teams?
View question →