NEW
Font size
WorksheetsWEEK08_FUNDAMENTAL_OF_IOT
Total questions: 10
Worksheet time: 5mins
A company is developing an IoT-based remote heart monitoring system for patients. Data packets containing heart rate information are sent every 30 seconds. It is absolutely critical that every single data packet is received and processed by the hospital's server, without duplication, to avoid false alarms or missed events. Which MQTT Quality of Service (QoS) level is most appropriate for this application?
QoS 0 (At most once)
QoS 1 (At least once)
QoS 2 (Exactly once)
QoS is not relevant for critical medical data.
In the MQTT protocol, what is the fundamental purpose of a "Topic"?
It is a command sent to the broker to check its status.
It is the unique hardware ID of the publishing client.
It is a digital certificate used to encrypt the message payload.
It is a message routing label; publishers send messages.
A smart home system uses the topic structure home/[room]/[device]. A user wants to create a dashboard that listens to all devices (lights, fans, sensors) located only in the 'livingroom'. Which topic subscription string should the dashboard client use?
home/+/light
home/livingroom/#
home/#
home/livingroom/+
What is the primary role of the MQTT Broker in a system where multiple sensors publish data and several applications subscribe to that data?
To store all historical data published by the sensors for long-term analysis.
To act as a central intermediary, decoupling the publishers from the subscribers so they don't need to know about each other.
To convert the data format from the sensor's protocol to the application's protocol.
To assign a unique topic to each sensor every time it connects to the network.
Imagine a smart air conditioner unit connected to an MQTT broker. It needs to report the current room temperature and also receive commands to change its settings (e.g., turn on/off). How would this single device act as an MQTT Client?
It can only be a Publisher, sending temperature data.
It can only be a Subscriber, receiving commands.
It acts as both a Publisher (reporting temperature) and a Subscriber (receiving commands)
It must act as a Broker for the other devices in the room.
What is the fundamental difference between the communication patterns of MQTT and HTTP?
MQTT uses a request/response pattern, while HTTP uses publish/subscribe.
HTTP requires a client to repeatedly poll a server for new data, whereas MQTT allows a server (broker) to push data to clients as it becomes available
MQTT is designed for transferring large documents, while HTTP is for small, data-centric messages.
MQTT supports only a 1-to-1 connection, while HTTP supports 1-to-many.
What is the standard, non-secure port number that MQTT brokers typically use for connections?
80
443
1883
1833
In the MQTT model, what is the role of a client that sends data to a topic on the broker?
Subscriber
Server
Publisher
Client
What is the name of the subject or channel used for data exchange between a publisher and a subscriber?
The Broker
The Connection
The Topic
The Client
In the ESP32 code examples, which library is included to provide MQTT functionality?
WiFi.h
MQTTPubSubClient.h
ESP32.h
PubSubClient.h
