Interview Prep/AWS/IAM, Organizations and Multi-Account

A teammate says "just give it AdministratorAccess to get unblocked". How do you handle it properly?

BeginnerScenarioIAM, Organizations and Multi-Account
Answer

Situation read → Least privilege can be reached fast by letting AWS tell you what the app actually used.

What I'd do →

  1. Allow the broad permission only in a dev account for a short window
  2. Run the workload, then use IAM Access Analyzer policy generation from CloudTrail: it builds a policy from observed calls
  3. Review the draft, replace wildcards with ARNs, and apply it
  4. Remove the admin policy and check aws iam get-role for attached policies

Why → Generated policies come from real activity so they are tighter than guesses.

Interview tip → Mention Access Analyzer unused-access findings for cleanup later.

aws All AWS questions Roadmap: AWS core services

More on IAM, Organizations and Multi-Account