A developer is building a sensitive medical telemetry ingestion application. The application receives health records (each approximately in size) that must be encrypted client-side using envelope encryption before being stored in Amazon DynamoDB. The developer needs to implement this workflow using the AWS SDK and a customer managed key in AWS KMS.
Which two steps must the developer perform to encrypt and store each health record? (Select TWO.)
- Call the AWS KMS GenerateDataKey API using the customer managed key to receive both a plaintext data key and an encrypted data key.Cevap
- BCall the AWS KMS Encrypt API directly to encrypt each health record, then store the resulting ciphertext in DynamoDB.
- CCall the AWS KMS GenerateDataKeyWithoutPlaintext API to retrieve an encrypted data key, then decrypt this key locally using a local private key.
- Encrypt the health record payload locally using the plaintext data key, erase the plaintext key from memory, and store the encrypted payload along with the encrypted data key in DynamoDB.Cevap
- EStore the generated plaintext data key in AWS Systems Manager Parameter Store as a SecureString parameter to share it with other application components.
Cevap
To secure the payloads, the developer must call the GenerateDataKey API to obtain both a plaintext data key and an encrypted data key. The plaintext key is used to encrypt the health record locally, and then it is discarded from memory. The encrypted payload and the encrypted data key are then stored together in DynamoDB.
The correct workflow for client-side envelope encryption requires obtaining both a plaintext key and an encrypted key via the GenerateDataKey API. The plaintext key is used to perform the local encryption of the health record, and then it is immediately discarded from memory to prevent exposure. The encrypted data key and the encrypted payload are stored together in the database, allowing authorized users to decrypt the payload by first decrypting the key via KMS.
Adım Adım Çözüm
Anahtar Kavram
AWS KMS Envelope Encryption
Tahmini Süre:1m 30s