ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 250 - SCS-C02 discussion

Report
Export

A security engineer is configuring account-based access control (ABAC) to allow only specific principals to put objects into an Amazon S3 bucket. The principals already have access to Amazon S3.

The security engineer needs to configure a bucket policy that allows principals to put objects into the S3 bucket only if the value of the Team tag on the object matches the value of the Team tag that is associated with the principal. During testing, the security engineer notices that a principal can still put objects into the S3 bucket when the tag values do not match.

Which combination of factors are causing the PutObject operation to succeed when the tag values are different? (Select TWO.)

A.
The principal's identity-based policy grants access to put objects into the S3 bucket with no conditions.
Answers
A.
The principal's identity-based policy grants access to put objects into the S3 bucket with no conditions.
B.
The principal's identity-based policy overrides the condition because the identity-based policy contains an explicit allow.
Answers
B.
The principal's identity-based policy overrides the condition because the identity-based policy contains an explicit allow.
C.
The S3 bucket's resource policy does not deny access to put objects.
Answers
C.
The S3 bucket's resource policy does not deny access to put objects.
D.
The S3 bucket's resource policy cannot allow actions to the principal.
Answers
D.
The S3 bucket's resource policy cannot allow actions to the principal.
E.
The bucket policy does not apply to principals in the same zone of trust.
Answers
E.
The bucket policy does not apply to principals in the same zone of trust.
Suggested answer: A, C

Explanation:

The correct answer is A and C.

When using ABAC, the principal's identity-based policy and the S3 bucket's resource policy are both evaluated to determine the effective permissions. If either policy grants access to the principal, the action is allowed. If either policy denies access to the principal, the action is denied. Therefore, to enforce the tag-based condition, both policies must deny access when the tag values do not match.

In this case, the principal's identity-based policy grants access to put objects into the S3 bucket with no conditions (A), which means that the policy does not check for the tag values. This policy overrides the condition in the bucket policy because an explicit allow always takes precedence over an implicit deny. The bucket policy can only allow or deny actions to the principal based on the condition, but it cannot override the identity-based policy.

The S3 bucket's resource policy does not deny access to put objects , which means that it also does not check for the tag values. The bucket policy can only allow or deny actions to the principal based on the condition, but it cannot override the identity-based policy.

Therefore, the combination of factors A and C are causing the PutObject operation to succeed when the tag values are different.

Using ABAC with Amazon S3

Bucket policy examples

asked 16/09/2024
Padmavathi Jawaharlal
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first