๐
IAM & Security
SecurityIdentity, access management, and encryption fundamentals for the exam.
IAM basics
- โธUsers: long-term credentials for people/apps. Roles: temporary credentials assumed via STS โ preferred for AWS resources.
- โธPolicies: JSON documents defining Effect/Action/Resource/Condition; identity-based (attached to principal) or resource-based (attached to resource, can be cross-account).
- โธExplicit Deny always wins over any Allow.
- โธLeast privilege: grant only the specific actions and resources actually needed.
STS
- โธAssumeRole: get temporary credentials for a role, commonly for cross-account access.
- โธAssumeRoleWithWebIdentity / AssumeRoleWithSAML: federate external identity providers into temporary AWS credentials.
KMS & encryption
- โธEnvelope encryption: a data key encrypts the data; a CMK encrypts the data key.
- โธCustomer-managed CMKs support optional automatic annual rotation; AWS-managed keys rotate automatically every year.
- โธSSE-S3 (AWS-owned key) vs SSE-KMS (customer CMK, CloudTrail audit trail, request quotas apply) vs SSE-C (customer-supplied key, not stored by AWS).
Secrets & config
- โธSecrets Manager: automatic rotation, native RDS/Redshift/DocumentDB integration, cost per secret.
- โธSSM Parameter Store: free tier, SecureString via KMS, good for config + simple secrets.
- โธCognito: user pools for auth (JWTs), identity pools for temporary AWS credentials via STS.