The '+' wildcard matches exactly one topic level at its position. It cannot match multiple levels or zero levels.
The '#' wildcard matches zero or more topic levels starting from its position to the end of the topic.
home/+/temperature, which published topic will match this subscription?The '+' wildcard matches exactly one topic level. 'home/kitchen/temperature' matches because 'kitchen' is one level. 'home/kitchen/livingroom/temperature' has two levels between 'home' and 'temperature', so it does not match.
devices/sensors/#, which published topic will NOT match this subscription?The subscription 'devices/sensors/#' matches any topic starting with 'devices/sensors' and any sub-levels. 'devices/actuators/temperature' does not start with 'devices/sensors' so it does not match.
building/+/floor/#. Which of the following published topics will NOT be received by the client?The subscription 'building/+/floor/#' expects the second level to be any single level (matched by '+'), then the third level to be 'floor', followed by zero or more levels (matched by '#'). 'building/room1/temperature/floor' has 'temperature' as the third level, so it does not match.