0
0
IOT Protocolsdevops~20 mins

Rule engine for IoT data routing in IOT Protocols - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
IoT Rule Engine Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding Rule Engine Conditions
In an IoT rule engine, which condition correctly routes temperature sensor data only when the temperature exceeds 30°C?
Atemperature > 30
Btemperature >= 30
Ctemperature == 30
Dtemperature < 30
Attempts:
2 left
💡 Hint
Think about the condition that triggers only when temperature is strictly greater than 30.
💻 Command Output
intermediate
1:30remaining
Output of Rule Engine Log Command
What is the output of the command show rules status if the rule engine has 3 active rules and 1 disabled rule?
ANo rules found
BRules active: 4\nRules disabled: 0
CActive rules: 1\nDisabled rules: 3
DActive rules: 3\nDisabled rules: 1
Attempts:
2 left
💡 Hint
The output lists counts of active and disabled rules separately.
Configuration
advanced
2:30remaining
Correct Rule Syntax for MQTT Topic Routing
Which configuration snippet correctly routes messages from topic sensor/temperature to alerts/high_temp when temperature is above 50?
A
rule {
  when topic == 'sensor/temperature' and payload.temperature &gt; 50
  then send 'alerts/high_temp'
}
B
rule {
  if topic = 'sensor/temperature' and temperature &gt; 50
  then send to 'alerts/high_temp'
}
C
rule {
  when topic == 'sensor/temperature' and payload.temperature &gt; 50
  then publish 'alerts/high_temp'
}
D
rule {
  when topic = 'sensor/temperature' and payload.temperature &gt; 50
  then publish 'alerts/high_temp'
}
Attempts:
2 left
💡 Hint
Check for correct use of 'when', 'then', and equality operators.
Troubleshoot
advanced
2:00remaining
Troubleshooting Rule Engine Message Loss
A rule engine is dropping messages unexpectedly. Which is the most likely cause?
AThe rule condition filters out all incoming messages
BThe MQTT broker is offline
CThe rule engine has too many active rules
DThe device sending data is powered off
Attempts:
2 left
💡 Hint
Consider what happens if no messages match the rule condition.
🔀 Workflow
expert
3:00remaining
Order of Steps to Deploy a New IoT Data Routing Rule
Arrange the steps in the correct order to deploy a new rule that routes humidity data above 70% to an alert topic.
A1,3,2,4
B1,2,3,4
C2,1,3,4
D3,1,2,4
Attempts:
2 left
💡 Hint
Think about writing, testing, deploying, then monitoring.