You configure an S3 bucket for static website hosting and set index.html as the index document. What happens when a user visits the root URL of the website?
Think about what an index document means for a website.
When you set index.html as the index document, S3 automatically serves this file when the root URL is accessed, acting as the homepage.
You want to host a public static website on S3. Which configuration is necessary to allow anyone on the internet to access the website files?
Public website means anyone can read the files without signing in.
To make the bucket publicly accessible, you must allow public read access via bucket policy and disable the Block Public Access settings that prevent public access.
Choose the bucket policy JSON that correctly grants public read access to all objects in the bucket named example-bucket.
Public read means allowing everyone to get objects, not just listing the bucket.
Option D allows anyone (Principal "*") to perform s3:GetObject on all objects in the bucket, which is required for public website access.
You want to serve your S3 static website using your own domain with HTTPS. Which AWS service combination is the best practice to achieve this?
S3 website endpoints do not support HTTPS directly.
S3 static website endpoints only support HTTP. To serve HTTPS with a custom domain, use CloudFront with an ACM SSL certificate and point your domain to the CloudFront distribution.
You want to show a custom error page when users visit a non-existent page on your S3 static website. How should you configure this?
S3 static website hosting has a built-in setting for error documents.
Setting the error document in the static website hosting configuration tells S3 to serve that file when a 404 error occurs.