Identity and Access Management

A batch application's IAM role has broad Amazon S3 and Amazon DynamoDB permissions. CloudTrail has recorded the application's activity for the past 90 days. The security team wants a starting policy that grants only the services and actions the role actually used. Which approach meets this requirement with the least effort?

Show the answer

Correct answerB. Generate a policy with IAM Access Analyzer from the role's CloudTrail activity.

AWhy not this: The simulator tests whether current policies allow actions; it does not show which actions the role used.

BWhy this is right: Policy generation builds a least-privilege starting policy from the role's recorded CloudTrail activity.

CWhy not this: The credential report lists IAM users' passwords and access keys, not a role's used actions.

DWhy not this: A boundary identical to the current policy leaves the role's effective permissions unchanged.

IAM Access Analyzer policy generation reviews a role's CloudTrail activity for a chosen period and produces a policy that contains only the services and actions it used, which the team then reviews and refines. The Policy Simulator shows what current policies allow, not what was used, and a boundary that copies the current policy narrows nothing.