Identity and Access Management

An application must list keys only under reports/ in an S3 bucket. Which Allow statement configuration grants the required listing access without permitting listing other prefixes?

Show the answer

Correct answerD. s3:ListBucket on the bucket ARN, with s3:prefix restricted to reports/ and reports/*

AWhy not this: GetObject permits reading objects, not listing their keys.

BWhy not this: ListBucket does not support object ARNs as its resource.

CWhy not this: A delimiter groups listing results but does not restrict listing to the reports/ prefix.

DWhy this is right: ListBucket requires a bucket resource; the prefix condition limits listing requests to the permitted namespace.

s3:ListBucket applies to the bucket ARN, and an s3:prefix condition restricts the requested listing prefix. Object ARNs do not scope ListBucket, and a delimiter controls grouping rather than limiting access to reports/.