Security and Compliance

An application must download objects only from the reports/ prefix in one S3 bucket; it already knows each object's key and does not list objects. Which IAM permission should its role receive?

Show the answer

Correct answerA. Allow s3:GetObject on the bucket's reports/* object ARNs.

AWhy this is right: The action permits downloads, and the object ARN pattern limits access to the required prefix.

BWhy not this: This grants access to objects outside the required prefix.

CWhy not this: s3:GetObject applies to objects, not the bucket ARN.

DWhy not this: s3:ListBucket permits listing keys but does not permit downloading objects.

s3:GetObject requires object ARNs, and restricting those ARNs to reports/* grants only the required access. A prefix-restricted s3:ListBucket permission permits listing, not downloading objects.