SCS-C02 · Question #134
A security engineer needs to create an Amazon S3 bucket policy to grant least privilege read access to IAM user accounts that are named User1, User2, and User3. These IAM user accounts are members…
The correct answer is A. "Principal": { "AWS": [ "arn:aws:iam::1234567890:user/User1", "arn:aws:iam::1234567890:user/User2", "arn:aws:iam::1234567890:user/User3" ] }. Option A is correct because S3 bucket policies require individual IAM user ARNs to be explicitly listed in the Principal element when granting least privilege access to specific users. This directly names only User1, User2, and User3, satisfying both the 'missing Principal'…
Question
A security engineer needs to create an Amazon S3 bucket policy to grant least privilege read access to IAM user accounts that are named User1, User2, and User3. These IAM user accounts are members of the AuthorizedPeople IAM group. The security engineer drafts the following S3 bucket policy:
When the security engineer tries to add the policy to the S3 bucket, the following error message appears: "Missing required field Principal." The security engineer is adding a Principal element to the policy. The addition must provide read access to only User1, User2, and User3. Which solution meets these requirements? A. B. C. D.
Exhibits
Options
- A"Principal": { "AWS": [ "arn:aws:iam::1234567890:user/User1", "arn:aws:iam::1234567890:user/User2", "arn:aws:iam::1234567890:user/User3" ] }
- B"Principal": { "AWS": [ "arn:aws:iam::1234567890:root" ] }
- C"Principal": { "AWS": [ "*" ] }
- D"Principal": { "AWS": "arn:aws:iam::1234567890:group/AuthorizedPeople" }
How the community answered
(22 responses)- A91% (20)
- B5% (1)
- C5% (1)
Explanation
Option A is correct because S3 bucket policies require individual IAM user ARNs to be explicitly listed in the Principal element when granting least privilege access to specific users. This directly names only User1, User2, and User3, satisfying both the 'missing Principal' error and the least privilege requirement. IAM groups cannot be used as principals in resource-based policies like S3 bucket policies, so each user must be specified individually.
Topics
Community Discussion
No community discussion yet for this question.

