ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 381 - SCS-C01 discussion

Report
Export


Your company has an external web site. This web site needs to access the objects in an S3 bucket.

Which of the following would allow the web site to access the objects in the most secure manner?

Please select:

A.
Grant public access for the bucket via the bucket policy
Answers
A.
Grant public access for the bucket via the bucket policy
B.
Use the aws:Referer key in the condition clause for the bucket policy
Answers
B.
Use the aws:Referer key in the condition clause for the bucket policy
C.
Use the aws:sites key in the condition clause for the bucket policy
Answers
C.
Use the aws:sites key in the condition clause for the bucket policy
D.
Grant a role that can be assumed by the web site
Answers
D.
Grant a role that can be assumed by the web site
Suggested answer: B

Explanation:

An example of this is given intheAWS Documentatioi

Restricting Access to a Specific HTTP Referrer

Suppose you have a website with domain name (www.example.com or example.com) with links to photos and videos stored in your S3 bucket examplebucket. By default, all the S3 resources are private, so only the AWS account that created the resources can access them. To allow read access to these objects from your website, you can add a bucket policy that allows s3:GetObject permission with a condition, using the aws:referer key, that the get request must originate from specific webpages. The following policy specifies the StringLike condition with the aws:Referer condition key.

Option A is invalid because giving public access is not a secure way to provide access

Option C is invalid because aws:sites is not a valid condition key

Option D is invalid because IAM roles will not be assigned to web sites For more information on example bucket policies please visit the below Link:

1 https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.htmlThe correct answer is: Use the aws:Referer key in the condition clause for the bucket policy Submityour Feedback/Queries to our Experts

asked 16/09/2024
franck ferreira
27 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first