Flashcardsfor IT Certifications

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.

Last updated: · Report an error on this page

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