In this post, I make available my notes about S3 Static Hosting made from Adrian Cantrill’s course AWS Certified Solutions Architect – Associate (SAA-C02). The Q&A session below can be used to validate your knowledge or create Flashcards for study. Since this is a piece of knowledge in construction there may be mistakes, drop a comment for any suggestions.
S3 Static Hosting generates a Website endpoint that allows HTTP access to files into the bucket. You can specify an index and error HTML page as the default document.
You can name the bucket with your domain name with a prefix i.e s3.mydomain.com and user R53 with a custom domain that matches the bucket name so when you access the bucket name the pages will be shown.
There are two good scenarios for Static Web Hosting, Offloading and Out-of-band pages. The offloading hosting is to use an s3 bucket to store static content for a website. Out-of-band page hosting means having a static website ready and using DNS to redirect users to this WebSite when your servers are over maintenance or unavailable.
S3 Costs are divided into Storage, Request, and Data Transfer. S3 Storage charges monthly per GB. Request is the number of interactions with the Objects LIST, GET, COPY, POST, etc, DELETE and CANCEL are free and you pay per 1k request. Data transfer you pay per GB, data IN is always free, and OUT has costs except transferred between s3 buckets or to any AWS service in the same AWS region.
What is S3 Static Hosting?
The feature that generates a Website endpoint to access files into s3 using HTTP.
How can you use a custom domain to access files into s3 bucket?
Name the bucket with your domain name and a prefix i.e s3.mydomain.com and add a custom domain on R53 that matches the bucket name.
What are the two good scenário for using S3 Static Web Hosting?
What is the Offloading hosting scenario of an S3 Bucket?
Use an S3 bucket to store static content for a website.
What is the Out-of-band page hosting scenario of an S3 bucket?
Use an S3 Bucket to have a static website and use DNS to redirect users to that when the main website is unavailable.
How S3 Costs are divided?
How you are charged for S3 Storage?
Monthly per GB.
What are S3 Request & Data Retrieval?
The number of interactions with object LIST, GET, COPY, POST, etc, DELETE and CANCEL are free.
How you are charged for S3 Requests?
For each 1k request.
How you are charged for S3 Data transfer?
#Monthly per GB
#Data IN is Free
#Data OUT has costs (with exceptions)
When the costs for S3 Data transfer OUT are free?
When transferring data between S3 buckets or AWS services in the same Region.