Least-privilege IAM policy for an app calling one Bedrock model

AIF-C01 Security, Compliance, and Governance for AI Solutions Medium Question 14 of 65

An application on Amazon EC2 calls one approved Amazon Bedrock model. It currently runs with an IAM role that has the AdministratorAccess policy attached.

Which change follows the principle of least privilege?

Show answer and explanation

AAttach a policy allowing model invocation on the approved model.

Least privilege means granting only the permissions required for a task, defined as specific actions on specific resources, so narrowing both the action and the resource is what applies it. Allowing invocation across the account's models scopes the action but leaves every model reachable. Allowing Bedrock management actions on that model scopes the resource but grants permissions the application never uses. AWS warns that managed policies might not grant least privilege for a specific use case.

Source: docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html

Anonymous, no account needed. Your tally stays in this browser.

Next question Start 5 timed questions Browse all 65 original AIF-C01 practice questions