ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 198 - SCS-C01 discussion

Report
Export

An AWS account includes two S3 buckets: bucket1 and bucket2. The bucket2 does not have a policy defined, but bucket1 has the following bucket policy:

In addition, the same account has an IAM User named “alice”, with the following IAM policy.

Which buckets can user “alice” access?

A.
Bucket1 only
Answers
A.
Bucket1 only
B.
Bucket2 only
Answers
B.
Bucket2 only
C.
Both bucket1 and bucket2
Answers
C.
Both bucket1 and bucket2
D.
Neither bucket1 nor bucket2
Answers
D.
Neither bucket1 nor bucket2
Suggested answer: C

Explanation:

Both S3 policies and IAM policies can be used to grant access to buckets. IAM policies specify what actions are allowed or denied on what AWS resources (e.g. allow ec2:TerminateInstance on the EC2 instance with instance_id=i-8b3620ec). You attach IAM policies to IAM users, groups, or roles, which are then subject to the permissions you’ve defined. In other words, IAM policies define what a principal can do in your AWS environment. S3 bucket policies, on the other hand, are attached only to S3 buckets. S3 bucket policies specify what actions are allowed or denied for which principals on the bucket that the bucket policy is attached to (e.g. allow user Alice to PUT but not DELETE objects in the bucket). https:// aws.amazon.com/blogs/security/iam-policies-and-bucket-policies-and-aclsoh- my-controlling-access-to-s3-resources/

asked 16/09/2024
EDUARDO LEE
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first