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

A policy has an Allow for `s3:*` but a user still gets AccessDenied on `PutObject`. List the places a deny can hide.

IntermediateScenarioIAM, Organizations and Multi-Account
Answer

Situation read → Evaluation is explicit deny first, so I hunt for any deny across the layers.

What I'd do →

  1. SCP in Organizations
  2. Permissions boundary on the role or user
  3. Session policy passed during assume-role
  4. Bucket policy with Deny conditions such as aws:SecureTransport or required encryption
  5. VPC endpoint policy
  6. Use the IAM policy simulator or aws iam simulate-principal-policy and CloudTrail errorMessage, which often names the deny type

Why → AWS error messages now say "explicit deny in a service control policy" or similar, which pinpoints the layer.

Interview tip → Recite the evaluation order: explicit deny, SCP, boundary, session, identity or resource allow.

aws All AWS questions Roadmap: AWS core services

More on IAM, Organizations and Multi-Account