InterviewLegend

Design a Vehicle-to-Cloud Platform

Frequently asked
Alex Chen24 min readGuide updated
In this lesson
  • Design telemetry ingest that loses nothing when a car drives out of coverage
  • Deliver remote commands safely to cars that are asleep, offline or reconnecting
  • Give every car its own identity and keep each tenant’s fleet and data apart
  • Answer the reported follow-up: what changes between 50,000 and 500,000 vehicles

Understanding the problem

The prompt

Something like this: design a vehicle-to-cloud system, where cars talk to cloud services. Then, if the number of vehicles grows from 50,000 to 500,000, how does the system scale to multi-tenant?

This came up in a November 2026 onsite of four one-hour rounds: coding, system design, a resume and domain round, and behavioral. The candidate described the loop as Rivian and Volkswagen, which points to the joint venture, Rivian and Volkswagen Group Technologies. They gave the scaling question word for word: "If the number of vehicles grows from 50k to 500k, how does the system scale to multi-tenant." That's one report, so practice the shape rather than memorizing the wording.

What makes this different from a web backend is the client. A phone app is online when someone is using it. A car spends most of its life parked and asleep, drives through tunnels and parking garages, and talks over a cellular link that drops without warning. It also can't be trusted just because it says who it is, since anyone can buy a modem and claim to be a car. So the hour goes on four things. Get data off the car without losing it. Get a request onto the car without doing something dangerous. Prove which car is talking, and keep one tenant's fleet apart from another's. The scale follow-up then tests whether the first design had seams in the right places.

The Rivian angle
The joint venture's own site lists "cloud and connectivity solutions" among what it builds, and it has two carmakers behind it, Rivian and Volkswagen Group. That makes "tenant" a real question. Ask whether a tenant is a car brand, a fleet customer or a region before designing isolation, and say which one you're assuming.

Requirements

Functional requirements

Pin the scope down early, because "cars talking to cloud services" could mean almost anything. A sensible core is two directions of traffic plus identity. Upward, the car reports telemetry: location, battery level, speed, tire pressure, fault codes. Downward, the owner's app and cloud services send commands, like open the doors or start warming the cabin. Around both, the platform has to know which car is which and who is allowed to talk to it.

In scope

  • Cars send telemetry continuously while driving, and in short bursts while parked
  • Apps and services read a car's latest state and its recent history
  • Apps send commands to a car and learn whether they ran
  • Every car proves its identity, and can only reach its own data
  • Several tenants share the platform without seeing each other's cars

Below the line (call it out, then skip)

  • Software updates over the air (mention it, it reuses the same channel)
  • What runs inside the car's own computers
  • Analytics and machine learning on the stored data
  • Billing for fleet customers

Non-functional requirements

Start with the network, because it shapes everything else. Connectivity is intermittent by default. Nothing in the design may assume a car is online, and nothing on the car may assume the cloud is reachable. Telemetry has to be durable but can be late. Losing a fault code that later explains a breakdown is bad. Seeing a battery reading two minutes late is fine. That relaxation lets us buffer and batch freely. Commands are the opposite. They're tiny and rare, but each one touches a physical vehicle. A command must run at most once and never long after the user asked. The user should hear back within a few seconds when the car is online. Opening the doors an hour after the owner gave up and walked away is a safety bug.

Ask for numbers. If the interviewer has none, propose some and show the arithmetic. Assume a car sends one batch every 10 seconds while driving, about 2 KB compressed, and drives about an hour a day. At 500,000 cars that's 500,000 × 360 batches, or 180 million batches a day and about 360 GB. At 50,000 cars it's a tenth of that. The busier number is the commute peak: if 30% of the fleet drives at once, 150,000 cars send 15,000 batches a second.

  • Fleet: 50,000 → 500,000. The reported follow-up. Design for today, but put the seams where a tenfold jump will need them.
  • Telemetry at peak: 15,000 batches a second. 150,000 cars driving at once, one 2 KB batch every 10 seconds, about 30 MB a second at 500,000 cars.
  • Open connections: about 300,000. If roughly 60% of the fleet is awake and connected at the busiest hour. Each one is a long-lived socket held open by the platform.
  • Commands: about 30 a second. Five commands per car per day is 2.5 million a day. Volume is easy here; delivery is the hard part.

The set-up

Core entities

1

Vehicle

One car, identified by its VIN. It belongs to exactly one tenant, holds one certificate that proves who it is, and has a record of which cell of the platform it connects to.

2

Telemetry batch

A bundle of signal readings from one car over a few seconds. Each batch carries the car's own counter, so the cloud can spot gaps and duplicates after a reconnect.

3

Command

One request to one car, like open the doors or warm the cabin. It starts queued, then goes out, then ends as done, failed or expired. Every command has a deadline.

4

Tenant

Whoever owns a slice of the fleet: a car brand, a fleet customer, or both. Every other record carries the tenant it belongs to.

Two stores matter most. The vehicle registry holds identity and ownership, and it's small: 500,000 rows fits in one Postgres database with room to spare. Telemetry is the big one. It goes into a wide-column store like Cassandra, partitioned by vehicle and day, with readings sorted by time inside each partition. That makes "this car's last hour" a single partition read. Keeping one car's day in one partition stops any partition from growing without limit.

Where each record lives
TableFields
vehicles (Postgres)vin · tenant_id · cell_id · certificate_serial · owner_account · status
telemetry (Cassandra)partition: vin + day · sorted by event_time · boot_id · sequence_number · signals
commands (Postgres, per cell)command_id · vin · tenant_id · action · state · expires_at · created_at
latest_state (Redis)vin → last known location, battery, lock state, last_seen
The registry and the commands table need transactions and are small. Telemetry is large, append-only and read by vehicle and time, which is the shape a wide-column store is built for.

API

There are two interfaces. The car talks MQTT, a small publish and subscribe protocol designed for devices on bad networks: one long-lived connection with tiny headers and delivery acknowledgments built in. Apps and tenant services talk plain HTTPS to a tenant API, which never touches a car directly.

The interface
RequestServer push
VehicleDevice gatewaytelemetry batch
PUBLISH t/{tenant}/v/{vin}/telemetry { boot_id, sequence_number, readings }
acknowledged once stored in Kafka
MQTT quality-of-service 1: the car keeps the batch until the gateway acknowledges it.
Device gatewayVehiclecommand to the car
PUBLISH t/{tenant}/v/{vin}/commands { command_id, action, expires_at }
car replies on its ack topic
AppTenant APIsend a command
POST /vehicles/{vin}/commands { action, command_id }
command_id, state
The app makes the id, so a retried request returns the same command.
AppTenant APIcheck a command, read the car
GET /vehicles/{vin}/commands/{command_id} · GET /vehicles/{vin}/state
state; or last known state with last_seen

High-level design

The design splits cleanly. An edge holds connections, a pipeline carries data up, and a command path carries requests down. Identity sits beside all three. In the diagram, blue is outside the platform (the car, the app, the cellular carrier), violet is a service we run, amber is a stream or queue, and green is stored state. Tap any box for what it does and why it's there.

Loading diagram...

1) The car connects. On waking, the Vehicle opens one TLS connection to the Device gateway and presents its certificate. The gateway checks it with the Identity service, which looks the car up in the Vehicle registry to learn its VIN and tenant. From then on the gateway lets the car publish only to its own telemetry topic and subscribe only to its own command topic. One long-lived connection matters because a cellular link is slow to set up, and opening a fresh HTTPS connection for every batch would spend more on handshakes than on data. How identity is issued and revoked has its own deep dive.

2) Telemetry flows up. The car publishes a batch every 10 seconds while driving. The gateway writes it into the Telemetry stream and only then acknowledges it, so the car deletes its copy only once the batch is safe. Stream processors drop duplicates, then write to the Telemetry store, the Latest state cache and the Data lake. Nothing slow sits between the car and Kafka, which matters at the commute peak of 15,000 batches a second. What happens when the car drives into a garage mid-trip is the first deep dive.

3) A command flows down. An owner taps the button to open the doors. Their app sends the command to the Tenant API, which checks that this user may command this car. Next, the Command service writes it to the Command store with a deadline of, say, 60 seconds, then publishes it to the car's command topic through the gateway. Once the car runs it and acknowledges, the app shows "done." A naive version just forwards the request and hopes the car is online. The second deep dive covers sleeping cars, retries and late delivery.

4) The app reads the car. Opening the app reads the latest state cache: location, charge, lock state and when the car was last seen. Showing "last seen 3 hours ago" honestly is better than pretending a parked car is live. A trip history reads one or more day partitions from the telemetry store. Neither read touches the car, so a thousand people checking their cars puts no load on the fleet.

Technology choices

  • The Device gateway is an MQTT broker cluster, managed like AWS IoT Core or self-run like EMQX or HiveMQ. MQTT fits because it's one long-lived connection with acknowledgments built in. A broker that crashes drops its connections, and those cars reconnect to another node with backoff.
  • The Telemetry stream is Kafka. Kafka is a log split into partitions, each kept in order and copied to several machines. If a broker dies, a copy takes over. If a consumer crashes, it restarts from its last saved position.
  • The Telemetry store is Cassandra (or DynamoDB). Writes spread across nodes by partition key, and every partition lives on three replicas. A lost node slows nothing down, because the other two replicas still answer.
  • The Vehicle registry and Command store are Postgres, because both need transactions and both are small. Run each with a synchronous replica, so failover never loses a committed command state.
  • The Latest state cache is Redis. If it's lost, processors refill it from the stream within seconds, so it never needs to be durable.
  • The Data lake is S3, with Spark jobs over it for anything analytical. Files are written once and never edited, so a retried write is harmless.

Name the popular tool and defend the category. The team may run a different broker or store. What they want to hear is why a connection layer sits apart from a durable log, and why telemetry and commands live in different kinds of database.

Potential deep dives

How do we keep telemetry when the car loses signal?

A car that drives into an underground garage for two hours, at one 2 KB batch every 10 seconds, builds up 720 batches, about 1.4 MB. A car parked in a dead zone over a long weekend, still logging its battery and alarm state, builds up more. When the signal comes back, all of it wants to go at once, on a link that may drop again in the middle.

BadAn HTTPS call per reading, no buffer on the car

Approach

The car posts each reading to a REST endpoint as it happens. If the call fails, the reading is dropped and the car moves on.

Challenges

Every gap in coverage becomes a permanent gap in the data, which is exactly when something interesting tends to happen. Each call pays for a TLS handshake over cellular, which costs more than the reading itself. At 15,000 batches a second this would be hundreds of thousands of small requests, and a server hiccup would make every car in the fleet lose data at the same moment.

GoodMQTT with acknowledgments, written straight to the database

Approach

Batches go over the car's MQTT connection at quality-of-service 1, meaning the broker must acknowledge each one and the car resends anything unacknowledged. While offline, unsent batches wait in a buffer on flash. On arrival, the gateway writes each batch directly into the telemetry store and acknowledges after the write.

Challenges

Delivery is now at least once, so a batch resent after a lost acknowledgment lands twice. Writing straight to the database ties the car to the database's health: when Cassandra slows down, acknowledgments slow down too and every car's buffer starts filling. After a regional outage, every car flushes its backlog at once into a store sized for normal traffic.

The Good tier's real weakness is coupling. A car can only let go of data when the slowest system downstream has it. What fixes it is a durable buffer in the cloud that's built to absorb bursts, sitting between the gateway and everything else.

GreatStore and forward on both ends, with a counter on every batch

Approach

The car stamps each batch with a boot id and a counter that goes up by one per batch. The gateway acknowledges once Kafka has the batch, which takes milliseconds. Processors drop any batch whose counter they've already seen for that car and boot. On reconnect, the car sends live data first and backfills the gap more slowly, so the app shows the present while history fills in. Fault codes and crash data go on a separate high-priority topic that jumps the queue.

Challenges

Batches now arrive out of order, so everything downstream must sort by the time the reading was taken, never by arrival. Kafka needs enough retention to ride out a downstream outage, about 7 days, which is roughly 2.5 TB at 500,000 cars. The car's flash buffer needs a cap and a rule for what to drop first when it fills, which should be routine readings before fault data.

key = (vin, boot_id)
if sequence_number <= last_seen[key] and already_stored(vin, boot_id, sequence_number):
skip # a resend after a lost ack
else:
store batch; last_seen[key] = max(last_seen[key], sequence_number)

The boot id is there because the counter resets when the telematics unit restarts. Without it, batch 1 after a reboot would look like a duplicate of batch 1 from yesterday. Writing to Cassandra keyed by car, boot and counter also makes the write itself idempotent, meaning a repeat overwrites the row with the same data, so a duplicate that slips past the check does no harm. The Kafka toolbox page covers partitions and consumer offsets in more depth.

The Rivian angle
Rivian's 2026 design prompts lean toward its own vehicles: this one, and a camera-blocked detection feature in an autonomy hiring-manager screen. Assume the interviewer knows cars. Talk about the car's side too: the flash buffer, the sleeping modem, the battery cost of staying connected.

How do we send a command to a car that might be asleep?

Most of the fleet is parked at any moment. A parked car can't hold a cellular connection open all night without draining the 12-volt battery, so its modem drops to a low-power state and only listens for a text. Meanwhile the owner standing at the door expects the doors to open in a few seconds, and certainly doesn't expect them to open an hour later.

BadForward the request and wait

Approach

The API finds the gateway node holding the car's connection, sends the command, and holds the app's request open until the car replies.

Challenges

A sleeping car has no connection to find, so the request just times out. When the app retries, the car may get the same door command twice. And when the broker queued the command during a brief drop, the car can run it much later, after the owner has walked away. Nothing records what happened, so support can't answer "did my doors open?"

GoodStore the command, wake the car, deliver from a persistent session

Approach

The command service writes every command with an id before doing anything. If the car isn't connected, it asks the carrier to send a wake-up text, and the car connects within a few seconds. The broker keeps a persistent session per car, so a command published while the car is reconnecting is delivered as soon as it subscribes. The car acknowledges, and the command service marks it done.

Challenges

Persistent sessions solve delivery but not timing. A command queued in the broker during a long outage still arrives late and still runs. A retried request from the app can still create a second command. And text messages can be slow or lost, so wake-up isn't guaranteed.

GreatCommands with an id, a deadline and a separate desired state

Approach

The app creates the command id, so a retried request returns the same command. Every action carries a deadline: about 60 seconds for opening the doors, longer for "start charging." The car checks the deadline against its own clock and refuses anything stale. It also remembers recently run ids, so a redelivered command is acknowledged without running twice. Settings like "charge limit 80%" skip commands entirely and become desired state: the cloud records the target, and the car converges on reconnect, newest value winning.

Challenges

The car's clock must be trustworthy, which it can take from GPS or the network time. Expired commands must be reported honestly to the user ("your car didn't respond in time"). Safety checks stay on the car, which can refuse to open the doors while driving no matter what the cloud says.

Splitting actions from settings removes a whole class of bugs. If an owner changes the charge limit three times while the car is in a garage, the car needs only the last value. Replaying three commands in order would be wasted work at best. Actions like honking or opening the doors only make sense right now, so they expire. Settings make sense whenever the car next connects, so they persist.

if command_id in recently_run: ack again, do nothing
elif now >= expires_at: ack as expired, do nothing
elif not safe_to_run(action): ack as refused
else: run it, remember command_id, ack as done

Back this with numbers when asked. At about 30 commands a second the command store barely notices the load, so the hard part is correctness. The pattern of a durable record plus at-least-once delivery plus a check on the receiver is the same one the multi-step workflows lesson builds on.

How does each car prove who it is?

The gateway accepts connections from the public internet. Anyone with a modem can try to connect and claim to be a car. If the platform believes them, they can read another car's location or tell it to open its doors. With hundreds of thousands of cars, the identity scheme has to be cheap to check on every connect and easy to revoke for one car.

BadA shared API key baked into the firmware

Approach

Every car ships with the same secret and sends its VIN alongside it.

Challenges

Pull the key out of one telematics unit and you can impersonate every car in the fleet by changing the VIN you send. Revoking the key means updating every car at once. There's no way to tell which car leaked it.

GoodA certificate per car, checked with mutual TLS

Approach

At the factory, the telematics unit generates a key pair inside its secure chip, a piece of hardware that can sign with the private key but never reveals it. The factory signs a certificate saying "this key belongs to VIN X." On connect, both sides check each other's certificate, which is called mutual TLS. The gateway reads the VIN from the certificate and never from anything the car says.

Challenges

Certificates expire and need rotating on cars that might stay offline for weeks. Revoking one stolen unit is slow if you rely on standard revocation lists. And identity alone doesn't say what the car may do: a valid car could still try to subscribe to someone else's command topic.

GreatCertificates plus topic rules, rotation and ownership kept apart

Approach

The certificate also names the tenant, and each tenant's certificates are signed by its own intermediate authority, so a tenant can be cut off in one step. The gateway allows a car only its own topics. Cars request a fresh certificate weeks before expiry, over the existing trusted connection. Revocation is a registry flag the gateway checks on connect, cached for a few minutes. Ownership lives in the registry, so selling the car changes one row there and leaves the certificate alone.

Challenges

The registry lookup sits on every connect, so it must be cached or a reconnect storm hits Postgres hard. A car offline past its certificate's expiry needs a recovery path, usually a long-lived factory identity that can only request a new certificate and nothing else.

The ownership point is worth saying out loud. The car's identity is fixed for its life. Its owner changes when it's sold, leased or returned. If owner access hangs off the device certificate, the previous owner can still open the doors of a car they sold. Keeping the two apart means the tenant API checks the user against the registry's current owner on every command.

How does it scale from 50,000 vehicles to 500,000, multi-tenant?

This is the reported follow-up, so leave real time for it. Start by finding what breaks first at ten times the fleet, because it isn't data volume. 15,000 batches a second is modest for Kafka and Cassandra, and both grow by adding nodes. What grows awkwardly is connections and blast radius. At 500,000 cars and about 60% connected at peak, the gateway holds roughly 300,000 open sockets, each with TLS state in memory. Suppose load testing shows a broker node holds 50,000 comfortably. That's six nodes plus spares. The real danger is a reconnect storm. If one region blips and 300,000 cars reconnect within 10 seconds, that's 30,000 TLS handshakes a second plus 30,000 identity checks. Cars must back off with random jitter, so the same reconnects spread over five minutes become about 1,000 a second.

Then multi-tenancy. Ask what a tenant is. If it's a car brand on the same platform, the tenants are big and few. If it's fleet customers, they're many and small. Most answers mix both, and the design has to work for each.

BadAdd a tenant column and keep one big system

Approach

Put a tenant id on every row and filter by it in queries. Scale everything vertically or by adding nodes to the one shared cluster.

Challenges

Isolation now depends on every query remembering the filter, and one missed filter leaks one tenant's car locations to another. A big tenant's software update day floods the shared gateway for everyone. Any outage or bad deploy hits all 500,000 cars of every tenant at once. A tenant needing its data kept in the EU has nowhere to go.

GoodShared platform, tenant enforced at every layer

Approach

Keep one shared system, but make the tenant impossible to forget. It comes from the car's certificate at the gateway and from the caller's token at the tenant API, never from a request field. Topics start with the tenant. Storage partition keys and lake folders start with the tenant. Each tenant gets its own rate limits at the gateway and the API, and its own Kafka quotas, so a noisy tenant slows only itself.

Challenges

Isolation is now enforced in many places instead of one, which is solid, but every tenant still shares one blast radius. A bad gateway deploy still reaches every car. Data residency still has no answer, and a tenant that wants its own encryption keys or its own maintenance windows can't have them.

What forces the next step isn't load. It's the cost of a mistake landing on everyone, plus tenants with real legal requirements about where their data lives. Both point the same way: run several smaller copies of the platform.

GreatCells: identical copies of the platform, about 50,000 cars each

Approach

Package everything above (gateway, Kafka, processors, stores, command service) as a cell sized for about 50,000 cars, the size the system started at. A small global directory maps each VIN to its cell. On boot the car asks the directory which cell to connect to and caches the answer. 500,000 cars means about ten cells. Small tenants share cells. A big tenant gets dedicated cells, and an EU tenant gets cells in an EU region.

Challenges

The directory becomes the one shared dependency, so keep it tiny, heavily cached and read-only on the hot path. Moving a car between cells means draining its commands and switching its directory entry while it's online. Cross-cell queries, like a fleet report spanning cells, go to the data lake. Deploys roll out one cell at a time, which is slower but caps any bad release at one cell.

The cell answer turns the follow-up around neatly. The system you designed for 50,000 cars doesn't get rebuilt for 500,000. It becomes the unit you copy. Growth means adding cells, and each cell can be load-tested once at a known size. Tie each layer back to the tenant: per-tenant certificate authorities, per-tenant encryption keys in a key management service, per-tenant quotas, and tenant-prefixed storage. The scaling writes lesson covers partitioning in general.

The Rivian angle
The candidate who got this prompt said it was close to their own autonomous-driving work, and the same loop had a separate resume and domain round. If you've built anything that talks to devices, bring it into the design. Real numbers from your own fleet or devices beat invented ones.

What do we watch in production?

A connected fleet fails quietly, because a car that stops reporting looks the same as a car that's parked. So measure from both sides. Track connected cars per cell against the same hour last week, since a sudden drop usually means a gateway or carrier problem. Fleets don't fall asleep all at once. Watch the time from a reading being taken to it being stored, at the median and the 99th percentile. Alert on Kafka consumer lag, meaning how far processors trail the newest batch. For commands, track how many finish, fail or expire, and the time from tap to done. A rise in expired commands is often the first sign that wake-up texts are slow in one region. Tag every command and batch with tenant, cell and firmware version. Then "only cars on firmware 4.2 in cell 7 are dropping data" takes one query to find. The monitoring and observability page covers metrics, logs and traces in general.

Practice the core in code

The command path is where small mistakes turn into physical ones: doors opened twice, or opened an hour late. This problem shrinks it to one class. It queues commands per car, hands a reconnecting car only what is still worth running, and treats repeats as harmless.

Time is passed in as a number of seconds, so expiry is easy to test. The network, the wake-up text and the car's own safety checks are left out. What's left is the rule that decides correctness: a command id counts once, nothing past its deadline is ever handed out, and an acknowledgment only counts while the command is still live.

1

Vehicle command outbox: deliver, acknowledge, expire

Medium
Problem
A cloud platform queues commands for cars that may be offline. A car that reconnects asks for its pending commands, runs them, and acknowledges each one. Commands have a deadline, and a command past its deadline must never be handed out or accepted.

Write a class CommandOutbox. queue(vehicle_id, command_id, action, expires_at) stores a command and returns true. If that vehicle already has a command with this id, in any state, it changes nothing and returns false.

sync(vehicle_id, now) returns [command_id, action] for every command of that vehicle that is still pending and has now < expires_at, in the order they were queued. Syncing doesn't remove anything, so an unacknowledged command comes back on the next sync.

ack(vehicle_id, command_id, now) marks a pending command done and returns true if now < expires_at. It returns false for an unknown command, one already done, or one whose deadline has passed. status(vehicle_id, command_id, now) returns "done", "expired" (not done and now >= expires_at), "pending", or "unknown".

Input encoding. A test case is a JSON array of operations. The first entry is ["CommandOutbox", []] and each later entry is [method, [args]]. The expected array holds each operation's return, with null for the constructor.
  1. CommandOutbox()
  2. queue("v1", "c1", "open doors", 60)→ true
  3. queue("v1", "c1", "open doors", 90)→ false
  4. sync("v1", 10)→ [["c1","open doors"]]
  5. ack("v1", "c1", 12)→ true
  6. sync("v1", 15)→ []

The app retried the same request, so the second queue is ignored. After the acknowledgment, nothing is left to deliver.

How this uses the pattern

Keep, per vehicle, a map from command id to its record and a list of ids in queue order. Expiry is computed from now and the deadline, never stored.

Write it here, or go full screen with the problem, hints and solution beside the editor.

Vehicle command outbox: deliver, acknowledge, expire

Loading...
Click "Run" to execute your code
The Rivian angle
This is the command store and the car's duplicate check from the design, small enough to run. Most bugs show up in the expiry tests: handing out a stale door command, or accepting a late acknowledgment for it. Say the rule before coding. An id counts once and a deadline is final. Done beats expired.
Take it further
Add desired-state settings next to actions: a set(vehicle_id, key, value) where only the newest value per key is delivered. Then talk about persistence. The maps become the commands table, the done transition becomes a conditional update that only succeeds while the state is pending, and sync becomes a query on vehicle and state.

Follow-ups to be ready for

Software updates over the air. The same connection carries the notice, but the bytes are far too big for MQTT. The command says "update available," and the car downloads a signed package from a CDN over HTTPS. Roll out in stages, a small share of cars first, and stop the rollout automatically if fault codes rise in that group.

Location privacy. A car's location history shows where someone lives and works. Keep fine-grained location only as long as the product needs it, encrypt it with the tenant's key, and log every human access. Some tenants will need it kept in one region, which the cell layout already handles.

A tenant wants its own data feed. Give each tenant a filtered stream of its own cars' telemetry, built from the processors and delivered by webhook or a stream subscription. Never let a tenant consume the shared Kafka topics directly, because a slow consumer and a missing filter are both one config change away.

A whole region goes down. Cars reconnect to another region's cells with jitter. The directory points them there, the cars keep buffering telemetry until it's acknowledged, and pending commands either move with the car or expire on their deadlines. Losing a region should mean late data and a few expired commands, with no lost data and no doors opening late.

What is expected at each level

Mid level

About 80% breadth, 20% depth. Expect to get a complete picture on the board: a connection layer, a stream, a telemetry store, a latest-state cache and a command path. You know cars go offline and say the car buffers data. Prompting on duplicates and on command deadlines is fine. The bar: a working end-to-end design where data survives a dropped connection and a command doesn't run twice.

Senior

About 60% breadth, 40% depth. You raise intermittent connectivity and sleeping cars before the interviewer does, and you reach the Great tiers for telemetry and commands on your own. You defend Cassandra's partition key and say why commands live in a transactional store. On the follow-up, you name connections and reconnect storms as the first limit, ahead of data volume. The bar: you find the stale-command and duplicate-batch problems yourself, and you enforce tenant isolation in more than one layer.

Staff and above

About 40% breadth, 60% depth. You lead the scale discussion: cells, a directory, rollout one cell at a time, data residency and per-tenant keys. Cost comes up too, like how long hot telemetry stays in Cassandra before only the lake has it. Then cover how the platform degrades when a region or a carrier fails. The bar: you turn "50,000 to 500,000, multi-tenant" into a growth plan with a clear unit of scale, and the interviewer redirects rather than rescues.

Common questions

What system design questions does Rivian ask?

The newest is a vehicle-to-cloud platform with a scaling follow-up, from a November 2026 onsite. Others in 2026 were a camera-blocked detection feature in an autonomy screen, an autonomous-driving design for a senior role in Germany, and a RAG system for an AI engineer. Only the e-commerce platform has been asked more than once. The Rivian system design overview lists them all, newest first.

Is this the same as designing an IoT platform?

Mostly, and the general IoT patterns apply: MQTT, per-device certificates, store and forward. The car adds sleeping modems, a physical safety cost to stale commands, and ownership that changes when a car is sold. A car-specific answer stands out by handling all three.

Key Takeaways

  • ✓Assume the car is offline. Buffer telemetry on the car, acknowledge only once Kafka has it, and drop resends by counter.
  • ✓Give every command an id and a deadline. The car refuses stale or repeated commands, and settings become desired state.
  • ✓Identify cars by per-car certificates and keep ownership in the registry, so selling a car changes a row.
  • ✓Scale to 500,000 cars and many tenants with cells of about 50,000 cars, the size you started at.
Rivian interview guide

Know what Rivian asks before you walk in.

28 coding · 4 system design · 37 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

Rivian System Design Interview QuestionsHad your Rivian interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.