Data Security and Governance

An application encrypted a data key with a symmetric KMS key and the encryption context Dataset=Orders. After automatic key rotation, decryption with the same key ARN and unchanged permissions fails with InvalidCiphertextException when the application supplies Dataset=orders. What should the engineer do?

Show the answer

Correct answerC. Supply Dataset=Orders when decrypting the data key.

AWhy not this: AWS KMS automatically selects the retained key material needed to decrypt existing ciphertext.

BWhy not this: Disabling rotation does not change the context required to decrypt existing ciphertext.

CWhy this is right: Encryption context is case-sensitive and must match the context used during encryption.

DWhy not this: An additional decrypt grant does not correct an encryption-context mismatch.

AWS KMS requires the encryption context supplied for decryption to match the original context exactly, including case. Automatic rotation retains previous key material, and KMS selects the appropriate material without caller intervention.