Skill 4.1.1
Implement IAM features (for example, password policies, multi-factor authentication [MFA], roles, federated identity, resource policies, policy conditions)
Key Concepts
The account password policy sets length, complexity, expiry and reuse rules for IAM users. MFA (passkeys or security keys, virtual authenticator apps or hardware TOTP tokens) protects the root user and privileged users, and policies can require it with aws:MultiFactorAuthPresent. Roles provide temporary credentials through AWS STS to services (instance profiles, Lambda execution roles), other accounts and federated users; the trust policy says who can assume the role and the permissions policy says what it can do.
Federation lets users sign in with an external identity provider through SAML 2.0 or OIDC, ideally via IAM Identity Center. Resource-based policies on S3 buckets, SQS queues, SNS topics, KMS keys and Lambda functions grant access to other principals, including other accounts. Conditions such as aws:SourceIp, aws:SourceVpce, aws:PrincipalOrgID, aws:RequestedRegion, aws:SecureTransport and tag keys narrow when a statement applies.