0
0
SCADA systemsdevops~10 mins

Redundancy and failover design in SCADA systems - Interactive Code Practice

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

Complete the code to define the primary server in a redundant SCADA setup.

SCADA systems
primary_server = '[1]'
Drag options to blanks, or click blank then click option'
A10.0.0.1
B192.168.1.10
C192.168.1.100
Dlocalhost
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing localhost instead of the actual IP address.
2fill in blank
medium

Complete the code to set the failover timeout in seconds.

SCADA systems
failover_timeout = [1]
Drag options to blanks, or click blank then click option'
A60
B10
C30
D120
Attempts:
3 left
💡 Hint
Common Mistakes
Setting the timeout too low causing frequent failovers.
3fill in blank
hard

Fix the error in the failover check function by completing the missing condition.

SCADA systems
if current_server_status == 'down' and [1]:
    switch_to_backup()
Drag options to blanks, or click blank then click option'
Abackup_server_status == 'down'
Bbackup_server_status == 'up'
Cprimary_server_status == 'up'
Dnetwork_status == 'down'
Attempts:
3 left
💡 Hint
Common Mistakes
Switching when backup server is also down.
4fill in blank
hard

Fill both blanks to create a dictionary that maps server names to their statuses, filtering only active servers.

SCADA systems
active_servers = {name: status for name, status in servers.items() if status [1] [2]
Drag options to blanks, or click blank then click option'
A==
B'active'
C'down'
D!=
Attempts:
3 left
💡 Hint
Common Mistakes
Using '!=' instead of '==' causing wrong filtering.
5fill in blank
hard

Fill all three blanks to create a failover log entry with timestamp, server name, and event type.

SCADA systems
failover_log = {'timestamp': [1], 'server': [2], 'event': [3]
Drag options to blanks, or click blank then click option'
Atime.strftime('%Y-%m-%d %H:%M:%S')
B'primary_server'
C'failover_triggered'
D'backup_server'
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect server name or event string.