Complete the code to start the SCADA system service.
systemctl [1] scada-serviceThe start command launches the SCADA service so it begins running.
Complete the code to check the status of the SCADA system.
systemctl [1] scada-serviceThe status command shows if the SCADA service is running or stopped.
Fix the error in the command to restart the SCADA system service.
systemctl [1] scada-serviceThe restart command stops and then starts the service again, applying new settings.
Fill both blanks to create a dictionary comprehension that maps sensor IDs to their status if active.
sensor_status = {sensor_id: [1] for sensor_id, [2] in sensors.items() if status == 'active'}The dictionary comprehension uses status as the value and unpacks the second item as status from the sensors dictionary.
Fill all three blanks to filter and map device names to their IPs if online.
online_devices = [1]([2]: info['ip'] for [3], info in devices.items() if info['status'] == 'online')
The comprehension creates a dictionary (dict) mapping device name to IP, iterating over device and info pairs.