Claude Agent SDK Building Blocks
Claude Certified Architect – Foundations (CCAR-F) exam practice questions · 10 flashcards
Question
What does the Claude Agent SDK provide?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Claude Agent SDK Building Blocks practice questions and answers
- What does the Claude Agent SDK provide?Claude Code's agent harness as a library: the loop, tools, permissions, hooks, subagents, MCP and sessions.
- How are subagent types defined in the SDK?With AgentDefinition configs (description, system prompt, allowed tools).
- Why restrict each subagent's tools?Least privilege and better tool selection.
- How does the SDK add custom tools?Through MCP servers, including in-process SDK MCP servers.
- What does allowedTools control?Which tools the agent may use without needing extra permission.
- How are hooks registered in the SDK?As callbacks for events like PreToolUse and PostToolUse in the agent options.
- How does the SDK handle long contexts?Automatic compaction when context grows large.
- What are the core built-in tools?Read, Write, Edit, Bash, Grep and Glob (plus web tools).
- Why build on the SDK instead of a hand-rolled loop?It already implements loop control, tool execution, permissions and context management.
- Where should SDK agents that execute commands run?In sandboxed environments with limited permissions.