exam questions

Exam AWS Certified Solutions Architect - Associate SAA-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Associate SAA-C02 exam

Exam AWS Certified Solutions Architect - Associate SAA-C02 topic 1 question 344 discussion

A meteorological startup company has a custom web application to sell weather data to its users online. The company uses Amazon DynamoDB to store its data and wants to build a new service that sends an alert to the managers of four internal teams every time a new weather event is recorded. The company does not want this new service to affect the performance of the current application.
What should a solutions architect do to meet these requirements with the LEAST amount of operational overhead?

  • A. Use DynamoDB transactions to write new event data to the table. Configure the transactions to notify internal teams.
  • B. Have the current application publish a message to four Amazon Simple Notification Service (Amazon SNS) topics. Have each team subscribe to one topic.
  • C. Enable Amazon DynamoDB Streams on the table. Use triggers to write to a single Amazon Simple Notification Service (Amazon SNS) topic to which the teams can subscribe.
  • D. Add a custom attribute to each record to flag new items. Write a cron job that scans the table every minute for items that are new and notifies an Amazon Simple Queue Service (Amazon SQS) queue to which the teams can subscribe.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
dmscountera
Highly Voted 3 years, 7 months ago
C sounds best https://aws.amazon.com/blogs/database/dynamodb-streams-use-cases-and-design-patterns/#:~:text=DynamoDB%20Streams%20is%20a%20powerful,for%20up%20to%2024%20hours.
upvoted 46 times
...
waqas
Highly Voted 3 years, 7 months ago
Its C as Steams are used to trigger SNS.
upvoted 13 times
...
sofiella
Most Recent 2 years, 3 months ago
xB. Have the current application publish a message to four Amazon Simple Notification Service (Amazon SNS) topics. Have each team subscribe to one topic. This solution minimizes the operational overhead because it adds the least amount of complexity to the current application. By having the application publish a message to four Amazon SNS topics, the teams can be notified without having to make changes to the application's database or data storage. The teams can subscribe to the relevant topics and receive notifications of new weather events, without having to set up additional infrastructure or scan the database. This solution is also scalable and flexible, as it allows the company to add or remove teams as needed, without having to make any changes to the application or its database.
upvoted 1 times
...
FF11
3 years, 4 months ago
Selected Answer: C
Correct Answer is C. Dynamodb transactions is totally irrelevant.
upvoted 1 times
...
GOVNOR
3 years, 6 months ago
seriously, with answers chosen most times by the Admin of this site.........
upvoted 2 times
kpallivishal
2 years, 11 months ago
i mean to prevent compliance reasons from AWS they do that I guess
upvoted 1 times
...
...
sakibmas
3 years, 6 months ago
C sounds best. Amazon DynamoDB is integrated with AWS Lambda so that you can create triggers—pieces of code that automatically respond to events in DynamoDB Streams. With triggers, you can build applications that react to data modifications in DynamoDB tables. If you enable DynamoDB Streams on a table, you can associate the stream Amazon Resource Name (ARN) with an AWS Lambda function that you write. Immediately after an item in the table is modified, a new record appears in the table's stream. AWS Lambda polls the stream and invokes your Lambda function synchronously when it detects new stream records. The Lambda function can perform any actions you specify, such as sending a notification or initiating a workflow. source: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.Lambda.html
upvoted 6 times
naveenagurjara
2 years, 10 months ago
yes we have to use Lambda but none of the options mention Lambda. So for option C, can we assume it?
upvoted 1 times
...
...
Always_Wanting_Stuff
3 years, 6 months ago
Agree with C. Is A even possible?
upvoted 3 times
mahdeo01
3 years, 6 months ago
A IS NOT possible because the question specifically mentions " The company does not want this new service to affect the performance of the current application."
upvoted 1 times
...
...
d719273
3 years, 6 months ago
C is correct
upvoted 3 times
...
YazanZeidan
3 years, 6 months ago
C 100% - One topic and more than one subscriber
upvoted 4 times
...
ansh18061986
3 years, 7 months ago
'C' looks correct to me . However , am not sure about DynamoDB transaction - does anyone have any idea on it ? Please update . Thanks .
upvoted 3 times
...
KK_uniq
3 years, 7 months ago
C is ok
upvoted 3 times
...
leliodesouza
3 years, 7 months ago
The answer is C.
upvoted 2 times
...
syu31svc
3 years, 7 months ago
I would take C; Triggers would mean use of Lambda
upvoted 6 times
...
massyg
3 years, 7 months ago
i go with C
upvoted 3 times
...
Milivoje
3 years, 7 months ago
Well, C is not a complete solution. Lambda is missing . If lamba was there I would have no doubt that C is the correct answer. From the other side, Excluding D is easy - SQS can not be used by 4 recipients, B- is not operationally simplest (no need for 4 SNS topics) , A- will add additional overhead. So C looks the best of all options but again, solution is incomplete!
upvoted 7 times
soti84
3 years, 7 months ago
Thanks for the additional reasoning. Agree - looks like "B" is the best one.
upvoted 3 times
massyg
3 years, 7 months ago
I think 4 sns topics are a bit too many. C is ok
upvoted 2 times
...
...
Stud
3 years, 7 months ago
Use case: Assume a scenario in which if there is a new entry for an invoice, the data must be sent to a downstream payment-processing system. Solution: You can build a solution using DynamoDB Streams, AWS Lambda, Amazon SNS, and Amazon SQS to handle such scenarios. Let’s assume that the downstream payment system expects an SQS message to trigger a payment workflow. The following summarizes the solution: Define an Amazon SNS topic with Amazon SQS as a subscriber. For details, see the Amazon SNS documentation. Use Lambda to read the DynamoDB stream and check whether there is a new invoice transaction, and send an Amazon SNS message. The SNS message delivers the message to the SQS queue. As soon as the message arrives, the downstream application can poll the SQS queue and trigger a processing action. Answer B
upvoted 3 times
Stud
3 years, 7 months ago
Sorry C is the answer
upvoted 4 times
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago