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

Your SCP change accidentally locked everyone out of a production OU, including the pipeline. How do you recover?

AdvancedScenarioIAM, Organizations and Multi-Account
Answer

Situation read → SCPs do not apply to the management account, which is the recovery path.

What I'd do →

  1. Sign in to the management account with an admin who has Organizations permissions
  2. Detach or fix the SCP: aws organizations detach-policy --policy-id p-xxxx --target-id ou-abcd-12345678
  3. Verify member-account calls work again
  4. Add a post-mortem action to roll out SCPs to a canary OU first with CloudTrail review

Why → Management account is exempt by design, which is also why you must keep workloads out of it.

Interview tip → Always keep FullAWSAccess attached alongside deny lists unless you intentionally use allow-list mode.

aws All AWS questions Roadmap: AWS core services

More on IAM, Organizations and Multi-Account