exam questions

Exam AZ-300 All Questions

View all questions & answers for the AZ-300 exam

Exam AZ-300 topic 2 question 48 discussion

Actual exam question from Microsoft's AZ-300
Question #: 48
Topic #: 2
[All AZ-300 Questions]

HOTSPOT -
You have an Azure Service Bus and a queue named Queue1. Queue1 is configured as shown in the following exhibit.

Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the graphic.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Krimish
Highly Voted 5 years, 8 months ago
Once message is expired after two hours , it will be moved to deal lettering.
upvoted 13 times
...
Derek_O2018
Highly Voted 5 years, 3 months ago
I believe that the reasoning behind answer 2 is the fact that successful processing of a message involves calling the complete method. This will remove the lock and delete the message immediately.
upvoted 13 times
...
Amir1909
Most Recent 1 year, 4 months ago
Correct
upvoted 1 times
...
BOC
4 years, 9 months ago
The given answer is correct
upvoted 3 times
...
gboyega
4 years, 11 months ago
Given answer is correct
upvoted 8 times
...
denkes
5 years ago
I just created a Service bus and checked the explanation in azure portal for field "Lock duration (i)": Sets the amount of time that a message is locked for other receivers. After its lock expires, a message pulled by one receiver becomes available to be pulled by other receivers. Default to 30 seconds, with a maximum of 5 minutes. From that point of view, i agree with "deleted immediately". Once a message is pulled, it will be deleted immediately. It does not make sense to keep the message further 5 minutes "locked" in the queue. Locking the message makes sense, for the case, when processing the message from a receiver, to lock the message, to avoid processing/receiving the message simultaneously by another receiver.
upvoted 12 times
...
AnshMan
5 years, 1 month ago
Answer1 is clear, It will move to DeadLetter after 2hours and stays there until manually deleted. Since by default PeekLock shall be enabled in Queue. Answer2, It will be deleted automaticallay (Meaning after read, it is declared as settlement) The receiving client initiates settlement of a received message with a positive acknowledgment when it calls Complete at the API level. This indicates to the broker that the message has been successfully processed and the message is removed from the queue or subscription. https://docs.microsoft.com/en-us/azure/service-bus-messaging/message-transfers-locks-settlement
upvoted 8 times
...
Avanade2023
5 years, 4 months ago
The first box is correct because the message will be removed to the dead letter queue, and messages in the dead letter queue should be deleted manually. Refer to: https://docs.microsoft.com/en-us/azure/service-bus-messaging/message-expiration "Expired messages can optionally be moved to a dead-letter queue by setting the EnableDeadLetteringOnMessageExpiration property," "Note that there is no automatic cleanup of the DLQ. Messages remain in the DLQ until you explicitly retrieve them from the DLQ and call Complete() on the dead-letter message." But I don't agree to the second answer Because the message will be locked for max 5 minutes after read by a receiver, and deleted after completing process of the receiver, not immediately.
upvoted 7 times
...
lorimer1
5 years, 5 months ago
message is dropped after 2 hrs unless set for dead letter queue "Expired messages can optionally be moved to a dead-letter queue by setting the EnableDeadLetteringOnMessageExpiration property, or checking the respective box in the portal. If the option is left disabled, expired messages are dropped" ... see https://docs.microsoft.com/en-us/azure/service-bus-messaging/message-expiration
upvoted 6 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...