Skill 4.2.2

Implement, configure, and troubleshoot encryption at rest (for example, AWS KMS)

Key Concepts

KMS keys are AWS owned (invisible, free), AWS managed (aws/s3, aws/ebs; policy cannot be changed, cannot be shared across accounts) or customer managed (your key policy, grants, optional automatic rotation, cross-account use, multi-Region keys). Services use envelope encryption with data keys. Enable EBS encryption by default per Region; S3 encrypts all new objects with SSE-S3 by default, and SSE-KMS with S3 Bucket Keys reduces KMS request costs.

Existing unencrypted EBS volumes and RDS instances cannot be encrypted in place: create a snapshot, copy it with encryption, and restore. Troubleshoot AccessDeniedException by checking the key policy (the key policy must allow the account or principal), IAM permissions, grants, whether the key is disabled or pending deletion, and whether the key is in the right Region. An instance that will not start because its volume key is disabled needs the key re-enabled.