exam questions

Exam AZ-220 All Questions

View all questions & answers for the AZ-220 exam

Exam AZ-220 topic 1 question 9 discussion

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

DRAG DROP -
You have an Azure IoT hub.
You plan to attach three types of IoT devices as shown in the following table.

You need to select the appropriate communication protocol for each device.
What should you select? To answer, drag the appropriate protocols to the correct devices. Each protocol may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: AMQP -
Use AMQP on field and cloud gateways to take advantage of connection multiplexing across devices.

Box 2: MQTT -
MQTT is used on all devices that do not require to connect multiple devices (each with its own per-device credentials) over the same TLS connection.

Box 3: HTTPS -
Use HTTPS for devices that cannot support other protocols.
Reference:
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-protocols

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, 10 months ago
Given answers are correct according https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-protocols: - Transparant Field Gateway Device: AMQP (will connect to multiple devices) - Low Resource Device: MQTT or AMQP (will use cloud-to-device messages) -> MQTT (will not connect to another devices) - Limited Sensor Device: HTTPS (will not support the Azure SDK Messages)
upvoted 5 times
...
KrishnaSK1
Most Recent 2 years, 5 months ago
answer: MQTT https://blog.hansevision.com/connecting-sensors-to-azure-iot-hub
upvoted 1 times
...
pdeng
2 years, 6 months ago
I would vote for MQTT for the last box. SSL/TLS on HTTPS is very heavy, MQTT is lighter. MQTTS will be similar to HTTPS, but it is not listed in the options.
upvoted 3 times
pdeng
2 years, 6 months ago
Sorry, the MQTT here actually means MQTTS. MQTT is smaller binary, HTTP is ascii.
upvoted 2 times
...
...
coramella
3 years, 5 months ago
Here you have this paragraph: https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-mqtt-support#example-in-c-using-mqtt-without-an-azure-iot-sdk on how implement mqtt in C when azure Sid is not supported. I would use mqtt for the last one.
upvoted 1 times
...
zartheus
4 years, 2 months ago
Limited sensor device should probably be MQTT instead of HTTPS as it requires minimum message size. Ref: "Payload size. MQTT and AMQP are binary protocols, which result in more compact payloads than HTTPS." https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-protocols
upvoted 2 times
...
BoomJosh
4 years, 3 months ago
Appeared for exam on 3/24/2021 and successfully cleared it, this question was there.
upvoted 3 times
shail_az900
4 years, 3 months ago
what was your answer
upvoted 2 times
BoomJosh
4 years, 3 months ago
Given answers are correct
upvoted 10 times
...
...
...
sballmer
4 years, 5 months ago
I would go for HTTPS, it is said "Extremely low power device". MQTT is a low-ressource protocol indeed but creates an active and constant connection which might be incompatible with a "low-power device". HTTPS allow the device to wake up, send data and get back to sleep, which is better for a low-power device...
upvoted 3 times
...
krishnakomal
4 years, 10 months ago
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-protocols
upvoted 1 times
...
EyeeyeeyeeyeeyeeyeeyeeyeSPIDER
4 years, 11 months ago
The last quetsion should be MQTT: Low resource devices. The MQTT and HTTPS libraries have a smaller footprint than the AMQP libraries. As such, if the device has limited resources (for example, less than 1-MB RAM), these protocols might be the only protocol implementation available. Payload size. MQTT and AMQP are binary protocols, which result in more compact payloads than HTTPS.
upvoted 4 times
angelsrp
4 years, 11 months ago
HTTPS is fine. https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-device-sdk-platform-support
upvoted 3 times
ipindado2020
4 years, 7 months ago
Both should be valid.... Hard question. The fact that there is no SDK does not mean that mqtt is not supported by the device.... Maybe means that http integration "can be" easier, but nothing more.... MS recommends using MQTT as a general rule if device supports it https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-no-sdk So I go for MQTT, as should have smaller payload when reusing the connection.
upvoted 1 times
LiamRT
4 years, 5 months ago
A device can use the MQTT protocol to connect to an IoT hub using any of the following options. Libraries in the Azure IoT SDKs. The MQTT protocol directly. https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-mqtt-support Would such a small device support the 2nd option? I doubt it.
upvoted 1 times
...
...
...
tedsi
4 years, 7 months ago
Is not MQTT because you'd need Azure SDK, so has to be HTTPS.
upvoted 4 times
takagiko
3 years, 6 months ago
MQTT is a common protocol and is not specific to Azure SDK. For low resource IoT devices running on batteries, MQTT should generally be used rather than HTTPS. https://medium.com/mqtt-buddy/mqtt-vs-http-which-one-is-the-best-for-iot-c868169b3105
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 ...