AWS Certified Developer – Associate — Question 323

A developer is writing an application to encrypt files outside of AWS before uploading the files to an Amazon S3 bucket. The encryption must be symmetric and must be performed inside the application.

How can the developer implement the encryption in the application to meet these requirements?

Answer options

Correct answer: A

Explanation

To perform symmetric client-side encryption within application code, generating a symmetric data key from AWS KMS and using the AWS Encryption SDK is the correct approach. HMAC keys are used for message authentication rather than encryption, and data key pairs are for asymmetric encryption. The AWS CLI is a command-line tool, making it unsuitable for performing encryption inside the application code.