Subagent Invocation & Context Passing
Claude Certified Architect – Foundations (CCAR-F) exam practice questions · 10 flashcards
Question
Which tool spawns subagents in the Agent SDK?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Subagent Invocation & Context Passing practice questions and answers
- Which tool spawns subagents in the Agent SDK?The Task tool.
- What must the coordinator's allowedTools include to spawn subagents?"Task".
- Do subagents inherit the coordinator's conversation history?No. They only see what is explicitly passed in their prompt.
- How should context be passed to a subagent?Include all needed findings directly in its prompt, e.g. prior results with source metadata.
- Why use structured formats when passing context?They keep content separate from metadata (URLs, dates, page numbers) so attribution survives.
- What is an AgentDefinition?Config for a subagent type: description, system prompt and tool restrictions.
- How do you run subagents in parallel?Have the coordinator emit multiple Task tool calls in a single response.
- Parallel vs sequential subagents?Parallel for independent subtasks (faster); sequential when one depends on another's output.
- What should a coordinator prompt to a subagent specify?Goals and quality criteria rather than rigid step-by-step procedures.
- What is fork-based session management for?Branching from a shared baseline to explore divergent approaches independently.