exam questions

Exam AWS Certified Security - Specialty SCS-C02 All Questions

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

Exam AWS Certified Security - Specialty SCS-C02 topic 1 question 108 discussion

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.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
[Removed]
Highly Voted 11 months, 1 week ago
Selected Answer: A
Agree with AgboolaKun. What a lovely question 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. https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying
upvoted 12 times
...
fcbflo
Most Recent 1 month, 3 weeks ago
Selected Answer: A
Option B uses the root account, which would grant access to all users in the account (too broad) Option C uses a wildcard (*), which would grant access to all AWS users (too broad) Option D attempts to use an IAM group as a principal, but IAM groups cannot be used as principals in resource-based policies like S3 bucket policies
upvoted 1 times
...
navid1365
5 months, 1 week ago
Selected Answer: A
A is correct. Please not that the question says "only to user 1, user 2, and user 3". It does not say all members of the group "authorizedpeople". There may be other users part of that group who should NOT have access.
upvoted 3 times
...
Raphaello
8 months, 1 week ago
Selected Answer: D
In AWS IAM, principals are authenticated IAM entities. IAM entities are only IAM users and roles. You cannot used IAM group as a principal in an IAM (resource) policy.
upvoted 2 times
Raphaello
8 months, 1 week ago
Obviously error in selected answer. Answer A is the correct one that is matching the provided explanation.
upvoted 1 times
...
Ritarocks
7 months, 3 weeks ago
So D still ?
upvoted 1 times
...
...
Oralinux
10 months, 3 weeks ago
Answer A: " IAM user accounts that are named User1, User2, and User3. These IAM user accounts are members of the AuthorizedPeople IAM group" we do not want to give read access to other accounts that are part of the AuthorizedPeople IAM group. => then only A satisfy this criteria
upvoted 2 times
...
Aamee
10 months, 4 weeks ago
Selected Answer: A
All others are not the valid choices since the Principal needs to be selected only for User1, User2 and User3 'only' explicitly... plus, groups can't be identified as a Principal anyways..
upvoted 4 times
...
AgboolaKun
11 months, 1 week ago
Selected Answer: A
The correct answer is A - https://www.examtopics.com/discussions/amazon/view/60777-exam-aws-certified-security-specialty-topic-1-question-258/
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