A developer is implementing client-side envelope encryption in a containerized microservice to encrypt application configuration payloads that are approximately in size. The developer wants to use an AWS KMS customer managed key for this process. Which of the following actions must the developer perform to encrypt the payloads? (Select two.)
- Call the KMS GenerateDataKey API operation to retrieve a plaintext data key and an encrypted data key.Cevap
- Encrypt the configuration payload locally using the plaintext data key, and then discard the plaintext data key from memory.Cevap
- CCall the KMS Encrypt API operation directly using the customer managed key to encrypt the payload.
- DCall the KMS GenerateDataKeyWithoutPlaintext API operation to obtain the encrypted data key and use it to encrypt the payload locally.
- ERetrieve the plaintext data key from the AWS Systems Manager Parameter Store before executing the local encryption.
Cevap
The developer must call the KMS GenerateDataKey API operation to retrieve a plaintext data key and an encrypted data key, encrypt the payload locally using the plaintext data key, and then discard the plaintext data key from memory.
To perform client-side envelope encryption on payloads larger than , the developer must first call GenerateDataKey to get both the plaintext data key (used for local encryption) and the encrypted data key (stored with the ciphertext). The developer then encrypts the payload locally using the plaintext data key and discards the plaintext data key from memory to maintain security.
Adım Adım Çözüm
Anahtar Kavram
Client-side envelope encryption workflow with AWS KMS