AWS Certified Developer – Associate (DVA-C02) — Question 236

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

The correct answer is A because using a data key generated in AWS KMS along with the AWS Encryption SDK allows for symmetric encryption of files, which is a requirement stated in the question. Option B is incorrect as HMAC is not suitable for file encryption. Options C and D are incorrect because using the AWS CLI does not meet the requirement of performing encryption within the application.