Hard1 markMultiple Choice
Domain 1.3: Data SecurityDomain 1KMSEncryption

AWS SAA-C03 · Question 15 · Domain 1.3: Data Security

A developer needs to encrypt a 5 GB file before uploading it to Amazon S3. The company policy mandates the use of AWS KMS. How should the solutions architect implement this?

Answer options:

A.

Call the KMS Encrypt API directly with the 5 GB file.

B.

Use KMS envelope encryption by calling GenerateDataKey, encrypt the file locally, and upload.

C.

Upload the file to S3 and use S3 Select to encrypt it with KMS.

D.

Use AWS Certificate Manager to encrypt the file before upload.

How to approach this question

Remember the 4 KB limit of direct KMS encryption. For larger files, envelope encryption is required.

Full Answer

B.Use KMS envelope encryption by calling GenerateDataKey, encrypt the file locally, and upload.✓ Correct
Use KMS envelope encryption to generate a data key, encrypt the file locally, and upload.
AWS KMS direct encryption is limited to 4 KB. For larger files, you must use envelope encryption: call GenerateDataKey to get a data key, encrypt the file locally with the data key, and then store the encrypted file and the encrypted data key.

Common mistakes

Assuming KMS can directly encrypt large files.

Practice the full AWS SAA-C03 Practice Exam 3

65 questions · hints · full answers · grading

More questions from this exam