A security team wants to ensure only approved AWS accounts can access a specific S3 bucket, even if IAM roles are misconfigured. What is the strongest bucket-level control?
Answer
Bucket policy restricting access by principal account
Explanation
Bucket policies can enforce access based on the requesting principal, including specific AWS account IDs. This provides a strong boundary even when IAM is incorrect.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
A customer wants to use AWS Systems Manager to audit whether managed instances are patching correctly without maintaining a custom agent. Which AWS capability best supports this use case?
View question →
An application running in AWS is failing intermittently during deployments. You want a strategy that shifts traffic gradually and can roll back quickly if errors increase. What is the best fit?
View question →
A team wants to store secrets for applications and rotate them automatically without hardcoding values. Which AWS service feature best fits this requirement?
View question →
In AWS Systems Manager, what is the primary purpose of Run Command?
View question →
A systems administrator needs to use AWS CLI to list the last 10 events in an AWS CloudTrail trail for a specific S3 data event and time range. Which service is the correct place to query?
View question →
A company uses S3 versioning to protect against accidental deletes and overwrites. Which behavior does enabling versioning provide?
View question →