exam questions

Exam AZ-220 All Questions

View all questions & answers for the AZ-220 exam

Exam AZ-220 topic 3 question 14 discussion

Actual exam question from Microsoft's AZ-220
Question #: 14
Topic #: 3
[All AZ-220 Questions]

HOTSPOT -
You have an Azure subscription that contains an Azure IoT hub and two IoT devices named Device1 and Device2.
You plan to deploy an Azure IoT Edge gateway device named Gateway1.
You need to ensure that all device-to-cloud messages and twin change notifications from Device1 and Device2 to the IoT hub are routed by using Gateway1.
What tasks should you perform to configure the devices? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: Device1 and Device2 -
Connection strings for downstream devices need the following components:
✑ The gateway device that the device connects through. Provide the hostname value from the IoT Edge gateway device's config file: GatewayHostName=
{gateway hostname}

Box 2: Gateway1 -
To deploy the IoT Edge hub module and configure it with routes to handle incoming messages from downstream devices, follow these steps:
1. In the Azure portal, navigate to your IoT hub.
2. Go to IoT Edge and select your IoT Edge device that you want to use as a gateway.
3. Select Set Modules.
4. On the Modules page, you can add any modules you want to deploy to the gateway device.
5. Select Next: Routes.
6. On the Routes page, make sure that there is a route to handle messages coming from downstream devices. For example:
A route that sends all messages, whether from a module or from a downstream device, to IoT Hub:

Name: allMessagesToHub -
Value: FROM /messages/* INTO $upstream
Box 3: FROM /messages/* INTO $upstream
Reference:
https://docs.microsoft.com/en-us/azure/iot-edge/how-to-authenticate-downstream-device

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
kohmaksimka
Highly Voted 3 years, 4 months ago
Correct answer: BOX 1: Device1 and Device2: GatewayHostName is configured on leaf devices BOX2: Gateway1 - routing is defined in the edgeHub module BOX3: FROM /* INTO $upstream to send both device-to-cloud messages and twin updates to cloud https://docs.microsoft.com/en-us/azure/iot-edge/module-composition?view=iotedge-2020-11#source
upvoted 19 times
liberty123
3 years, 3 months ago
Thanks you, I agree with you: BOX3: FROM /* INTO $upstream
upvoted 3 times
...
...
RajeevP26
Most Recent 3 years, 4 months ago
The FROM /* part of the message route will match all device-to-cloud messages or twin change notifications from any module or leaf device. Then, the INTO $upstream tells the route to send those messages to the Azure IoT Hub.
upvoted 2 times
...
d0bermannn
3 years, 5 months ago
linl provided is not reliable fo question box 1&2 is ok, like routing on L3) box 3 must be Box 3: FROM /messages/* INTO $upstream
upvoted 2 times
kohmaksimka
3 years, 4 months ago
Incorrect, should be FROM /* INTO $upstream as /messages/* only relates to device-to-cloud messages
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...