You need to host a simple nonproduction static webpage using an S3 bucket you just created (default settings). Which combination of steps should you perform? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Disable the "Block all public access" setting and add a bucket policy that permits the s3:GetObject action for the appropriate Principal., Create an index.html file, enable static website hosting for the bucket, and upload the index document..
Why this is the answer
To host a static website on S3, you must first enable static website hosting for the bucket and specify an index document, typically index.html. You also need to upload your static files, including index.html, to the bucket. By default, S3 buckets block all public access for security. To make your website publicly accessible, you must disable the "Block all public access" setting and then grant public read permissions. The most secure and recommended way to do this for a static website is by adding a bucket policy that permits the s3:GetObject action for the principal (representing everyone). "Redirect requests for an object" is for redirecting specific object requests, not for enabling static website hosting. Granting public read via an AuthenticatedUsers bucket ACL is incorrect because AuthenticatedUsers refers to AWS authenticated users, not public internet users.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed