ExamQuestions.com

Register
Login
AWS Certified Security Specialty Exam Questions

Amazon

AWS Certified Security Specialty

35 / 310

Question 35:

You have a Cron job that will run on the EC2 instance. The job calls a bash script that will encrypt a file whose size is about 2kb. You prefer that the encryption is performed through a Customer Master Key (CMK) in KMS. So, you have created a CMK for this task. The script uses AWS CLI to do the encryption. How do you encrypt the file using the CMK in the bash script?
 

Answer options:

A.Use "aws kms encrypt" to encrypt the file. No envelope encryption is required in this case.
B.Use "aws kms generate-data-key" to generate a data key, then use the plain text data key to encrypt the file.
C.Use "aws kms generate-data-key" to generate a data key, then use the encrypted data key to encrypt the file.
D.Envelope encryption is required in this case. Use "aws kms encrypt" to generate a data key, then use the plain text data key to encrypt the file.