nerdexam
Microsoft

AZ-204 · Question #578

You have an Azure Queue Storage account that contains a queue named queue1. You plan to use Azure SDK for .NET to develop a solution that uses queue1. You need to author C# code that will return an…

The correct answer is A. GetProperties method of the QueueClient class. https://learn.microsoft.com/en-us/azure/storage/queues/storage-quickstart-queues- dotnet?tabs=passwordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in- azure-cli#get-the-queue-length

Submitted by ashley.k· Mar 30, 2026Connect to and consume Azure services and third-party services

Question

You have an Azure Queue Storage account that contains a queue named queue1. You plan to use Azure SDK for .NET to develop a solution that uses queue1. You need to author C# code that will return an approximate number of messages in queue1. Your solution must minimize the development effort. Which method should you use in your code?

Options

  • AGetProperties method of the QueueClient class
  • BGetProperties method of the QueueServiceClient class
  • CPeekMessages method of the QueueClient class
  • DGetStatistics method of the QueueServiceClient class

How the community answered

(52 responses)
  • A
    75% (39)
  • B
    6% (3)
  • C
    15% (8)
  • D
    4% (2)

Explanation

https://learn.microsoft.com/en-us/azure/storage/queues/storage-quickstart-queues- dotnet?tabs=passwordless%2Croles-azure-portal%2Cenvironment-variable-windows%2Csign-in- azure-cli#get-the-queue-length

Topics

#Queue Storage#QueueClient#GetProperties#approximate message count

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice