Soru

Zorluk: KolayAWS KMS and Encryption

An application needs to encrypt large files locally before uploading them to Amazon S3. The developer decides to use client-side envelope encryption with an AWS Key Management Service (AWS KMS) customer managed key. The developer calls the GenerateDataKey API operation.

Which two components are returned by this API call to enable envelope encryption? (Select TWO.)

  1. A plaintext data key, which the application uses to encrypt the data.Cevap
  2. B
    The raw data encrypted directly by AWS KMS, which the application uploads to S3.
  3. An encrypted copy of the data key (ciphertext), which is stored with the encrypted data.Cevap
  4. D
    The private key of the customer managed key, which is used to decrypt the data key locally.
  5. E
    A secure parameter path in Systems Manager Parameter Store where the data key is automatically saved.

Cevap

The API returns a plaintext data key for immediate encryption and an encrypted data key (ciphertext) to be stored alongside the encrypted data.
In client-side envelope encryption, the GenerateDataKey API operation returns a plaintext data key and an encrypted data key. The plaintext data key is used by the application to encrypt the files locally. The encrypted data key is stored alongside the encrypted files so that it can be sent back to KMS for decryption in the future.

Adım Adım Çözüm

1
Analyze the request for client-side envelope encryption using the GenerateDataKey API.
The application needs to encrypt data locally, which requires a local key.
Understanding the core flow of envelope encryption where encryption happens on the client side using a locally generated symmetric key.
2
Determine the output of the GenerateDataKey API operation.
AWS KMS returns both the plaintext data key and the encrypted data key.
The plaintext key is required for immediate local encryption, and the encrypted key is required for future decryption when requesting KMS to decrypt it.

Anahtar Kavram

AWS KMS Envelope Encryption Workflow
Bu soruyu puanla