Which method is the MOST cost-effective for hosting the website?
Containerize the website and host it in AWS Fargate.
Create an Amazon S3 bucket and host the website there.
Deploy a web server on an Amazon EC2 instance to host the website.
Configure an Application Load Balancer with an AWS Lambda target that uses the Express.js framework.
Explanations:
Containerizing and hosting in AWS Fargate incurs higher costs due to the overhead of managing containers compared to simpler methods.
Using Amazon S3 to host static website content is the most cost-effective option, as S3 is designed for static file hosting with low costs.
Deploying a web server on an EC2 instance involves higher costs for instance management and ongoing operational expenses.
Using an Application Load Balancer with AWS Lambda is more complex and incurs higher costs than simply hosting static files on S3.