AWS Certified SysOps Administrator – Associate — Question 56
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?
Answer options
- 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.
Correct answer: B
Explanation
The correct answer is B because granting read access to bucket objects allows users to access the files stored within the bucket, which is necessary for static website hosting. Option A is incorrect because it addresses the bucket itself rather than the objects within it. Option C does not resolve the specific access issue related to the objects, and option D is unrelated to the access permission needed for static website content.