A developer needs to encrypt a configuration file containing sensitive database credentials. The file size is , and the developer decides to use direct encryption with an AWS Key Management Service (AWS KMS) customer managed key before uploading the file to Amazon S3. Which of the following actions must be taken to successfully encrypt this file? (Select TWO.)
- Call the `Encrypt` API operation, passing the plaintext configuration data and the customer managed key identifier.Cevap
- Configure the KMS key policy of the customer managed key to grant the application's IAM role permission to perform the `kms:Encrypt` action.Cevap
- CCall the `GenerateDataKey` API operation to perform client-side envelope encryption, as direct encryption is not supported for files smaller than .
- DCall the `GenerateDataKeyWithoutPlaintext` API operation to generate a plaintext data key for local file encryption.
- EStore the configuration file in AWS Systems Manager Parameter Store as a `SecureString` to automatically trigger direct KMS encryption on the file object.
Cevap
The configuration file can be encrypted by calling the KMS `Encrypt` API operation directly, and the application's IAM role must have the `kms:Encrypt` permission allowed in the customer managed key's key policy.
Direct encryption using the KMS `Encrypt` API operation is suitable for data payloads up to . To perform this action, the caller's IAM role must be granted permissions in the customer managed key's key policy.
Adım Adım Çözüm
Anahtar Kavram
Direct encryption with AWS KMS using the Encrypt API operation is suitable for small payloads up to , provided that appropriate key policy permissions are configured.
Tahmini Süre:1m 30s