Topic 1 Question 99
An IAM user receives an Access Denied message when the user attempts to access objects in an Amazon S3 bucket. The user and the S3 bucket are in the same AWS account. The S3 bucket is configured to use server-side encryption with AWS KMS keys (SSE-KMS) to encrypt all of its objects at rest by using a customer managed key from the same AWS account. The S3 bucket has no bucket policy defined. The IAM user has been granted permissions through an IAM policy that allows the kms:Decrypt permission to the customer managed key. The IAM policy also allows the s3:List* and s3:Get* permissions for the S3 bucket and its objects.
Which of the following is a possible reason that the IAM user cannot access the objects in the S3 bucket?
The IAM policy needs to allow the kms:DescribeKey permission.
The S3 bucket has been changed to use the AWS managed key to encrypt objects at rest.
An S3 bucket policy needs to be added to allow the IAM user to access the objects.
The KMS key policy has been edited to remove the ability for the AWS account to have full access to the key.
ユーザの投票
コメント(7)
- 正解だと思う選択肢: D
The possible reason that the IAM user cannot access the objects in the S3 bucket is that the KMS key policy has been edited to remove the ability for the AWS account to have full access to the key.
Since the S3 bucket is using SSE-KMS encryption with a customer managed key, the key policy for that KMS key needs to grant the appropriate permissions to allow decryption of the objects. The IAM policy grants the kms:Decrypt permission, but if the key policy no longer gives the AWS account full access, the decrypt permission will still be denied.
Options A and B relate to the kms:DescribeKey permission and AWS managed keys, but a customer managed key is being used here. Option C is incorrect because an S3 bucket policy is not required when using IAM policies for permissions. Therefore, option D that mentions the KMS key policy having inappropriate access for the account is the likely reason for the access being denied.
👍 5azure4life2024/06/14 - 正解だと思う選択肢: D
If you allow by IAM policy to a key, it still can be denied by key policy (which is another policy) unless you explicitly allows. "Unless the key policy explicitly allows it, you cannot use IAM policies to allow access to a KMS key. Without permission from the key policy, IAM policies that allow permissions have no effect."
👍 4Daniel762024/06/24 - 正解だと思う選択肢: D
D is correct
👍 2[Removed]2024/05/25
シャッフルモード