0
0
IOT Protocolsdevops~10 mins

Why IoT security is critical in IOT Protocols - Test Your Understanding

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

Complete the code to identify the main reason IoT devices need security.

IOT Protocols
if device.is_connected and device.[1]:
    alert('Security risk detected')
Drag options to blanks, or click blank then click option'
Ahas_vulnerability
Bis_secure
Cis_active
Dis_online
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a property that only shows if device is online, not if it is vulnerable.
2fill in blank
medium

Complete the code to check if an IoT device's data is protected.

IOT Protocols
if device.data.[1] == 'encrypted':
    print('Data is safe')
Drag options to blanks, or click blank then click option'
Astatus
Btype
Cformat
Dstate
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'status' or 'state' which do not specify data protection.
3fill in blank
hard

Fix the error in the code that checks device authentication.

IOT Protocols
if device.[1]() == True:
    allow_access()
Drag options to blanks, or click blank then click option'
Aauthenticate
Bauthentic
Cauth
Dauthentication
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'auth' or 'authentication' which are not callable methods.
4fill in blank
hard

Fill both blanks to create a condition that checks if device firmware is outdated and needs update.

IOT Protocols
if device.firmware_version [1] latest_version and device.[2] == True:
    update_firmware()
Drag options to blanks, or click blank then click option'
A<
B>
Cneeds_update
Dis_up_to_date
Attempts:
3 left
💡 Hint
Common Mistakes
Using '>' instead of '<' for version comparison.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that maps device IDs to their status if they are online and secure.

IOT Protocols
device_status = {device.[1]: device.[2] for device in devices if device.[3] and device.is_secure}
Drag options to blanks, or click blank then click option'
Aid
Bstatus
Cis_online
Dis_active
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'is_active' instead of 'is_online' which may not reflect connectivity.