Set Up a Static Website in AWS for Domain mycompany.com

Hosting a Static Website in AWS

Prev Question Next Question

Question

You have a requirement to host a static website for a domain named mycompany.com in AWS.

Which of the listed steps will you follow in order to set this up? (SELECT TWO.)

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Correct Answer - B and C.

You can register the domain name in your domain registrar (Route53) and then configure a record set in Route53 to host the static website in S3.

For more information on website hosting in S3, please visit the following URLs:

https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/RoutingToS3Bucket.html

To host a static website for a domain named mycompany.com in AWS, you can follow the following steps:

  1. Use Route53 as the domain registrar to register the domain name: First, you need to register the domain name "mycompany.com" with a domain registrar such as Amazon Route53. Route53 is a highly available and scalable Domain Name System (DNS) web service that can be used to register and manage domain names. Once you have registered the domain name, you will be able to manage it in Route53.

  2. Use Route53 with static web site in S3: Next, you can create a static website in Amazon S3. S3 is an object storage service that allows you to store and retrieve files. You can create a bucket in S3 and configure it as a static website. When you create a static website, you need to specify the index document and the error document for your website.

After you have created the static website in S3, you can configure Route53 to route traffic to the S3 bucket. You can create a new hosted zone in Route53 and add a record set for the domain name "mycompany.com". In the record set, you can specify an alias target for the S3 bucket hosting the static website. This will route traffic from the domain name "mycompany.com" to the S3 bucket hosting the static website.

Therefore, the correct steps to set up a static website for a domain named mycompany.com in AWS are:

  • Use Route53 as the domain registrar to register the domain name.
  • Use Route53 with static web site in S3.

The other options listed are not recommended because:

  • Hosting the static site on an EC2 Instance (Option A) is not an ideal solution for hosting a static website, as it requires more maintenance and scalability efforts than using S3.
  • Placing the EC2 instance behind the EL (Option D) also adds complexity and unnecessary cost for hosting a simple static website.