Data Security and Governance

An application's role has no S3 permissions and needs only to download objects under s3://company-data/exports/. An AWS managed read-only policy allows broader access; which custom policy should replace it?

Show the answer

Correct answerB. Allow s3:GetObject on arn:aws:s3:::company-data/exports/*

AWhy not this: GetObject requires an object ARN; the bucket ARN does not identify the objects.

BWhy this is right: The action permits downloads, and the object ARN limits access to the exports prefix.

CWhy not this: ListBucket permits listing object keys, not downloading object contents.

DWhy not this: The object ARN permits downloads from every prefix in the bucket.

GetObject requires an object ARN, and the exports/* suffix restricts downloads to the required prefix. Using company-data/* would permit downloads throughout the bucket.