0
0
IOT Protocolsdevops~10 mins

Local processing vs cloud offloading in IOT Protocols - Interactive Practice

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

Complete the code to select the processing mode for data handling.

IOT Protocols
processing_mode = '[1]'  # Choose between local or cloud
Drag options to blanks, or click blank then click option'
Aoffline
Bcloud
Cremote
Dlocal
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'cloud' when local processing is intended.
2fill in blank
medium

Complete the code to send data to the cloud only if local processing is not possible.

IOT Protocols
if not can_process_locally:
    send_data_to = '[1]'
Drag options to blanks, or click blank then click option'
Acloud
Bedge
Cdevice
Dlocal
Attempts:
3 left
💡 Hint
Common Mistakes
Sending data to 'local' when local processing is not possible.
3fill in blank
hard

Fix the error in the code that decides processing location.

IOT Protocols
processing_location = 'cloud' if [1] else 'local'
Drag options to blanks, or click blank then click option'
Acannot_process_locally
Bprocess_locally
Ccan_process_locally
Dlocal_processing
Attempts:
3 left
💡 Hint
Common Mistakes
Using a positive condition that causes wrong processing location.
4fill in blank
hard

Fill both blanks to create a dictionary mapping device IDs to processing modes.

IOT Protocols
device_processing = {device_id: '[1]' if status == '[2]' else 'cloud' for device_id, status in devices.items()}
Drag options to blanks, or click blank then click option'
Alocal
Bactive
Cinactive
Doffline
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up status values or processing modes.
5fill in blank
hard

Fill all three blanks to filter devices for local processing based on battery and connectivity.

IOT Protocols
local_devices = {id: mode for id, mode in device_modes.items() if battery_levels[id] [1] 20 and connectivity[id] == '[2]' and mode == '[3]'}
Drag options to blanks, or click blank then click option'
A>
Bconnected
Clocal
D<
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong comparison operators or status strings.