A developer is implementing client-side envelope encryption to secure local data files of size . The developer calls the AWS KMS `GenerateDataKey` API operation. What does this API operation return to the developer's application?
- AOnly the encrypted ciphertext data key
- Both the plaintext data key and the encrypted ciphertext data keyAnswer
- CThe plaintext data key and the customer managed key
- DThe encrypted data payload and the plaintext data key
Answer
Both the plaintext data key and the encrypted ciphertext data key
The GenerateDataKey API operation returns both a plaintext copy of the data key (used to encrypt the file locally in memory) and a ciphertext copy of the data key (encrypted with the specified KMS key, which is saved alongside the encrypted data for later decryption).
Step-by-Step Solution
Key Concept
AWS KMS Envelope Encryption Workflow
Estimated Time:45s