Question 117 of 179 from exam AZ-204: Developing Solutions for Microsoft Azure

Question 117 of 179 from exam AZ-204: Developing Solutions for Microsoft Azure

Question

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.

az servicebus queue create
--resource-group fridge-rg
--namespace-name fridge-ns
--name fridge-q

B.

New-AzureRmResourceGroup
-Name fridge-rg
-Location fridge-loc

C.

az servicebus namespace create
resource-group fridge-rg
name fridge-ns

location fridge-loc

D.

connectionString-$)az serviceBus namespace authorization-rule keys list
--resource-group fridge-rg

--fridge-ns fridge-ns

--query primaryConnectionstring -output tsv)

Explanations

A.

A service bus instance has already been created (Step 2 below)

Next is step 3, Create a Service Bus queue.

Note: Steps: Step 1: # Create a resource group resourceGroupName="myResourceGroup" az group create --name $resourceGroupName --location eastus Step 2: # Create a Service Bus messaging namespace with a unique name namespaceName=myNameSpace$RANDOM az servicebus namespace create --resource-group $resourceGroupName --name $namespaceName --location eastus Step 3: # Create a Service Bus queue az servicebus queue create --resource-group $resourceGroupName --namespace-name $namespaceName --name BasicQueue Step 4: # Get the connection string for the namespace connectionString=$(az servicebus namespace authorization-rule keys list --resource-group $resourceGroupName --namespace-name $namespaceName --name RootManageSharedAccessKey --query primaryConnectionString --output tsv) Reference: https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-quickstart-cli.