ExamQuestions.com

Register
Login
AWS Certified Security Specialty Exam Questions

Amazon

AWS Certified Security Specialty

18 / 310

Question 18:

In your organization, a customer-managed key named TestCMK has been created for a new project. This key is supposed to be used only by related AWS services in this project including EC2 and RDS in region us-west-2. For security concerns, you need to make sure that no other services can encrypt or decrypt using this particular CMK. In the meantime, EC2 and RDS should use the key without issues. How should you implement this?

Answer options:

A.Attach an IAM policy to each IAM user to deny kms:Encrypt and kms:Decrypt if the key is TestCMK.
B.Configure an IAM service role to allow kms:Encrypt and kms:Decrypt if the key is TestCMK. Attach the IAM role to EC2 and RDS instances.
C.Configure a key policy for this CMK. Use kms:ViaService to check if the request comes from ec2.us-west-2.amazonaws.com or rds.us-west-2.amazonaws.com.
D.Configure a key policy for this CMK. Use kms:ValidTo to check if the request comes from EC2 or RDS services.