A data governance team tags every object in a shared S3 bucket with a Team tag, and each analyst IAM role carries a Team tag too. Analysts may read only objects whose Team tag matches their role's, and new teams and objects must be covered without policy changes. Which policy design meets these requirements?
Show the answer
Correct answerA. Allow s3:GetObject when s3:ExistingObjectTag/Team equals ${aws:PrincipalTag/Team}.
AWhy this is right: Comparing the object's existing Team tag with the role's Team tag enforces the rule for any team or object without editing the policy.
BWhy not this: s3:RequestObjectTag evaluates tags supplied in the request, such as on PutObject, not the tags already on the object being read.
CWhy not this: Per-team prefix statements must be edited whenever a team is added, and they ignore the governance team's tags.
DWhy not this: One shared role with bucket-wide read access lets every analyst read every team's objects.
GetObject supports the s3:ExistingObjectTag condition key, so one statement that compares the object's Team tag with the principal's Team tag grants access by attribute; new teams and objects need only tags, not policy edits. s3:RequestObjectTag checks tags sent in a request, such as an upload, not the tags already on an object being read.