Security

An application needs nonstreaming access to one Amazon Bedrock foundation model through InvokeModel. Which role policy permission provides the least privilege?

Show the answer

Correct answerC. Allow bedrock:InvokeModel on the approved model ARN.

AWhy not this: The wildcard action grants more Bedrock operations than the application needs.

BWhy not this: Listing available models does not authorize model invocation.

CWhy this is right: The permission limits access to the required operation and the approved model.

DWhy not this: The action is appropriate, but the resource scope includes models beyond the approved model.

Restricting both the action and resource grants only the required invocation access. Allowing InvokeModel on all model resources grants access beyond the approved model.