← Questions

Build a crash-safe key-value store that keeps every acknowledged write

0
BasetenSpaceXAIOpenAI+1CodingLast asked Sep 2026

A coding interview question asked in OpenAI's agentic coding (beta) round and at Baseten, SpaceXAI and 1 more company, last asked Sep 2026. It tests hash map, persistence and filesystems.

Build a key-value store that keeps its data in files on the local disk and survives a crash at any moment: after a restart it must come back with every write it acknowledged, and never with a half-written one. Keys and values are byte…

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

What it tests

hash map · persistence · filesystems · python

Your code and the AI tutor open when you unlock this question.