CertKeen

Azure AI Cloud Developer (AI-200) · Free practice question 8 of 12

Deferring Service Bus messages

A workflow at Brackwater Insurance receives a payment-confirmed message before the order-created message it depends on. The worker wants to set the payment message aside in the queue and fetch it later by ID. Which Service Bus feature supports this?

  1. A.Scheduled messages: resend the payment message with a future enqueue time
  2. B.Message deferral: defer the message, keep its sequence number and later receive it with receive_deferred_messages
  3. C.Auto-forwarding: forward the message to another queue
  4. D.Dead-lettering: move it to the dead-letter queue and read it back later
Show answer and explanation

Correct answer: B. Message deferral: defer the message, keep its sequence number and later receive it with receive_deferred_messages

Why: Deferral leaves a message in the queue but hides it from normal receives; the receiver keeps the sequence number and retrieves the message explicitly with receive_deferred_messages when it's ready. Rescheduling creates a new message and guesses at timing. Auto-forwarding moves all messages between entities. The dead-letter queue is for messages that can't be processed, not workflow ordering.

More free Azure AI Cloud Developer (AI-200) questions