Refer to the exhibit. A company has an S3 bucket with server-side encryption using AWS KMS. The bucket policy allows access to a user, but the user receives 'Access Denied' when trying to download an object. The IAM policy for the user is shown. What is the MOST likely cause?
Exhibit
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "kms:Decrypt",
"Resource": "arn:aws:kms:us-east-1:123456789012:key/abc123",
"Condition": {
"StringEquals": {
"kms:ViaService": "s3.amazonaws.com"
}
}
}
]
}Trap 1: The user does not have MFA enabled.
MFA is not required by this policy.
Trap 2: The KMS key ID in the policy is incorrect.
The key ID appears correct.
Trap 3: The policy does not allow kms:Decrypt for the S3 bucket.
The policy allows Decrypt for S3.
- A
The user does not have MFA enabled.
Why wrong: MFA is not required by this policy.
- B
The KMS key ID in the policy is incorrect.
Why wrong: The key ID appears correct.
- C
The policy does not allow kms:Decrypt for the S3 bucket.
Why wrong: The policy allows Decrypt for S3.
- D
The policy has a condition that limits kms:Decrypt to when the request is made through the S3 service, but the user might be using a different service to access the object (e.g., directly via KMS API).
The condition 'kms:ViaService' ensures decryption only through S3.