Challenge - 5 Problems
Mosquitto Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate1:00remaining
Mosquitto Broker Default Port
What is the default port number on which the Mosquitto MQTT broker listens for client connections?
Attempts:
2 left
💡 Hint
Think about the standard port used for unencrypted MQTT connections.
✗ Incorrect
Mosquitto listens on port 1883 by default for MQTT clients without encryption.
❓ Predict Output
intermediate1:30remaining
Mosquitto Service Status Command
Which command correctly checks the status of the Mosquitto service on a Raspberry Pi running systemd?
Attempts:
2 left
💡 Hint
Use the systemctl command with the correct syntax to check service status.
✗ Incorrect
The correct command to check Mosquitto service status is 'sudo systemctl status mosquitto'.
🔧 Debug
advanced2:00remaining
Mosquitto Configuration File Syntax Error
Given this snippet from a Mosquitto configuration file, what error will Mosquitto report when starting?
listener 1883
allow_anonymous true
password_file /etc/mosquitto/passwd
Options:
Raspberry Pi
listener 1883
allow_anonymous true
password_file /etc/mosquitto/passwdAttempts:
2 left
💡 Hint
Check which configuration options are valid within a listener context.
✗ Incorrect
'password_file' is a global configuration option and cannot be placed within a listener context (i.e., after a 'listener' directive without ending the block).
🧠 Conceptual
advanced1:30remaining
Mosquitto Authentication Setup
Which of the following steps is necessary to enable username/password authentication in Mosquitto on Raspberry Pi?
Attempts:
2 left
💡 Hint
Think about how Mosquitto manages user credentials by default.
✗ Incorrect
Mosquitto uses a password file created by 'mosquitto_passwd' to authenticate users.
❓ Predict Output
expert2:30remaining
Mosquitto Broker Log Output
After starting Mosquitto with the command 'mosquitto -v' on Raspberry Pi, which output line indicates the broker is ready and listening on port 1883?
Attempts:
2 left
💡 Hint
Look for messages about opening sockets and starting version.
✗ Incorrect
The log line showing 'Opening ipv4 listen socket on port 1883' means the broker is ready to accept connections.