Data Security and Governance

An application must encrypt 100 MB files locally using a unique data key per file, protected by a symmetric KMS key. It must retain enough information to decrypt each file later without persisting plaintext keys. Which approach meets these requirements?

Show the answer

Correct answerD. Call GenerateDataKey, encrypt locally, store the encrypted data key, and discard the plaintext key

AWhy not this: The returned ciphertext must first be decrypted through KMS; it is not usable as the intended plaintext data key.

BWhy not this: Storing the random key beside the file persists plaintext key material and does not protect it with the KMS key.

CWhy not this: Direct encryption with a symmetric KMS key accepts at most 4,096 bytes, not a 100 MB file.

DWhy this is right: The plaintext key enables local encryption, while the encrypted copy supports later recovery through KMS.

GenerateDataKey returns plaintext key material for local encryption and an encrypted copy to retain with the file. GenerateDataKeyWithoutPlaintext returns no plaintext key for immediate local use; its ciphertext is not the data key itself.