Azure IoT Device Twin Attributes for Chemical Plant | Configuration Guide

Connect and Configure Device Twins for Pressure Monitoring Devices in an IIoT Solution | Microsoft Azure Exam AZ-220

Question

You are building an IIoT solution of a chemical plant.

As part of this, you need to connect with many pressure monitoring devices to an IoT Hub and configure the device twins for them appropriately.

Here is the list of the attributes to be added to the twin: Deployment location -> [?] Maximum acceptable pressure -> [?] Battery charge level -> [?] Firmware version -> [?] Telemetry send frequency -> [?] Which device twin sections should you select for the data above?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Correct Answer: B.

Option A is incorrect because maximum acceptable pressure is a prescribed value which has to go into the “desired” properties.

Option B is CORRECT because deployment location and firmware version are meta-data of the device and should go to the “tags” section; acceptable pressure and telemetry send frequency are prescribed values and should go to the “desired” properties; battery charge level is a value updated by the device among the “reported” properties.

Option C is incorrect because deployment location is a meta-data of the device which should be added to the “tags” section.

The device identity section (i.e.

the root of the device twin document) is reserved for device-level identification and status data.

Telemetry send frequency is the desired property.

Option D is incorrect because the correct name of the section for the prescribed values is “desired” (not “required”).

Reference:

The device twin is a digital representation of a physical device in the Azure IoT Hub. It consists of two parts - the "desired" properties and the "reported" properties. Desired properties are set by the cloud application to control the device's behavior, while reported properties are updated by the device to inform the cloud application about its state.

To configure the device twin for the pressure monitoring devices in the chemical plant, the following attributes need to be added:

  • Deployment location
  • Maximum acceptable pressure
  • Battery charge level
  • Firmware version
  • Telemetry send frequency

Based on this, the correct device twin sections to select are:

B. tags; properties.desired; properties.reported; tags; properties.desired

Explanation:

  • tags: Tags are name-value pairs that can be used to group and categorize devices. In this case, the deployment location could be added as a tag to identify devices based on their location. So, the deployment location can be added to the tags section.
  • properties.desired: Desired properties are used to specify the settings or configuration that the cloud application wants to apply to the device. The maximum acceptable pressure, battery charge level, firmware version, and telemetry send frequency can be added to the desired properties section to configure the behavior of the devices.
  • properties.reported: Reported properties are used by the device to communicate its state to the cloud application. The maximum acceptable pressure, battery charge level, firmware version, and telemetry send frequency can also be added to the reported properties section to inform the cloud application about the device's state.
  • tags: The telemetry send frequency can also be added as a tag to group devices based on their telemetry send frequency.
  • properties.desired: The telemetry send frequency can also be added to the desired properties section to configure the telemetry behavior of the devices.

Therefore, option B is the correct answer for this question.