You're designing a system where multiple specialised Claude agents work in parallel on independent subtasks, then a final agent synthesises their outputs. What is this pattern called?
Q2D1: Agentic Architecture
An agentic workflow is processing 50,000 document summaries overnight. Latency is not a concern. Which API feature gives the biggest cost saving?
Q3D1: Agentic Architecture
An agent loop calls a web-search tool and then re-plans based on the results. After 3 failed attempts to find relevant results, what is the correct design response?
Q4D1: Agentic Architecture
Which of the following Claude models is the best choice for a high-volume classification subtask inside an agentic pipeline where speed and cost matter most?
Q5D1: Agentic Architecture
In an orchestrator–subagent design, a subagent is spawned to handle a long document analysis task. What is true about the subagent's context?
Q6D1: Agentic Architecture
You need to build a self-improving code generator where one agent writes code and another agent critiques and scores it, repeating until the score exceeds a threshold. Which pattern is this?
Q7D1: Agentic Architecture
Why should irreversible actions (like sending an email or deleting a database record) require human confirmation inside an agentic workflow?
Q8D1: Agentic Architecture
What distinguishes a 'retryable' error from a 'fatal' error in agentic error handling?
Q9D1: Agentic Architecture
An agent processes user queries using Claude's tool_use feature. You notice it sometimes calls the same tool multiple times with identical inputs in a single turn. What is the most likely cause?
Q10D1: Agentic Architecture
Which stop_reason indicates that a Claude response ended because the model wants to call a tool?
Q11D1: Agentic Architecture
What is the primary architectural advantage of the Batch API over synchronous API calls for agentic pipelines?
Q12D2: Claude Code
A team of 20 engineers uses Claude Code on a monorepo. Where should project-wide coding standards and architecture decisions be documented so Claude Code applies them automatically?
Q13D2: Claude Code
A PreToolUse hook needs to block Claude from calling a specific shell command. What exit code must the hook script return to block execution?
Q14D2: Claude Code
Which hook fires AFTER a tool has been called and completed, and cannot block execution?
Q15D2: Claude Code
What is a Claude Code 'Skill' and how is it invoked?
Q16D2: Claude Code
You want Claude Code to automatically run a linter on every file it edits. Which hook event is the right trigger?
Q17D2: Claude Code
A subagent is spawned by the main Claude Code session to analyse a large codebase. What information does the subagent automatically have access to?
Q18D2: Claude Code
Which CLAUDE.md file location applies globally across ALL projects on a developer's machine?
Q19D2: Claude Code
The PreCompact hook fires before context compaction. What is the primary use case for this hook?
Q20D3: Prompt Engineering
You need Claude to always respond with valid JSON matching a specific schema. What is the most reliable technique?
Q21D3: Prompt Engineering
What is 'prefilling' the assistant turn and when should you use it?
Q22D3: Prompt Engineering
Why should untrusted user content be wrapped in XML tags (e.g. <user_input>) rather than concatenated directly into the system prompt?
Q23D3: Prompt Engineering
You want Claude to reason carefully through a complex maths problem before giving an answer. Which technique most directly improves accuracy?
Q24D3: Prompt Engineering
What is the difference between the system prompt and the user message in terms of reliability guarantees?
Q25D3: Prompt Engineering
You are designing a prompt that injects a 10,000-token knowledge base into the system prompt on every request. Which optimisation should you apply first?
Q26D3: Prompt Engineering
Extended thinking is enabled for a request. How are thinking tokens handled in terms of cost and visibility?
Q27D3: Prompt Engineering
A few-shot prompt provides 3 input-output examples before the actual query. What is the primary benefit of few-shot prompting over zero-shot?
Q28D4: MCP & Tool Design
What are the three core primitives of the Model Context Protocol (MCP)?
Q29D4: MCP & Tool Design
You need to connect Claude to a remote MCP server hosted on a company's cloud. Which transport mechanism is appropriate?
Q30D4: MCP & Tool Design
An MCP server needs to make an LLM call to generate a response, but it doesn't have its own Anthropic API key. What MCP feature enables this?
Q31D4: MCP & Tool Design
What makes a 'good' tool description in a tool schema, compared to a poor one?
Q32D4: MCP & Tool Design
You are building an MCP tool that deletes files. What security principle must you apply?
Q33D4: MCP & Tool Design
Which tool_choice value forces Claude to call a specific named tool, regardless of whether it thinks it needs to?
Q34D4: MCP & Tool Design
In the tool-use response cycle, what must you include in the next API request after Claude returns a tool_use block?
Q35D5: Context Management
Your RAG pipeline chunks documents into 2,048-token segments with no overlap. Users report that answers about topics that span two chunks are often incomplete. What change fixes this?
Q36D5: Context Management
A user's conversation has grown to 180,000 tokens in a 200k-context model. You still need to add a 5,000-token retrieved document. What should you do?
Q37D5: Context Management
You are designing prompt caching for a RAG application. The system prompt is 3,000 tokens and changes every request; the retrieved documents are 5,000 tokens and vary per query. Where should you place the cache_control breakpoint?
Q38D5: Context Management
When injecting retrieved documents into a prompt, what is the recommended approach for structuring the context to help Claude use it accurately?
Q39D5: Context Management
What is the correct formula to ensure you don't exceed a model's context window when sending a request?
Q40D5: Context Management
Across a long multi-turn conversation, which summarisation strategy best preserves important early context without consuming the full context window?