IoT engineer interview questions and answers
IoT engineer interview questions test whether you can connect a fleet of devices to the cloud and keep it secure, updated and useful: choosing a radio and protocol, designing MQTT topics and quality-of-service levels, giving every device its own identity, rolling out updates in stages, handling devices that go offline, and turning telemetry into data people can trust. Expect fundamentals on connectivity and security, a system design question such as a fleet of sensors reporting to a dashboard, and stories about field problems you diagnosed.
By Evin JohnPublished 8 min read
What an IoT engineer does, and what teams screen for
IoT engineer is a broad title. At a hardware startup it can mean someone who writes device code, sets up the cloud backend and builds the dashboard. At a larger company it usually means the connectivity and platform layer: how devices authenticate, send data, receive commands and get updated, and how thousands of them are managed as a fleet. Industrial IoT roles add plant networks and connecting sensors that already exist on equipment.
If the job is mainly C on a microcontroller, bootloaders and drivers, the interview will look more like the firmware engineer or embedded software engineer loop. IoT roles weigh distributed-system thinking more heavily: what happens when 10,000 devices reconnect at once after an outage, how you know which firmware version each one runs, and how you revoke a stolen device. Read the job description for the split between device, cloud and data work, and prepare in that proportion.
- Devices
- Sensors
- Microcontroller
- Secure identity
- Connectivity
- BLE, Wi-Fi, LoRaWAN or cellular
- Gateway
- Cloud platform
- MQTT broker
- Device registry
- Device state
- Data and apps
- Time-series storage
- Rules and alerts
- Dashboard and API
How IoT engineer interviews usually run
- Recruiter screenDevices and platforms you have shipped, the size of fleets you have worked with, and whether your strength is device, cloud or both.
- Technical fundamentalsNetworking, protocols, MQTT details, security and some coding, often in Python, C or a language used for the backend.
- System designA scenario such as cold-chain trackers, smart meters or connected thermostats. You define requirements, choose connectivity and sketch the pipeline.
- Debugging or hardware discussionA field problem: devices dropping offline at night, batteries dying early, duplicate readings. Sometimes a hands-on task with a development board.
- Team conversationWorking with hardware, firmware, cloud and product teams, and supporting devices that are already in customers' hands.
Connectivity questions
| Question | What it tests | What a strong answer shows |
|---|---|---|
| How do you choose between Wi-Fi, BLE, LoRaWAN and cellular? | Trade-offs | Range, power, data rate, cost per device, existing infrastructure and who manages the network, tied to the product's needs |
| When would LTE-M or NB-IoT make sense? | Low-power cellular | Battery devices spread over a wide area that send small amounts of data, where coverage for those networks exists in the target markets |
| Why use a gateway instead of connecting each device directly? | Architecture | Short-range devices, local processing, protocol translation and fewer internet connections to secure |
| Devices go offline every night around the same time. How do you investigate? | Field debugging | Correlate with time, location and firmware; check power, Wi-Fi router restarts, interference, keepalive timeouts and broker logs |
| What happens when a whole fleet reconnects at once after an outage? | Thundering herd | Randomized backoff and jitter on reconnect, broker capacity limits, and avoiding a sync storm of stored messages |
| How do you send data efficiently over a constrained link? | Bandwidth | Compact binary encodings such as CBOR or Protocol Buffers, batching, sending changes instead of full state, and compression where the device can afford it |
MQTT and protocol questions
- How does MQTT work? Clients publish messages to topics on a broker, and other clients subscribe to topics. Publishers and subscribers do not know about each other, which suits devices that come and go.
- Explain QoS 0, 1 and 2. At most once, at least once and exactly once, each between a client and the broker. QoS 1 means duplicates are possible, so the receiver should be idempotent. QoS 2 costs more round trips.
- What is a retained message? The broker keeps the last message on a topic and sends it to new subscribers immediately, which is useful for current state such as a device's configuration or online status.
- What is the last will and testament? A message the broker publishes on the client's behalf if the client disconnects without a clean goodbye, often used to mark a device offline.
- How would you design topics for a fleet? A clear hierarchy such as tenant, device id, then telemetry, events or commands, with access rules so a device can only publish and subscribe to its own branch. Mention the + and # wildcards and the risk of over-broad subscriptions.
- What does a persistent session give you? The broker keeps subscriptions and queued messages for a client that reconnects, so commands sent while it was asleep are not lost. Mention memory limits on the broker.
- When would you use CoAP or HTTP instead of MQTT? CoAP suits very constrained devices over UDP with a request and response style; HTTP is fine for devices that report rarely and already have a web stack.
Security, identity and provisioning questions
| Question | What it tests | What a strong answer shows |
|---|---|---|
| How does a device prove who it is to the cloud? | Device identity | A unique credential per device, ideally an X.509 certificate with mutual TLS, with the private key kept in a secure element or protected storage |
| Why are shared default passwords a problem? | Basic hygiene | One leak compromises every device; unique credentials and no default logins are a common baseline, reflected in guidance such as ETSI EN 303 645 |
| How do you provision devices at the factory or at first boot? | Provisioning | Inject or generate keys during manufacturing, register them with the platform, or use a claim flow that swaps a bootstrap credential for a device certificate |
| A device is stolen. What do you do? | Revocation | Disable or revoke its credential in the registry, block it at the broker and check what data it could reach |
| How do you make sure only your firmware runs on the device? | Update integrity | Signed firmware images verified on the device before install, with secure boot where the hardware supports it |
| How do you rotate certificates on devices in the field? | Lifecycle | Plan expiry from the start, issue new certificates over a secure channel before the old ones lapse, and monitor devices that miss the rotation |
Fleet updates and device management questions
- How would you roll out a firmware update to 50,000 devices? In stages: internal devices, a small percentage of the fleet, then wider waves, with health metrics checked between each and an automatic stop if crash or disconnect rates rise.
- What should a device check before installing an update? Battery or power state, free storage, a verified signature and a stable connection, and it should keep a known-good image to fall back to.
- What is a device shadow or device twin? A cloud-side record of the device's reported and desired state, so apps can read the last known state and set a desired change that the device applies when it next connects. AWS IoT and Azure IoT Hub both offer versions of this idea under those names.
- How do you know which version every device is running? Devices report version and health on connect and periodically, and the registry keeps that as queryable state for support and rollout targeting.
- A bad update bricked some devices. What now? Halt the rollout, find the common factor in the failed devices, use the fallback image if it exists, and plan recovery for the rest, which may mean a field visit or a return.
Data, power and system design questions
| Question | What it tests | What a strong answer shows |
|---|---|---|
| Where should processing happen: on the device, at the edge or in the cloud? | Edge versus cloud | Filter and aggregate near the device when bandwidth or latency matters; keep raw data in the cloud when analysis needs it |
| A device was offline for six hours. What happens to its readings? | Store and forward | Buffer locally with timestamps, send on reconnect with rate limits, and let the backend accept late data in the right time slot |
| Why can device timestamps be wrong, and what do you do? | Time | Clock drift and resets; sync time on connect, record both device and server time, and flag obviously bad values |
| How do you store telemetry for dashboards and analysis? | Storage | A time-series database or partitioned tables, downsampled data for long ranges, and retention rules by data type |
| How do you change a payload format without breaking old devices? | Versioning | A version field in each message, a backend that accepts old and new formats, and retiring the old format only after the fleet moves |
Power budgets are a favorite quick estimate. Suppose a sensor sleeps at 10 microamps and wakes every 10 minutes for 2 seconds at 50 milliamps. Average current is (50 mA × 2 s + 0.01 mA × 598 s) ÷ 600 s, about 0.18 mA. A 2,000 mAh battery then lasts roughly 11,000 hours, around a year and a quarter, before you allow for self-discharge, temperature, radio retries and battery ageing, which can cut it noticeably. Interviewers care less about the final figure than about whether you remember the wake-up cost and the margins.
Fictional example
- We had cold-storage sensors in a few hundred sites, and some were draining batteries in months instead of the expected year. The failing ones were all in sites with weak cellular signal. Our logs showed that when the first connection attempt failed, the device retried immediately and kept the modem on for a long time. I changed the logic to back off with jitter, cap the number of attempts per wake cycle and store readings for the next window instead. We rolled it out to a small group first and compared battery drain against unchanged devices at similar sites. Drain on the updated group returned close to normal, and we then shipped it to the rest of the fleet.
Behavioral questions for IoT engineers
- Tell me about a time a hardware limit forced a software change. What the constraint was, the options you weighed and what you shipped.
- Describe working with a team on the other side of the stack. Firmware with cloud, or hardware with product, and how you agreed interfaces.
- Tell me about a decision you made to protect device security that slowed the project. How you explained the trade-off and what it prevented.
- How do you support devices already sold to customers? Telemetry for support teams, remote diagnostics and a careful approach to changes in the field.
Tell these with a situation, your action and a measured result, as in the behavioral question guide. Sensor-heavy plants often also hire instrumentation engineers, and connecting IoT data to business systems is the daily work of integration engineers.
A ten-day preparation plan
- Days 1 and 2: networking basics and radio trade-offs. Make a one-page comparison of the options in the job description.
- Days 3 and 4: MQTT in depth. Run a local broker or use a public test broker, publish and subscribe, and try QoS, retained messages and last will.
- Day 5: device identity, certificates, mutual TLS and signed updates.
- Day 6: staged rollouts, device state and fleet monitoring.
- Day 7: practice two power budget estimates and one store-and-forward design.
- Day 8: full system design for a sensor fleet, spoken aloud in 40 minutes.
- Days 9 and 10: prepare two field-problem stories and questions about the fleet size, platform, update process and on-call.
System design rounds go better when you have heard yourself run one end to end. Natively, an AI interview assistant for Mac and Windows, transcribes a mock design session on your computer, so you can see afterward whether you covered identity, updates and offline behavior or spent the whole time on dashboards. In practice it can read a design prompt or a power-budget problem from a screenshot and work through it with you, and when you ask it for a design it can draw the diagram inside its answer. Add your résumé and the job description (Pro or the free trial) and the suggestions draw on the devices and platforms you have actually worked with.
Questions people ask
What questions are asked in an IoT engineer interview?
Expect connectivity trade-offs, MQTT details such as QoS, retained messages and last will, device identity and certificates, provisioning, staged firmware rollouts, offline buffering, telemetry storage, a power budget estimate and a fleet system design.
What are MQTT QoS levels?
QoS 0 is at most once, QoS 1 is at least once and QoS 2 is exactly once, each between a client and the broker. QoS 1 can deliver duplicates, so receivers should handle repeats safely.
How is an IoT engineer different from an embedded or firmware engineer?
Embedded and firmware roles focus on code running on the device. IoT roles cover the connected system as a whole: radios, protocols, cloud platforms, security across the fleet, updates and data pipelines, though some jobs include device code too.
How do I prepare for an IoT system design interview?
Practice clarifying requirements first, then cover device identity, connectivity, the broker and registry, offline behavior, staged updates, storage and alerts. Rehearse one full design aloud within the time limit.
Where to go next
Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.
Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.
