
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
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.
Explanation:
Correct Answer: B - Create an Amazon S3 bucket and host the website there.
Why S3 is the most cost-effective solution:
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.
Cost Structure:
Serverless Architecture: S3 static hosting is truly serverless - no servers to provision, manage, or scale. This eliminates operational overhead and associated costs.
Scalability: S3 automatically scales to handle any amount of traffic without additional configuration or cost for scaling.
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:
Best Practice: For static websites with no server-side processing, S3 static website hosting is AWS's recommended and most cost-effective solution.