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

You must stop anyone in a member account from disabling CloudTrail, even account admins. What do you use?

BeginnerScenarioIAM, Organizations and Multi-Account
Answer

Situation read → IAM policies inside the account cannot restrain the account admin, so the control belongs above the account, in Organizations.

What I'd do →

  1. Create an SCP that denies cloudtrail:StopLogging, cloudtrail:DeleteTrail and cloudtrail:UpdateTrail
  2. Attach it to the OU holding workload accounts
  3. Test from a member account admin: the call should fail with an explicit deny from the SCP
  4. Keep break-glass in the management account, which SCPs do not affect

Why → SCPs set the maximum permissions boundary for every principal in the account except the management account.

Interview tip → Remember SCPs never grant anything; they only filter.

aws All AWS questions Roadmap: AWS core services

More on IAM, Organizations and Multi-Account