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

How would you let developers create IAM roles for their apps without letting them escalate to admin?

IntermediateScenarioIAM, Organizations and Multi-Account
Answer

Situation read → This is the classic delegated-administration problem; solve it with permissions boundaries.

What I'd do →

  1. Define a boundary policy that caps what any app role can ever do (for example no IAM, no Organizations)
  2. Give developers iam:CreateRole and iam:AttachRolePolicy only with condition iam:PermissionsBoundary equal to the boundary ARN
  3. Deny iam:DeleteRolePermissionsBoundary
  4. Prefix-scope with a path such as role/app/*

Why → Effective permissions are the intersection of identity policy and boundary, so any role they create stays inside the cage.

Interview tip → Name the escalation path you are blocking: create a role with AdministratorAccess and assume it.

aws All AWS questions Roadmap: AWS core services

More on IAM, Organizations and Multi-Account