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.
Show all 10 Agent Patterns: Tool Loops, Memory & Context practice questions and answers
- What is the tool-use loop pattern?Claude reasons, calls a tool, observes the result, and repeats until the goal is reached.
- Why should agents get feedback from the environment each step?Ground truth (tool results, test output) lets the agent check progress and correct itself.
- 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.
- 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.
- Why does context-window management matter for agents?Long runs accumulate tool output; without management, context fills up and quality drops.
- How do agents manage long contexts?Compaction (summarizing history), pruning old tool results, and offloading work to subagents.
- 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.
- Why give agents a clear stopping condition?Without one, agents may stop too early or loop indefinitely.
- How can an agent verify its own work?Run tests, linters or validation tools, or use an evaluator step.
- What is human-in-the-loop in agent patterns?Pausing for human approval before high-impact actions.