Question 460
While translating stakeholder requirements involving service bus queue and topic messaging, the review finds: An order service occasionally delivers duplicate messages after transient crashes. What is the most appropriate Azure architecture decision?
Explanation
Correct Answer
Make consumers idempotent and consider supported broker duplicate detection. At-least-once retry patterns require protection against duplicate business effects.
Incorrect Answers
Use an Azure Service Bus topic with separate subscriptions addresses An inventory change should reach both shipping and fraud systems as independent durable subscriptions; Topics fan out brokered messages while subscriptions track consumer state independently.
This option, Use Service Bus sessions with a stable customer session ID, would fit the separate requirement A command requires FIFO handling per customer while allowing customers to process concurrently. Sessions preserve ordered message handling within a logical sequence.
Use a dead-letter queue with monitored investigation and controlled replay is intended for a different condition: A malformed order message repeatedly fails consumer processing and blocks normal work. Dead-letter isolation prevents endlessly failing messages from occupying normal processing.