When deploying a generative AI application on AWS, what is a basic best practice for controlling access to the model endpoint?
Answer
Use least-privilege IAM permissions to the endpoint
Explanation
Least-privilege IAM permissions limit what identities can do, reducing security risk. Using roles and scoped policies to access endpoints is a common best practice in AWS. Hardcoding credentials and granting public access both increase exposure. Avoiding roles and policies would also weaken access control.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
Which AWS service is commonly used to access and deploy foundation models with managed APIs?
View question →
Which AWS Identity and Access Management (IAM) concept is used to grant permissions to access AWS resources?
View question →
Which component is typically responsible for selecting relevant context during RAG?
View question →
What is one reason to use retrieval-augmented generation (RAG) in an application?
View question →
In AWS Generative AI services, what is the main purpose of a foundation model?
View question →
Which AWS capability is commonly used to build and manage vector indexes for semantic search in RAG?
View question →