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

Walk me through how you would implement least privilege at scale for 200 roles that currently have wide permissions.

AdvancedScenarioIAM, Organizations and Multi-Account
Answer

Situation read → You cannot hand-review 200 roles, so use data to shrink them in waves.

What I'd do →

  1. Enable Access Analyzer unused-access analyzer at the org level
  2. Rank roles by findings of unused permissions and unused roles
  3. Generate policies from CloudTrail for the top risks, replace with scoped ones in lower environments first
  4. Roll to prod behind a monitored change window with the old policy kept for rollback
  5. Add policy-as-code checks (IAM Access Analyzer validate-policy or cfn-guard) in CI

Why → Iterative tightening with rollback beats a big-bang rewrite that breaks production.

Interview tip → Mention that you measure progress by unused-permission count dropping.

aws All AWS questions Roadmap: AWS core services

More on IAM, Organizations and Multi-Account