DVA-C02 · Question #550
A developer is creating a stock trading application. The developer needs a solution to send text messages to application users to confirmation when a trade has been completed. The solution must delive
The correct answer is D. Create an Amazon Simple Notification Service (SNS) FIFO topic. Configure the application to use. Amazon SNS FIFO topics provide strict message ordering and exactly-once delivery deduplication, making them the correct choice for ordered, deduplicated trade confirmation notifications.
Question
A developer is creating a stock trading application. The developer needs a solution to send text messages to application users to confirmation when a trade has been completed. The solution must deliver messages in the order a user makes stock trades. The solution must not send duplicate messages. Which solution will meet these requirements?
Options
- AConfigure the application to publish messages to an Amazon Data Firehose delivery stream.
- BCreate an Amazon Simple Queue Service (Amazon SQS) FIFO queue. Use the SendMessageIn
- CConfigure a pipe in Amazon EventBridge Pipes. Connect the application to the pipe as a source.
- DCreate an Amazon Simple Notification Service (SNS) FIFO topic. Configure the application to use
How the community answered
(30 responses)- A7% (2)
- B13% (4)
- C3% (1)
- D77% (23)
Why each option
Amazon SNS FIFO topics provide strict message ordering and exactly-once delivery deduplication, making them the correct choice for ordered, deduplicated trade confirmation notifications.
Amazon Data Firehose is designed to deliver streaming data to storage destinations like S3 or Redshift; it is not a messaging service for sending ordered, deduplicated text notifications to users.
SQS FIFO queues preserve ordering and prevent deduplication within the queue, but SQS is a pull-based queuing service and does not natively send text messages to end users.
EventBridge Pipes connect sources to targets for event-driven routing but do not provide ordering guarantees or built-in deduplication for end-user notifications.
SNS FIFO topics guarantee that messages are delivered to subscribers in the exact order they are published and support content-based or ID-based deduplication to prevent duplicate messages within a 5-minute window. This ensures trade confirmations are sent in the order trades are executed without sending the same confirmation twice.
Concept tested: SNS FIFO topic for ordered and deduplicated messaging
Source: https://docs.aws.amazon.com/sns/latest/dg/fifo-topics.html
Community Discussion
No community discussion yet for this question.