IoT Architecture & Protocols Questions with Answers

30 practice questions on IoT Architecture & Protocols (Emerging Tech) with answers and step-by-step solutions. Try 10 samples below, then practise all 30 free in the AptiNest app.

Sample questions

Question 1Easy

Which MQTT QoS level adds the most overhead?

  1. QoS 2
  2. QoS 1
  3. All levels cost the same
  4. QoS 0

Answer: A. QoS 2

Explanation

Exactly-once delivery needs a four-message handshake, so it costs the most round trips.

Step-by-step solution

  1. QoS 2 uses a four-message handshake for exactly-once delivery.
  2. This requires more messages and network traffic than QoS 1 or 0.
  3. More messages mean higher overhead compared to lower QoS levels.
  4. QoS 0 has no handshake, so it adds the least overhead.
  5. QoS 2 adds the most overhead due to its four-message process.

Why the other options are wrong

  • B. QoS 1 needs only a single acknowledgement, so it adds less overhead than QoS 2's four-message handshake.
  • C. The levels differ a lot in message count; QoS 2 uses four messages, so the costs are not equal.
  • D. QoS 0 sends each message once with no acknowledgement, so it has the least overhead, not the most.

Tip: Remember: QoS 2 uses four messages, making it the most resource-heavy.

Question 2Easy

Zigbee is commonly used in smart homes because it supports:

  1. High-speed video streaming to televisions
  2. Long-distance links of fifty kilometres
  3. Wired power delivery over the same cable
  4. Low-power mesh networks of many small devices

Answer: D. Low-power mesh networks of many small devices

Explanation

Devices relay messages for each other, extending range at low power.

Step-by-step solution

  1. Zigbee uses a mesh network where devices help send data.
  2. This allows many small devices to connect and communicate.
  3. Mesh networks use low power compared to single-hop links.
  4. Low-power mesh networks support many devices efficiently.
  5. Final answer: Low-power mesh networks of many small devices.

Why the other options are wrong

  • A. Zigbee is a low-data-rate protocol, so it does not suit high-speed video streaming to televisions.
  • B. Zigbee covers short distances per hop and relies on mesh relays, not links of fifty kilometres.
  • C. Zigbee carries data, not power over the same cable; it is a wireless protocol.

Tip: Remember Zigbee is for low-power, many-device connections in homes.

Question 3Easy

Which wireless technology is typical for short-range links such as a fitness band to a phone?

  1. Fibre to the home
  2. Satellite broadband
  3. Bluetooth Low Energy (BLE)
  4. LoRaWAN

Answer: C. Bluetooth Low Energy (BLE)

Explanation

BLE is designed for low-power, short-range communication with nearby devices.

Step-by-step solution

  1. A fitness band and a phone are close together and need little power.
  2. Bluetooth Low Energy is built for short-range, low-power links between nearby devices.
  3. Fibre, satellite and LoRaWAN are not the usual choice for this link.
  4. So the answer is BLE, option C.

Why the other options are wrong

  • A. Fibre to the home is a wired broadband line to a building, not a short-range wireless link.
  • B. Satellite broadband covers long distances from orbit, not a band on the wrist.
  • D. LoRaWAN is long-range, low-data-rate wireless for sensors, not a short-range phone link.

Tip: Short range and low power for wearables points to BLE.

Question 4Easy

A smart-meter fleet sends a reading every 15 minutes. How many readings does one meter send per day?

  1. 24
  2. 1,440
  3. 15
  4. 96

Answer: D. 96

Explanation

24 hours × 4 readings per hour = 96.

Step-by-step solution

  1. One reading is sent every 15 minutes.
  2. There are 60 ÷ 15 = 4 readings in each hour.
  3. Over 24 hours that is 24 × 4 = 96 readings.
  4. The answer is 96, option D.

Why the other options are wrong

  • A. 24 is the number of hours, not the number of readings; the meter sends four per hour.
  • B. 1,440 is the number of minutes in a day, not the number of readings.
  • C. 15 is the gap in minutes between readings, not how many are sent.

Tip: Count readings per hour first, then multiply by 24.

Question 5Medium

Which MQTT subscription receives messages on home/kitchen/oven/temperature?

  1. +/kitchen/temperature
  2. home/+
  3. home/#
  4. home/+/temperature

Answer: C. home/#

Explanation

# matches any number of remaining levels; + matches one level only.

Step-by-step solution

  1. The topic home/kitchen/oven/temperature has four levels.
  2. The # wildcard matches any number of remaining levels and must be the last symbol.
  3. Home/# matches home and everything below it, so it includes this topic.
  4. So the answer is home/#, option C.

Why the other options are wrong

  • A. +/kitchen/temperature has three levels and + matches only one level, so the topic does not match.
  • B. Home/+ matches only one level under home, so oven and temperature would not be included.
  • D. Home/+/temperature matches exactly three levels; this topic has four.

Tip: + matches exactly one level; # matches all the remaining levels and must come last.

Question 6Medium

Device provisioning in IoT means:

  1. Charging the device's battery before shipping
  2. Designing the device's plastic casing and choosing its colour and branding
  3. Giving each device its identity, credentials and configuration
  4. Choosing the colour of the status LED

Answer: C. Giving each device its identity, credentials and configuration

Explanation

Secure onboarding gives every device unique credentials instead of shared secrets.

Step-by-step solution

  1. Provisioning prepares a device for use.
  2. It gives it an identity and credentials.
  3. It also gives configuration.

Why the other options are wrong

  • A. Battery charging is not provisioning.
  • B. Casing is hardware design.
  • D. LED colour is trivial.

Tip: Provisioning = identity + credentials.

Question 7Medium

Which statement best compares MQTT and CoAP?

  1. MQTT is RESTful request/response; CoAP is broker-based pub/sub
  2. MQTT is broker-based pub/sub; CoAP is RESTful request/response
  3. Both are file formats for storing sensor readings
  4. Both require a permanent wired Ethernet connection

Answer: B. MQTT is broker-based pub/sub; CoAP is RESTful request/response

Explanation

Choose by interaction style: many-to-many event streams suit MQTT; resource-style device access suits CoAP.

Step-by-step solution

  1. MQTT uses a broker with publish and subscribe.
  2. CoAP is a REST-style request and response protocol.
  3. Option B states this.

Why the other options are wrong

  • A. The roles are reversed.
  • C. They are protocols.
  • D. Both work on wireless networks.

Tip: MQTT = pub/sub; CoAP = REST.

Question 8Medium

An MQTT "last will and testament" message is:

  1. The final message stored on a topic before deletion
  2. Sent by every client just before it powers off cleanly, as a goodbye notice
  3. Published by the broker if a client disconnects unexpectedly
  4. A message that expires after a fixed number of hours

Answer: C. Published by the broker if a client disconnects unexpectedly

Explanation

It lets other clients learn that a device went offline abnormally.

Step-by-step solution

  1. A last will is set by a client when it connects to the broker.
  2. If the client drops without a clean disconnect, the broker publishes that stored message.
  3. Other clients then learn that the device went offline abnormally.
  4. So the answer is option C.

Why the other options are wrong

  • A. A last will is not a stored final message kept on a topic; it is published by the broker on an unexpected drop.
  • B. A clean goodbye is not a last will; the will is only sent when the disconnect is unexpected.
  • D. The last will has no fixed lifetime in hours; it is sent when the client drops unexpectedly.

Tip: Last will means the broker sends it only when a client disconnects unexpectedly.

Question 9Hard

A node draws 20 mA while active for 1% of the time and 0.01 mA asleep for the rest. What is its average current, to two decimals?

  1. 0.02 mA
  2. 20.01 mA
  3. 0.21 mA
  4. 10.01 mA

Answer: C. 0.21 mA

Explanation

0.01 × 20 + 0.99 × 0.01 = 0.2 + 0.0099 ≈ 0.21 mA. Duty cycling is why such nodes last a year or more.

Step-by-step solution

  1. Active time = 1% of total time = 0.01.
  2. Sleep time = 99% of total time = 0.99.
  3. Current during active = 20 mA × 0.01 = 0.2.
  4. Current during sleep = 0.01 mA × 0.99 = 0.0099.
  5. Total average current = 0.2 + 0.0099 = 0.2099 ≈ 0.21 mA.

Why the other options are wrong

  • A. 0.02 mA is far too low; the 1% active time alone adds 0.2 mA, so the average is about 0.21 mA.
  • B. 20.01 mA adds the active and sleep currents without weighting each by its time share.
  • D. 10.01 mA treats active time as half the total; active time is only 1%, so the average is much lower.

Tip: Use weighted average for duty cycled devices.

Question 10Hard

A bridge's strain sensors stream data, and an alert must fire within 2 s of a dangerous reading even if the internet link fails. Where should the threshold check run?

  1. In a weekly batch report run each Monday
  2. On the operator's phone after they open the app
  3. Only in a cloud function in a distant region
  4. On a local edge gateway near the sensors

Answer: D. On a local edge gateway near the sensors

Explanation

Safety-critical, low-latency checks must not depend on the WAN; the cloud can still receive data for analytics.

Step-by-step solution

  1. Safety checks need instant response without internet.
  2. Edge gateways process data locally near sensors.
  3. Local processing avoids delays from distant clouds.
  4. Local edge gateway ensures fast alert within 2 seconds.
  5. Final answer: On a local edge gateway near the sensors.

Why the other options are wrong

  • A. A weekly batch run is far too slow for a 2-second alert, so it cannot meet the safety requirement.
  • B. A phone app depends on the operator opening it and on connectivity, so it cannot guarantee a 2-second alert.
  • C. A distant cloud function adds network delay and fails when the internet link fails, so it breaks the rule.

Tip: For safety-critical tasks, use local devices to avoid network delays.

Practise all 30 questions free

The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.

Open this topic in the app →

Related topics

See all Emerging Tech topics · All topics