Exam AZ-204 All QuestionsBrowse all questions from this 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.

    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
SnakePlissken

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

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

SnakePlissken

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

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

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

Bear_Polar

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

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

No idea what this question is asking ...

warchoon

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

Franz22

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

--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

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

rcamara32

C is the correct answer

hinoue

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

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

elequiel

Got it in exam 20/10/2022

manojchavan

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.

Michael2023

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

OPT_001122

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

1CY1

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.

tiggertag2000

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

tiggertag2000

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

RajMasilamani

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

mc0re

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

Laaptu

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

student85

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