0
0
IOT Protocolsdevops~20 mins

Installing Mosquitto broker in IOT Protocols - Practice Exercises

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Mosquitto Master Installer
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2:00remaining
Mosquitto Installation Command Output
What is the expected output when running the command sudo apt-get install mosquitto -y on a fresh Ubuntu system?
IOT Protocols
sudo apt-get install mosquitto -y
Asudo: command not found
B
Reading package lists... Done
Building dependency tree... Done
The following NEW packages will be installed:
  mosquitto
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 200 kB of archives.
After this operation, 500 kB of additional disk space will be used.
Selecting previously unselected package mosquitto.
(Reading database ... 123456 files and directories currently installed.)
Preparing to unpack .../mosquitto.deb ...
Unpacking mosquitto (2.0.15-1) ...
Setting up mosquitto (2.0.15-1) ...
Processing triggers for systemd (245.4-4ubuntu3.13) ...
CE: Unable to locate package mosquitto
D
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Removing mosquitto (2.0.15-1) ...
Attempts:
2 left
💡 Hint
Think about what happens when you install a new package with apt-get on Ubuntu.
🧠 Conceptual
intermediate
1:30remaining
Mosquitto Service Status After Installation
After installing Mosquitto broker on a Linux system, what is the default status of the Mosquitto service?
AThe Mosquitto service is installed but not started or enabled by default.
BThe Mosquitto service is installed and started but not enabled to start on boot by default.
CThe Mosquitto service is installed, started, and enabled to start on boot by default.
DThe Mosquitto service is neither installed nor started after installation.
Attempts:
2 left
💡 Hint
Think about typical behavior of services installed via apt on Ubuntu.
Troubleshoot
advanced
2:30remaining
Mosquitto Broker Fails to Start
You installed Mosquitto broker but the service fails to start. Which of the following is the most likely cause?
APort 1883 is already in use by another application.
BMosquitto configuration file is missing the <code>listener</code> directive.
CThe system has no internet connection.
DThe Mosquitto package version is too old.
Attempts:
2 left
💡 Hint
Check if the default MQTT port is free.
Configuration
advanced
1:30remaining
Mosquitto Configuration File Location
Where is the default main configuration file for Mosquitto broker located on a typical Linux installation?
A/etc/mosquitto/mosquitto.conf
B/usr/local/mosquitto.conf
C/var/lib/mosquitto/config.conf
D/home/mosquitto/mosquitto.conf
Attempts:
2 left
💡 Hint
Think about where system-wide config files usually reside.
Best Practice
expert
3:00remaining
Securing Mosquitto Broker Installation
Which of the following is the best practice to secure a newly installed Mosquitto broker before exposing it to the internet?
ADisable logging to avoid exposing sensitive information.
BChange the default port from 1883 to 1884 without any authentication.
CAllow anonymous connections for easier client access.
DEnable username and password authentication and configure TLS encryption.
Attempts:
2 left
💡 Hint
Think about how to protect data and access on a public broker.