Skip to content
Tech Interview Prep

Real Interview Questions for the Embedded Systems Engineer at SpaceX

New

Practice MCQs

Answers count toward the Embedded Systems Engineer and overall leaderboards; your latest answer to each question is the one that counts.

21 questions · Flow follows Relevance until this set has a learning order.

MCQ-1You spent five years on a satellite bus team: you wrote the C watchdog that recovered a payload computer from a stuck I2C bus in orbit, and you own the bootloader that survives a partial flash. The recruiter says fixes go from test stand to vehicle in weeks, and the interviewer, hiring for the flight computer of a booster that is recovered and reflown, has already heard every mission pitch. What in your record points at this job?
MCQ-2Three of forty reaction-wheel controllers reset within 20 min of spin-up, and the reset-cause register reads BOR, not watchdog. The 3.3 V rail at the MCU, at the far end of the ribbon to the wheel board, dips 900 mV for 30 µs on every 20 kHz PWM edge, only with the 30 cm ribbon and never with the 10 cm one, while supply current stays flat at 180 mA. Which account of the resets, with its fix and check, is right?
MCQ-3A 1 kHz IMU task on a Cortex-M7 (GCC 12, `-O2`, 32-bit `int`) runs `int32_t s = 0; for (int i = 0; i < 32; i++) s += raw[i] * 65536;` over `int16_t raw[32]`. Every product fits in `int` (32767 × 65536 = 2,147,418,112), but with all 32 samples at +32767 the sum reaches 68,717,379,584 and `s` reads negative, tripping the over-range check. Which account of the defect and the change that fixes it is right?
MCQ-4A Cortex-M7 telemetry module formats tags with `char *tag(int seq) { char b[16]; snprintf(b, sizeof b, "T%04d", seq); return b; }`. Callers hold up to three tags at once across a `radio_send()` call, and the log lines come back as the same garbage. The build bans `malloc`, and `tag`'s signature is fixed by 40 call sites and a logging macro. Which change fixes the corruption?
MCQ-5A FreeRTOS 10.5 Cortex-M7 build runs `att_ctrl` (priority 12, 400 µs budget), `downlink` (priority 8, 3 ms bursts) and `log_flush` (priority 2). All three share an SPI bus behind an `xSemaphoreCreateMutex()` mutex, and `log_flush` holds it across a 4 ms, 2 KB NOR page program. `att_ctrl` misses its deadline in 4–5 ms bursts that follow `downlink`; a trace shows it blocked on the mutex 4.2 ms while `log_flush` runs at priority 12 and `downlink` never runs. Which account and fix is right?
MCQ-6A 2 kHz task on a 480 MHz STM32H7 builds a 256-byte `TelemetryFrame` with `new` each cycle and `delete`s it after `radio_send()` returns; `radio_send()` hands the pointer to a DMA stream and returns at once, up to three frames can be in flight before a transfer-complete callback, and each must stay intact until then. Worst-case task time is 42 µs, but 1 cycle in 500 takes 310 µs; the heap high-water mark is 12 KB of the 16 KB newlib heap. Which change removes the 310 µs outliers, and why?
MCQ-7A Cortex-M4 flight controller kicks its IWDG (250 ms, fixed by the fault-detection ICD) from the 1 kHz SysTick handler; the image runs from internal flash and only the log sits on QSPI. In the field it resets every 90 s, the reset-cause register reads IWDG, and the log ends at `hk_sync`, which erases a 2 KB QSPI sector in a 300 ms polled call with interrupts disabled. The same board runs 8 h on the bench at the same temperature, log ring empty, no reset. Which account and fix is right?
MCQ-8A booster flight computer must complete its IMU-to-actuator path within 20 ms of the data-ready edge, and its 1 kHz control ISR (0.15 ms worst case) must start within 1 ms of every tick. Measured wall-clock worst cases: `imu_read()` 1.2 ms, `nav_update()` 3.4 ms, `crc_frame()` 7.0 ms, `act_write()` 0.6 ms, scheduler overhead 0.9 ms, and `log_append()` 4.2 ms, which runs with interrupts masked for its whole duration. Which call has to leave the path?
MCQ-9A 1 kHz control task on a 200 MHz Cortex-M7 runs 180 µs of fixed worst-case work, then CRCs a telemetry frame at 4 cycles/byte. The length comes from a 16-bit field; the ground ICD fixes the CRC algorithm and requires every field value to be accepted, the frame must be acked before the next period, and the task already runs at the system's highest priority. Which account of the worst case, and the fix it forces, is right?
MCQ-10A 48-byte command carries a 4-byte sequence, an 8-byte timestamp, a 32-byte payload and a 4-byte HMAC-SHA256 tag over the payload. The receiver drops frames over 5 s old, then runs any frame whose tag verifies and whose sequence beats the highest accepted, a static in the command task. One-way light time is 900 ms. A relay forwards one frame twice, 0.4 s apart; the actuation browns out the bus and the computer resets 200 ms later, and the second copy executes. Which account and fix is right?
MCQ-11A 6U CubeSat is mid-imaging pass when the Z reaction wheel's tachometer reads 0 rpm, its motor current is latched at the 1.2 A driver limit, and its temperature climbs 2 °C/min; the IMU shows 0.4 °/s about Z. The wheel driver shares a 3 A fuse with the IMU and star trackers (2.0 A), so the fuse trips in 25 s. Safe mode slews to sun-point over 40 s and powers down the wheels only at the end; the pass needs 0.05° pointing, while 2-wheel plus magnetorquer holds 0.5°. Which FDIR response is right?
MCQ-12Each of 4,000 satellites samples a 3-axis gyro at 1 kHz; the flight DSP low-passes at 20 Hz (8th-order, 48 dB down at 40 Hz) and decimates to 1 Hz, and only those 1 Hz means and peak-holds go downlink, 24 B/s against a 2 kB/s average. TVAC found a 0.5 °/s, 40 Hz limit cycle that the downlinked peak-hold reports as flat, and gyro noise is 0.01 °/s rms. Which change lets the ground see it in flight?
MCQ-13On a 6 s hot-fire, `PT-3` (LOX inlet) reads 12% low from T+4.0 s to T+4.6 s, nominal either side. `PT-4`, a second transducer on the same manifold and 28 V excitation, stays flat; pump speed, flow and chamber pressure are nominal; a pre-run shunt calibration read within 0.1% on both. The only event is the igniter exciter arming at T+4.0 s and safing at T+4.6 s, and `PT-3`'s harness shares a 1.2 m bundle with the exciter's HV lead. Which account of the drop, and which test settles it?
MCQ-14A booster's 24 V helium isolation valve is driven by a board whose enable input carries a 100 kΩ pull-up to 3.3 V; the STM32H7 GPIO driving it sits in its reset state (input, no pull) whenever the application calls `NVIC_SystemReset()` from its hard-fault handler. On the bench the valve stays energized across a forced reset. Which account of the enable line, and the change that contains it, is right?
MCQ-15A 2 kHz timer ISR is the only producer into a 16-slot ring in DTCM, which the Cortex-M7 does not cache; the main loop is the only consumer, and occupancy never exceeds 4 slots. The ISR copies a 64-byte frame into `buf[head & 15]`, then runs `head++`; the consumer reads `head`, copies `buf[tail & 15]`, then runs `tail++`. Both indices are `volatile uint32_t`, built -O2. One frame in 200,000 fails CRC: first 56 bytes new, last 8 from the previous frame. Which account and fix is right?
MCQ-16A Cortex-M7 board sends telemetry and commands over a UART DMA stream. `frame_send(p,n)` copies `n` bytes into one `static uint8_t tx[64]`, enables the stream and returns without waiting for transfer-complete; a 64-byte frame holds the line 210 µs. When an 8-byte command is sent inside that window, the frame still arrives 64 bytes long but its tail carries the command's opcode and payload. The command runs in the UART interrupt and must return within 50 µs. Which account and fix is right?
MCQ-17A triplex flight control system votes on a pitch command in degrees. The voter takes the median of the three FCC commands and trips to safe mode if the maximum minus minimum exceeds 4°. On a bench test, FCC-A outputs +6.0° (stuck high), FCC-B outputs +1.0°, and FCC-C outputs -1.0°; the actuator limit is ±5.0°. Which account of the voter's output and trip is correct?
MCQ-18A Linux payload computer runs its camera pipeline and downlink packer as two threads of one process, sharing a 4 MB frame buffer at 30 fps. A bad table index writes 8 bytes to a garbage address, the kernel kills the whole process with `SIGSEGV`, and the packer's TCP socket dies mid-pass; the packer has 1.5 ms per frame and a 4 MB `memcpy` takes 1.1 ms. Which change contains the next wild write while the packer keeps its socket and its 1.5 ms budget?
MCQ-19A ground station uplinks a 40-byte `dispense` command through a store-and-forward relay: 1.2 s each way plus 0.6 s of relay processing, so the ACK round trip is 6.0 s. The sender retransmits every 1 s and gives up after 3 attempts; the vehicle dedupes on a 16-bit sequence number and re-ACKs duplicates. Operators see `dispense` reported failed on every pass, re-send it by hand, and the vehicle dispenses twice. Which account of the double dispense, and the change that prevents it, is right?
MCQ-20A downlink decoder counts islands in a 4×4 bitmap held row-major as `static uint8_t g[16] = {0,0,0,1, 1,0,0,0, 0,0,0,1, 1,0,0,0};`, using a stack flood fill that clears `g[k]` when it pushes a cell and tests neighbours with `k+1 < 16`, `k-1 >= 0`, `k+4 < 16`, `k-4 >= 0`. The outer loop scans `i = 0..15` and starts a flood on every `g[i]` still set. Which account of the count it returns is right?
MCQ-21A booster's command handler runs a frame when its 16-bit counter exceeds that link's `last_seq`; each S-band modem stamps its own counter, and B's link has been up since before the command. A is at 900, B at 12, and B's lower latency lets a later command overtake an earlier one. The ground sends `pulse_valve(200ms)` on A, the ACK is lost, and the retry goes out on B 6.0 s later; the valve pulses twice. Which change stops the second pulse?

Curated: · Written: · Reviewed: