0
0
IOT Protocolsdevops~20 mins

Azure IoT Hub overview in IOT Protocols - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Azure IoT Hub Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What is the primary role of Azure IoT Hub?

Azure IoT Hub is a cloud service designed to:

AStore large amounts of unstructured data from IoT devices
BManage and facilitate secure communication between IoT devices and the cloud
CProvide a user interface for IoT device configuration only
DAnalyze IoT data using built-in machine learning models exclusively
Attempts:
2 left
💡 Hint

Think about what connects devices to the cloud securely.

💻 Command Output
intermediate
2:00remaining
Output of Azure CLI command to list IoT hubs

What is the output of this command?

az iot hub list --query "[].name" --output json
AError: Command not found
B{"name": "MyIoTHub1"}
C["MyIoTHub1", "MyIoTHub2"]
D[]
Attempts:
2 left
💡 Hint

The command lists all IoT hubs in your subscription by name.

Configuration
advanced
2:00remaining
Correct connection string format for Azure IoT Hub device

Which option shows the correct format of a device connection string for Azure IoT Hub?

AHost=example.azure-devices.net;Id=myDevice;AccessKey=abc123
BiotHubHost=example.azure-devices.net;device=myDevice;key=abc123
CHostname=example.azure-devices.net;Device=myDevice;SharedKey=abc123
DHostName=example.azure-devices.net;DeviceId=myDevice;SharedAccessKey=abc123
Attempts:
2 left
💡 Hint

Look for exact key names used in Azure IoT Hub connection strings.

Troubleshoot
advanced
2:00remaining
Cause of device connection failure to Azure IoT Hub

A device fails to connect to Azure IoT Hub with error 'Unauthorized'. What is the most likely cause?

AIncorrect device connection string or expired key
BIoT Hub service is offline
CDevice firmware is outdated
DNetwork cable unplugged on device
Attempts:
2 left
💡 Hint

Unauthorized errors usually relate to credentials or permissions.

🔀 Workflow
expert
3:00remaining
Correct order to set up Azure IoT Hub and connect a device

Arrange these steps in the correct order to set up Azure IoT Hub and connect a device:

A1,2,3,4
B2,1,3,4
C1,3,2,4
D3,2,1,4
Attempts:
2 left
💡 Hint

Think about what must exist before you can register devices and send data.