Which solution will meet these requirements MOST cost-effectively?
Host a dynamic contact form page in Amazon Elastic Container Service (Amazon ECS). Set up Amazon Simple Email Service (Amazon SES) to connect to any third-party email provider.
Create an Amazon API Gateway endpoint with an AWS Lambda backend that makes a call to Amazon Simple Email Service (Amazon SES).
Convert the static webpage to dynamic by deploying Amazon Lightsail. Use client-side scripting to build the contact form. Integrate the form with Amazon WorkMail.
Create a t2.micro Amazon EC2 instance. Deploy a LAMP (Linux, Apache, MySQL, PHP/Perl/Python) stack to host the webpage. Use client-side scripting to build the contact form. Integrate the form with Amazon WorkMail.
Explanations:
Amazon ECS is an overkill for hosting a simple contact form and would incur unnecessary costs. SES can be used, but ECS adds unnecessary complexity.
Amazon API Gateway with AWS Lambda is a cost-effective and scalable solution for serverless applications, and SES is well-suited for email sending.
Lightsail is a more expensive and complex option for hosting a simple contact form. WorkMail is not ideal for this use case as it’s not designed for form submissions.
Using a t2.micro EC2 instance and a LAMP stack is not cost-effective for low traffic, and managing a server increases complexity unnecessarily.