Skill 4.2.3

Design, interpret, and implement IAM policies by following the principle of least privilege (for example, permission boundaries, session policies)

Key Concepts

Read policies by checking Effect, Action, Resource and Condition. Evaluation: explicit deny wins; within an account, an allow in an identity or resource policy is needed; SCPs, RCPs, permissions boundaries and session policies can only limit. Effective permissions are the intersection of the allows that apply.

Permissions boundaries let administrators delegate role creation safely: require iam:PermissionsBoundary on CreateRole. Session policies passed in AssumeRole limit one session. Use NotAction carefully, scope resources by ARN and use condition keys (aws:SourceIp, aws:SourceVpce, aws:RequestedRegion, aws:MultiFactorAuthPresent).