What is the main characteristic of QoS level 0 in MQTT?
Think about the simplest delivery method without retries.
QoS 0 means the message is sent once without any guarantee of delivery or confirmation. It is the fastest but least reliable.
Which statement best describes QoS level 1 in MQTT?
Consider the delivery guarantee that ensures the message arrives but may duplicate.
QoS 1 ensures messages are delivered at least once by requiring acknowledgment, but duplicates can occur.
What mechanism does QoS level 2 use to ensure messages are delivered exactly once?
Think about a multi-step process that avoids duplicates.
QoS 2 uses a four-step handshake (PUBLISH, PUBREC, PUBREL, PUBCOMP) to guarantee exactly one delivery.
Given the following MQTT client log snippet for a QoS 1 message, what is the final status?
Client sends PUBLISH message with packet ID 10 Broker responds with PUBACK for packet ID 10 Client logs: 'Message 10 delivered successfully'
Look at the acknowledgment type and packet ID matching.
PUBACK confirms receipt for QoS 1 messages, ensuring at least one delivery.
A subscriber using QoS 1 receives duplicate messages. What is the most likely cause?
Consider what happens if acknowledgments are missing in QoS 1.
If PUBACK is not received, the broker resends the message, causing duplicates.