Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to start the performance monitoring service.
SCADA systems
systemctl [1] scada-monitoring.service Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'stop' instead of 'start' stops the service.
Using 'status' only shows the service state but does not start it.
✗ Incorrect
The start command activates the performance monitoring service.
2fill in blank
mediumComplete the command to check CPU usage in the SCADA system.
SCADA systems
top -b -n 1 | grep [1]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'memory' filters for RAM usage, not CPU.
Using 'load' shows system load averages, not detailed CPU info.
✗ Incorrect
The cpu keyword filters the output to show CPU usage details.
3fill in blank
hardFix the error in the command to monitor network traffic on interface eth0.
SCADA systems
iftop -i [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'wlan0' monitors wireless, not wired interface.
Using 'lo' monitors loopback, not external traffic.
✗ Incorrect
The interface eth0 is the correct network interface to monitor traffic on.
4fill in blank
hardFill both blanks to create a dictionary comprehension that maps sensor IDs to their load if load is above 70.
SCADA systems
{sensor_id: [1] for sensor_id, load in sensor_data.items() if load [2] 70} Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<' would select loads below 70, opposite of requirement.
Mapping to sensor_id instead of load gives wrong values.
✗ Incorrect
We want to map sensor IDs to their load values where load is greater than 70.
5fill in blank
hardFill all three blanks to filter and map sensor IDs to their status if status is 'active'.
SCADA systems
{ [1]: [2] for [3], status in sensors.items() if status == 'active' } Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'name' as key or value is incorrect here.
Mixing up sensor_id and status causes wrong dictionary structure.
✗ Incorrect
We use sensor_id as key, status as value, and filter by active status.