0
0
IOT Protocolsdevops~10 mins

Installing Mosquitto broker in IOT Protocols - Interactive Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to install Mosquitto broker on Ubuntu.

IOT Protocols
sudo apt-get [1] mosquitto
Drag options to blanks, or click blank then click option'
Aupdate
Bremove
Cinstall
Dupgrade
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'update' instead of 'install' which only refreshes package lists.
Using 'remove' which deletes packages.
2fill in blank
medium

Complete the command to start the Mosquitto service.

IOT Protocols
sudo systemctl [1] mosquitto
Drag options to blanks, or click blank then click option'
Astart
Bstatus
Crestart
Dstop
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'status' which only shows service status.
Using 'stop' which halts the service.
3fill in blank
hard

Fix the error in the command to enable Mosquitto to start on boot.

IOT Protocols
sudo systemctl [1] mosquitto
Drag options to blanks, or click blank then click option'
Aenable
Bdisable
Cstart
Dstop
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' which only starts the service now, not on boot.
Using 'disable' which prevents auto-start.
4fill in blank
hard

Fill both blanks to check Mosquitto service status and show recent logs.

IOT Protocols
sudo systemctl [1] mosquitto && journalctl -u mosquitto [2]
Drag options to blanks, or click blank then click option'
Astatus
B-xe
Cstart
D-b
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' instead of 'status' which changes service state.
Using '-b' which shows logs since last boot, not detailed errors.
5fill in blank
hard

Fill all three blanks to create a basic Mosquitto configuration file with default listener and persistence enabled.

IOT Protocols
listener [1]
persistence [2]
persistence_location [3]
Drag options to blanks, or click blank then click option'
A1883
Btrue
C/var/lib/mosquitto/
Dfalse
Attempts:
3 left
💡 Hint
Common Mistakes
Using port other than 1883 for listener.
Setting persistence to false which disables saving data.
Wrong persistence location path.