Q18 — AWS SAP-C02 Ch.2
Question 18 of 75 | ← Chapter 2
Q168. A software as a service (SaaS) based company provides a case management solution to customers. As part of the solution, the company uses a standalone Simple Mail Transfer Protocol (SMTP) server to send email messages from an application.The application also stores an email template for acknowledgement email messages that populate customer data before the application sends the email message to the customer.The company plans to migrate this messaging functionality to the AWS Cloud and needs to minimize operational overhead.Which solution will meet these requirements MOST cost-effectively?
- A. Set up an SMTP server on Amazon EC2 instances by using an AMI from the AWS Marketplace. Store the email template in an Amazon S3 bucket. Create an AWS Lambda function to retrieve the template from the S3 bucket and to merge the customer data from the application with the template. Use an SDK in the Lambda function to send the email message
- B. Set up Amazon Simple Email Service(Amazon SES) to send email messages. Store the email template in an Amazon S3 bucket. Create an AWS Lambda function to retrieve the template from the S3 bucket and to merge the customer data from the application with the template. Use an SDK in the Lambda function to send the email message
- C. Set up an SMTP server on Amazon EC2 instances by using an AMI from the AWS Marketplace. Store the email template in Amazon Simple Email Service (Amazon SES) with parameters for the customer data. Create an AWS Lambda function to call the SES template and to pass customer data to replace the parameters. Use the AWS Marketplace SMTP server to send the email message
- D. Set up Amazon Simple Email Service (Amazon SES) to send email messages. Store the email template on Amazon SES with parameters for the customer data. Create an AWS Lambda function to call the SendTemplatedEmail API operation and to pass customer data to replace the parameters and the email destination ✓
Correct Answer: D. Set up Amazon Simple Email Service (Amazon SES) to send email messages. Store the email template on Amazon SES with parameters for the customer data. Create an AWS Lambda function to call the SendTemplatedEmail API operation and to pass customer data to replace the parameters and the email destination
Explanation
The solution that will meet the requirements most cost-effectively is: D. Set up Amazon Simple Email Service (Amazon SES) to send email messages. Store the email template on Amazon SES with parameters for the customer data. Create an AWS Lambda function to call the SendTemplatedEmail API operation and to pass customer data to replace the parameters and the email destination. Explanation: In this solution, Amazon SES is used as the email sending service, which is a cost-effective and scalable option provided by AWS. The email template is stored directly in Amazon SES, which eliminates the need for an additional storage service like Amazon S3. The template can include parameters that will be replaced with the customer data. To send the email, an AWS Lambda function is created to call the SendTemplatedEmail API operation provided by Amazon SES. The Lambda function passes the customer data to replace the parameters in the template and provides the destination email address. Using this approach, the company can minimize operational overhead by leveraging the managed service provided by Amazon SES. There is no need to manage an SMTP server on Amazon EC2 instances, and the email template is stored directly within Amazon SES. Therefore, option D is the most cost-effective solution that meets the requirements.