An application role has broad permissions, and an engineer wants a narrower starting policy based on its recorded API activity over the past month. Which approach should the engineer use?
Show the answer
Correct answerD. Generate a policy with IAM Access Analyzer using CloudTrail activity.
AWhy not this: Credential reports describe IAM user credential status and do not generate policies from a role's activity.
BWhy not this: Conformance packs evaluate compliance rules; they do not generate role policies from API activity.
CWhy not this: Exposed-key checks address credential exposure, not policy generation from observed application activity.
DWhy this is right: Policy generation uses recorded CloudTrail activity to create a starting policy for review and refinement.
IAM Access Analyzer can generate a policy based on a role's CloudTrail activity during a selected period. The generated policy requires review and refinement; an IAM credential report describes IAM user credentials, not the permissions an application role needs.