SevyDevy

Design an IoT device firmware update system

PremiumIoT systemHard

  • OTA
  • A/b partitions
  • Firmware signing

Quick answer

This ioT system interview question asks you to design an IoT device firmware update system. Aim for a design that collects data from many devices and acts on it reliably, then explain device connections, ingestion, storage and trade-offs. Interviewers want to see how you handle unreliable networks, device scale and data volume.

The problem

Design an IoT device firmware update system: an over-the-air (OTA) service that ships signed firmware to 20 million cameras, plugs, hubs and sensors, rolls it out in stages and lets devices recover from a bad image. The hard parts are never bricking a device, metered cellular data and stopping a bad rollout early.

A device maker sells 40 hardware models. Most are on home Wi-Fi; 2 million are on LTE-M cellular plans paid per megabyte, and 3 million cameras run on batteries. A bad update once bricked 50,000 devices that needed a factory return; this system must make that impossible.

What must an IoT device firmware update system do?

  • Releases: Engineers publish a firmware version for a hardware model with release notes and a target group.
  • Staged rollout: Releases go to 1%, then 10%, 50% and 100% of devices, each stage gated by health checks.
4 more requirementsUnlock to see all

How well must it do it?

  • Never brick: A power cut or bad image at any point leaves the device able to boot a working version.
  • Authenticity: Devices install only images signed by the maker's release key.
3 more requirementsUnlock to see all

What scale should you design for?

Use these numbers in your estimates.

The scale numbers unlock with this questionUnlock

Key concepts

  • OTA
  • A/b partitions
  • Firmware signing
  • Staged rollout
  • Delta updates
  • Anti rollback

How you’ll practise

6 short steps · save and come back any time
  1. Requirements
  2. Estimate
  3. Device and connectivity
  4. Ingestion and processing
  5. Device management and updates
  6. Wrap-up

Lala, personalized to you, gives a hint when you ask and reviews your design when you are ready.

What do interviewers look for?

In any IoT system design round.

  • Clarifies device count, message rate and payload size
  • Handles devices that go offline and reconnect
  • Plans ingestion that absorbs bursts
  • Separates hot real-time data from long-term storage
  • Covers device identity, updates and security
  • Explains what runs on the device and what runs in the cloud

Questions people ask about this interview question

Which design type is this question?
It is an ioT system question. You design an IoT device firmware update system and explain your choices the way you would in an interview.
Is this question asked at entry level?
It is marked Hard. It suits engineers preparing for senior interviews, where you are expected to drive the discussion and go deep on trade-offs.
What should I cover first?
Start with the devices, what they send, how often and what must happen with it. Agree on scope with the interviewer before you design anything.
Can I practise it for free?
It is a premium question. Sign up and unlock it once for 10 credits; it then stays unlocked. When you finish, Lala, your personalized AI mentor, can review your design for 30 credits.

Related questions

Updated · Written by the SevyDevy team

Premium questionSign up free, then unlock it