Agent Runtime & Sandboxes
16 questionsDONEUNLOCKEDLOCKED
Agent Runtime & Sandboxing Interview Questions
Where an agent's actions actually execute. Containers, application kernels and microVMs as isolation boundaries; workspaces, snapshots and cold starts; credentials kept out of the sandbox; and the economics of a loop that rereads its context on every step.
Worked answers that trace the run, put each decision on the right side of the authority line, and end with the follow-ups and scoring a panel applies.
You have 5 free answers unlocked here.Sign in free for 1 more · 10 are premium.
01–07Foundationsthe mechanisms behind this topic, and the terms a panel uses for them0/7 done
08–13Core questionsthe questions this topic is most often tested on, with full worked answers0/6 done
14–16Field scenariosopen-ended designs, incidents and trade-offs where you must state what is missing0/3 done
The concepts behind Agent Runtime & Sandboxes
Lessons behind these answers. The opening lessons are free; deeper ones are Premium.
Foundational
Isolation BoundariesCode an agent writes is shaped by its inputs, which may be untrusted, so it must run as untrusted code. Containers share the host kernel and rely on namespaces, cgroups and syscall filters; gVisor interposes a user-space kernel; microVMs such as Firecracker give each workload its own kernel behind a hypervisor; WebAssembly exposes only granted capabilities. Choose by threat and workload, and add the same controls to every option: egress rules, a scoped filesystem, resource limits and no credentials inside.Core
Credentials Outside the SandboxAgent sandboxes often need to reach authenticated services (a Git host, a package registry, an internal API), but any credential placed inside can be read by the code running there and exfiltrated. The standard answer is a credential broker at the sandbox boundary: the sandbox sends unauthenticated requests through it, the broker checks each request against a narrow policy (which host, which methods, which paths or repositories), attaches a short-lived, least-privilege credential, and logs the call. Network egress is forced through the broker, so there is no other way out.Sign in
Advanced
Agent Economics: Prefill, Caching and RoutingFrom the agent builder's side, a run's cost and latency come from four places: input processing (the whole context is read every turn, so it grows with the square of the turn count), output generation (slower per token but usually far fewer tokens), tool time and output generation (which together usually dominate wall-clock), and orchestration overhead. The levers follow: shrink what is resent (clearing, trimming tool results), cache stable prefixes, route routine steps to smaller or faster models, run independent tool calls in parallel, and cap turns. Measuring per step, from traces, shows which lever matters for a given agent.🔒 Premium
Advanced
Workspaces, Snapshots and Cold StartsStarting an agent session that runs code involves booting an isolated environment, fetching the workspace (a repository, data files), installing dependencies and warming caches, which together can take far longer than the first model call. The runtime hides this with layered images that bake in common toolchains, snapshots that restore a prepared environment instead of rebuilding it, warm pools sized from the arrival rate and preparation time, and persistent workspaces that carry files between sessions while secrets and credentials are excluded and re-issued each time.🔒 Premium
Advanced
Backpressure and Fleet BehaviourAgents fail as a fleet. When a downstream service struggles, every running agent retries, and agents add a second amplifier ordinary clients lack: the model reacts to errors by trying alternative calls, which multiplies load further. Fleet-level controls prevent this: retry budgets that cap retries as a fraction of normal traffic, exponential backoff with jitter, circuit breakers whose state is shared across workers, concurrency limits per dependency, admission control and queues with priorities, honouring rate-limit signals, and observations that tell the model a dependency is unavailable so it stops improvising.🔒 Premium
FROM THE BLOG
Unlock all 16 answers · $25
All 19 topics with every worked answer, all lessons and courses, the full practice bank, and anything new that appears during your access.
6 months · One payment · No auto-renewal