SAA-C03 ยท Data protection and compliance
KMS key policies, grants and rotation
Key policies, grants and cross-account key use, automatic key rotation and what happens to data when a key is disabled or scheduled for deletion.
Key points
- Each KMS key has a key policy; IAM policies count only if it allows IAM.
- Grants: temporary, narrow permissions.
- Cross-account: key policy + IAM policy in the other account.
- Rotation (symmetric customer managed, default 365 days, or on demand): new material, same key ID and ARN; old ciphertext decrypts, no re-encryption.
- Disabled key can be re-enabled.
- Deletion: 7-30 days (default 30) in Pending deletion, cancellable; then data is lost.
Source: https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html
Practice questions
What is the default waiting period when you schedule a customer managed KMS key for deletion?
- 7 days
- 14 days
- 30 days
- 90 days
Show answer
Answer: C. 30 days
You choose 7 to 30 days and the default is 30 days. During that time the deletion can still be cancelled.
Which KMS keys do NOT support automatic key rotation and must be rotated manually by switching to a new key?
- Asymmetric KMS keys
- HMAC KMS keys
- KMS keys in a custom key store
- Symmetric customer managed keys with KMS-generated material
- AWS managed keys such as aws/s3
Show answer
Answer: A. Asymmetric KMS keys, B. HMAC KMS keys, C. KMS keys in a custom key store
Asymmetric keys, HMAC keys and keys in custom key stores support neither automatic nor on-demand rotation. Symmetric customer managed keys with KMS-generated material support automatic rotation, and AWS managed keys are always rotated yearly by AWS.
Rotating a KMS key also re-encrypts the data keys and the data that the key protects.
Show answer
Answer: False
False. Rotation only changes the current key material used for new encryption. Existing data keys and data are untouched, which is why rotation does not help if a data key itself is compromised.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
