A Lambda consumer processes an SQS FIFO queue whose messages all use one message group ID, although orders are independent. The backlog grows with only one active invocation; how should the developer increase parallelism while preserving message order within each order?
Show the answer
Correct answerD. Use the order ID as the message group ID.
AWhy not this: Visibility timeout controls when unprocessed messages become visible again, not parallelism across groups.
BWhy not this: Separate groups for individual messages allow messages from the same order to be processed out of order.
CWhy not this: Additional concurrency cannot overcome the serialization imposed by a single FIFO message group.
DWhy this is right: Grouping by order preserves each order's sequence while allowing different orders to be processed concurrently.
FIFO queues allow concurrent processing across message groups while preserving order within each group. Using order IDs enables parallel processing of independent orders; a unique group for every message would lose ordering within an order.