Flashcardsfor IT Certifications

D1: Agent Patterns: Tool Loops, Memory & Context

Claude Certified Developer – Foundations exam practice questions · 10 flashcards

Question
What is the tool-use loop pattern?
1 / 10

Tip: Space flips the card, ← / → navigate.

Last updated: · Report an error on this page

Show all 10 Agent Patterns: Tool Loops, Memory & Context practice questions and answers
  1. What is the tool-use loop pattern?
    Claude reasons, calls a tool, observes the result, and repeats until the goal is reached.
  2. Why should agents get feedback from the environment each step?
    Ground truth (tool results, test output) lets the agent check progress and correct itself.
  3. Short-term vs long-term agent memory?
    Short-term: the current context window. Long-term: information persisted outside it (files, databases, memory tool) and retrieved when needed.
  4. What is the memory tool pattern?
    Claude reads and writes files in a memory directory to keep knowledge across sessions without holding it all in context.
  5. Why does context-window management matter for agents?
    Long runs accumulate tool output; without management, context fills up and quality drops.
  6. How do agents manage long contexts?
    Compaction (summarizing history), pruning old tool results, and offloading work to subagents.
  7. What is a checkpoint in a long agent task?
    A saved state (e.g. progress notes, git commit) the agent can resume from after context resets.
  8. Why give agents a clear stopping condition?
    Without one, agents may stop too early or loop indefinitely.
  9. How can an agent verify its own work?
    Run tests, linters or validation tools, or use an evaluator step.
  10. What is human-in-the-loop in agent patterns?
    Pausing for human approval before high-impact actions.