A .NET application must receive a message whenever an Azure virtual machine finishes processing data. Messages must not persist after the receiver processes them. Which .NET client object should the receiver use?
Choose an answer
Tap an option to check your answer.
Correct answer: QueueClient.
Why this is the answer
The QueueClient is the correct choice because it's designed for sending and receiving messages from an Azure Service Bus Queue. Service Bus Queues provide a reliable, asynchronous messaging mechanism where messages are typically deleted after being successfully processed by a receiver, fulfilling the requirement that messages do not persist. SubscriptionClient is used for receiving messages from a Service Bus Topic subscription, which implies a publish/subscribe model where multiple subscribers can receive copies of a message. This doesn't fit the single-receiver, non-persistent message requirement as directly as a queue. TopicClient is used for sending messages to a Service Bus Topic, not for receiving. CloudQueueClient is part of the Azure Storage Queue SDK, not Azure Service Bus. While Azure Storage Queues also offer message queuing, Azure Service Bus Queues are generally preferred for enterprise messaging scenarios requiring advanced features like dead-lettering, message sessions, and larger message sizes, which are often implied in "application processing data" contexts.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed