A role used by a nightly batch job received broad permissions during development. The team now wants a policy that contains only the actions the job actually performed over recent weeks. Which tool can generate that policy?
Choose an answer to check it. Afterward, select any option to review its explanation.
Policy generation reviews the role's activity in CloudTrail and produces a policy template with only the permissions the role used in the chosen time frame, which moves it toward least privilege.
Account Factory provisions new accounts from templates. It does not analyze a role's past actions.
GuardDuty reports suspicious activity; it does not write permission policies from usage.
AWS managed policies are a starting point shared by all customers, so they may not be least privilege for this job.
id q07c2d68c00