Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon Exam SOA-C02 Topic 4 Question 110 Discussion

Actual exam question for Amazon's SOA-C02 exam
Question #: 110
Topic #: 4
[All SOA-C02 Questions]

A company is using Amazon S3 to set up a temporary static website that is public. A SysOps administrator creates an S3 bucket by using the default settings. The SysOps administrator updates the S3 bucket properties to configure static website hosting. The SysOps administrator then uploads objects that contain content for index.html and error.html.

When the SysOps administrator navigates to the website URL. the SysOps administrator receives an HTTP Status Code 403: Forbidden (Access Denied) error.

What should the SysOps administrator do to resolve this error?

Show Suggested Answer Hide Answer
Suggested Answer: B

Objective:

Resolve the HTTP 403 (Access Denied) error for the public S3 static website.

Root Cause:

By default, S3 buckets are private, and public access is blocked due to the Block Public Access settings.

Additionally, a bucket policy is needed to allow public access to the objects.

Solution Implementation:

Step 1: Turn off Block Public Access:

Navigate to the Permissions tab of the S3 bucket in the AWS Management Console.

Turn off the Block Public Access settings by disabling the following:

Block public access to buckets and objects via ACLs.

Block public access to buckets and objects via bucket policies.

Step 2: Add a Bucket Policy for Public Access:

Add a policy allowing GetObject for public access:

{

'Version': '2012-10-17',

'Statement': [

{

'Effect': 'Allow',

'Principal': '*',

'Action': 's3:GetObject',

'Resource': 'arn:aws:s3:::<bucket-name>/*'

}

]

}

Step 3: Test Access:

Confirm that the website is accessible via the public URL.

AWS Reference:

Block Public Access Settings: S3 Block Public Access

Bucket Policies for Static Websites: Bucket Policy Examples

Why Other Options Are Incorrect:

Option A: Route 53 is not required to resolve the 403 error; the issue is with S3 bucket permissions.

Option C: Editing file permissions alone will not work; bucket permissions must also allow public access.

Option D: PutObject permissions are unnecessary for serving a static website.


Contribute your Thoughts:

Renato
1 months ago
Gotta love those classic 403 Forbidden errors. Time to unleash the power of bucket policies, SysOps!
upvoted 0 times
...
Elfrieda
1 months ago
Haha, I bet the SysOps admin tried to hide the website from the public by mistake. Option B is definitely the way to go!
upvoted 0 times
Rikki
13 days ago
User 2: Agreed, turning off Block Public Access settings and allowing GetObject access is the way to fix the error.
upvoted 0 times
...
Aretha
15 days ago
User 1: Yeah, the SysOps admin should definitely edit the S3 bucket permissions and create a bucket policy.
upvoted 0 times
...
...
Mozelle
2 months ago
I was about to choose option C, but B makes more sense. The files themselves need read access, but the bucket needs the proper policy to allow public access.
upvoted 0 times
Luther
7 days ago
Make sure to configure the S3 bucket permissions correctly to resolve the access denied error.
upvoted 0 times
...
Marget
8 days ago
Creating a bucket policy is crucial for allowing public access to the S3 bucket.
upvoted 0 times
...
Augustine
26 days ago
I agree, turning off Block Public Access settings is necessary for public access.
upvoted 0 times
...
Denny
1 months ago
Option B is the correct choice. The bucket policy needs to allow GetObject access.
upvoted 0 times
...
...
Timmy
2 months ago
I believe the key is in creating a bucket policy to allow GetObject access.
upvoted 0 times
...
Lorean
2 months ago
But wouldn't creating an Amazon Route 53 DNS entry also help?
upvoted 0 times
...
Lauran
2 months ago
I agree with Svetlana. The key is to enable public access to the S3 bucket and its contents.
upvoted 0 times
Veronique
1 months ago
A) Create an Amazon Route 53 DNS entry. Point the entry to the S3 bucket.
upvoted 0 times
...
Telma
2 months ago
B) Edit the S3 bucket permissions by turning off Block Public Access settings. Create a bucket policy to allow GetObject access on the S3 bucket.
upvoted 0 times
...
...
Ahmed
2 months ago
I agree, turning off Block Public Access settings should resolve the error.
upvoted 0 times
...
Deeann
2 months ago
I think the answer is B.
upvoted 0 times
...
Svetlana
3 months ago
The correct answer is B. Turning off the Block Public Access settings and creating a bucket policy to allow GetObject access should resolve the 403 Forbidden error.
upvoted 0 times
Hillary
2 months ago
A) Create an Amazon Route 53 DNS entry. Point the entry to the S3 bucket.
upvoted 0 times
...
Raylene
2 months ago
That makes sense. It's important to configure the permissions correctly for a public website.
upvoted 0 times
...
Lucina
2 months ago
B) Edit the S3 bucket permissions by turning off Block Public Access settings. Create a bucket policy to allow GetObject access on the S3 bucket.
upvoted 0 times
...
...

Save Cancel