New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon SAA-C03 Exam - Topic 3 Question 43 Discussion

Actual exam question for Amazon's SAA-C03 exam
Question #: 43
Topic #: 3
[All SAA-C03 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: C

AWS Lambda for Operational Efficiency:

AWS Lambda is a serverless compute service that allows you to run code without provisioning or managing servers. It automatically scales based on the number of invocations and eliminates the need to maintain and monitor EC2 instances, making it far more operationally efficient compared to running a cron job on EC2.

By using Lambda, you pay only for the compute time that your function uses. This is especially beneficial when dealing with lightweight tasks, such as scanning a DynamoDB table and sending email messages once a day.

Amazon DynamoDB:

DynamoDB is a highly scalable, fully managed NoSQL database. The table stores employee start dates, and scanning the table to find the employees who have a work anniversary on the current day is a lightweight operation. Lambda can easily perform this operation using the DynamoDB Scan API or queries, depending on how the data is structured.

Amazon SNS for Email Notifications:

Amazon Simple Notification Service (SNS) is a fully managed messaging service that supports sending notifications to a variety of endpoints, including email. SNS is well-suited for sending out email messages to employees, as it can handle the fan-out messaging pattern (sending the same message to multiple recipients).

In this scenario, once Lambda identifies employees who have their work anniversaries, it can use SNS to send the email notifications efficiently. SNS integrates seamlessly with Lambda, and sending emails via SNS is a common pattern for this type of use case.

Event Scheduling:

To automate this daily task, you can schedule the Lambda function using Amazon EventBridge (formerly CloudWatch Events). EventBridge can trigger the Lambda function on a daily schedule (cron-like scheduling). This avoids the complexity and operational overhead of manually setting up cron jobs on EC2 instances.

Why Not EC2 or SQS?:

Option A & B suggest running a cron job on an Amazon EC2 instance. This approach requires you to manage, scale, and patch the EC2 instance, which increases operational overhead. Lambda is a better choice because it automatically scales and doesn't require server management.

Amazon Simple Queue Service (SQS) is ideal for decoupling distributed systems but isn't necessary in this context because the goal is to send notifications to employees on their work anniversaries. SQS adds unnecessary complexity for this straightforward use case, where SNS is the simpler and more efficient solution.

AWS Reference:

AWS Lambda

Amazon SNS

Amazon DynamoDB

Amazon EventBridge

Summary:

Using AWS Lambda combined with Amazon SNS to send notifications, and scheduling the function with Amazon EventBridge to run daily, is the most operationally efficient solution. It leverages AWS serverless technologies, which reduce the need for infrastructure management and provide automatic scaling. Therefore, Option C is the correct and optimal choice.


Contribute your Thoughts:

0/2000 characters
Trinidad
3 months ago
Cron jobs on EC2? Seems outdated for this use case.
upvoted 0 times
...
Kris
3 months ago
I'm surprised they didn't mention using EventBridge for scheduling.
upvoted 0 times
...
Ronny
3 months ago
Wait, why not just use SQS? Isn't that better for messaging?
upvoted 0 times
...
Carissa
4 months ago
Totally agree, Lambda is the way to go!
upvoted 0 times
...
Leonora
4 months ago
Option C seems the most efficient with Lambda and SNS.
upvoted 0 times
...
Jamal
4 months ago
I feel like using a cron job on EC2 is less efficient than a scheduled Lambda function, but I can't recall the exact reasons.
upvoted 0 times
...
Ora
4 months ago
I practiced a similar question where we had to choose between EC2 and Lambda, and Lambda seemed more efficient for scheduled tasks.
upvoted 0 times
...
Kara
4 months ago
I'm not entirely sure, but I think using Amazon SNS is better for sending emails directly compared to SQS, right?
upvoted 0 times
...
Osvaldo
5 months ago
I remember we discussed using AWS Lambda for tasks like this because it scales automatically and doesn't require managing servers.
upvoted 0 times
...
Pearlene
5 months ago
I'm leaning towards the Lambda function with SNS option. It seems the most straightforward and efficient way to send the email notifications on a daily schedule.
upvoted 0 times
...
Kate
5 months ago
I think the key here is to find a solution that minimizes manual intervention and can scale easily as the company grows. The Lambda function options seem promising for that.
upvoted 0 times
...
Dylan
5 months ago
Hmm, I'm a bit confused about the differences between using SNS and SQS. I'll need to review the pros and cons of each service to determine the most efficient solution.
upvoted 0 times
...
Cecilia
5 months ago
This seems like a straightforward question. I'd start by considering the operational efficiency of the different options.
upvoted 0 times
...
Reita
5 months ago
The cron job approach with an EC2 instance seems a bit outdated. I'd go with the Lambda function options to take advantage of the serverless architecture and automatic scaling.
upvoted 0 times
...
Fannie
5 months ago
Hmm, I'm a bit confused on this one. I'll need to review the EVPN VPWS concepts again to make sure I understand the details of how the routes are advertised.
upvoted 0 times
...
Gary
1 year ago
I love how these questions always involve some kind of 'most operationally efficient' requirement. It's like they're trying to trick us into overthinking it. I'd go with option C as well.
upvoted 0 times
Joseph
1 year ago
Yeah, scheduling the Lambda function to run daily makes it a convenient solution.
upvoted 0 times
...
Zita
1 year ago
I agree, using an AWS Lambda function with Amazon SNS would be efficient.
upvoted 0 times
...
Gary
1 year ago
Option C seems like the best choice for this scenario.
upvoted 0 times
...
...
Leana
1 year ago
Ah, the classic 'send email on work anniversary' problem. I bet the developers had a field day with this one. Option C gets my vote!
upvoted 0 times
...
Jesus
1 year ago
But with Lambda, we don't have to manage servers. It's more cost-effective in the long run.
upvoted 0 times
...
Kimi
1 year ago
Option D seems like a good choice too. Combining Lambda and SQS could provide more reliability and flexibility in the email delivery process.
upvoted 0 times
Vi
1 year ago
Yes, it's a great way to ensure efficient and reliable communication with employees on their work anniversaries.
upvoted 0 times
...
Michal
1 year ago
I agree, using Lambda and SQS together can definitely improve the email delivery process.
upvoted 0 times
...
...
Jamie
1 year ago
I agree with Jesus. Option C seems like the most efficient and cost-effective solution for this scenario.
upvoted 0 times
...
Sheldon
2 years ago
I disagree, I believe option A is more efficient. Running a script on EC2 instance is more reliable.
upvoted 0 times
...
Jesus
2 years ago
I think option C is the best solution. Using Lambda function will save time and resources.
upvoted 0 times
...
Lavonna
2 years ago
I think option C is the most efficient solution. Using a Lambda function to scan the DynamoDB table and send the email messages via SNS is a scalable and serverless approach.
upvoted 0 times
Yaeko
1 year ago
I think option C is better because it's serverless and more scalable.
upvoted 0 times
...
Candida
1 year ago
But wouldn't option A also work well with the cron job on an EC2 instance?
upvoted 0 times
...
Mohammad
1 year ago
I agree, option C with the Lambda function and SNS is definitely the way to go.
upvoted 0 times
...
...

Save Cancel