Security and Compliance

Objects in an S3 bucket carry a Classification tag. Objects tagged Restricted must be readable only by an auditor role, while other principals in the account keep reading the bucket's other objects. Which control enforces this?

Show the answer

Correct answerC. A bucket policy that denies s3:GetObject on objects whose Classification tag is Restricted, except for the auditor role

AWhy not this: Macie discovers and reports sensitive data; it does not restrict who can read objects.

BWhy not this: Object Lock prevents objects from being deleted or overwritten, not from being read.

CWhy this is right: A deny statement conditioned on s3:ExistingObjectTag/Classification enforces the classification for every principal except the exempted role.

DWhy not this: Lifecycle rules change storage class or expire objects; they do not control read access.

A bucket policy can deny s3:GetObject with a condition on s3:ExistingObjectTag/Classification and exempt the auditor role, so the classification tag itself controls who can read each object. Macie finds and reports sensitive data but does not block access.