exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 3 question 66 discussion

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

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?

  • A. GetProperties method of the QueueClient class
  • B. GetProperties method of the QueueServiceClient class
  • C. PeekMessages method of the QueueClient class
  • D. GetStatistics method of the QueueServiceClient class
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
GrzegorzZima
Highly Voted 7 months, 1 week ago
Selected Answer: A
Looks correct: 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
upvoted 7 times
...
wafa_chaari
Most Recent 6 months ago
Selected Answer: A
correct
upvoted 4 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 ...