5. You want to design an IoT system where devices send sensor data occasionally and receive commands from the server only when requested. Why is HTTP a suitable protocol for this use case?
hard
A. Because HTTP encrypts data without extra setup
B. Because HTTP supports request-response, fitting occasional data and command retrieval
C. Because HTTP keeps devices always connected for instant commands
D. Because HTTP uses UDP for faster delivery
Solution
Step 1: Understand communication pattern needed
Devices send data occasionally and get commands only when they ask, matching request-response style.
Step 2: Match HTTP features to this pattern
HTTP naturally supports request-response, so devices initiate communication and get replies, no need for always-on connection.
Final Answer:
Because HTTP supports request-response, fitting occasional data and command retrieval -> Option B
Quick Check:
Request-response fits occasional IoT data and commands [OK]
Hint: HTTP request-response fits occasional send and receive [OK]
Common Mistakes:
Thinking HTTP keeps devices always connected
Assuming HTTP encrypts by default
Confusing HTTP with UDP protocol
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.