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 →
- Create an SCP that denies
cloudtrail:StopLogging,cloudtrail:DeleteTrailandcloudtrail:UpdateTrail - Attach it to the OU holding workload accounts
- Test from a member account admin: the call should fail with an explicit deny from the SCP
- 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.
More on IAM, Organizations and Multi-Account
A developer needs read-only access to one S3 bucket from their laptop. How do you grant it without creating long-lived access keys?BeginnerAn EC2 application needs to write to DynamoDB. Where do the credentials come from?BeginnerSecurity wants to know who deleted a production S3 bucket yesterday. How do you find out?BeginnerA cross-account role assumption fails with AccessDenied even though the target role trusts the source account. What do you check?IntermediateDesign access for a CI pipeline in GitHub Actions to deploy to AWS without storing AWS keys in GitHub.IntermediateHow would you let developers create IAM roles for their apps without letting them escalate to admin?Intermediate