Exam-Answer

Home / Microsoft / AZ-300 / Question 123

Prev Question
Next Question

Question 123

Your company is implementing a messaging solution for the cloud. The solution must allow client applications to submit URLs to videos that must be converted from Windows Media Video to MPEG-2.

A pool of cloud services is responsible for converting the videos. A video must be converted only once. The URLs must be sent to the cloud at endpoint https://exam-answer.servicebus.windows.net.

You need to use Azure CLI to create the appropriate Azure resource.

How should you complete the commands? Select correct placeholder values.

az PLACEHOLDER 1 PLACEHOLDER 2 create

--name exam-answer

--resource-group services --location eastus

az PLACEHOLDER 3 PLACEHOLDER 4 create

--name converter

--resource-group services

--namespace-name exam-answer

Answers


Advertisement

Explanation (click to expand)

You should use the following commands:

az servicebus namespace create

--name exam-answer

--resource-group services --location eastus

az servicebus queue create

--name converter

--resource-group services

--namespace-name exam-answer

The first command creates a Service Bus namespace named exam-answer. Service Bus allows you to send messages that are processed by other applications. You should use exam-answer as the namespace because the container URL to which you want to send messages is https://exam-answer.servicebus.windows.net. A namespace is a collection of queues or topics.

The second command creates the actual queue. A queue is where messages are sent to be processed by a single application. The --namespace-name parameter specifies the namespace under which the queue should be created.

You should not use the az eventhub namespace create command. This command creates an Azure Event Hubs namespace. Although both Event Hubs and Service Bus use the same URL format, they are different in terms of usage. Service Bus is used for sending messages, while Event Hubs is used for sending events, such as telemetry data.

You should not use the az servicebus queue create as the first command. Queue can receive and send messages and can be created only after the service bus already exists.

References (click to expand)

Prev Question
Next Question

Load more