Exam AZ-204 Topic 1 Question 166 Discussion

Actual exam question for Microsoft's AZ-204 exam
Question #: 166
Topic #: 1
Hotspot Question
You are developing an IoT solution.
The solution requires bidirectional communication between a client .NET application and Azure IoT hub. A .NET back-end application will connect to the IoT Hub to process information.
You need to collect the values required for the back-end application to connect with the newly created IoT Hub.
How should you complete the commands? To answer, select the appropriate options in the answer area.

Suggested Answer:


Explanation:
Box 1: show
Event Hub-compatible endpoint
az iot hub show --query properties.eventHubEndpoints.events.endpoint --name {your IoT Hub name} Box 2: show Event Hub-compatible name az iot hub show --query properties.eventHubEndpoints.events.path --name {your IoT Hub name} Box 3: show az iot hub policy show --name iothubowner --query primaryKey --hub-name {your IoT Hub name} Box 4: primaryKey References:
https://github.com/Azure-Samples/azure-iot-samples-csharp/blob/master/iot- hub/Quickstarts/read-d2c-messages/ReadDeviceToCloudMessages.cs

by Tom at May 05, 2024, 02:20 PM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10