You need a way to protect an S3 bucket that allows only specific AWS accounts to read objects while still using bucket policies. Which approach is most appropriate?
Answer
Use IAM policies with Principal set to the allowed AWS account root or role ARN in the bucket policy
Explanation
Bucket policies are resource-based and support Principal conditions to restrict access by AWS account or role. This is the standard way to grant cross-account access while keeping the rule attached to the bucket.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
A company wants to reduce the blast radius of compromised credentials used by a Lambda function that reads from DynamoDB and writes to an SQS queue. What is the best practice to apply?
View question →
A company uses DynamoDB with fine-grained access control requirements. They want authorization decisions based on attributes (such as tenantId) rather than only on item keys. Which approach should they use?
View question →
A team stores sensitive application logs in CloudWatch Logs. They require encryption at rest, and they also need tighter access control for who can view logs. Which configuration best meets these requirements?
View question →
An organization wants to centralize vulnerability management for internet-facing and internal workloads using an AWS-native approach. Which solution best fits?
View question →
A customer uses AWS Organizations and wants to ensure new member accounts are configured to meet security baselines without manual review. The team needs guardrails that can automatically prevent noncompliant resource changes. Which mechanism best fits this need?
View question →
You are designing a strategy for detecting suspicious API activity. You must monitor for unusual AWS API calls across multiple accounts in near real time. What is the most suitable service combination?
View question →