Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AWS Certified SysOps Administrator - Associate All Questions

View all questions & answers for the AWS Certified SysOps Administrator - Associate exam

Exam AWS Certified SysOps Administrator - Associate topic 1 question 166 discussion

A company is releasing a new static website hosted on Amazon S3. The static website hosting feature was enabled on the bucket and content was uploaded; however, upon navigating to the site, the following error message is received:

403 Forbidden - Access Denied

What change should be made to fix this error?

  • A. Add a bucket policy that grants everyone read access to the bucket.
  • B. Add a bucket policy that grants everyone read access to the bucket objects.
  • C. Remove the default bucket policy that denies read access to the bucket.
  • D. Configure cross-origin resource sharing (CORS) on the bucket.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Domdom120
Highly Voted 1 year, 8 months ago
Selected Answer: B
B. Per AWS: https://repost.aws/knowledge-center/s3-static-website-endpoint-error "If an Access Denied error is returned by the web browser or cURL command, then the object isn't publicly accessible. To allow public read access to your S3 object, create a bucket policy that allows public read access for all objects in the bucket." I'm not sure why everyone here is trying to provide answers without actual references. How you think in your head is irrelevant if it's not correct with AWS documentation.
upvoted 13 times
...
Liongeek
Highly Voted 1 year, 12 months ago
Ans B Ref: https://aws.amazon.com/es/premiumsupport/knowledge-center/s3-static-website-endpoint-error/
upvoted 7 times
...
alexiscloud
Most Recent 1 year ago
Answer: B
upvoted 1 times
...
csG13
1 year, 8 months ago
Selected Answer: B
The answer is B, here is a sample bucket policy { "Version": "2012-10-12", "Statement": { "Sid": "PublicReadGetObject", "Effect": "Allow", "Action": [ "s3:GetObject" ], "Principal": "*", "Resouce": [ "arn:aws:s3:::example-s3-website.com/*" ] } }
upvoted 6 times
...
Gil80
1 year, 8 months ago
Selected Answer: B
It can't be A because Amazon doesn't have "Block Public Access Policy" feature, it has "Block Public Access Settings" - The key difference is Policy vs. Settings. Therefore A is confusing to many. Once you clear the "Block Public Access" SETTINGS you then ADD A BUCKET POLICY that makes your bucket content publicly available.
upvoted 2 times
...
Gil80
1 year, 8 months ago
Selected Answer: B
This will allow anyone to access the objects in the bucket and view the static website. Option A, "Add a bucket policy that grants everyone read access to the bucket," grants read access to the bucket itself, but not necessarily to its objects.
upvoted 1 times
...
joanneli77
1 year, 9 months ago
Selected Answer: B
Reading objects, not just reading from the bucket, is the key to static website hosting. Nobody browses to the bucket, but instead the files themselves.
upvoted 3 times
...
skiwili
1 year, 10 months ago
Selected Answer: B
Answer is B.
upvoted 1 times
...
MrMLB
1 year, 11 months ago
Selected Answer: A
A. Add a bucket policy that grants everyone read access to the bucket. To fix the error message "403 Forbidden - Access Denied" when trying to access a static website hosted on Amazon S3, you should add a bucket policy that grants everyone read access to the bucket. By default, Amazon S3 bucket policies deny all public access to the bucket and its contents. To allow users to access the static website hosted on the bucket, you need to add a bucket policy that grants read access to the bucket. You can do this by specifying a bucket policy that includes a "Principal" element with the value "*" (wildcard), which grants access to everyone, and an "Action" element with the value "s3:GetObject", which allows users to retrieve objects from the bucket. Option B, adding a bucket policy that grants everyone read access to the bucket objects, would not be a valid solution, as this would not grant read access to the bucket itself.
upvoted 4 times
Aamee
1 week, 5 days ago
COMPLETE WRONG IF YOU'RE GOING WITH OPTION A!....You're adding a bucket policy which grants Read access only to the bucket level?? Do you think everyone can read the bucket objects 'Magically' ??! Pls. read the question again and then you'll realize that the correct option is only B!
upvoted 1 times
...
...
michaldavid
1 year, 11 months ago
Selected Answer: B
bbbbbb
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 ...