AWS Certified Solutions Architect – Associate (SAA-C03) — Question 286
A company hosts its static website by using Amazon S3. The company wants to add a contact form to its webpage. The contact form will have dynamic server-side components for users to input their name, email address, phone number, and user message. The company anticipates that there will be fewer than 100 site visits each month.
Which solution will meet these requirements MOST cost-effectively?
Answer options
- A. 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.
- B. Create an Amazon API Gateway endpoint with an AWS Lambda backend that makes a call to Amazon Simple Email Service (Amazon SES).
- C. 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.
- D. 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.
Correct answer: B
Explanation
Using Amazon API Gateway, AWS Lambda, and Amazon Simple Email Service (Amazon SES) is the most cost-effective solution because it utilizes a completely serverless architecture that scales to zero and only incurs costs when executed. With fewer than 100 visits per month, this setup will easily fall within the AWS Free Tier, costing virtually nothing. In contrast, solutions involving Amazon ECS, Amazon Lightsail, or Amazon EC2 run continuously and incur ongoing hourly hosting fees regardless of actual utilization.