exam questions

Exam AZ-220 All Questions

View all questions & answers for the AZ-220 exam

Exam AZ-220 topic 1 question 5 discussion

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

You plan to deploy a standard tier Azure IoT hub.
You need to perform an over-the-air (OTA) update on devices that will connect to the IoT hub by using scheduled jobs.
What should you use?

  • A. a device-to-cloud message
  • B. the device twin reported properties
  • C. a cloud-to-device message
  • D. a direct method
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
LiamRT
Highly Voted 4 years, 7 months ago
Schedule jobs on multiple devices. Azure IoT Hub enables a number of building blocks like device twin properties and tags and direct methods. Typically, back-end apps enable device administrators and operators to update and interact with IoT devices in bulk and at a scheduled time. Jobs execute device twin updates and direct methods against a set of devices at a scheduled time. https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-jobs Looks like D may be the correct answer.
upvoted 8 times
...
angelsrp
Highly Voted 4 years, 11 months ago
Ans is B. We use device twins JSON document to make changes in the device with the reporterd/desired properties. https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-device-twins
upvoted 7 times
not_a_robot
4 years, 11 months ago
The answer is D, you don't set the report prop. Report prop is what's sent back to IoT Hub from the device.
upvoted 13 times
satishk4u
3 years, 4 months ago
Correct. Report Prop is from Device to IOT Hub.
upvoted 1 times
...
...
MasDen
4 years, 7 months ago
It is possible to use jobs to update devices using desired properties. So, answer should be B https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-jobs#jobs-to-update-device-twin-properties
upvoted 4 times
...
...
feyey
Most Recent 2 years, 3 months ago
Selected Answer: C
While it is possible to use a direct method to trigger an OTA update on devices that connect to an Azure IoT hub, it is not the recommended method. Direct methods are typically used for invoking a specific action on a device in real-time, and they can be useful for managing device settings or executing a specific function on a device. However, when it comes to performing OTA updates, using cloud-to-device messages is usually the more appropriate method. Cloud-to-device messages can be used to send firmware updates or other configuration changes to devices, and they can be scheduled to occur at specific times or intervals using Azure IoT Hub's Jobs feature. Therefore, the recommended method for performing an OTA update on devices that connect to an Azure IoT hub by using scheduled jobs is to use a cloud-to-device message. Option C is the correct answer.
upvoted 4 times
...
KrishnaSK1
2 years, 5 months ago
You can use a direct method to initiate device management actions (such as reboot, factory reset, and firmware update) from a back-end app in the cloud. The device is responsible for: Handling the method request sent from IoT Hub. Initiating the corresponding device-specific action on the device. Providing status updates through reported properties to IoT Hub. https://learn.microsoft.com/en-us/training/modules/examine-device-management-concepts-methods/3-device-management-patterns Answer: D
upvoted 1 times
...
liberty123
3 years, 3 months ago
Selected Answer: D
Agree with D
upvoted 1 times
...
imtiazL
3 years, 4 months ago
Answer is D https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-node-node-schedule-jobs
upvoted 2 times
...
d0bermannn
3 years, 6 months ago
Selected Answer: D
D, see link https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-c2d-guidance said that targets for Cloud-to-device messages is 'Single device by deviceId.' so no way for C
upvoted 2 times
...
metron
3 years, 7 months ago
Selected Answer: C
The key item in the question is 'will connect'. Which means D is likely wrong, since it works directly on connected devices. On the other hand, C is right (many devices will connect, and decide when to read the messages...since the messages can be queued in each device's queue, and it won't matter if some are connected or not.
upvoted 3 times
Robert12345Robert
2 years, 9 months ago
Jobs only support: -Update desired properties -Update tags -Invoke direct methods So C can not be the answer.
upvoted 2 times
...
...
exam67
4 years ago
my vote is for "C. a cloud-to-device message". There is a key statement in the question about the devices being usually disconnected and connecting at scheduled time. In that case a direct-method will likely fail. A cloud to device message instead is queued and will be picked up by the device as soon as it connects to IoT Hub. https://docs.microsoft.com/en-us/azure/architecture/example-scenario/iot/cloud-to-device
upvoted 1 times
d0bermannn
3 years, 6 months ago
link https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-c2d-guidance said that targets for Cloud-to-device messages is 'Single device by deviceId.' so D
upvoted 2 times
...
...
SanjuB
4 years, 4 months ago
D is the correct answer. No confusion.
upvoted 5 times
...
MasDen
4 years, 6 months ago
The answer is B. "IoT Hub will use the device twin properties to transfer the configuration change request to the device and monitor the progress" https://docs.microsoft.com/en-us/learn/modules/automate-iot-devices-management-with-azure-iot-hub/3-firmware-update-mechanism There are not many differences between updating devices manually or through jobs.
upvoted 2 times
MasDen
4 years, 6 months ago
My fault. Answer is D, due to we can use desired properties not reported. Because we don't have the option to use desired properties we can only one possible option: direct method
upvoted 6 times
d0bermannn
3 years, 6 months ago
best comment here
upvoted 1 times
...
JanFJ
3 years, 5 months ago
why we don't have the option to use desired properties ?
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 ...