
Answer-first summary for fast verification
Answer: Utilize Amazon Kinesis with the payment ID as the partition key., Utilize Amazon SQS FIFO with the payment ID in the message group.
To ensure that messages for a particular payment ID are processed in the order they were sent, you can use Amazon services that guarantee ordered delivery. Amazon Kinesis Data Streams (Option B) ensures ordered processing within the same partition. By using the payment ID as the partition key, you can ensure messages for the same payment ID are processed in order. Similarly, Amazon SQS FIFO queues (Option E) guarantee that messages with the same message group ID are delivered in the order they are sent. Setting the message group to use the payment ID ensures ordered processing for messages with the same payment ID.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A company's payment processing system must process messages for each payment ID in the order they were sent. Which two actions should a solutions architect implement to ensure this order is maintained?
A
Utilize Amazon DynamoDB with the payment ID as the partition key.
B
Utilize Amazon Kinesis with the payment ID as the partition key.
C
Utilize Amazon ElastiCache for Memcached with the payment ID as the key.
D
Utilize Amazon SQS with the payment ID set in a message attribute.
E
Utilize Amazon SQS FIFO with the payment ID in the message group.