โ˜๏ธAWSDVA Prep
← All cheat sheets
๐Ÿ”

IAM & Security

Security

Identity, 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.
Test yourself on this โ†’