0
0
SCADA systemsdevops~10 mins

IIoT integration with SCADA 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 protocol used for IIoT data transfer in SCADA.

SCADA systems
protocol = "[1]"
Drag options to blanks, or click blank then click option'
AHTTP
BMQTT
CFTP
DSMTP
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing HTTP which is heavier for IIoT devices.
2fill in blank
medium

Complete the code to set the SCADA system to subscribe to the IIoT sensor topic.

SCADA systems
scada_client.subscribe("[1]")
Drag options to blanks, or click blank then click option'
Asensor/data
Bdevice/control
Csystem/logs
Dalerts/warnings
Attempts:
3 left
💡 Hint
Common Mistakes
Subscribing to control or log topics instead of sensor data.
3fill in blank
hard

Fix the error in the code to correctly parse JSON payload from IIoT device.

SCADA systems
import json
payload = '{"temperature": 22.5}'
data = json.[1](payload)
Drag options to blanks, or click blank then click option'
Adumps
Bload
Cdump
Dloads
Attempts:
3 left
💡 Hint
Common Mistakes
Using json.load which expects a file object.
4fill in blank
hard

Fill both blanks to filter IIoT sensor data with temperature above 25 and create a dictionary.

SCADA systems
filtered_data = {device_id: data[1] for device_id, data in sensors.items() if data['temperature'] [2] 25}
Drag options to blanks, or click blank then click option'
A.copy()
B==
C>
D!=
Attempts:
3 left
💡 Hint
Common Mistakes
Using '==' or '!=' instead of '>' for temperature comparison.
5fill in blank
hard

Fill all three blanks to create a dictionary of device names in uppercase with their status if status is 'active'.

SCADA systems
active_devices = [1]: [2] for [3], info in devices.items() if info['status'] == 'active'}
Drag options to blanks, or click blank then click option'
Adevice.upper()
Binfo['status']
Cdevice
Dinfo
Attempts:
3 left
💡 Hint
Common Mistakes
Using info instead of info['status'] as value.