aws sap 문제 풀이 4주차 문제풀이 3번

aws, sap, March 19, 2023

문제

질문 67

A tech company plans to host a website using an Amazon S3 bucket. The solutions architect created a new S3 bucket called “www.tutorialsdojo.com” in us-west-2 AWS region, enabled static website hosting, and uploaded the static web content files including the index.html file. The custom domain www.tutorialsdojo.com has been registered using Amazon Route 53 to be associated with the S3 bucket. The next day, a new Route 53 Alias record set was created which points to the S3 website endpoint: http://www.tutorialsdojo.com.s3-website-us-west-2.amazonaws.com. Upon testing, users cannot see any content on the bucket. Both the domains tutorialsdojo.com and www.tutorialsdojo.com do not work properly. Which of the following is the MOST likely cause of this issue that the Architect should fix?

한 기술 회사에서 Amazon S3 버킷을 사용하여 웹 사이트를 호스팅할 계획입니다. 솔루션 설계자는 us-west-2 AWS 리전에서 “www.tutorialsdojo.com”이라는 새 S3 버킷을 생성하고 정적 웹 사이트 호스팅을 활성화하고 index.html 파일을 포함한 정적 웹 콘텐츠 파일을 업로드했습니다. 사용자 정의 도메인 www.tutorialsdojo .com이 S3 버킷과 연결되도록 Amazon Route 53을 사용하여 등록되었습니다.다음 날 S3 웹 사이트 엔드포인트를 가리키는 새로운 Route 53 Alias 레코드 set이 생성되었습니다: http://www.tutorialsdojo.com.s3-website-us-west-2.amazonaws.com 테스트 시 사용자가 버킷의 콘텐츠를 볼 수 없습니다. tutorialsdojo.com 및 www.tutorialsdojo.com 도메인이 모두 제대로 작동하지 않습니다. 다음 중 가장 가능성이 높은 원인은 무엇입니까?

  1. The site does not work because you have not set a value for the error.html file, which is a required step.
  2. The site will not work because the URL does not include a file name at the end. This means that you need to use this URL instead: www.tutorialsdojo.com/index.html
  3. The S3 bucket does not have public read access which blocks the website visitors from seeing the content.
  4. Route 53 is still propagating the domain name changes. Wait for another 12 hours and then try again.

1번

error document (error.html) 은 optional

2번

index document (index.html) 은 required

3번

public read access 를 꼭 켜줘야함.

4번

Amazon Route 53 is designed to propagate updates you make to your DNS records to its worldwide network of authoritative DNS servers within 60 seconds under normal conditions

이전에 5분정도 기다려본적은 있었던 것 같은데… DNS도 계층적 구조라고 생각해보면 어쨋든 10분? 5분내로는 될 것 같다. 문제에서는 하루 기다렸다고 하니 해당되진 않음.

풀이 및 공부

  • The bucket must have the same name as your domain or subdomain. For example, if you want to use the subdomain acme.example.com, the name of the bucket must be acme.example.com.

  • When you configure a bucket as a static website, if you want your website to be public, you can grant public read access

마무리

참고

  • https://www.youtube.com/watch?v=8piwEQJJXdo
  • https://docs.aws.amazon.com/AmazonS3/latest/userguide/ObjectsinRequesterPaysBuckets.html

Comments