Microsoft Azure IoT Developer Exam: Provisioning Devices with Azure IoT Hub and DPS

Provisioning Devices with Azure IoT Hub and DPS

Question

You as an IoT Engineer, need to provision thousands of new devices over several IoT Hubs.

Because of the large number of devices, you need to use the DPS service.

You know that the following steps must be completed in order to get the solution fully operating: Create an enrollment list containing the registration information of the devices Connect the devices to the DPS DPS <..........1........> of the devices in the enrollment list DPS registers the devices with an IoT Hub DPS <..........2........> of the devices The IoT hub returns the device ID to the DPS DPS returns the connection information to the device The device connects to the IoT Hub The device <..........3........> from its device twin The device starts sending data Which of the following actions fit into the above steps?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Correct Answer: C.

Option A is incorrect because the identity of the device is validated before the desired state is set.

Option B is incorrect because the identity of the device is validated before the desired state is set.

Furthermore, the tag values are not accessible for devices.

Option C is CORRECT because after the first connection of the device, DPS validates its identity the, after successful registration, it sets the desired state in the device twin, which then will be retrieved by the device before it starts sending telemetry.

Option D is incorrect because at this stage, there is no reported state of the device.

Reported state is only populated after the device has connected to the IoT hub.

Reference:

As an IoT engineer, when provisioning thousands of new devices over several IoT Hubs, you need to use the Device Provisioning Service (DPS). The following steps need to be completed to get the solution fully operating:

  1. Create an enrollment list containing the registration information of the devices: Before devices can be connected to the DPS, their registration information needs to be added to an enrollment list. This includes the unique identity of the device, such as its MAC address or serial number, along with other relevant information.

  2. Connect the devices to the DPS: Once the enrollment list is created, the devices need to be connected to the DPS. This can be done in a number of ways, such as using a Device SDK or a REST API.

  3. DPS authenticates and authorizes the devices in the enrollment list: The DPS authenticates the devices and authorizes them to connect to the IoT Hub. This step ensures that only registered devices can connect to the IoT Hub.

  4. DPS registers the devices with an IoT Hub: After the devices are authenticated and authorized, the DPS registers them with an IoT Hub. The IoT Hub is the central hub that receives and processes the data sent by the devices.

  5. DPS receives device ID from IoT Hub: After the IoT Hub registers the devices, it sends their unique IDs back to the DPS.

  6. DPS returns connection information to the device: The DPS returns connection information, such as the IoT Hub endpoint and security credentials, to the device. This allows the device to securely connect to the IoT Hub.

  7. The device connects to the IoT Hub: The device uses the connection information provided by the DPS to securely connect to the IoT Hub.

  8. The device retrieves desired state from its device twin: Once the device is connected to the IoT Hub, it retrieves its desired state from its device twin. The device twin is a digital representation of the device's state and allows for remote monitoring and management.

  9. The device starts sending data: Finally, the device starts sending data to the IoT Hub, which can be processed and analyzed to gain insights and inform business decisions.

Based on the above explanation, the correct answer is C: 1 - validates the identity; 2 - sets the desired state; 3 - gets the desired state.

Option C correctly describes the sequence of actions that need to be taken during the device provisioning process. Option A is incorrect because it includes setting the desired state before validating the identity of the device, which would be a security risk. Option B is incorrect because it mentions getting the tag values, which is not a step in the device provisioning process. Option D is incorrect because it mentions getting the reported state, which is not a step in the provisioning process either.