exam questions

Exam AZ-220 All Questions

View all questions & answers for the AZ-220 exam

Exam AZ-220 topic 2 question 20 discussion

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

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have a Standard tier Azure IoT hub and a fleet of IoT devices.
The devices connect to the IoT hub by using either Message Queuing Telemetry Transport (MQTT) or Advanced Message Queuing Protocol (AMQP).
You need to send data to the IoT devices and each device must respond. Each device will require three minutes to process the data and respond.
Solution: You use direct methods and check the response.
Does this meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
IoT Hub provides three options for device apps to expose functionality to a back-end app:
✑ Twin's desired properties for long-running commands intended to put the device into a certain desired state. For example, set the telemetry send interval to 30 minutes.
✑ Direct methods for communications that require immediate confirmation of the result. Direct methods are often used for interactive control of devices such as turning on a fan.
✑ Cloud-to-device messages for one-way notifications to the device app.
Reference:
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-c2d-guidance

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
trickerk
Highly Voted 3 years, 9 months ago
Fleet of devices has minimum 2 devices (it's obivious), thus 2x3min = 6mi. Direct methods has maximum 5 minutes of time out period. So given answer is correct: No.
upvoted 5 times
Ouss7
2 years, 10 months ago
A Direct method communicate with one device , so either we have 1 or 1000 devices it doesn't matter, it doesn't impact the timeout of one device which is maximum 5 mins
upvoted 2 times
...
...
Kamilelo
Most Recent 2 years, 3 months ago
IMHO anser is B) NO a Direct Method call requires HTTPS call and here there are only MQTT and AMQP "Direct methods are HTTPS-only from the cloud side and MQTT, AMQP, MQTT over WebSockets, or AMQP over WebSockets from the device side." https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-direct-methods
upvoted 2 times
Jan91
2 years, 1 month ago
Direct methods could also be over AMQP or MQTT, it is stated in the link you provided
upvoted 1 times
...
...
Robert12345Robert
2 years, 7 months ago
The timeout is per device: https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-direct-methods So A.
upvoted 2 times
...
dinesh_tng
3 years, 10 months ago
Direct methods are synchronous and either succeed or fail after the timeout period....WHEREAS QUESTION SAYS - "each device must respond"
upvoted 4 times
...
berkejf
3 years, 11 months ago
Answer should be Yes. Direct method can set timeout up to 300 sec which allow device to response in 3 mins.
upvoted 2 times
...
borondy
4 years, 1 month ago
Are we sure? The Direct Method has a maximum 300s method timeout. So it should work in concept.
upvoted 3 times
dinesh_tng
3 years, 10 months ago
Since there are "fleet of IoT devices", this count can be huge....Direct Meathod is good for immediate actions and on limited number of devices.
upvoted 5 times
...
trickerk
3 years, 9 months ago
Fleet of devices has minimum 2 devices (it's obivious), thus 2x3min = 6mi. Direct methods has maximum 5 minutes of time out period. So given answer is correct: No.
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago