Assess your understanding of S3 static website hosting fundamentals, including configuration, permissions, URL formats, and error handling. This quiz is perfect for beginners interested in learning the essentials of hosting static websites using S3 buckets and related settings.
When creating a bucket to host a static website, which naming convention is required for correct access using a custom domain such as 'example.com'?
Explanation: For static website hosting to work properly with a custom domain, the bucket name must exactly match the domain name you want to use. Starting with 'www' is not mandatory unless your domain does, uppercase letters are not allowed, and bucket names cannot contain spaces. Only the exact match enables correct routing to your site files.
What is the purpose of specifying an 'index document' when setting up static website hosting with a bucket?
Explanation: The index document acts as the default landing page when a user visits the root website URL. It does not hide files, organize folders, or prevent uploads. The other options confuse access controls and storage organization, which are configured separately.
Which configuration must be enabled on a bucket to serve website files over HTTP in static website mode?
Explanation: Enabling static website hosting allows the bucket to serve files over HTTP with website endpoints. Versioning, Object Locking, and Lifecycle Management are unrelated to static website features; they manage file versions, object retentions, and automated deletion, respectively.
To make a static website publicly accessible, which setting must be correctly configured for the bucket?
Explanation: Public read permissions are required for users to view website files without authenticating. Encryption protects file content but doesn't affect accessibility, multi-factor authentication is for account security, and cross-region replication handles file backups, not access.
In static website hosting, what is the primary purpose of specifying an 'error document' such as 'error.html'?
Explanation: The error document is shown when users try to access a non-existent file, providing a custom error message. It does not delete files, track users, or cache content. Caching and logging are handled elsewhere in the system.
After enabling static website hosting, how can you typically access the hosted site files?
Explanation: The correct access method is through the website endpoint URL, as it is designed for browser-based access. SSH and mobile apps are unrelated, and email is not a mechanism for serving website content. The distractors misrepresent standard web hosting practices.
Which type of website can be hosted using static website hosting on object storage buckets?
Explanation: Static website hosting serves only files such as HTML, CSS, JavaScript, and images, without processing server-side scripts or databases. Dynamic websites, database-driven sites, and app backends require more advanced infrastructure not suitable for simple object storage hosting.
Which of the following best describes the general format of a static website hosting endpoint?
Explanation: The endpoint typically includes the bucket name and region, along with the word 'website' to indicate hosting status. File extension options are unrelated, IP addresses lack the necessary context, and requiring logins would prevent public access.
If you want only certain files to be publicly accessible on your static website, what should you configure?
Explanation: Applying public read permissions at the object level allows selective sharing of specific files, keeping others private. Changing the bucket name, enabling object locking, or disabling versioning do not manage visibility or access to website files.
What must you do to update the content of your static website hosted on an object storage bucket?
Explanation: To update your static website, simply upload new or changed files to the bucket, and they become available immediately. There is no need to restart any server, contact support, or recreate the bucket. The distractors introduce unnecessary steps or misunderstand system behavior.