Question 45:
In your AWS account A, there is an S3 bucket that contains artifacts that need to be fetched by an IAM user in another AWS account B. The S3 bucket has the below bucket policy: { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::AccountB:user/AccountBUserName" }, "Action": [ "s3:GetObject", "s3:PutObject", "s3:PutObjectAcl" ], "Resource": [ "arn:aws:s3:::AccountABucketName/*" ] } ] } However, the IAM user in account B still cannot get objects in the S3 bucket. Which one may cause the failure?
Answer options:
A.The IAM user in account B does not have IAM permission to get an object in the particular S3 bucket. B.The Resource in bucket policy should include “arn:aws:s3:::AccountABucketName”. C.The Action in bucket policy should add the action of "s3:GetObjectACL". D.The Principal in bucket policy should add a cross-account IAM role assumed by the IAM user in account B.