exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 3 question 8 discussion

Actual exam question from Microsoft's AZ-204
Question #: 8
Topic #: 3
[All AZ-204 Questions]

You develop Azure solutions.
A .NET application needs to receive a message each time an Azure virtual machine finishes processing data. The messages must NOT persist after being processed by the receiving application.
You need to implement the .NET object that will receive the messages.
Which object should you use?

  • A. QueueClient
  • B. SubscriptionClient
  • C. TopicClient
  • D. CloudQueueClient
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
mlantonis
Highly Voted 3 years, 11 months ago
Correct Answer: A Azure.Storage.Queues.QueueClient: .NET v12 Azure.Storage.Queues.CloudQueueClient: .NET v11 (Legacy) So, the question is really about what kind of queue message tool you should use. And the key word here is that "message must NOT persist after being processed". Azure.Storage.Queues.QueueClient supports "At-Most-Once" deliver mode, while Azure.Storage.Queues.CloudQueueClient doesn't. Reference: https://docs.microsoft.com/en-us/dotnet/api/azure.storage.queues.queueclient?view=azure-dotnet https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.queue.cloudqueueclient?view=azure-dotnet-legacy
upvoted 93 times
Ody
4 months, 1 week ago
Copilot says: Neither `Azure.Storage.Queues.QueueClient` nor `Azure.Storage.Queues.CloudQueueClient` supports the **At-Most-Once** delivery mode. Both of these clients operate on an **At-Least-Once** delivery model, meaning a message might be delivered more than once if it is not explicitly deleted after being processed. If you need **At-Most-Once** delivery, Azure Service Bus with the **ReceiveAndDelete** mode is a better option
upvoted 1 times
...
guchao2000
2 years, 3 months ago
It's QueueClient of Service Bus.
upvoted 4 times
...
MiraA
3 years, 7 months ago
It seems the CloudQueueClient is a legacy class and is used for creation of QueueClient instances. https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.queue.cloudqueueclient.getqueuereference
upvoted 2 times
...
SSR999
1 year, 4 months ago
but when you do receive message on storage queue it wont delete message automatically
upvoted 1 times
...
...
Spooky7
Highly Voted 3 years, 11 months ago
First of all - question is not precise as we don't know which QueueClient they are asking about. There are two options: - Microsoft.AzureService.Bus.QueueClient? - Azure.Storage.Queues.QueueClient? I would say it is about Microsoft.AzureService.Bus.QueueClient as the difference between Azure.Storage.Queues.CloudQueueClient (v12) is just a legacy version of the Azure.Storage.Queues.QueueClient (v11) So the question is really about what kind of queue message tool you should use. And the key word here is that "message must NOT persist after being processed". So correct answer would be Microsoft.AzureService.Bus.QueueClient (A) as it supports "At-Most-Once" deliver mode while Azure.Storage.Queues.CloudQueueClient doesn't.
upvoted 19 times
basquiat
1 year, 9 months ago
I agree. Plus that Azure.Storage.Queues.QueueClient AFAIK is more appropriate for data intensive scenarios.
upvoted 1 times
...
...
wafa_chaari
Most Recent 3 months, 2 weeks ago
Selected Answer: A
QueueClient allows us to manipulate a queue and its msgs. we can add, update delete msgs in a queue. we can also receive msgs from a queue which can then be processed and deleted.
upvoted 1 times
...
Vichu_1607
6 months, 1 week ago
Selected Answer: A
QueueClient is the answer
upvoted 1 times
...
8ac3742
9 months, 1 week ago
The answer is "QueueClient":The CloudQueueClient from Azure Storage Queue requires manual deletion of messages, while the QueueClient from Azure Service Bus can use the ReceiveAndDelete mode to automatically delete messages after processing.
upvoted 1 times
...
ShoaibAnwar
1 year, 2 months ago
Selected Answer: B
SubscriptionClient Given the requirement for messages to not persist after being processed and the implied need for a publish/subscribe model
upvoted 2 times
...
raymond_abcd
1 year, 3 months ago
Selected Answer: A
Think it the servicebus namespace because it is messaging not the storagequeue namespace. The QueueClient is deprecated for Servicebus. It is not in the answers but it should be ServiceBusClient. So in this case I would go for the depricated object answer A
upvoted 2 times
...
RikinPatel
1 year, 7 months ago
Selected Answer: A
@Admin Please correct answer. As per MS Doc and ChatGPT correct ans is A so please correct ans and its explanation
upvoted 2 times
...
alexein74
2 years, 3 months ago
Selected Answer: A
A. QueueClient
upvoted 1 times
...
OPT_001122
2 years, 5 months ago
Selected Answer: A
A. QueueClient
upvoted 1 times
...
gmishra88
2 years, 7 months ago
Microsoft creates all these random naming convention showing how disorganized they are in individual islands and they dare to ask questions along this fault lines.
upvoted 7 times
...
Perplex
2 years, 9 months ago
Selected Answer: A
A is correct, the new API calls it QueueClient. See also most upvoted answer.
upvoted 3 times
ns4098
7 months, 4 weeks ago
QueueClient: This is used for Azure Service Bus Queues, which follows a one-to-one messaging pattern, meaning only one receiver can process a message. However, messages in a queue persist until they are explicitly deleted or expire, which does not fit the requirement.
upvoted 1 times
...
...
xRiot007
2 years, 11 months ago
A - version 12 D - "legacy" version 11
upvoted 1 times
...
Bartimaeus
3 years, 2 months ago
What about SeviceBus QueueClient in the old API? https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.servicebus.queueclient?view=azure-dotnet
upvoted 1 times
...
idroj
3 years, 2 months ago
Selected Answer: A
A is the correct answer
upvoted 3 times
...
Ccastan1
3 years, 3 months ago
So the explanation for why A is wrong is incorrect? It states you cannot access the VM using A
upvoted 1 times
...
prabhjot
3 years, 11 months ago
yes A is correct
upvoted 1 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