AZ-204 Exam QuestionsBrowse all questions from this exam

AZ-204 Exam - Question 279


A company is developing a solution that allows smart refrigerators to send temperature information to a central location.

The solution must receive and store messages until they can be processed. You create an Azure Service Bus instance by providing a name, pricing tier, subscription, resource group, and location.

You need to complete the configuration.

Which Azure CLI or PowerShell command should you run?

A.

B.

C.

D.

Show Answer
Correct Answer:

To complete the configuration after creating an Azure Service Bus instance, you need to create a queue within the namespace. The appropriate command to do this using Azure CLI is: az servicebus queue create --resource-group fridge-rg --namespace-name fridge-ns --name fridge-q. This command creates a new queue in the specified Service Bus namespace within the given resource group, which matches the requirement of storing messages until they can be processed.

Discussion

17 comments
Sign in to comment
SnakePlissken
May 16, 2021

I think the Service Bus has already been created and now they ask you to complete the configuration. The next step is creating the queue. In fact, all the steps are shown: B. Create group. C. Create Service Bus. A. Create Queue. <-- Correct answer. D. Get connectionstring.

SnakePlissken
May 21, 2021

Got this question at the exam and scored 100% on Azure Storage, so I'm sure this is correct.

SnakePlissken
May 28, 2021

I'm really sorry, Service Bus falls in another section where I scored 85%, so I can't be sure if this is the correct answer.

xRiot007
Jun 19, 2022

Your steps are correct. You need a resource group before creating any resource. The service bus that you create in Step 2 will be a resource in that group. Inside an Azure Service Bus you can create queues and topics Inside the same Azure Service Bus, you will have the primary and secondary connection strings. You can get the connection before or after you created your queue. In code, you will connect to the service bus and then specify the name of the topic or queue to the service client.

RavindraDevkhile
Mar 24, 2021

It Ask for create an Azure Service Bus instance by providing not the Service bus Queue So correct Answes should be C

Bear_Polar
Dec 5, 2022

As C location part is incorrect (fridge-loc is not a variable neither a valid location). So, A must be the ans (assume that the queue has been created)

damianadalid
May 22, 2023

In Azure Portal explation to set up Azure Service Bus, it forces you to create a namespace as you start creating the instance: https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-quickstart-portal So I would say the namespace is already there and therefore the answer is A (create the queue).

ning
Aug 15, 2021

No idea what this question is asking ...

warchoon
Mar 7, 2023

It's asking which command is correct. The only one has no errors and provides requirements

Franz22
Oct 20, 2021

Answer A is correct, because if we look at the documentation of Microsoft where are listed all the steps to create a Service Bus: https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-quickstart-portal We can see that when we create a Service Bus, we MUST specify a namespace so the ServiceBus instance is the namespace itself and the question says "You create a service bus instance... You need to complete the configuration" --> So, in order to complete the configuration, we have to create a Queue.

Helpnosense
Jul 1, 2021

--location fridge-loc is definitely wrong for az servicebus namespace create command. Whoever thinks C is right, just try the command to see if CLI will succeed or not. A is correct.

Mr_X
Jul 28, 2021

Commands B&C have set wrong location this will throw an error. D does not make sense to me at all. Thats nonsense.

rcamara32
Jan 13, 2022

C is the correct answer

hinoue
Nov 1, 2021

question says You create an Azure Service Bus instance by providing a name, pricing tier, subscription, resource group, and location pricing tier(sku) can be set at the creation of namespace, not queue So, I think answer is C. https://docs.microsoft.com/en-us/cli/azure/servicebus/namespace?view=azure-cli-latest#az_servicebus_namespace_create https://docs.microsoft.com/en-us/cli/azure/servicebus/queue?view=azure-cli-latest#az_servicebus_queue_create

noro5
Jan 16, 2022

It says also 'You need to complete the configuration.' so I assume the Service Bus instance is in place

manojchavan
Jun 20, 2021

Question is poorly worded. I think what is asked here is that service bus instance is already created and now you need to complete the configuration to start using the bus. In this case, you will need to create Queue and hence correct answer is A.

elequiel
Oct 21, 2022

Got it in exam 20/10/2022

Laaptu
Jun 28, 2021

Option A is correct, az servicebus queue create --resource-group myresourcegroup --namespace-name mynamespace --name myqueue https://docs.microsoft.com/en-us/cli/azure/servicebus/queue?view=azure-cli-latest#az_servicebus_queue_create

mc0re
Aug 13, 2021

According to Microsoft, the namespace must be created before the queue. So the correct answer must be C. https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-quickstart-cli

RajMasilamani
Sep 18, 2021

The answer should be A. connection string and the queue name. You use them to send and receive messages. https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-quickstart-cli

tiggertag2000
Dec 17, 2021

C is the correct answer https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-tutorial-topics-subscriptions-cli

tiggertag2000
Dec 17, 2021

I take that back, the service bus is already created, so A is the right answer

OPT_001122
Nov 8, 2022

A or C? looking at question C looks correct but here A is highly voted

1CY1
Jul 12, 2024

I agree the wording is ambiguous. I think we have to go with the idea that the namespace has already been created but this is unclear from the wording.

Michael2023
Jan 31, 2023

Got this on my exam 30.1.2023 went with Highly Voted answer score 876

student85
Oct 26, 2022

I think A is correct https://learn.microsoft.com/en-us/cli/azure/servicebus/queue?view=azure-cli-latest