Q17 — AWS SAA-C03 Ch.6

Question 17 of 65 | ← Chapter 6

Q382. 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?

Correct Answer: 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

Explanation

AWS Lambda is a serverless compute service, which means you don't have to manage any infrastructure. automatically scales based on the incoming workload, ensuring efficient resource utilization. By using Lambda, you only pay for the actual execution time of the function, making it cost-effective compared to running an EC2 instance continuously.The Lambda function can be triggered by a scheduled event, allowing you to specify a daily schedule for scanning the DynamoDB table and sending email messages.Amazon SNS provides a simple and scalable way to send notifications via email. You can easily integrate it with the Lambda function to send personalized emails to each employee on their work anniversary. Option A and B involve running a script on an EC2 instance using cron jobs. While they can achieve the desired outcome, they require managing and maintaining the EC2 instance, which adds operational overhead and potential costs.Option D suggests using Amazon SQS, which is a message queuing service. While SQS can be used for decoupling components and handling asynchronous processing, it may not be the most suitable choice for sending email messages in this scenario. Using SNS directly from the Lambda function simplifies the architecture and reduces complexity.