Agent Reliability interview question

Agentic AIAgent ReliabilityHuman-in-the-Loopbasic

Why do long-running agents checkpoint (persist) their state after each step?

  1. ASo the model's weights are updated after each step, letting the agent learn permanently from every run it completes.
  2. BSo every step gives the same output when rerun, because a saved state makes the language model fully deterministic.
  3. CSo a run can resume from the last saved step after a crash or a pause for human approval, instead of starting over.
  4. DSo the context window grows to hold all saved states, removing any need to summarise or trim a long conversation.
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.

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More Agentic AI questions

  1. During an outage, a retailer's inventory API answers every request with HTTP 503. The shopping assistant reaches it through the three layers below; assume the…
  2. After one chat, a grocery-delivery assistant's memory extractor proposed the candidate long-term memories below. Which write policy keeps later recall precise?
  3. Trace mining of 50,000 runs of a telecom billing-support agent gives the tool paths below. The team will hard-code the three most frequent paths as…
  4. What control flow does this LangGraph graph implement?
  5. A retail client wants to benchmark a customer-service agent that must follow a written returns policy, call order-management APIs and handle multi-turn…