New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft AZ-204 Exam - Topic 19 Question 23 Discussion

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

A company is developing a solution that allows smart refrigerators to send temperature information to a central location. You have an existing Service Bus.

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?

Show Suggested Answer Hide Answer
Suggested Answer: B

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)

References:

https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-quickstart-cli


Contribute your Thoughts:

0/2000 characters
Yvonne
4 months ago
I agree, Option A seems more straightforward.
upvoted 0 times
...
Nickie
5 months ago
Wait, can fridges really send data now? That's wild!
upvoted 0 times
...
Effie
5 months ago
Not sure if this is the best approach for scalability.
upvoted 0 times
...
Julene
5 months ago
I think Option B is the right command.
upvoted 0 times
...
Tawna
5 months ago
Sounds like a cool use for IoT!
upvoted 0 times
...
Norah
5 months ago
I remember something about using the Azure CLI for Service Bus, but I can't remember if it was for creating or managing queues.
upvoted 0 times
...
Hoa
5 months ago
I feel like Option B looks familiar, but I’m not confident if it’s the right command for setting up message storage.
upvoted 0 times
...
Harrison
5 months ago
I think it might be related to creating a queue or topic, but I'm not entirely sure which option corresponds to that.
upvoted 0 times
...
Beatriz
5 months ago
I remember we practiced a similar question about configuring Azure Service Bus, but I can't recall the exact command syntax.
upvoted 0 times
...
Francine
5 months ago
I'm a little confused on the best approach here. Should I just text the key details, or send a full email? Or maybe a combination of both? I want to make sure I communicate everything effectively, but I don't want to overwhelm the supervisor either. Hmm, I'll have to think this through carefully.
upvoted 0 times
...
Alline
5 months ago
The question mentions that the solution needs to "obtain an Azure Resource Manager access token." Using the Reader role seems like it might not be enough to actually get that token. I'd want to explore other options that could provide the necessary permissions.
upvoted 0 times
...
Brynn
5 months ago
This looks like a classic Accounting Flex field configuration question. I'd start by defining the Value Sets and assigning them to the Segments. Then I'd make sure the Segments are enabled and displayed properly. Shouldn't be too difficult as long as I follow the steps carefully.
upvoted 0 times
...
Pok
5 months ago
Hmm, this seems like a tricky one. I'll need to think carefully about the different change management options and how they might apply in this situation.
upvoted 0 times
...
Tonette
5 months ago
I'm feeling pretty confident about this one. The coffee shortage, new competition, and wage increase are all major external factors that would significantly impact BBB's business. I'll select those three and move on to the next question.
upvoted 0 times
...
Britt
6 months ago
Key thing to remember is that leading questions have built-in assumptions. Option D definitely does that with 'Weren't you aware...' - it assumes prior knowledge.
upvoted 0 times
...

Save Cancel