A developer needs to host a static website on AWS S3. Which configuration is required to make the objects publicly accessible?
Trap 1: Configure a NAT Gateway
NAT Gateway is for internal network traffic.
Trap 2: Attach an Elastic IP
Elastic IP is for EC2 instances.
Trap 3: Create an EC2 instance
EC2 is for dynamic applications.
- A
Enable Static Website Hosting
This allows S3 to serve content as a website.
- B
Configure a NAT Gateway
Why it fails: NAT Gateway is for internal network traffic.
- C
Attach an Elastic IP
Why it fails: Elastic IP is for EC2 instances.
- D
Create an EC2 instance
Why it fails: EC2 is for dynamic applications.