0
0
SCADA systemsdevops~10 mins

Redundant server configuration 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 IP address.

SCADA systems
primary_server_ip = "[1]"
Drag options to blanks, or click blank then click option'
A10.0.0.1
B192.168.1.101
C192.168.1.100
Dlocalhost
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing the backup server IP instead of the primary.
Using localhost which is not suitable for network redundancy.
2fill in blank
medium

Complete the code to set the backup server IP address.

SCADA systems
backup_server_ip = "[1]"
Drag options to blanks, or click blank then click option'
A192.168.1.101
B192.168.1.100
C10.0.0.2
Dlocalhost
Attempts:
3 left
💡 Hint
Common Mistakes
Using the primary server IP again.
Using localhost which is not suitable for network redundancy.
3fill in blank
hard

Fix the error in the failover check function to correctly ping the backup server.

SCADA systems
def check_backup_server():
    response = ping([1])
    return response == 0
Drag options to blanks, or click blank then click option'
Aprimary_server_ip
Bbackup_server_ip
Clocalhost
D127.0.0.1
Attempts:
3 left
💡 Hint
Common Mistakes
Pinging the primary server instead of the backup.
Using localhost which does not test network redundancy.
4fill in blank
hard

Fill both blanks to configure the active server and the failover timeout.

SCADA systems
active_server = [1]
failover_timeout = [2]  # seconds
Drag options to blanks, or click blank then click option'
Aprimary_server_ip
Bbackup_server_ip
C30
D60
Attempts:
3 left
💡 Hint
Common Mistakes
Setting active server to backup server by mistake.
Using too long or too short failover timeout values.
5fill in blank
hard

Fill all three blanks to create a dictionary mapping server roles to their IPs and status.

SCADA systems
servers = {
    "primary": [1],
    "backup": [2],
    "status": "[3]"
}
Drag options to blanks, or click blank then click option'
Aprimary_server_ip
Bbackup_server_ip
Cactive
Dinactive
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up primary and backup IPs.
Setting status to inactive when primary is active.