An administrator must temporarily restrict access to an S3 bucket to only a specific role without changing the bucket’s overall permissions. What is the most appropriate approach?

Answer

Use a bucket policy that denies access unless conditions match a specific role ARN

Explanation

A bucket policy can include conditions (such as Principal/role ARN) and explicit Deny statements to enforce temporary restrictions. Replication and ACL changes are not the right mechanism for conditional, temporary role-based restriction.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list