Setting up Azure IoT Solution for Country-wide Environmental Monitoring System

Which Steps to Execute Before Connecting Devices to Azure IoT Solution?

Question

You are working for a company which is about setting up a country-wide environmental monitoring system for real-time air pollution monitoring.

In the first stage, the system will consist of 10000 sensor end-devices deployed.

Your task is to connect them to an Azure IoT solution.

You have three IoT Hubs, with the Device Provisioning Service.

The NO2 sensors need to be enrolled to Hub1, particle sensors to Hub2, and Temp sensors to Hub3

Create enrolment group Set allocation policy to Static Set allocation policy to Custom Deploy the custom allocation function to the devices Add the custom allocation function to DPS Before connecting the devices, which of the steps above should you execute?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Correct Answer: A.

Option A is CORRECT because first, you need to create a DPS service with allocation policy set to “Custom (Azure Function)” and the custom allocation function (Function App) implementing the allocation logic (by device type) must be linked to it.

Option B is incorrect because it is the “Custom” allocation policy that allows you to customize how the devices will be distributed over the IoT hubs.

Option C is incorrect because the custom allocation function must run in the cloud, rather than on the devices.

For the given scenario, the devices should provide information about their type during registration.

Option D is incorrect because the “Custom” allocation policy enables using customized allocation logic; the custom logic must run in the cloud, not on the devices.

Diagram:

Home > mydpslc001 >

>

& myenroll001

Enrollment Group Details

save () Refresh © Regenerate keys
elect now you want to assign aevices to nups

Custom (Use Azure Function)

Select the loT hubs this group can be assigned to: ©

myhublc001.azure-devices.net

Link a new loT hub

Subscription *

Concierge Subscription

Function App *

Create a new function app

Fu

Loading

References:

To connect 10,000 sensor end-devices to an Azure IoT solution, with different types of sensors being enrolled in different IoT Hubs, the following steps need to be executed:

  1. Create enrolment group: This step involves creating an enrollment group for each of the IoT Hubs, which will contain the device enrollment information for the corresponding sensor type.

  2. Set allocation policy to Static: This step involves setting the allocation policy for each enrollment group to "Static". This means that the devices will be assigned to a specific IoT Hub based on the enrollment group they are associated with.

  3. Set allocation policy to Custom: This step involves setting the allocation policy for each enrollment group to "Custom". This means that a custom allocation function will be used to assign devices to specific IoT Hubs based on a set of predefined rules.

  4. Deploy the custom allocation function to the devices: This step involves deploying the custom allocation function to the devices. This function will be used to assign the devices to specific IoT Hubs based on the rules defined in the function.

  5. Add the custom allocation function to DPS: This step involves adding the custom allocation function to the Device Provisioning Service (DPS). This will ensure that the custom allocation function is available for use during the device provisioning process.

Given the requirements of the scenario, the correct sequence of steps to execute before connecting the devices would be:

Option A: 1, 3, 5

First, the enrollment groups need to be created for each IoT Hub and the allocation policy set to "Custom". Then, the custom allocation function needs to be deployed to the devices and added to the DPS.