ExamQuestions.com

Register
Login
AWS Certified Security Specialty Exam Questions

Amazon

AWS Certified Security Specialty

200 / 310

Question 200:

Which of the following bucket policies will ensure that objects being uploaded to a bucket called ‘demo’ are encrypted?

Answer options:

A.{
 "Version":"2012-10-17",
 "Id":"PutObj",
 "Statement":[
{
 "Sid":"DenyUploads",
 "Effect":"Deny",
 "Principal":"*",
 "Action":"s3:PutObject",
 "Resource":"arn:aws:s3:::demo/*",
 "Condition":{
"StringNotEquals":{
 "s3:x-amz-server-side-encryption":"aws:kms"
}
 }
}
 ]
}
B.{
 "Version":"2012-10-17",
 "Id":"PutObj",
 "Statement":[
{
 "Sid":"DenyUploads",
 "Effect":"Deny",
 "Principal":"*",
 "Action":"s3:PutObject",
 "Resource":"arn:aws:s3:::demo/*",
 "Condition":{
"StringEquals":{
 "s3:x-amz-server-side-encryption":"aws:kms"
}
 }
}
 ]
}
C.{
 "Version":"2012-10-17",
 "Id":"PutObj",
 "Statement":[
{
 "Sid":"DenyUploads",
 "Effect":"Allow",
 "Principal":"*",
 "Action":"s3:PutObject",
 "Resource":"arn:aws:s3:::demo/*",
 "Condition":{
"StringEquals":{
 "s3:x-amz-server-side-encryption":"aws:kms"
}
 }
}
 ]
}
D.{
 "Version":"2012-10-17",
 "Id":"PutObj",
 "Statement":[
{
 "Sid":"DenyUploads",
 "Effect":"Deny",
 "Principal":"*",
 "Action":"s3:PutObjectEncrypted",
 "Resource":"arn:aws:s3:::demo/*"
}
 }
]
}