Question 160
A three-stage billing pipeline must process actions for each account in order while scaling across accounts. Which engineering change is the most direct response to the stated failure and constraint?
Explanation
Correct Answer
This remedy fits the observed case: A three-stage billing pipeline must process actions for each account in order while scaling across accounts. Use Service Bus sessions with a stable per-account SessionId and session-aware receivers. The underlying issue is Ordinary competing consumers do not guarantee order of related messages. Direct acceptance evidence is Messages for one account execute sequentially while distinct accounts process concurrently.
Incorrect Answers
Abandoning the item repeatedly would create unnecessary redelivery or DLQ escalation. This is a separate requirement; the current case instead hinges on: Ordinary competing consumers do not guarantee order of related messages. The matching answer is: Use Service Bus sessions with a stable per-account SessionId and session-aware receivers.
The alternative addresses: Peek-lock delivery can be retried after a crash even if the side effect already committed. The reported constraint here is different: Ordinary competing consumers do not guarantee order of related messages. The case-specific choice is: Use Service Bus sessions with a stable per-account SessionId and session-aware receivers.
The subscription's default or current filter matches more properties than intended. By contrast, the relevant technical condition here is: Ordinary competing consumers do not guarantee order of related messages. The appropriate selection is: Use Service Bus sessions with a stable per-account SessionId and session-aware receivers.