Question 196:
Your organization uses Amazon S3 buckets to save critical project documents. You have created a Bucket “test2021bucket” for this purpose. Users (UserA & UserB) need the Get, Put & Delete access to their individual folders. In the future, the policy needs to be unique when replicated to many users globally. Which of the following is a correct policy statement that can be applied with the least effort to meet this requirement?
Answer options:
A.{
"Version":"2012-10-17",
"Statement":[
{
"Effect":"Allow",
"Action":[
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObject",
],
"Resource":"arn:aws:s3:::test2021bucket/*"
}
]
}
B.{
"Version":"2012-10-17",
"Statement":[
{
"Effect":"Allow",
"Action":[
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObject",
],
"Resource":"arn:aws:s3:::test2021bucket/UserA/*"
}
]
}
C.{
"Version":"2012-10-17",
"Statement":[
{
"Effect":"Allow",
"Action":[
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObject",
],
"Resource":"arn:aws:s3:::test2021bucket/${aws:username}/*"
}
]
}
D.{
"Version":"2012-10-17",
"Statement":[
{
"Effect":"Allow",
"Action":[
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObject",
],
"Resource":"arn:aws:s3:::test2021bucket/${aws:userid}/*"
}
]
}