Exam SAP-C02 All QuestionsBrowse all questions from this exam
Question 6

A retail company needs to provide a series of data files to another company, which is its business partner. These files are saved in an Amazon S3 bucket under Account A, which belongs to the retail company. The business partner company wants one of its IAM users, User_DataProcessor, to access the files from its own AWS account (Account B).

Which combination of steps must the companies take so that User_DataProcessor can access the S3 bucket successfully? (Choose two.)

    Correct Answer: C, D

    For User_DataProcessor in Account B to access the S3 bucket in Account A, two key steps are needed. Firstly, Account A needs to add a policy to the S3 bucket that explicitly allows the IAM user from Account B the necessary permissions to access the bucket. This is achieved by specifying the principal as the IAM user and granting the required actions, as shown in option C. Secondly, Account B must assign an IAM policy to User_DataProcessor that grants permission to perform the required actions (GetObject and ListBucket) on the S3 bucket in Account A, which is specified in option D. Together, these steps ensure that cross-account access is correctly configured.

Discussion
robertohyena

Answer: C & D Source: https://aws.amazon.com/premiumsupport/knowledge-center/cross-account-access-s3/ https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-walkthroughs-managing-access-example4.html

higashikumi

C & D To allow User_DataProcessor to access the S3 bucket from Account B, the following steps need to be taken: In Account A, set the S3 bucket policy to allow access to the bucket from the IAM user in Account B. This is done by adding a statement to the bucket policy that allows the IAM user in Account B to perform the necessary actions (GetObject and ListBucket) on the bucket and its contents. In Account B, create an IAM policy that allows the IAM user (User_DataProcessor) to perform the necessary actions (GetObject and ListBucket) on the S3 bucket and its contents. The policy should reference the ARN of the S3 bucket and the actions that the user is allowed to perform. Note: turning on the cross-origin resource sharing (CORS) feature for the S3 bucket in Account A is not necessary for this scenario as it is typically used for allowing web browsers to access resources from different domains.

severlightOption: D

C, D. D and not E, because it is an identity-based inline policy already attached to the specific principal.

puffetor

Hello I've just tested it on my AWS account to be 100% sure. Correct answer in C & D. Only C is enough only for same account access, but for cross-account like in this case D is needed too, otherwise it does not work.

shaaam80Option: C

Answer - C & D

alonis2201

A,C Access setting need to be done only on Account A as it's an owner. So Enabling Cross origin access and access to the bucket for account B IAM user.

rlf

Answer : C&D.

dEgYnIDAOption: D

The question says Choose two. The answer is C & D.

kpcertOption: C

Ans C and D 2 Options have to be selected

kpcert

Ans - C and D 2 Options have to be selected

MoT0neOption: C

Cross-Origin Resource Sharing (CORS) is a security feature in Amazon S3 that allows you to control access to your S3 resources from a different domain (origin) than the one serving the resources. CORS defines a way for client web applications running in one origin to interact with resources in a different origin, which is otherwise restricted by the same-origin policy enforced by web browsers.

Dgix

C and D.

awsylum

The answer is C and D. You need to give the IAM User in Account B an IAM Policy and you need to give a Bucket Policy in Account A. Who is maintaining this database of questions? Someone needs to seriously set the correct answers before making a lot of people confused and potentially screw up their exam.

chelbsikOption: D

Correct answer: C and D Adding my vote for D to balance the result Moderator, please fix the vote in this ticket.

ftaws

why we need two steps? I think that we get only one from resource-based policy or identity-based policy.

Vaibs099

Answer C & D

atiradoOption: C

Option A - CORS does not address cross-account access to S3 buckets Option B - This option would not work because the bucket policy is missing the Principal Option C - This option provides a valid S3 bucket policy that grants access to User_DataProcessor Option D - These permissions allow User_DataProcessor to get objects out of the bucket Option E - This option would not work because it is not a valid IAM policy