Recall & Review
beginner
What is a 'topic' in IoT messaging protocols like MQTT?
A topic is a label or address used to organize and route messages between devices. It acts like a channel name where messages are published and subscribed.
Click to reveal answer
beginner
How does a topic hierarchy help in IoT communication?
A topic hierarchy organizes topics in a tree-like structure, allowing devices to subscribe to broad or specific message categories easily.
Click to reveal answer
beginner
What symbol is commonly used as a separator in topic hierarchies?
The forward slash '/' is used to separate levels in a topic hierarchy, like folders in a file system.
Click to reveal answer
intermediate
What does subscribing to 'home/+/temperature' mean in MQTT?
It means subscribing to all topics that have 'home' as the first level, any single word as the second level, and 'temperature' as the third level. The '+' is a wildcard for one level.
Click to reveal answer
intermediate
What is the difference between '+' and '#' wildcards in topic subscriptions?
'+' matches exactly one level in the topic hierarchy, while '#' matches all remaining levels, including zero or more levels.
Click to reveal answer
Which character is used to separate levels in an MQTT topic hierarchy?
✗ Incorrect
The forward slash '/' separates topic levels, similar to folders in a file path.
What does the MQTT topic 'sensors/+/humidity' subscribe to?
✗ Incorrect
The '+' wildcard matches any single level, so it subscribes to humidity data from all sensors.
What does the '#' wildcard represent in MQTT topic subscriptions?
✗ Incorrect
'#' matches all remaining topic levels, including zero or more.
Why use a topic hierarchy in IoT messaging?
✗ Incorrect
Topic hierarchies help organize messages so devices can subscribe to relevant data easily.
Which topic would match the subscription 'home/#'?
✗ Incorrect
'home/#' matches 'home' and any subtopics like 'home/kitchen/temperature'.
Explain what a topic hierarchy is and how it helps in IoT messaging.
Think of it like folders and subfolders organizing files.
You got /4 concepts.
Describe the difference between '+' and '#' wildcards in MQTT topic subscriptions.
One is for a single folder, the other for many folders.
You got /3 concepts.