You need to implement access control for a generative AI application calling Bedrock and external APIs. Which mechanism is best to use to enforce least-privilege permissions?
Answer
IAM role policies scoped to required actions and resources
Explanation
Least-privilege access is achieved by granting only required Bedrock and API permissions via IAM roles and policies. Avoid embedding credentials in client code.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
Which approach best helps you ensure a consistent JSON schema output from a model in an agent or application?
View question →
Which statement about using Amazon SageMaker for generative AI developer workflows is most accurate?
View question →
The passage mentions safety checks after generation. What is the best purpose of these checks in the workflow described?
View question →
You want to build a safe, production-grade text generation workflow using AWS services. Which practice most directly aligns with AWS responsible AI and operational safety?
View question →
The passage describes a RAG workflow. What is the most accurate interpretation of the role of retrieval in this system?
View question →
A system stores document embeddings for semantic search. What is the most important reason to use a vector database or vector search index?
View question →