Complete the code to define the primary server in a redundant SCADA setup.
primary_server = '[1]'
The primary server IP is set to 192.168.1.100 as the main SCADA controller.
Complete the code to set the failover timeout in seconds.
failover_timeout = [1]The failover timeout is set to 60 seconds to allow stable switching.
Fix the error in the failover check function by completing the missing condition.
if current_server_status == 'down' and [1]: switch_to_backup()
The failover should switch only if the backup server is up and ready.
Fill both blanks to create a dictionary that maps server names to their statuses, filtering only active servers.
active_servers = {name: status for name, status in servers.items() if status [1] [2]This dictionary comprehension filters servers with status exactly 'active'.
Fill all three blanks to create a failover log entry with timestamp, server name, and event type.
failover_log = {'timestamp': [1], 'server': [2], 'event': [3]The log records the current time, the primary server name, and the failover event.