exam questions

Exam AWS Certified Solutions Architect - Associate SAA-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Associate SAA-C02 exam

Exam AWS Certified Solutions Architect - Associate SAA-C02 topic 1 question 189 discussion

A company needs to share an Amazon S3 bucket with an external vendor. The bucket owner must be able to access all objects.
Which action should be taken to share the S3 bucket?

  • A. Update the bucket to be a Requester Pays bucket.
  • B. Update the bucket to enable cross-origin resource sharing (CORS).
  • C. Create a bucket policy to require users to grant bucket-owner-full-control when uploading objects.
  • D. Create an IAM policy to require users to grant bucket-owner-full-control when uploading objects.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
By default, an S3 object is owned by the AWS account that uploaded it. This is true even when the bucket is owned by another account. To get access to the object, the object owner must explicitly grant you (the bucket owner) access. The object owner can grant the bucket owner full control of the object by updating the access control list (ACL) of the object. The object owner can update the ACL either during a put or copy operation, or after the object is added to the bucket.
Similar:
https://aws.amazon.com/it/premiumsupport/knowledge-center/s3-require-object-ownership/
Resolution Add a bucket policy that grants users access to put objects in your bucket only when they grant you (the bucket owner) full control of the object.
Reference:
https://aws.amazon.com/it/premiumsupport/knowledge-center/s3-bucket-owner-access/

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
manoj101
Highly Voted 3 years, 7 months ago
C is correct. https://aws.amazon.com/premiumsupport/knowledge-center/s3-bucket-owner-access/#:~:text=During%20a%20put%20or%20copy%20operation%2C%20the%20object%20owner%20can,control%20to%20the%20bucket%20owner.&text=You%20can%20use%20a%20bucket,owner%2Dfull%2Dcontrol%22.
upvoted 33 times
rocky2021
3 years, 7 months ago
"external vendor" is the key word. Hence CORS is the correct answer. The question does not specify between different aws accounts.
upvoted 10 times
awsgumpy
3 years, 6 months ago
Cross-origin resource sharing (CORS) defines a way for client web applications that are loaded in one domain to interact with resources in a different domain. https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html
upvoted 9 times
gargaditya
3 years, 5 months ago
CORS is more to address security feature where your browser will block if the S3 static website redirects to another origin. No mention of redirection/website here.
upvoted 2 times
...
...
...
...
Abdullah777
Highly Voted 3 years, 6 months ago
the question like this, you have a bucket and you want to share it with external vendor. after sharing the vendor start uploding objects to your bucket. by defult, the objects are owned by the account that uplod them "the vendor not you" even though that you are the owner of the bucket but you still dont have full permision acess to the object that are in. you want a full acess, then you have to creat a bucket policy force anyone upload a object to your bucket to give you full acess. Ans C
upvoted 32 times
...
BECAUSE
Most Recent 1 year, 11 months ago
Selected Answer: C
C is the answer
upvoted 1 times
...
Curious76
2 years, 7 months ago
Selected Answer: C
https://aws.amazon.com/it/premiumsupport/knowledge-center/s3-require-object-ownership/
upvoted 1 times
...
weilun_tann
3 years, 4 months ago
- C - "share a bucket with 3rd party provider" - this means the bucket owner and this provider can CRUD objects on the bucket - By default, permissions for a newly-created object are restricted to the OBJECT OWNER, and we need to allow access to the BUCKET OWNER - We can do that via an object ACL "bucket-owner-full-control"
upvoted 6 times
...
gargaditya
3 years, 5 months ago
C vs D. https://aws.amazon.com/premiumsupport/knowledge-center/s3-require-object-ownership/ 'grant bucket-owner-full-control' is a bucket policy not IAM policy. Answer is C.
upvoted 6 times
...
woke
3 years, 5 months ago
C. Create a bucket policy to require users to grant bucket-owner-full-control when uploading objects.
upvoted 1 times
...
syu31svc
3 years, 6 months ago
https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html: "With Requester Pays buckets, the requester instead of the bucket owner pays the cost of the request and the data download from the bucket" A is wrong https://docs.aws.amazon.com/AmazonS3/latest/dev-retired/cors.html: "Cross-origin resource sharing (CORS) defines a way for client web applications that are loaded in one domain to interact with resources in a different domain" B is wrong https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html "S3 Object Ownership is an Amazon S3 bucket setting that you can use to control ownership of new objects that are uploaded to your buckets. By default, when other AWS accounts upload objects to your bucket, the objects remain owned by the uploading account. With S3 Object Ownership, any new objects that are written by other accounts with the bucket-owner-full-control canned access control list (ACL) automatically become owned by the bucket owner, who then has full control of the objects." Answer is C
upvoted 6 times
...
KK_uniq
3 years, 6 months ago
C for sure. Bucket policy whenever it is for a particular bucket. IAM policy is more generic
upvoted 2 times
...
Yogi
3 years, 6 months ago
Ans=C. Create a bucket policy to require users to grant bucket-owner-full-control when uploading objects.
upvoted 1 times
...
AWSforWork
3 years, 6 months ago
CORS as far as I know is between resources, hence (C) editing the bucket policies should do
upvoted 1 times
...
Atanu_M
3 years, 6 months ago
Ans. C comes very handy option for practical purpose (Refer to https://aws.amazon.com/premiumsupport/knowledge-center/s3-require-object-ownership/)
upvoted 2 times
...
Mashhour
3 years, 6 months ago
C is the answer Require that objects grant the bucket owner full control You can use a bucket policy to require that any objects uploaded to your bucket by another account must set the ACL as "bucket-owner-full-control" https://aws.amazon.com/premiumsupport/knowledge-center/s3-bucket-owner-access/
upvoted 2 times
...
Jay_12
3 years, 6 months ago
B CORS is a mechanism that allows restricted resources on a web page to be requested from another domain.
upvoted 1 times
...
christy5005
3 years, 6 months ago
The answer is A. Read about 'Requester pays bucket" and you will get it if you are smart. CORS is not possible here so eliminated and C,D are talking about uploading only so those are eliminated too.
upvoted 2 times
argol
3 years, 6 months ago
https://aws.amazon.com/premiumsupport/knowledge-center/s3-require-object-ownership/
upvoted 6 times
argol
3 years, 6 months ago
NOW you will get it if you are smart
upvoted 7 times
...
...
...
AWSGeeeeeeK
3 years, 6 months ago
C is correct
upvoted 1 times
...
youngoose
3 years, 6 months ago
C is the answer
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago