Exam AZ-204 All QuestionsBrowse all questions from this exam
Question 281

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 of the solution that enables smart refrigerators to send temperature information to a central location and to receive and store messages until they can be processed, you need to create a Service Bus queue. This step involves the PowerShell command for creating the queue within the already established Service Bus namespace. Therefore, the correct command to use is the one provided in option C: New-AzureRmServiceBusQueue -ResourceGroupName fridge-rg -NamespaceName fridge-ns -Name fridge-q -EnablePartitioning $False. This command creates a new queue in the specified namespace, allowing messages to be stored until they can be processed, fulfilling the requirements of the solution.

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

Franz22

This question is equal to the question #9, the ONLY difference here is that we have to pick the Powershell answer, because it's the only that has the creation of the service bus queue. Go to the question #9 to see my answer why we should create the queue.

Eltooth

C is correct answer.

AbidooKing

Got this 2023July13. Went with given answer. score 917

[Removed]

Agree with the accepted answer but given question 9, this seems less like it is testing your knowledge and more an attempt to trick you.

if54uran

This question does not seem to make much sense

elequiel

Got it in exam 20/10/2022

edengoforit

The description is almost the same as the question #9. Hence, after creating a namespace, we should create a Service Bus Queue thus provided answer is correct. Answer should be C

Richard2021

the correction answer is B.

Illumielle

This is a repeat of question 9. But it seems to have different answers.

ReniRechner

this is because there is more than 1 way to do it...

ning

No idea what question is this ... Steps should be 1. create a resource group 2. create a service bus namespace 3. create a service bus queue 4. get connection string for the queue

ning

There is no such thing called service bus instance ... Only Service Bus Namespace, Service Bus Queue Or Service Bus Topic

ReniRechner

namespace = instance

warchoon

Everything created is an instance. It's a trick

jokergester

There is a requirement to provide an instance and yet the correct answer does not have the prior creation of the namespace. "C" would be ideal if the namespace is created prior to the script.

Zidimirite

"You create an Azure Service Bus instance by providing a name, pricing tier, subscription, resource group, and location." They seem to ask you to do this, but in this case I think they mean that you've done that and next "You need to complete the configuration.", which is adding a queue to the just created namespace. So C is right. It has to be right, A makes no sense and B and D both do the same thing.

rustycables

I don't know but guessed D. D seems more like a CLI command, and it also has location - which is specified in the question. C does not have location and does not look like a typical CLI command that begins AZ.

satyadharma

It is a powershell command which is mentioned in question as well. C is correct answer

Jobalos009

I'm confused. This powershell cmd creates a service bus queue: New-AzServiceBusQueue -ResourceGroupName ContosoRG -NamespaceName ContosoSBusNS -Name ContosoOrdersQueue But the answer is New-AzureRmServiceBusQueue (...) ?

SivajiTheBoss

This is the command to create Service bus namespace. New-AzServiceBusNamespace -ResourceGroupName ContosoRG -Name ContosoSBusNS -Location eastus Option C is wrong New-AzureRM....

SivajiTheBoss

To create ServiceBusQueue this is the command in Powershell New-AzServiceBusQueue -ResourceGroupName ContosoRG -NamespaceName ContosoSBusNS -Name ContosoOrdersQueue

SivajiTheBoss

Correct Answer C: As needs to creata instance of Queue

mc0re

A namespace must be created before creating a queue. So why not B or D? https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-quickstart-cli

asdasdasg2

The question states that you have already created the service bus, which is what "creating a namespace" does. So therefore the next step is to create the queue