MQTT Flashcards

(24 cards)

1
Q

What is MQTT?

A

A lightweight publish/subscribe messaging protocol designed for IoT and cyber-physical systems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why is MQTT considered lightweight?

A

It has low overhead, small message size, and works well on low bandwidth and unreliable networks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What communication model does MQTT use?

A

Publish / Subscribe model.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the main components in MQTT?

A

Client, Broker, Topics, Messages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an MQTT broker?

A

A server that receives messages from publishers and forwards them to subscribers based on topics.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is an MQTT client?

A

Any device or application that publishes or subscribes to messages via a broker.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a topic in MQTT?

A

A hierarchical string that identifies a message (e.g. factory/motor/status).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How are MQTT topics structured?

A

Hierarchical levels separated by slashes /.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Does the broker understand message content?

A

No — the broker only filters messages by topic, not content.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the three MQTT message types?

A

Publish, Subscribe, Unsubscribe.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does Publish mean in MQTT?

A

Sending a message to a broker on a specific topic.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does Subscribe mean in MQTT?

A

Requesting messages from a broker for a specific topic.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is QoS in MQTT?

A

Quality of Service — controls how reliably messages are delivered.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

MQTT QoS level 0

A

At most once — no delivery guarantee.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

MQTT QoS level 1

A

At least once — message may be delivered multiple times.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

MQTT QoS level 2

A

Exactly once — highest reliability, most overhead.

17
Q

What is a retained message?

A

A message stored by the broker and sent immediately to new subscribers.

18
Q

Why are retained messages useful?

A

They ensure new subscribers get the latest known state immediately.

19
Q

Where does MQTT fit in IoT architecture?

A

Mainly in the network layer.

20
Q

What are common security concerns with MQTT?

A

Eavesdropping, unauthorized access, message tampering.

21
Q

How can MQTT communication be secured?

A

TLS, authentication, access control, encryption.

22
Q

What does TLS provide for MQTT?

A

Encrypted and secure communication between client and broker.

23
Q

What is access control in MQTT?

A

Restricting which clients can publish or subscribe to certain topics.