exam questions

Exam AZ-303 All Questions

View all questions & answers for the AZ-303 exam

Exam AZ-303 topic 1 question 35 discussion

Actual exam question from Microsoft's AZ-303
Question #: 35
Topic #: 1
[All AZ-303 Questions]

You have an Azure Service Bus and two clients named Client1 and Client2.
You create a Service Bus queue named Queue1 as shown in the exhibit. (Click the Exhibit tab.)

Client1 send messages to Queue1 as shown in the following table.

Client2 reads the messages from Queue1 at 12:01:05.
How will the messages be presented to Client2?

  • A. Client2 will read three messages in the following order: M1, M2, and then M3.
  • B. Client2 will read three messages in the following order: M3, M1, and then M2.
  • C. Client2 will read four messages in the following order: M3, M1, M2 and then M3.
  • D. Client2 will read four messages in the following order: M3, M2, M1 and then M3.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
waxil
Highly Voted 4 years, 3 months ago
Answer should be "Client2 will read three messages in the following order: M3, M2 and then M1" ? Anyone offer anything different?
upvoted 79 times
billybumdrop
3 years, 11 months ago
I tried this out by writing the code to simulate the scenario described in the question. I got M3, M2, M1 only.
upvoted 31 times
...
ddb116
3 years, 11 months ago
But duplication detection is every 10 mins. The 4 messages are sent every min. So it will take another 6 mins before the duplicate is detected and discarded. I think the answer is correct.
upvoted 15 times
SecaWa5997
3 years, 11 months ago
No this setting means that it will detect duplicates if they are sent within 10 minutes, so the second M3 message should have been discarded.
upvoted 24 times
...
...
...
jasonclng
Highly Voted 4 years, 4 months ago
It seems none of the answer is correct as the second M3 message is discarded.
upvoted 30 times
...
rxlicon
Most Recent 1 year, 8 months ago
Client2 will read three messages in the following order: M3, M2 and then M1"
upvoted 1 times
...
BalaDxb
3 years, 1 month ago
Selected Answer: D
Messages are sent every second. Client 2 is trying to process the message at 5th second. So there is no way, duplication detection should have kicked in by then.
upvoted 1 times
...
mrhornet
3 years, 1 month ago
Selected Answer: B
It should be M3, M2, M1 as duplicate detection is enabled, and the duplication detection window is set to 10 minutes. The second M3 message in the queue would be discarded.
upvoted 1 times
...
arun
3 years, 1 month ago
Selected Answer: D
The duplicate detection will look at MessageId property of the brokered message and not the message so all 4 will appear for consumer.
upvoted 2 times
...
Dileep75
3 years, 3 months ago
explanation given is correct . i guess it is typo in option D..
upvoted 1 times
...
Azureforeveryone
3 years, 4 months ago
https://docs.microsoft.com/en-us/azure/service-bus-messaging/duplicate-detection#duplicate-detection-window-size Since duplicate windows size has by default a minumum size of 20 sec, by default any duplicate message during this period is automatically deleted, and since Queue is FIFO, the correct answer is M3 M2 M1 only.
upvoted 1 times
...
Chris76
3 years, 5 months ago
https://docs.microsoft.com/en-us/azure/service-bus-messaging/duplicate-detection From docs: "If any new message is sent with MessageId that was logged during the time window, the message is reported as accepted (the send operation succeeds), but the newly sent message is instantly ignored and dropped." Pay attention here "the SEND operation succeeds". Meaning you can successfully put duplicates on the bus but they will be discarded. Now question is how Client2 (who READS) will see messages? Hence messages are Dropped immediately after SEND, the client won't read the duplicate. Answer is M3,M2,M1 which is obviously missing. Its an error on examtopics.
upvoted 3 times
...
Chris76
3 years, 5 months ago
Please stop inspecting the message contents when trying to argue the solution. You don't make sense at all. Its not about message ID its about how de-dupe and its window works. The correct answer is missing. Which should be M3, M2, M1. Write an azure function triggered by a Service bus and see yourself.
upvoted 1 times
...
Mic5
3 years, 7 months ago
Correct Answer is D and the reason is M3, M2, M1 & M3 are actual messages(as per the wordings in the question) and doesnt represent Message Id which is what is required for duplicate detection. Since they are actual messages, they will be presented in M3, M2, M1 and M3.
upvoted 11 times
...
Morozz
3 years, 8 months ago
Correct answer is "four messages: M3, M2, M1, M3". Duplication detection does not consider the message content, only MessageID.
upvoted 8 times
...
syu31svc
3 years, 8 months ago
Given answer and explanation is correct but option is wrong Still, I'd just take the best option and go for D
upvoted 1 times
...
leo_az300
3 years, 9 months ago
Depends on how you understand the question. Let's treat M1, 2 and 3 as message IDs in common sense. None of options is correct. It should be M3, M2 and M1. For dedup, the message is reported as accepted (the send operation succeeds), but the newly sent message is instantly ignored and dropped. So this means to Sender, 2 M3 messages are sent successfully, but for Receiver CLient2, the 2nd M3 is dropped, which means NOT presented to Client2
upvoted 1 times
...
CitizenOfTheUniverse
3 years, 9 months ago
question is --> How will the messages be presented to Client2? and not what happened to those msgs - so D is correct answer based on the sequence of reading.
upvoted 3 times
...
hw121693
3 years, 10 months ago
From explanation: "It should be M3, M2, M1 as duplicate detection is enabled, and the duplication detection window is set to 10 minutes. The second M3 message in the queue would be discarded." The Clent2 reads the message @M3, M2, M1, M3. But the last M3 will be discarded
upvoted 3 times
...
becca
3 years, 10 months ago
This is correct. FIFO - 4 messages will be received by queue but the 2nd M3 will be discarded and won't be processed. Duplicate detection is set to 10 mins, any same message sent within that interval will get discarded.
upvoted 2 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago