Why do long-running agents checkpoint (persist) their state after each step?
Show the answer and explanation
Correct answer: C, So a run can resume from the last saved step after a crash or a pause for human approval, instead of starting over.
Explanation Agent Reliability
A checkpoint is a snapshot of the agent's state (messages so far, intermediate results, which step comes next) written to durable storage, usually keyed by a run or thread ID. If the worker crashes, or the run pauses for hours while a human reviews an action, the runtime reloads the latest checkpoint and continues from there instead of repeating the whole run.
Why the other ideas are wrong:
- Checkpoints store application state, not model weights; nothing is trained.
- Saving state does not make the LLM deterministic; a rerun step can still produce different text.
- The context window is a fixed model limit; persisting state outside the model does not enlarge it.
A step that was running when the crash happened may execute again after resume, which is one reason side-effecting tools should be idempotent.
Interview tip: mention that production checkpoints belong in a durable shared store (a database), not in process memory, so any replica can resume the run.