Summer Sale - Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70dumps

CCAR-F Questions and Answers

Question # 6

You are building a structured data extraction system using Claude. The system extracts information from unstructured documents, validates the output using JavaScript Object Notation (JSON) schemas, and maintains high accuracy. It must handle edge cases gracefully and integrate with downstream systems.

Your pipeline uses a tool called extract_metadata with a JSON schema for paper details. You’ve also defined lookup_citations and verify_doi tools for enrichment. During testing, you notice that when users include requests like “extract the metadata and tell me how cited it is,” Claude sometimes calls lookup_citations first, which fails because it needs the DOI that extract_metadata would provide.

What’s the most effective way to ensure structured metadata extraction happens first?

A.

Set tool_choice to { " type " : " tool " , " name " : " extract_metadata " } and process the enrichment requests in subsequent turns after receiving the extracted metadata.

B.

Set tool_choice to " auto " and reorder the tool definitions so extract_metadata appears first in the tools array, since Claude prioritizes earlier-listed tools.

C.

Set tool_choice to { " type " : " tool " , " name " : " extract_metadata " } for every API call in the pipeline, ensuring Claude always extracts metadata before any enrichment can occur.

D.

Set tool_choice to " any " so Claude must use a tool, combined with system prompt instructions prioritizing extract_metadata .

Full Access
Question # 7

You are building developer productivity tools using the Claude Agent SDK. The agent helps engineers explore unfamiliar codebases, understand legacy systems, generate boilerplate code, and automate repetitive tasks. It uses the built-in tools (Read, Write, Bash, Grep, Glob) and integrates with Model Context Protocol (MCP) servers.

An engineer submits two requests:

    Request A: “Rename the getUserData function to fetchUserProfile everywhere it’s used.”

    Request B: “Improve error handling throughout the data processing module—add try/catch blocks, meaningful error messages, and ensure failures don’t silently corrupt data.”

For which request does specifying an explicit multi-phase workflow (such as analyze → propose → implement with review) most improve outcome quality?

A.

Neither request benefits significantly

B.

Request A, the function rename task

C.

Both requests benefit equally

D.

Request B, the error handling task

Full Access
Question # 8

Your pipeline runs:

PROMPT= " You are a code reviewer. "

PROMPT= " $PROMPT Analyze the provided diff "

PROMPT= " $PROMPT for bugs, security issues, "

PROMPT= " $PROMPT and style violations. "

claude -p \

--dangerously-skip-permissions \

--system-prompt " $PROMPT " < diff.txt

The reviews complete and return feedback, but Claude comments only on the piped diff—it never reads surrounding files in the checked-out repository to understand broader context, even when the diff modifies a function called by many other modules. Which change to the invocation will cause Claude to read related repository files while still applying your custom review instructions?

A.

Keep --system-prompt and add --allowedTools " Read, Glob, Grep " because non-interactive -p mode otherwise disables filesystem tools.

B.

Replace --system-prompt with --append-system-prompt so the review instructions are added to Claude Code’s default prompt instead of overwriting its built-in file-reading and code-navigation guidance.

C.

Remove --system-prompt entirely and place the review instructions in a root-level CLAUDE.md because --system-prompt is incompatible with tool use under -p.

D.

Stop piping the diff through standard input and embed it in the prompt string so Claude Code treats the invocation as an agentic session rather than a stream-processing operation.

Full Access
Question # 9

You are integrating Claude Code into your Continuous Integration/Continuous Deployment (CI/CD) pipeline. The system runs automated code reviews, generates test cases, and provides feedback on pull requests. You need to design prompts that provide actionable feedback and minimize false positives.

Your pipeline runs:

PROMPT= ' You are a code reviewer. Analyze the provided diff for bugs, security issues, and style violations. '

claude -p \

--dangerously-skip-permissions \

--system-prompt " $PROMPT " \

< diff.txt

The reviews complete and return feedback, but Claude only comments on the piped diff text—it never reads surrounding files in the checked-out repository to understand broader context, even when the diff modifies a function called by many other modules.

Which change to the invocation will cause Claude to inspect related repository files while still applying your custom review instructions?

A.

Remove --system-prompt entirely and place the review instructions in a CLAUDE.md file, because --system-prompt is incompatible with tool use under -p.

B.

Keep --system-prompt and add --allowedTools " Read,Glob,Grep " , because non-interactive -p mode otherwise disables filesystem tools.

C.

Stop piping the diff through standard input and embed it inside the prompt, so Claude Code treats the invocation as an agentic session.

D.

Replace --system-prompt with --append-system-prompt and explicitly instruct Claude to inspect related repository files whenever broader context is needed.

Full Access
Question # 10

You are building a customer support resolution agent using the Claude Agent SDK. The agent handles high-ambiguity requests like returns, billing disputes, and account issues. It has access to your backend systems through custom Model Context Protocol (MCP) tools (get_customer, lookup_order, process_refund, escalate_to_human). Your target is 80%+ first-contact resolution while knowing when to escalate.

Production logs show that when the agent handles complex billing disputes requiring 6+ tool calls, it sometimes exhausts its max_turns limit after gathering data but before completing resolution or escalating. The team’s goal is to guarantee that every customer interaction ends with either a completed resolution or a human handoff, regardless of how the agent loop terminates.

Which approach achieves this guarantee?

A.

Implement a pre-tool-use hook that counts tool invocations and terminates the loop with an automatic escalation once the agent reaches 80% of its max_turns limit.

B.

Split the workflow into two sequential agent invocations—a first agent gathers information via get_customer and lookup_order, then a second agent receives that data and handles process_refund or escalate_to_human, each with separate turn budgets.

C.

Add orchestration-layer code that checks the agent’s outcome after each loop termination—if the loop ended without a completed resolution or escalation, programmatically call escalate_to_human with the accumulated conversation context and tool results.

D.

Add system prompt instructions telling the agent to call escalate_to_human with a summary of its findings whenever it determines it cannot complete resolution within its remaining actions.

Full Access
Question # 11

After deploying the automated review, you notice high precision but low recall—real bugs are slipping through undetected. Investigation reveals that your review prompt instructs Claude to “only report high-confidence issues you are certain about” and “err on the side of not commenting.” Developers appreciate the low noise, but a race condition that caused a production outage was visible in a reviewed pull request and went unreported. You need to substantially improve bug detection while keeping false-positive rates manageable. What is the most effective approach?

A.

Add detailed few-shot examples demonstrating bug categories Claude should flag—race conditions, null dereferences, and error-handling gaps—while retaining the high-confidence filtering instruction.

B.

Remove the conservative instructions and have Claude report every potential issue, then apply a programmatic filter that deduplicates findings and suppresses historically noisy categories.

C.

Split the review into a finding stage whose objective is comprehensive coverage—reporting every potential issue with confidence and severity metadata—and a separate stage that verifies and thresholds those findings.

D.

Expand the context to include related tests, recent Git history, and the module’s dependency graph so Claude has richer evidence for judging severity.

Full Access
Question # 12

You are building developer-productivity tools using the Claude Agent SDK. The agent helps engineers explore unfamiliar codebases, understand legacy systems, generate boilerplate code, and automate repetitive tasks. It uses the built-in tools—Read, Write, Bash, Grep, and Glob—and integrates with Model Context Protocol (MCP) servers.

An engineer asks the agent to find every file in a monorepo that imports the @company/auth package to understand how authentication is used across services.

Which built-in tool is most appropriate for this task?

A.

Read, beginning with package.json files to trace dependency declarations.

B.

Glob, to find files containing auth in their filename or path.

C.

Grep, to search file contents for the import-statement pattern.

D.

Bash, to execute find . -type d -name " *auth* " and explore matching directories.

Full Access
Question # 13

You are building a customer support resolution agent using the Claude Agent SDK. The agent handles high-ambiguity requests like returns, billing disputes, and account issues. It has access to your backend systems through custom Model Context Protocol (MCP) tools ( get_customer , lookup_order , process_refund , escalate_to_human ). Your target is 80%+ first-contact resolution while knowing when to escalate.

During testing, you find that when a customer says “I need a refund for my recent purchase,” the agent calls process_refund immediately—but populates the required order_id parameter with a plausible-looking but fabricated value instead of first calling lookup_order to retrieve the actual order ID. The refund call fails because the fabricated ID doesn’t exist.

Which change directly addresses the root cause of the agent fabricating the order_id value?

A.

Update the process_refund tool description to explicitly state that order_id must be obtained from a prior lookup_order call and must never be assumed or invented.

B.

Switch tool_choice from " auto " to " any " to force the agent to make a tool call on every turn.

C.

Add server-side validation that checks whether the order_id exists in your database before executing the refund, returning an error to the agent if not found.

D.

Pre-parse incoming customer messages to extract any order IDs mentioned, and inject them into the conversation context before passing to Claude.

Full Access
Question # 14

Your automated review calls the Claude API for each pull request, using tool_use with a report_findings tool that returns a JSON array of finding objects. Each object contains file_path, line_number, severity, category, and description. During testing on a large pull request touching more than 30 files, the response reaches the max_tokens limit and is truncated in the middle of the JSON, causing your pipeline’s parser to fail. What is the most effective way to handle this?

A.

Split the review into multiple API calls that each analyze a subset of the changed files, and then merge the resulting findings arrays.

B.

Increase max_tokens to the model’s maximum and instruct Claude to keep each finding description under 50 words.

C.

Switch from tool_use to prompting Claude to return findings as a Markdown list.

D.

Add retry logic that detects truncated JSON and resends the request with instructions to report only critical- and high-severity findings.

Full Access
Question # 15

A customer sends: “This is frustrating. I’ve explained my issue twice and nothing is being resolved. I want to talk to a real person NOW.” The agent has not yet called any tools to investigate the customer’s account. What should the agent do?

A.

Briefly explain what the agent can help with and offer to resolve the issue quickly, escalating only if the customer repeats the request.

B.

First call get_customer and lookup_order to gather account context, and then escalate to a human agent.

C.

Immediately call escalate_to_human with the conversation history.

D.

Acknowledge the frustration and ask one targeted question to understand the specific issue before escalating.

Full Access
Question # 16

You are building a multi-agent research system using the Claude Agent SDK. A coordinator agent delegates to specialized subagents: one searches the web, one analyzes documents, one synthesizes findings, and one generates reports. The system researches topics and produces comprehensive, cited reports.

Production monitoring shows that the research phase takes longer than expected. Analysis reveals that the coordinator invokes the web-search subagent, waits for its response, and then invokes the document-analysis subagent. These tasks are independent; neither requires the other’s output.

How should you modify the system to run these subagents concurrently?

A.

Switch both subagents to a Haiku-tier model instead of Sonnet to reduce their individual execution times.

B.

Structure the coordinator to emit both Agent tool calls—formerly Task tool calls—in a single response rather than across separate conversation turns.

C.

Add instructions explaining the performance benefits of parallel execution and requesting that the coordinator invoke both subagents simultaneously.

D.

Create an asynchronous orchestration layer that starts separate coordinator-subagent pairs in parallel and aggregates their results.

Full Access
Question # 17

In production, final reports frequently contain claims without proper source attribution. Investigation shows that the web-search and document-analysis agents correctly attach citations to their outputs, but the synthesis agent loses track of which sources support which conclusions when combining findings. What is the most effective architectural change?

A.

Add a verification step in which the report generator uses semantic-similarity matching against the original sources to reconstruct claim provenance.

B.

Have the coordinator insert source-identifier prefixes into prose before every handoff and parse those prefixes during report generation.

C.

Require every subagent to return structured claim-to-source mappings that the synthesis agent must preserve and merge when combining findings.

D.

Retain complete transcripts of every subagent interaction and add a citation-resolution agent that analyzes those logs before report generation.

Full Access
Question # 18

Your multi-agent research pipeline crashed after processing 12 of 28 documents. The web-search agent had identified relevant sources, the document analyzer had partially completed extraction, and the synthesizer had begun identifying patterns. You need to resume processing without repeating work or losing fidelity in the prior findings. What state-management approach best balances information fidelity with context efficiency when restoring agent state?

A.

Have each agent persist a structured export to a known location. On resumption, the coordinator loads the manifest and injects relevant state into agent prompts.

B.

Have each agent maintain its own persistent state file and reload it independently at the beginning of each session.

C.

Persist the coordinator’s conversation log containing all task delegations and responses, and provide this log to the agents when resuming.

D.

Index all agent outputs in a shared vector store. When resuming, have each agent query the store using semantic search to retrieve relevant prior findings.

Full Access
Question # 19

You are building a customer support resolution agent using the Claude Agent SDK. The agent handles high-ambiguity requests like returns, billing disputes, and account issues. It has access to your backend systems through custom Model Context Protocol (MCP) tools ( get_customer , lookup_order , process_refund , escalate_to_human ). Your target is 80%+ first-contact resolution while knowing when to escalate.

A customer raises three separate issues during one session: a refund inquiry (turns 1–15), a subscription question (turns 16–30), and a payment method update (turns 31–45). At turn 48, the customer asks “What happened with my refund?” The conversation is approaching context limits.

What strategy best maintains the agent’s ability to address all issues throughout the session?

A.

Summarize earlier turns into a narrative description, preserving full message history only for the active issue.

B.

Implement sliding window context that retains the most recent 30 turns.

C.

Rely on MCP tools to re-fetch relevant information on demand when the customer references earlier issues.

D.

Extract and persist structured issue data (order IDs, amounts, statuses) into a separate context layer.

Full Access
Question # 20

You are using Claude Code to accelerate software development. Your team uses it for code generation, refactoring, debugging, and documentation. You need to integrate it into your development workflow with custom slash commands, CLAUDE.md configurations, and understand when to use plan mode vs direct execution.

Your team is configuring MCP servers in Claude Code. You want to add a shared venue lookup server that all team members should have access to, and you personally want to add an experimental music playlist server that only you are testing.

Which configuration approach correctly applies MCP server scopes?

A.

Add both servers to your local ~/.claude.json .

B.

Add the venue server to .mcp.json and the playlist server to ~/.claude.json .

C.

Add the venue server to ~/.claude.json and the playlist server to .mcp.json .

D.

Add both servers to the project-level .mcp.json file.

Full Access
Question # 21

You are building developer-productivity tools using the Claude Agent SDK. The agent helps engineers explore unfamiliar codebases, understand legacy systems, generate boilerplate code, and automate repetitive tasks. It uses the built-in tools—Read, Write, Bash, Grep, and Glob—and integrates with Model Context Protocol (MCP) servers.

After adding an MCP server with specialized code-refactoring tools—extract_function, rename_variable, and inline_function—you notice that the agent still uses basic text manipulation through Write and Bash sed commands for refactoring tasks. The MCP server is connected and healthy. Examining the configuration, you find that each MCP tool has a minimal description such as, “extract_function: Extracts a function from code.”

What is the most effective way to improve adoption of the MCP refactoring tools?

A.

Implement a request classifier that detects refactoring intent and automatically routes those requests to the MCP server before the agent processes them.

B.

Accept this as expected behavior because simpler tools such as sed are more predictable than specialized refactoring tools.

C.

Enhance the MCP tool descriptions to explain when each tool is preferable to text manipulation and clarify expected inputs and outputs.

D.

Remove the Write tool from the agent’s configuration for refactoring sessions so it must use the MCP tools for code modifications.

Full Access
Question # 22

You are using Claude Code to accelerate software development. Your team uses it for code generation, refactoring, debugging, and documentation. You need to integrate it into your development workflow with custom slash commands, CLAUDE.md configurations, and understand when to use plan mode vs direct execution.

You’ve asked Claude to write a data migration script, but the initial output doesn’t correctly handle records with null values in required fields.

What’s the most effective way to iterate toward a working solution?

A.

Add “think harder about edge cases” to your prompt and request a complete rewrite of the migration logic.

B.

Manually edit the generated code to fix the null handling, then continue working with Claude on other parts.

C.

Describe the null value problem in detail and ask Claude to regenerate the entire script with improved edge case handling.

D.

Provide a test case with example input containing null values and the expected output, then ask Claude to fix it.

Full Access
Question # 23

Your pipeline reviews approximately 200 database-migration scripts daily using the Message Batches API. Each request includes a shared 8,000-token system prompt containing migration-review guidelines and schema documentation, followed by an individual migration script. You added cache_control breakpoints to the shared system prompt in every request, but monitoring shows cache-hit rates of only 32%, with misses concentrated among requests processed later in the batch window. Which change addresses the root cause without adding sequential-processing latency?

A.

Split the 200 requests into ten sequential batches of 20, submitting each batch only after the previous batch completes.

B.

Add cache-prewarming requests with max_tokens: 0 at the beginning of every batch.

C.

Move the cache_control breakpoint from the shared system prompt to each migration script so similar code patterns can be reused.

D.

Configure the cache breakpoints to use the extended one-hour TTL instead of the default five-minute TTL.

Full Access
Question # 24

You are building a customer support resolution agent using the Claude Agent SDK. The agent handles high-ambiguity requests like returns, billing disputes, and account issues. It has access to your backend systems through custom Model Context Protocol (MCP) tools ( get_customer , lookup_order , process_refund , escalate_to_human ). Your target is 80%+ first-contact resolution while knowing when to escalate.

Production logs reveal inconsistent error handling: when lookup_order fails, the agent sometimes retries 5+ times (wasteful when the order ID doesn’t exist), sometimes escalates immediately (premature for temporary network issues), and sometimes asks users for clarification (inappropriate when the issue is a backend permission error). Investigation shows your MCP tool returns uniform error responses: { " isError " : true, " content " : [{ " type " : " text " , " text " : " Operation failed " }]} . The agent cannot distinguish between error types.

What’s the most effective improvement?

A.

Enhance error responses with structured metadata—include error_category (transient/validation/permission), isRetryable boolean, and a description of what caused the failure.

B.

Implement retry logic with exponential backoff in your MCP server for all errors, returning to the agent only after retries are exhausted.

C.

Create an analyze_error MCP tool the agent calls after any failure to determine the error category and recommended action.

D.

Add few-shot examples to the system prompt demonstrating how to interpret error message patterns and select appropriate responses for each.

Full Access
Question # 25

You are building developer productivity tools using the Claude Agent SDK. The agent helps engineers explore unfamiliar codebases, understand legacy systems, generate boilerplate code, and automate repetitive tasks. It uses the built-in tools (Read, Write, Bash, Grep, Glob) and integrates with Model Context Protocol (MCP) servers.

Your agent has spent 25 minutes exploring a game engine’s rendering subsystem—reading shader code, buffer management, and frame synchronization logic. An engineer now asks it to understand how the physics engine integrates with rendering for collision debug overlays. You notice recent responses reference “typical rendering patterns” rather than the specific VulkanPipeline and FrameGraph classes it discovered earlier.

What’s the most effective approach?

A.

Spawn a sub-agent to explore physics independently, then manually synthesize its findings with the rendering knowledge accumulated in the main conversation.

B.

Use /clear to reset context completely, then start fresh with physics exploration using file paths from the project’s CLAUDE.md.

C.

Summarize key rendering findings, then spawn a sub-agent for physics exploration with that summary in its initial context.

D.

Continue in the current context with more targeted prompts referencing the specific classes by name.

Full Access
Question # 26

A developer uses Claude Code to refactor a function during a development session. Before committing, the developer asks the same Claude session to review the code for issues. Later, a separate automated CI review catches several bugs that the same-session review missed. What best explains this discrepancy?

A.

Claude retains context about its prior reasoning in the session, making it less likely to question its own decisions.

B.

The CI review uses a more specific prompt tailored to catching bugs, while the developer’s request was too general.

C.

The CI environment has access to the complete codebase, while the local session can see only the current file.

D.

The extended session caused the context window to fill with conversation history, leaving insufficient capacity for thorough analysis.

Full Access
Question # 27

You are building a multi-agent research system using the Claude Agent SDK. A coordinator agent delegates to specialized subagents: one searches the web, one analyzes documents, one synthesizes findings, and one generates reports. The system researches topics and produces comprehensive, cited reports.

The synthesis agent completes its initial pass but flags that three key research questions remain unanswered because the web-search and document-analysis agents did not find relevant information on those specific subtopics. The coordinator currently proceeds directly to report generation, producing reports with incomplete coverage.

What change would most effectively improve research completeness?

A.

Increase the initial breadth of queries sent to web search and document analysis to reduce the probability of missing relevant information.

B.

Have the coordinator evaluate the synthesis output for gaps, then re-delegate to web search and document analysis with targeted queries before invoking synthesis again.

C.

Have the report-generation agent note which research questions could not be answered, so users understand the limitations of the final output.

D.

Give the synthesis agent direct access to web-search tools so it can autonomously fill knowledge gaps without returning control to the coordinator.

Full Access
Question # 28

You are building a multi-agent research system using the Claude Agent SDK. A coordinator agent delegates to specialized subagents: one searches the web, one analyzes documents, one synthesizes findings, and one generates reports. The system researches topics and produces comprehensive, cited reports.

In production, you observe that simple fact-checking queries, such as “In what year was the Paris Climate Agreement signed?”, traverse all four subagents sequentially, consuming more than 40 seconds and significant tokens per query. Complex comparative research benefits from the complete pipeline. Your query distribution is diverse and continues to evolve as users discover new applications.

What is the most effective approach to optimize for varying query complexity?

A.

Create a fast path for factual questions that bypasses subagents entirely, routing every other query through the complete pipeline.

B.

Train a query-complexity classifier using labeled historical data to predict the optimal subagent combination, retraining it periodically.

C.

Implement pattern-based routing that classifies queries as single-fact, comparative, or analytical and maps each category to a predefined subagent combination.

D.

Have the coordinator analyze each query and dynamically determine which subagents are required.

Full Access
Question # 29

You are building a multi-agent research system using the Claude Agent SDK. A coordinator agent delegates to specialized subagents: one searches the web, one analyzes documents, one synthesizes findings, and one generates reports. The system researches topics and produces comprehensive, cited reports.

The coordinator agent has AgentDefinition objects configured for all four specialized subagents, each with appropriate descriptions, prompts, and tool restrictions. During testing, you notice that the coordinator correctly reasons about when to delegate—it generates messages such as, “I’ll ask the web-search agent to find sources on this topic”—but no subagent execution ever occurs. The coordinator then proceeds as if the delegation happened and continues with incomplete information. Logs show no errors.

What is the most likely cause?

A.

The AgentDefinition objects are configured correctly, but the coordinator’s system prompt does not explicitly list the available subagent types, preventing the model from knowing that they can be invoked.

B.

Subagent context isolation means task descriptions from the coordinator do not automatically reach subagents; you must configure explicit context forwarding in ClaudeAgentOptions.

C.

The coordinator’s allowedTools configuration does not include Agent—formerly named Task—so it cannot invoke the tool required to spawn subagents.

D.

The coordinator’s max_tokens setting is too low, causing the subagent tool invocation to be truncated before the subagent type can be specified.

Full Access
Question # 30

Your automated code review is missing genuine bugs in pull requests. Investigation reveals that the review prompt includes this instruction: “Only flag critical issues that would definitely cause production failures. Ignore minor concerns and anything you are uncertain about.” Developers confirm that some missed findings are genuine logic errors that the model investigated but chose not to report. The team requires the review output to remain structured, with every finding tagged with metadata, and actionable. Which prompt change both removes the cause of the suppressed findings and preserves structured, tagged output for downstream filtering?

A.

Enable extended thinking and instruct the model to reason step by step about every code change before producing its review.

B.

Instruct the model to report all findings with confidence and severity tags, deferring filtering to a downstream step.

C.

Remove all severity-related instructions and allow the model to use its default judgment about which findings to report.

D.

Add a second review pass that rereads the diff using the same prompt and looks for anything the first pass may have missed.

Full Access
Question # 31

Production monitoring shows that follow-up queries such as “summarize what we learned about market trends” consistently take more than 40 seconds. Investigation reveals that the coordinator spawns the synthesis subagent for every summarization request, passing more than 80,000 tokens of accumulated findings. The coordinator already has these findings in its context from orchestrating the research. What is the most effective way to improve response time for these follow-up summaries?

A.

Pregenerate and cache summaries at multiple levels of detail whenever new findings accumulate.

B.

Enable prompt caching for the synthesis subagent to reduce the overhead of repeatedly transferring the same research findings.

C.

Have the coordinator answer straightforward summarization requests directly from its existing context, reserving subagent invocation for complex analysis.

D.

Spawn the synthesis subagent with reduced context and allow it to request specific findings from the coordinator on demand.

Full Access
Question # 32

You are building a customer support resolution agent using the Claude Agent SDK. The agent handles high-ambiguity requests like returns, billing disputes, and account issues. It has access to your backend systems through custom Model Context Protocol (MCP) tools ( get_customer , lookup_order , process_refund , escalate_to_human ). Your target is 80%+ first-contact resolution while knowing when to escalate.

When the agent calls lookup_order and receives order details showing the item was purchased 45 days ago, how does the agentic loop determine whether to call process_refund or escalate_to_human next?

A.

The order details are added to the conversation and the model reasons about which action to take.

B.

The orchestration layer automatically routes to the next tool based on the order’s status field.

C.

The agent follows a pre-configured decision tree mapping order attributes to specific tool calls.

D.

The agent executes the remaining steps in a tool sequence planned at the start of the request.

Full Access
Question # 33

You are integrating Claude Code into your Continuous Integration/Continuous Deployment (CI/CD) pipeline. The system runs automated code reviews, generates test cases, and provides feedback on pull requests. You need to design prompts that provide actionable feedback and minimize false positives.

The automated review consistently flags patterns your team uses intentionally—force-unwrapping optionals in test files, using large coordinator classes that follow your established architecture, and importing internally maintained modules marked as deprecated in the public SDK. Developers dismiss approximately 30% of all findings as project-specific false positives.

Which approach prevents the model from generating these findings in the first place by supplying the project’s conventions as persistent context during every review?

A.

Document the team’s accepted patterns and intentional conventions in the project’s CLAUDE.md file so the model receives this context during every review.

B.

Configure the review to analyze only the changed lines in the diff without the surrounding file context, reducing the amount of code the model evaluates.

C.

Build post-processing keyword filters that suppress findings containing terms such as “force unwrap,” “large class,” or “deprecated import” before results reach developers.

D.

Have developers add inline suppression comments at flagged lines and preprocess diffs to exclude suppressed lines before sending code to the model.

Full Access
Question # 34

You are building a structured data extraction system using Claude. The system extracts information from unstructured documents, validates the output using JSON schemas, and maintains high accuracy. It must handle edge cases gracefully and integrate with downstream systems.

After your daily batch of 10,000 documents completes, 300 documents (3%) fail with context_length_exceeded errors. The results file identifies each failure by custom_id.

What is the most cost-effective approach to process these failures?

A.

Resubmit the entire 10,000-document batch using a model tier with a larger context window.

B.

Reprocess the entire batch with prompt caching enabled to reduce the cost of retrying requests with identical system prompts.

C.

Increase the max_tokens parameter for the 300 failed documents and resubmit them in a new batch.

D.

Resubmit only the 300 failed documents after chunking them into smaller pieces, and then combine the partial extractions.

Full Access
Question # 35

You are building a multi-agent research system using the Claude Agent SDK. A coordinator agent delegates to specialized subagents: one searches the web, one analyzes documents, one synthesizes findings, and one generates reports. The system researches topics and produces comprehensive, cited reports.

After the web-search agent finds 25 sources containing 120,000 tokens of raw content, the document-analysis agent extracts 15,000 tokens of key insights, and the synthesis agent produces a coherent 3,000-token narrative draft, the coordinator must pass context to the report-generation agent for the final output with proper source citations.

What context-passing strategy provides the best balance of completeness and efficiency?

A.

Pass the synthesis draft together with a structured source index that maps key claims to their source URLs and relevant excerpts.

B.

Pass the full accumulated context from all prior agents.

C.

Pass only the synthesis draft and have a separate post-processing pipeline match claims to sources and insert citations after the report is generated.

D.

Pass a condensed summary of all prior stages that preserves the main findings and attributes them to sources by name only.

Full Access
Question # 36

You are integrating Claude Code into your Continuous Integration/Continuous Deployment (CI/CD) pipeline. The system runs automated code reviews, generates test cases, and provides feedback on pull requests. You need to design prompts that provide actionable feedback and minimize false positives.

Your automated review generates many findings per pull request, but developer feedback shows that approximately half are dismissed as “not worth addressing.” Analysis reveals that these findings are often technically accurate but involve minor style preferences or patterns that are acceptable in the project.

Before adding infrastructure complexity, what prompt-design change would most effectively reduce dismissals while maintaining detection of genuine issues?

A.

Add a secondary classification model that filters findings according to predicted developer acceptance.

B.

Ask Claude to rate each finding’s confidence from 1 to 10 and include only findings rated 8 or higher.

C.

Define explicit reporting criteria that distinguish reportable bugs and security issues from minor style preferences and accepted local patterns.

D.

Add the instruction: “Only report findings you are highly confident are genuine problems.”

Full Access
Question # 37

Production monitoring shows that the research phase takes longer than expected. Analysis reveals that the coordinator invokes the web-search subagent, waits for its response, and then invokes the document-analysis subagent. These tasks are independent; neither requires the other’s output. How should you modify the system to run these subagents concurrently?

A.

Structure the coordinator to emit both Agent tool calls—for web search and document analysis—in a single response message instead of separate conversation turns.

B.

Switch both subagents from a Sonnet-tier model to a Haiku-tier model to reduce their individual execution times.

C.

Add instructions explaining the performance benefits of parallel execution and request that the coordinator invoke both subagents simultaneously.

D.

Create an asynchronous orchestration layer that launches parallel threads, each running a separate coordinator-subagent pair, and then aggregates the results.

Full Access
Question # 38

You are building a structured data extraction system using Claude. The system extracts information from unstructured documents, validates the output using JSON schemas, and maintains high accuracy. It must handle edge cases gracefully and integrate with downstream systems.

Your extraction uses tool use with a JSON schema in which property_type is defined as an enum: house, apartment, condo, or townhouse. After deployment, 8% of extractions fail schema validation. Investigation reveals that listings mention many uncommon property types—“studio,” “loft,” “duplex,” “mobile home,” “tiny house,” and “converted warehouse”—and new types continue appearing regularly.

What is the most effective long-term solution?

A.

Change property_type from an enum to a free-form string and implement a normalization step in post-processing.

B.

Add few-shot examples demonstrating how to map unexpected property types to the closest existing enum value.

C.

Continuously expand the enum to include newly observed property types and add monitoring for additional edge cases.

D.

Add an other value to the enum with a separate property_type_detail string field for specifics when other is selected.

Full Access
Question # 39

You are building a multi-agent research system using the Claude Agent SDK. A coordinator agent delegates to specialized subagents: one searches the web, one analyzes documents, one synthesizes findings, and one generates reports. The system researches topics and produces comprehensive, cited reports.

A user expands the research system beyond its original web-search agent by adding specialized data sources. A financial API agent returns structured JSON containing revenue, margins, and growth rates. A news-monitoring agent returns prose summaries of recent developments. A patent-analysis agent returns structured lists of technology areas. The synthesis agent combines these results into executive briefings. Currently, it converts everything into bullet points, causing financial comparisons to lose tabular clarity and news summaries to lose their narrative flow.

What change would most improve briefing quality?

A.

Standardize all subagent outputs as prose summaries with inline citations.

B.

Add a format-conversion layer that transforms every subagent output into a common intermediate representation.

C.

Update the synthesis agent to render each content type appropriately—for example, financial data as tables, news as prose, and patent areas as structured lists.

D.

Standardize all subagent outputs as JSON containing claim , evidence , source , and confidence fields.

Full Access
Question # 40

You are building a structured data extraction system using Claude. The system extracts information from unstructured documents, validates the output using JavaScript Object Notation (JSON) schemas, and maintains high accuracy. It must handle edge cases gracefully and integrate with downstream systems.

Monitoring shows 12% of extractions fail Pydantic validation with specific errors like “expected float for quantity, got ‘2 to 3’”. Retrying these requests without modification produces identical failures.

What’s the most effective approach to recover from these validation failures?

A.

Send a follow-up request including the validation error, asking the model to correct its output.

B.

Set temperature to 0 to eliminate output variability and ensure consistent formatting.

C.

Pre-process source documents to standardize problematic formats before sending them for extraction.

D.

Implement a secondary pipeline using a larger model tier to reprocess documents that fail validation.

Full Access
Question # 41

A user expands the research system beyond its original web-search agent by adding specialized data sources. A financial API agent returns structured JSON containing revenue, margins, and growth rates. A news-monitoring agent returns prose summaries of recent developments. A patent-analysis agent returns structured lists of technology areas. The synthesis agent combines these results into executive briefings. Currently, it converts everything into bullet points, causing financial comparisons to lose tabular clarity and news summaries to lose their narrative flow. What change would most improve briefing quality?

A.

Standardize all subagent outputs as prose summaries with inline citations.

B.

Standardize all subagent outputs as JSON containing fields for claim, evidence, source, and confidence.

C.

Update the synthesis agent to render each content type appropriately—financial data as tables, news as prose, and technology areas as structured lists.

D.

Add a format-conversion layer that transforms every subagent result into a common intermediate representation before synthesis.

Full Access
Question # 42

You are using Claude Code to accelerate software development. Your team uses it for code generation, refactoring, debugging, and documentation. You need to integrate it into your development workflow with custom slash commands, CLAUDE.md configurations, and understand when to use plan mode vs direct execution.

You’re implementing a caching layer for API responses to speed up the /products endpoint. You have a rough idea—Redis with a 5-minute TTL—but you’re new to production caching and aren’t sure what other considerations a robust implementation requires.

What’s the most effective way to start your iterative workflow?

A.

Ask Claude to interview you about the caching requirements before implementing, surfacing considerations like invalidation strategies, cache layers, consistency guarantees, and failure modes.

B.

Use plan mode to analyze the current /products endpoint implementation, then provide your caching requirements once Claude explains how the existing code is structured.

C.

Start with a minimal request: “Add Redis caching to /products with 5-minute TTL.” Add features and fix issues through follow-up prompts as problems surface during testing.

D.

Write a specification with your known requirements and “TBD” markers for uncertain areas, having Claude propose solutions for each TBD as it implements.

Full Access
Question # 43

You are building developer-productivity tools using the Claude Agent SDK. The agent helps engineers explore unfamiliar codebases, understand legacy systems, generate boilerplate code, and automate repetitive tasks. It uses the built-in tools—Read, Write, Bash, Grep, and Glob—and integrates with Model Context Protocol (MCP) servers.

An engineer who recently joined the team asks the agent to explain the authentication and authorization architecture before making security improvements. The codebase contains more than 800 files across multiple services.

What exploration strategy will most effectively build understanding while respecting context limits?

A.

Launch parallel subagents to explore every service simultaneously, and then synthesize their findings into an architectural overview.

B.

Read all files containing auth , login , permission , or token in their filenames or contents.

C.

Read all CLAUDE.md and README files first, and then ask the engineer to identify the 10–15 most important authentication files.

D.

Use Grep to locate authentication entry points, read those files, and then follow imports and function calls incrementally to map the authentication flow.

Full Access
Question # 44

You are integrating Claude Code into your Continuous Integration/Continuous Deployment (CI/CD) pipeline. The system runs automated code reviews, generates test cases, and provides feedback on pull requests. You need to design prompts that provide actionable feedback and minimize false positives.

Your test generation produces unit tests for new code, but reviews show that 55% are low-value: trivial assertions that only verify functions do not throw exceptions, tests duplicating existing coverage, or tests ignoring your team’s fixture conventions.

How do you reduce the rate of low-value tests being generated in the first place?

A.

Implement two-phase generation in which a second Claude call scores each test against quality criteria, filtering out low-scoring tests before presenting results to developers.

B.

Add post-generation coverage analysis that automatically filters out any generated test that does not increase line coverage beyond existing tests.

C.

Restrict test generation to directories where historical quality metrics show higher acceptance rates, disabling it for areas where generated tests consistently require substantial editing.

D.

Document testing standards in CLAUDE.md, including valuable-test criteria, available fixtures and their intended use cases, and examples distinguishing meaningful behavioral tests from trivial assertions.

Full Access
Question # 45

You are building a customer support resolution agent using the Claude Agent SDK. The agent handles high-ambiguity requests like returns, billing disputes, and account issues. It has access to your backend systems through custom Model Context Protocol (MCP) tools (get_customer, lookup_order, process_refund, escalate_to_human). Your target is 80%+ first-contact resolution while knowing when to escalate.

A customer returns 4 hours after their initial session about the same billing dispute. The previous 32-turn session contains lookup_order results showing “Status: PENDING, Expected resolution: 24–48 hours.” In testing, you observe that when resuming sessions with stale tool results, the agent often references the outdated data in responses (e.g., “I see your refund is still being processed”) even after subsequent fresh tool calls return different information.

What approach most reliably handles returning customers?

A.

Resume with full history and configure the agent to automatically re-call all previously used tools at session start to ensure data freshness.

B.

Resume with full history and add a system prompt instruction telling the agent to always prefer the most recent tool results when multiple calls to the same tool exist in context.

C.

Resume with full history but filter out previous tool_result messages before resuming, keeping only the human/assistant turns so the agent must re-fetch needed data.

D.

Start a new session, inject a structured summary of the previous interaction (issue type, actions taken, resolution status), then make fresh tool calls before engaging.

Full Access