0
0
IOT Protocolsdevops~20 mins

Device provisioning and registry in IOT Protocols - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
IoT Device Provisioning Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding Device Registry Purpose
What is the primary purpose of a device registry in IoT device provisioning?
ATo provide firmware updates directly to devices
BTo process sensor data from devices in real-time
CTo store device metadata and manage device identities securely
DTo monitor network traffic between devices
Attempts:
2 left
💡 Hint
Think about what information needs to be kept about each device before it connects.
💻 Command Output
intermediate
2:00remaining
Output of Device Registration Command
What is the output of this command when registering a new device named 'sensor01' in the registry? Command: az iot hub device-identity create --device-id sensor01 --hub-name MyIoTHub
ANo output, command runs silently
BError: Device 'sensor01' already exists in the registry
CSyntaxError: Missing required parameter '--auth-type'
D{ "deviceId": "sensor01", "status": "enabled", "authentication": {"type": "sas"} }
Attempts:
2 left
💡 Hint
Successful device creation returns device details in JSON format.
Configuration
advanced
2:30remaining
Correct Device Provisioning Configuration Snippet
Which configuration snippet correctly defines a device provisioning entry with symmetric key authentication and an initial status of 'disabled'?
A{ "deviceId": "device123", "status": "disabled", "authentication": { "symmetricKey": { "primaryKey": "abc123" } } }
B{ "deviceId": "device123", "authentication": { "symmetricKey": { "primaryKey": "abc123" } }, "status": "enabled" }
C{ "deviceId": "device123", "status": "disabled", "authentication": { "x509Thumbprint": { "primaryThumbprint": "abc123" } } }
D{ "deviceId": "device123", "status": "disable", "authentication": { "symmetricKey": { "primaryKey": "abc123" } } }
Attempts:
2 left
💡 Hint
Check the spelling of status and authentication method.
Troubleshoot
advanced
2:00remaining
Troubleshooting Device Provisioning Failure
A device fails to provision and the error message is: 'Unauthorized: Device authentication failed'. What is the most likely cause?
AThe device registry is offline and cannot be reached
BThe device's authentication key does not match the key stored in the registry
CThe device ID is missing from the provisioning request
DThe device firmware is outdated
Attempts:
2 left
💡 Hint
Authentication errors usually relate to keys or credentials.
🔀 Workflow
expert
3:00remaining
Correct Order of Device Provisioning Steps
Arrange the following steps in the correct order for provisioning a new IoT device using a device registry:
A1,2,3,4
B1,3,2,4
C2,1,3,4
D3,1,2,4
Attempts:
2 left
💡 Hint
Think about what must exist before authentication and validation.