AWS Certified Solutions Architect – Associate (SAA-C02) — Question 73
A development team needs to host a website that will be accessed by other teams. The website contents consist of HTML, CSS, client-side JavaScript, and images.
Which method is the MOST cost-effective for hosting the website?
Answer options
- A. Containerize the website and host it in AWS Fargate.
- B. Create an Amazon S3 bucket and host the website there.
- C. Deploy a web server on an Amazon EC2 instance to host the website.
- D. Configure an Application Load Balancer with an AWS Lambda target that uses the Express.js framework.
Correct answer: B
Explanation
Hosting the website in an Amazon S3 bucket is the most cost-effective solution since S3 is designed for static website hosting and charges are based on storage and data transfer, which is generally lower than running an EC2 instance or using a container service. The other options involve more complex setups or ongoing costs associated with running servers or load balancers, making them less economical for simple static content.