Bird
0
0

You want to design a Raspberry Pi sensor system that sends temperature data reliably without duplicates, but network is unstable. Which MQTT QoS level should you choose and why?

hard🚀 Application Q15 of 15
Raspberry Pi - MQTT for IoT
You want to design a Raspberry Pi sensor system that sends temperature data reliably without duplicates, but network is unstable. Which MQTT QoS level should you choose and why?
AQoS 2, to guarantee exactly once delivery with no duplicates
BQoS 1, to ensure message arrives at least once
CQoS 1, because QoS 2 is not supported on Raspberry Pi
DQoS 0, for fastest delivery without retries
Step-by-Step Solution
Solution:
  1. Step 1: Analyze requirements for reliability and no duplicates

    The system needs reliable delivery and no duplicate messages despite unstable network.
  2. Step 2: Match QoS levels to requirements

    QoS 0 is fastest but unreliable, QoS 1 may duplicate, QoS 2 guarantees exactly once delivery.
  3. Step 3: Confirm Raspberry Pi supports QoS 2

    MQTT clients on Raspberry Pi support QoS 2, so it is suitable.
  4. Final Answer:

    QoS 2, to guarantee exactly once delivery with no duplicates -> Option A
  5. Quick Check:

    Reliable + no duplicates = QoS 2 [OK]
Quick Trick: Choose QoS 2 for no duplicates and reliable delivery [OK]
Common Mistakes:
MISTAKES
  • Choosing QoS 1 and ignoring duplicates
  • Thinking QoS 0 is reliable
  • Assuming Raspberry Pi can't use QoS 2

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes