A developer needs to test how an Azure Service Bus consumer handles poison messages. What is the best practice in a test environment?
-
A
Delete the dead-letter queue before each test run
-
B
Send malformed messages and assert the consumer moves them to the dead-letter sub-queue after max delivery attempts
-
C
Set MaxDeliveryCount to 0 to disable retries
-
D
Disable sessions on the queue to simplify testing