300-915 · Question #37
Refer to the exhibit. Which two statements about MQTT messaging are true? (Choose two.)
The correct answer is D. Result code 0 means the connection is accepted; result code 5 means the connection is "refused, E. Brokers can send the Last Will and Testament messages on behalf of the client. D and E are correct. In MQTT's CONNACK packet, result code 0 means the connection is accepted, and result code 5 means "Connection Refused, not authorized" - the reverse of what option A claims, making A a classic trap answer. Regarding E, brokers do store and send the Last…
Question
Refer to the exhibit. Which two statements about MQTT messaging are true? (Choose two.)
Exhibit
Options
- AResult code 5 means the connection is accepted; result code 0 means the connection is "refused,
- BRedundant ClientIDs are supported by MQTT brokers.
- CMQTT does not support a "keep alive" functionality because it runs on top of TCP.
- DResult code 0 means the connection is accepted; result code 5 means the connection is "refused,
- EBrokers can send the Last Will and Testament messages on behalf of the client.
How the community answered
(33 responses)- A3% (1)
- B15% (5)
- C9% (3)
- D73% (24)
Explanation
D and E are correct. In MQTT's CONNACK packet, result code 0 means the connection is accepted, and result code 5 means "Connection Refused, not authorized" - the reverse of what option A claims, making A a classic trap answer. Regarding E, brokers do store and send the Last Will and Testament (LWT) message on behalf of a client when that client disconnects unexpectedly - this is a core MQTT feature.
Why the distractors are wrong:
- A has the result codes backwards - 0 = accepted, 5 = refused.
- B is false: MQTT brokers enforce unique ClientIDs; if a new client connects with a duplicate ID, the broker typically disconnects the existing client.
- C is false: MQTT does support keep-alive - clients send periodic PINGREQ messages and the broker responds with PINGRESP to maintain the connection, even though TCP provides the transport layer.
Memory tip: Think "zero = go" - result code 0 means you're good to go (accepted), and the broker acts as your posthumous messenger for LWT when you drop off unexpectedly.
Topics
Community Discussion
No community discussion yet for this question.
