exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 6 question 23 discussion

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

HOTSPOT -
You are developing a .NET application that communicates with Azure Storage.
A message must be stored when the application initializes.
You need to implement the message.
How should you complete the code segment? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Reference:
https://docs.microsoft.com/en-us/azure/storage/queues/storage-dotnet-how-to-use-queues?tabs=dotnetv11

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
BogdanG
Highly Voted 2 years, 10 months ago
Correct, just that this is deprecated For .NET V12 SDK is as follows : string connectionString = ConfigurationManager.AppSettings["StorageConnectionString"]; QueueClient queueClient = new QueueClient(connectionString, queueName); queueClient.CreateIfNotExists();
upvoted 25 times
examtopicsLogin123
4 months ago
Just for reference CloudQueueClient deprecated indeed: https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.queue.cloudqueueclient?view=azure-dotnet-legacy This is question about Azure Storage, and QueueClient from Azure Storage is ok: https://learn.microsoft.com/en-us/dotnet/api/overview/azure/storage.queues-readme?view=azure-dotnet#async-apis Azure ServiceBus also has a QueueClient class, and it is deprecated: https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.servicebus.queueclient?view=azure-dotnet-legacy ServiceBusClient is ok and can send messages too: https://learn.microsoft.com/en-us/dotnet/api/overview/azure/messaging.servicebus-readme?view=azure-dotnet#send-and-receive-a-message
upvoted 1 times
...
...
juanckar
Highly Voted 1 year, 7 months ago
This was on the exam (July 2023). Went with proposed. Scored 917
upvoted 9 times
...
examtopicsLogin123
Most Recent 1 week, 1 day ago
Got this question in February 2025. The answer options were exactly like here. Found the answer on learn.microsoft.com during the exam. Went with: CloudQueueClient queueClient = cloudStorageAccount.CreateCloudQueueClient(); CloudQueue queue = queueClient.GetQueueReference("queue1"); https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.cloudstorageaccount?view=azure-dotnet#examples There were about 50 questions, all from examtopics, except maybe 2 or 3. Case Study first (Fourth Coffee and VanArsdel), then regular questions, then series of questions.
upvoted 1 times
examtopicsLogin123
1 week, 1 day ago
Also, another question contains the answer for this one: https://www.examtopics.com/discussions/microsoft/view/36574-exam-az-204-topic-6-question-5-discussion/
upvoted 1 times
...
...
arunkuml
1 year, 2 months ago
Got it in the exam 14/12/23. Scored 912/1000. All questions are from ExamTopics. Case study - VanArsdel, Ltd (11 questions)
upvoted 2 times
...
huislaw
2 years, 10 months ago
Answer is correct: 1. Create the queue client 2. Retrieve a reference to a queue
upvoted 6 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