
Answer-first summary for fast verification
Answer: Create an Amazon S3 bucket and host the website there.
## Explanation **Correct Answer: B - Create an Amazon S3 bucket and host the website there.** **Why S3 is the most cost-effective solution:** 1. **Static Website Hosting**: The website consists entirely of static content (HTML, CSS, client-side JavaScript, and images). Amazon S3 provides native static website hosting capabilities that are perfectly suited for this type of content. 2. **Cost Structure**: - **S3**: Pay only for storage used and data transfer out. No compute charges, no server management costs. - **Fargate (Option A)**: Pay for vCPU and memory allocation, even when idle. - **EC2 (Option C)**: Pay for instance running time 24/7, plus storage and data transfer. - **Lambda + ALB (Option D)**: Pay for Lambda execution time and ALB usage, plus data transfer. 3. **Serverless Architecture**: S3 static hosting is truly serverless - no servers to provision, manage, or scale. This eliminates operational overhead and associated costs. 4. **Scalability**: S3 automatically scales to handle any amount of traffic without additional configuration or cost for scaling. 5. **Performance**: S3 can be combined with Amazon CloudFront (CDN) for even better performance and lower costs for frequently accessed content. **Why other options are less cost-effective:** - **Option A (Fargate)**: Overkill for static content. Containerization adds complexity and cost for compute resources that aren't needed. - **Option C (EC2)**: Requires ongoing compute costs, server management, patching, and scaling configuration. - **Option D (Lambda + ALB)**: Lambda is designed for dynamic compute, not static file serving. Each request would trigger Lambda execution, incurring unnecessary compute costs. **Best Practice**: For static websites with no server-side processing, S3 static website hosting is AWS's recommended and most cost-effective solution.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
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?
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.