exam questions

Exam AZ-220 All Questions

View all questions & answers for the AZ-220 exam

Exam AZ-220 topic 3 question 18 discussion

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

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 device ID of the device twin.
Does this meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
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.
Reference:
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-device-twins

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
theScriptingEngineer
3 years, 3 months ago
As far as I know, the full device twin is only available in the cloud for back-end apps. The IoT Edge only gets the desired properties part of the device twin
upvoted 3 times
trahd
2 years, 2 months ago
I can confirm your statement in testing with C#. From a code snippet ... s_deviceClient = DeviceClient.CreateFromConnectionString(s_connectionString, Microsoft.Azure.Devices.Client.TransportType.Mqtt_Tcp_Only); var twin = await s_deviceClient.GetTwinAsync(); Console.WriteLine(twin.ToJson( Formatting.Indented)); ... Got the following output: { "deviceId": null, "etag": null, "version": null, "properties": { "desired": { "FPS": 45, "$version": 5 }, "reported": { "$version": 1 } } } Other Notes: SDK: Microsoft.Azure.Devices.Client version 1.41.3.0 .NET 7.02 Tested on non-IoT Edge device but I don't expect that to make a difference.
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 ...