0
0
Raspberry Piprogramming~5 mins

MQTT with QoS levels in Raspberry Pi - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does MQTT stand for and what is its main use?
MQTT stands for Message Queuing Telemetry Transport. It is a lightweight messaging protocol used for sending data between devices, especially in IoT (Internet of Things) systems like Raspberry Pi projects.
Click to reveal answer
beginner
What are the three QoS levels in MQTT?
The three QoS (Quality of Service) levels in MQTT are:<br>1. QoS 0 - At most once delivery (fire and forget)<br>2. QoS 1 - At least once delivery (message is retried until acknowledged)<br>3. QoS 2 - Exactly once delivery (ensures message is received only once)
Click to reveal answer
beginner
Explain QoS 0 in MQTT with a real-life example.
QoS 0 means the message is sent once without waiting for confirmation. It's like sending a postcard: you drop it in the mailbox but don't know if it arrives. This is good for non-critical data where occasional loss is okay.
Click to reveal answer
intermediate
How does QoS 1 ensure message delivery?
QoS 1 makes sure the message arrives at least once by resending it until the receiver sends an acknowledgment. It's like calling a friend and leaving a voicemail until they confirm they got your message.
Click to reveal answer
intermediate
Why is QoS 2 the most reliable but also the slowest QoS level?
QoS 2 guarantees the message is received exactly once by using a four-step handshake between sender and receiver. This extra checking makes it very reliable but slower, like sending a registered letter that requires a signature on delivery.
Click to reveal answer
Which MQTT QoS level sends a message only once without confirmation?
AQoS 2
BQoS 1
CQoS 0
DQoS 3
What does QoS 1 guarantee in MQTT?
AMessage is sent at least once
BMessage is sent at most once
CMessage is sent exactly once
DMessage is sent twice
Which QoS level uses a four-step handshake to ensure message delivery?
AQoS 2
BQoS 1
CQoS 3
DQoS 0
In MQTT, which QoS level is best for critical messages that must not be lost or duplicated?
AQoS 1
BQoS 2
CQoS 0
DNone
What is a downside of using QoS 2 in MQTT?
AMessages may be lost
BIt does not guarantee delivery
CMessages are not acknowledged
DIt is slower due to extra handshakes
Describe the three MQTT QoS levels and when you might use each one.
Think about message delivery guarantees and real-life examples.
You got /3 concepts.
    Explain why QoS 2 is more reliable but slower than QoS 0 and QoS 1 in MQTT.
    Compare the delivery process and message confirmation.
    You got /4 concepts.