Recall & Review
beginner
What is the main difference between HTTP and MQTT in terms of communication style?
HTTP uses a request-response model where the client asks and the server answers. MQTT uses a publish-subscribe model where clients publish messages to topics and others subscribe to those topics to receive messages.
Click to reveal answer
beginner
Which protocol is generally more efficient for low-bandwidth, low-power IoT devices: HTTP or MQTT?
MQTT is more efficient for low-bandwidth and low-power devices because it has a lightweight header and uses persistent connections, reducing overhead.
Click to reveal answer
intermediate
How does MQTT ensure message delivery reliability compared to HTTP?
MQTT supports three Quality of Service (QoS) levels to guarantee message delivery, while HTTP relies on TCP but does not have built-in message delivery guarantees beyond that.
Click to reveal answer
beginner
Why might HTTP be preferred over MQTT in some IoT applications?
HTTP is widely supported, simple to use, and works well for request-response interactions or when devices do not need to maintain persistent connections.
Click to reveal answer
intermediate
What is a trade-off of using MQTT's persistent connection model?
While MQTT's persistent connections reduce overhead and latency, they require devices to maintain a continuous network connection, which can increase power consumption.
Click to reveal answer
Which protocol uses a publish-subscribe model?
✗ Incorrect
MQTT uses a publish-subscribe model where clients publish messages to topics and others subscribe to receive them.
Which protocol is better suited for devices with limited power and bandwidth?
✗ Incorrect
MQTT is lightweight and designed for low-power, low-bandwidth devices.
What does HTTP primarily rely on for communication?
✗ Incorrect
HTTP uses a request-response model where clients send requests and servers respond.
Which protocol supports Quality of Service (QoS) levels for message delivery?
✗ Incorrect
MQTT supports QoS levels to ensure message delivery reliability.
A disadvantage of MQTT's persistent connection is:
✗ Incorrect
Maintaining persistent connections can increase power use on devices.
Explain the main trade-offs between using HTTP and MQTT for IoT devices.
Think about communication style, efficiency, reliability, and power consumption.
You got /5 concepts.
Describe scenarios where HTTP might be preferred over MQTT and vice versa.
Consider device capabilities and communication needs.
You got /4 concepts.