0
0
IOT Protocolsdevops~5 mins

Topics and topic hierarchy in IOT Protocols - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
A/
B.
C-
D_
What does the MQTT topic 'sensors/+/humidity' subscribe to?
AAll humidity data from any sensor
BOnly humidity data from sensor named '+'
CAll sensors with 'humidity' as the first level
DAll topics starting with 'sensors/humidity'
What does the '#' wildcard represent in MQTT topic subscriptions?
AMatches exactly one level
BMatches only the root topic
CMatches zero or more levels
DMatches no levels
Why use a topic hierarchy in IoT messaging?
ATo reduce message size
BTo encrypt messages
CTo speed up device hardware
DTo organize messages for easier filtering
Which topic would match the subscription 'home/#'?
Aoffice/kitchen/temperature
BBoth C and D
Chome
Dhome/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.