nerdexam
Microsoft

AZ-220 · Question #103

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might…

The correct answer is B. No. The Azure ID of the current device is available on the IOTEDGE_DEVICEID environment Instead read the device ID of the device twin. Note: Device twins are JSON documents that store device state information including metadata, configurations, and conditions. Azure IoT Hub…

Implement IoT Edge

Question

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You are developing a custom Azure IoT Edge module. The module needs to identify the device ID of the local device. Solution: You configure the module to read the IOTEDGE_DEVICEID environment variable. Does this meet the goal?

Options

  • AYes
  • BNo

How the community answered

(26 responses)
  • A
    27% (7)
  • B
    73% (19)

Explanation

The Azure ID of the current device is available on the IOTEDGE_DEVICEID environment Instead read the device ID of the device twin. Note: Device twins are JSON documents that store device state information including metadata, configurations, and conditions. Azure IoT Hub maintains a device twin for each device that you connect to IoT Hub. Device identity properties. The root of the device twin JSON document contains the read-only properties from the corresponding device identity stored in the identity registry. https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-device-twins

Topics

#IoT Edge module#device ID#environment variables#IOTEDGE_DEVICEID

Community Discussion

No community discussion yet for this question.

Full AZ-220 Practice