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 171 discussion

A company wants to deny a specific federated user named Bob access to an Amazon S3 bucket named DOC-EXAMPLE-BUCKET. The company wants to meet this requirement by using a bucket policy. The company also needs to ensure that this bucket policy affects Bob's S3 permissions only. Any other permissions that Bob has must remain intact.

Which policy should the company use to meet these requirements?

  • A.
  • B.
  • C.
  • D.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
Zek
Highly Voted 6 months, 3 weeks ago
B is correct https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#sts-session-principals
upvoted 6 times
...
heatblur
Most Recent 3 months, 3 weeks ago
Selected Answer: B
Answer provided by Claude 3.5 Sonnet: The correct policy to meet the company's requirements is option B. Here's why: It correctly identifies Bob as a federated user: "arn:aws:sts::account-id:federated-user/Bob" It sets the "Effect" to "Deny", which will prevent Bob from accessing the bucket. It specifies the correct S3 bucket: "arn:aws:s3:::DOC-EXAMPLE-BUCKET" The Action is set to "s3:*", which means it will deny all S3 actions for this specific bucket. This policy will only affect Bob's S3 permissions for the specified bucket, meeting the requirement that other permissions Bob has must remain intact. It's a bucket policy, so it will only apply to this specific S3 bucket and won't affect Bob's permissions elsewhere. Options A, C, and D are incorrect because: A: This policy allows access instead of denying it. C: This policy uses the wrong ARN format for a federated user. D: This policy targets an assumed role session, not a federated user directly.
upvoted 1 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 ...