AWS Certified Solutions Architect – Associate (SAA-C03) — Question 837
A company has 15 employees. The company stores employee start dates in an Amazon DynamoDB table. The company wants to send an email message to each employee on the day of the employee's work anniversary.
Which solution will meet these requirements with the MOST operational efficiency?
Answer options
- A. Create a script that scans the DynamoDB table and uses Amazon Simple Notification Service (Amazon SNS) to send email messages to employees when necessary. Use a cron job to run this script every day on an Amazon EC2 instance.
- B. Create a script that scans the DynamoDB table and uses Amazon Simple Queue Service (Amazon SQS) to send email messages to employees when necessary. Use a cron job to run this script every day on an Amazon EC2 instance.
- C. Create an AWS Lambda function that scans the DynamoDB table and uses Amazon Simple Notification Service (Amazon SNS) to send email messages to employees when necessary. Schedule this Lambda function to run every day.
- D. Create an AWS Lambda function that scans the DynamoDB table and uses Amazon Simple Queue Service (Amazon SQS) to send email messages to employees when necessary. Schedule this Lambda function to run every day.
Correct answer: C
Explanation
AWS Lambda is a serverless compute service that eliminates the operational overhead of managing and patching an Amazon EC2 instance, making it the most operationally efficient option. Additionally, Amazon Simple Notification Service (Amazon SNS) natively supports sending email notifications, whereas Amazon Simple Queue Service (Amazon SQS) is a queuing service that cannot send emails directly to users without additional integration. Therefore, combining Lambda and SNS provides the most efficient and direct solution.