exam questions

Exam AWS Certified Security - Specialty All Questions

View all questions & answers for the AWS Certified Security - Specialty exam

Exam AWS Certified Security - Specialty topic 1 question 258 discussion

Exam question from Amazon's AWS Certified Security - Specialty
Question #: 258
Topic #: 1
[All AWS Certified Security - Specialty Questions]

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 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.

Show Suggested Answer Hide Answer
Suggested Answer: B
Reference:
https://docs.amazonaws.cn/en_us/AmazonS3/latest/userguide/example-bucket-policies.html

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Igloo
Highly Voted 3 years, 7 months ago
Answer: A B would grant access to the root user C would grant access to anyone D IAM groups cannot be principals https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html
upvoted 35 times
...
Raphaello
Most Recent 1 year, 2 months ago
A is the correct answer. In AWS IAM, principals are authenticated IAM entities. IAM entities are only IAM users and roles. Not groups.
upvoted 1 times
...
Noexperience
1 year, 8 months ago
Based on ChatGPT A is correct { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": [ "arn:aws:iam::ACCOUNT_ID:user/User1", "arn:aws:iam::ACCOUNT_ID:user/User2", "arn:aws:iam::ACCOUNT_ID:user/User3" ] }, "Action": "s3:GetObject", "Resource": "arn:aws:s3:::YOUR_BUCKET_NAME/*" } ] }
upvoted 1 times
...
G4Exams
2 years, 1 month ago
A is correct.
upvoted 3 times
...
sakibmas
2 years, 4 months ago
Answer: A You can specify any of the following principals in a policy: - AWS account and root user - IAM roles - Role sessions - IAM users - Federated user sessions - AWS services - All principals You cannot identify a user group as a principal in a policy (such as a resource-based policy) because groups relate to permissions, not authentication, and principals are authenticated IAM entities. Reference: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html
upvoted 4 times
...
D2
2 years, 5 months ago
Answer A
upvoted 4 times
...
awssazure
2 years, 7 months ago
Answer A Why not B : Account root principal (not Root user) in bucket policy enables the IAM admins to define specific IAM policies based on the user access requirements. Here we do not need a delegation of IAM policies , but specific access allocation based on least privilege , which can be possible only by specifiying the particular IAM users . a principal of "AWS": "arn:aws:iam::accountb:root" in the bucket policy and this will allow account B administrators to delegate permission as they choose D : will provide access to all the members in the group, not least privilege
upvoted 1 times
...
sapien45
2 years, 8 months ago
A. Why not D ? You cannot identify a user group as a principal in a policy (such as a resource-based policy) because groups relate to permissions, not authentication, and principals are authenticated IAM entities.
upvoted 4 times
Prathamesh2589
2 years, 7 months ago
im voting D per question- IAM user acocunts are members of AuthorizedPeople IAM group
upvoted 1 times
HieuTT
2 years, 6 months ago
you wrong
upvoted 2 times
...
Atmanvagg
2 years, 6 months ago
IAM groups are not valid principals in S3 bucket policies. See this AWS forum post and this SO post for more discussion.
upvoted 1 times
...
...
...
dcasabona
2 years, 9 months ago
Answer: A
upvoted 1 times
...
Pratham123
3 years, 2 months ago
A is the correct Answer.
upvoted 1 times
...
IMAHM
3 years, 5 months ago
Answer: A
upvoted 1 times
...
kiev
3 years, 7 months ago
A is the correct https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies...
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago