QuestionQ53

VerifiedConnect to and consume Azure services

HOTSPOT -

You are reviewing message-processing code in a backend worker service.

Review the following Python code that initializes and starts a Service Bus processor.

Question Image

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

Yes or No
StatementsYesNo
Messages are removed from the queue as soon as they are received by the processor.
If message processing fails due to a transient service error, the message can be retried by another consumer.
Messages with invalid JSON payloads are retried until the maximum delivery count is reached.
Explanation

Peek-Lock retains the message until it is explicitly settled with completion, so receipt alone does not remove it. Abandoning a locked message releases it for delivery again to a receiver. Dead-lettering a malformed payload moves it to the dead-letter subqueue directly, rather than relying on repeated delivery attempts and the maximum delivery count.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!