A company uses Amazon Bedrock model invocation for a multimodal pipeline (images + text) and stores sensitive prompts in a knowledge base. Which combination best satisfies least-privilege and reduces unintended prompt disclosure?
Answer
Use separate IAM roles per microservice, restrict bedrock:InvokeModel to specific model ARNs, encrypt prompt artifacts with KMS, and configure access to the knowledge base via scoped IAM permissions and security controls.
Explanation
Least privilege requires scoping IAM actions to specific model resources and limiting data access. Encrypting prompt artifacts with KMS helps protect sensitive content at rest, while scoped knowledge base access prevents overbroad retrieval.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
You must implement guardrails for an agent that converts user requests into SQL queries against an Athena catalog. Which combination best reduces the risk of prompt injection leading to data exfiltration?
View question →
You must ensure an AI agent can call tools safely: it should retrieve documents from a knowledge base but must not exfiltrate credentials or internal documents not explicitly authorized. Which approach is best?
View question →
An organization uses AWS IAM Identity Center for user authentication and wants to map users to authorization scopes used by a knowledge base retrieval pipeline. Which design is most appropriate?
View question →
Read the following text.
View question →
When using Amazon Bedrock with Retrieval Augmented Generation (RAG), which failure mode is most directly addressed by adding strict document-level access controls to the retrieval layer?
View question →
A team deploys a Bedrock model behind a multi-tenant application. They need to distinguish traffic from different tenants for incident response and auditing, while still preventing tenants from reading each other’s traces or data. Which solution best meets this requirement?
View question →