exam questions

Exam AZ-220 All Questions

View all questions & answers for the AZ-220 exam

Exam AZ-220 topic 2 question 15 discussion

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

You have an Azure IoT solution that includes multiple Azure IoT hubs in different geographic locations and a single Device Provision Service instance.
You need to configure device enrollment to assign devices to the appropriate IoT hub based on the following requirements:
✑ The registration ID of the device
The geographic location of the device

The load between the IoT hubs in the same geographic location must be balanced.
What should you use to assign the devices to the IoT hubs?

  • A. Static configuration (via enrollment list only)
  • B. Lowest latency
  • C. Evenly weighted distribution
  • D. Custom (Use Azure Function)
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
AlanYu
Highly Voted 4 years, 1 month ago
I think the answer should be D? It requires dps to allocate devices based on the registration ID of the device and the geographic location of the device. And also the load-balance should be made. But the static configuration can not achieve this requirement. The logic can be written in the Azure Function. So I think answer is D.
upvoted 16 times
AlanYu
4 years, 1 month ago
https://docs.microsoft.com/en-us/azure/iot-dps/how-to-use-custom-allocation-policies?tabs=windows
upvoted 2 times
...
tita_tovenaar
4 years ago
you’re right. The load balancer is of second order. Geogr. comes first. Only custom config can do this.
upvoted 4 times
...
...
berkejf
Highly Voted 4 years, 1 month ago
answer should be D. it require to base registration id and geographic location to assign device to IoT hub. It only can be done by Customised Function App.
upvoted 7 times
...
IMARRA
Most Recent 1 year, 12 months ago
Selected Answer: D
"Static configuration: devices are provisioned to a single IoT hub, which must be specified on the enrollment." So Answer should be D. https://learn.microsoft.com/en-us/azure/iot-dps/how-to-use-allocation-policies#understand-allocation-policies
upvoted 1 times
...
feyey
2 years, 2 months ago
Selected Answer: D
"Custom (Use Azure Function)" allocation policy option. This option allows you to use a custom Azure Function to dynamically allocate devices to IoT hubs based on your specific criteria, including the device's registration ID and geographic location. You can write a function that takes the device's metadata as input and returns the IoT hub endpoint that the device should be provisioned to. This enables you to apply more complex allocation logic beyond the standard allocation policy options provided by Azure IoT Hub. Using the custom allocation policy, you can implement a load balancing strategy that distributes devices evenly between IoT hubs in the same geographic location, based on the current load and availability of each hub. This can help ensure that the devices are distributed efficiently and prevent overloading of any particular IoT hub. Therefore, the correct answer is option D: Custom (Use Azure Function).
upvoted 1 times
...
IMARRA
2 years, 11 months ago
why not Evenly weighted distribution?
upvoted 1 times
exnaniantwort
2 years, 6 months ago
It misses the requirement "The load between the IoT hubs in the same geographic location must be balanced".
upvoted 2 times
...
...
zb99
2 years, 11 months ago
Selected Answer: D
Only way to include ID in allocation logic is with a custom Function.
upvoted 1 times
...
Plee
3 years, 3 months ago
Selected Answer: D
IMO answer should be D
upvoted 1 times
...
liberty123
3 years, 3 months ago
Selected Answer: A
I see Static configuration is not wrong, it works!
upvoted 1 times
...
coramella
3 years, 5 months ago
Selected Answer: D
“ This article demonstrates a custom allocation policy using an Azure Function written in C#. Two new IoT hubs are created representing a Contoso Toasters Division and a Contoso Heat Pumps Division. Devices requesting provisioning must have a registration ID with one of the following suffixes to be accepted for provisioning: -contoso-tstrsd-007: Contoso Toasters Division -contoso-hpsd-088: Contoso Heat Pumps Division The devices will be provisioned based on one of these required suffixes on the registration ID.” https://docs.microsoft.com/en-us/azure/iot-dps/how-to-use-custom-allocation-policies?tabs=windows
upvoted 1 times
...
d0bermannn
3 years, 6 months ago
Selected Answer: D
D looks ok: https://docs.microsoft.com/en-us/azure/iot-dps/how-to-use-custom-allocation-policies?tabs=windows
upvoted 2 times
...
Stephan99
4 years, 1 month ago
It states "The load between the IoT hubs in the same geographic location must be balanced." If geographic location is the same, I suppose that the latency is also the same. Why not select "Evenly weighted distribution"?
upvoted 5 times
...
JeeBi
4 years, 1 month ago
It states "The load between the IoT hubs in the same geographic location must be balanced." This would not be the case when using lowest latency. So I would choose A.
upvoted 1 times
...
ADC88
4 years, 2 months ago
I think should be the answer B: Lowest Latency to cover the requirement about geographic location
upvoted 1 times
tita_tovenaar
4 years ago
no, lowest latency would push devices to the closest hub. thats not necessarily an equal distribution between hubs.
upvoted 4 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 ...