Black Friday Reward - Upto 75% off - Ends in 0d 00h 00m 00s - Coupon code: CFsave75

Pass the Anthropic Claude Certified Architect CCAR-F Questions and answers with CertsForce

Viewing page 1 out of 5 pages
Viewing questions 1-10 out of questions
Questions # 1:

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 used Claude Code yesterday to investigate authentication flows in a legacy monolith, building up significant context over a 2-hour session. Today she wants to continue that specific investigation. She’s worked on three other codebases since then and knows the session was named “auth-deep-dive”.

How should she resume?

Options:

A.

Use --session-id with the UUID from yesterday’s session transcript file


B.

Use --continue to pick up where the most recent conversation left off


C.

Start fresh and re-read the same files


D.

Use --resume auth-deep-dive to load that specific session by name


Expert Solution
Questions # 2:

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 system parses e-commerce product descriptions to extract specifications such as dimensions, weight, and materials into JSON. Despite having a well-defined schema, the model inconsistently extracts the materials field—sometimes returning “cotton blend,” other times “Cotton/Polyester mix,” and occasionally omitting the field when material information is clearly present in the source.

What is the most effective way to improve extraction consistency?

Options:

A.

Set the temperature to 0 to eliminate randomness and ensure deterministic outputs.


B.

Switch to a more capable model tier because inconsistent extraction indicates insufficient model capability.


C.

Make the materials field required instead of optional in the schema to force the model to always extract a value.


D.

Add few-shot examples showing two or three complete input-output pairs with standardized material-description formats.


Expert Solution
Questions # 3:

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 pipeline occasionally receives responses that cannot be parsed as valid JSON, causing downstream processing failures. The current implementation prompts Claude to return JSON in the response text and then parses it.

What is the most reliable approach to ensure Claude returns valid, schema-compliant structured data?

Options:

A.

Add explicit formatting instructions to the prompt with JSON examples, emphasizing that Claude must return only valid JSON with no surrounding text.


B.

Use regular expressions to locate and extract JSON from the response text, handling cases where Claude includes explanatory text around the JSON block.


C.

Define a tool with a JSON schema specifying the expected structure, using tool use to constrain Claude’s output to schema-compliant JSON.


D.

Implement a retry loop that catches JSON parsing errors and re-prompts Claude with the error details, asking it to correct the malformed output.


Expert Solution
Questions # 4:

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 need to add a date validation check ensuring event dates are in the future. This requires adding a conditional statement to one existing function in a single file.

What is the most appropriate approach?

Options:

A.

Use direct execution to make the change.


B.

Start with extended thinking mode enabled to ensure thorough reasoning about the validation logic.


C.

Enter plan mode first to create a detailed implementation strategy before making the change.


D.

Enter plan mode to analyze how the validation might impact other parts of the reservation flow.


Expert Solution
Questions # 5:

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.

In addition to your CI pipeline, your organization has enabled Claude’s managed Code Review through the Claude GitHub App on this repository, and reviews run automatically on every pull request. Reviews average 18 findings per pull request. Developer feedback reveals three categories of unwanted noise: (1) style and formatting issues already enforced by your linter in CI, (2) findings on automatically generated template code under src/gen/, and (3) rendering-helper patterns that are intentional project conventions but get flagged because they resemble common anti-patterns. Only approximately four findings per pull request are genuine logic bugs.

What is the most effective way to reduce this noise while preserving the detection of genuine issues?

Options:

A.

Create a REVIEW.md file at the repository root containing skip rules for CI-enforced checks and generated files, together with a verification requirement that rendering-related findings cite a specific line demonstrating incorrect behavior.


B.

Add custom review instructions to a GitHub Actions workflow file, using the action’s prompt parameter to suppress duplicate lint findings, ignore generated template code, and apply stricter evidence requirements to rendering-related issues.


C.

Add detailed explanations to the project’s CLAUDE.md describing which patterns are intentional, that linting is handled separately by CI, and that the src/gen/ directory contains automatically generated template code.


Expert Solution
Questions # 6:

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 a billing dispute resolution, your agent successfully retrieves customer info via get_customer and order details via lookup_order , but when attempting to call process_refund , the tool returns a timeout error. The agent has enough information to explain the charges and verify refund eligibility, but cannot actually process the refund due to the backend failure.

What approach best balances first-contact resolution with appropriate error handling?

Options:

A.

Implement automatic retries with exponential backoff for process_refund , keeping the conversation open until the refund is successfully processed.


B.

Confirm the refund will be processed and close the conversation, since the system has all necessary information to complete it automatically.


C.

Explain the billing, confirm refund eligibility, acknowledge the system issue preventing immediate processing, and offer escalation or retry later.


D.

Escalate immediately to a human agent since the refund action cannot be completed.


Expert Solution
Questions # 7:

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?

Options:

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.


Expert Solution
Questions # 8:

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 implementing tool use with strict schema definitions, JSON syntax errors are eliminated, but 5% of extractions still contain empty arrays or null values for required fields such as citations and methodology. Spot-checking reveals that the source documents contain this information, but in varied formats—inline citations versus bibliographies, and methodology sections versus details embedded in introductions.

What is the most effective way to address these failures?

Options:

A.

Implement retry logic that resends requests when validation detects empty required fields.


B.

Add few-shot examples demonstrating extractions from documents with varied structures, showing how to identify citations in different formats and locate methodology details across section types.


C.

Build a regex-based post-processing layer that scans source documents for citation patterns and methodology keywords, populating empty fields when the model fails to extract them.


D.

Modify the schema to make citations and methodology optional, and flag incomplete records for manual review instead of failing validation.


Expert Solution
Questions # 9:

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.

Anthropic’s tool use documentation states: “Write instructive error messages. Instead of generic errors like ‘failed’, include what went wrong and what Claude should try next.” A billing dispute agent uses lookup_order , which catches all exceptions and returns a tool_result with is_error: true and the message “Tool execution failed”. Monitoring shows two failure modes: the agent retries the identical call until hitting the turn limit, or it immediately calls escalate_to_human without trying alternative tools.

Which change follows the documented recommendation and gives Claude the information it needs to select the correct recovery action for each error type?

Options:

A.

Implement retry logic with exponential backoff inside each tool implementation so transient errors are resolved transparently within the tool before any failure result is surfaced to Claude in the agentic loop.


B.

Return error-type-specific messages with is_error: true , e.g., “Order not found—try get_customer to search by phone” for data errors and “Database timeout (transient)—retry should succeed” for infrastructure errors.


C.

Remove is_error: true and return the error details as normal tool content, so Claude reasons about the response as data rather than treating it as a flagged failure condition that biases retry behavior.


D.

Add an error classification step in the agentic loop that intercepts tool errors before Claude sees them, then routes to hardcoded retry or escalation logic.


Expert Solution
Questions # 10:

Your pipeline includes a release-notes generation step that classifies and summarizes approximately 200 commits at the end of each weekly release cycle. Each commit is currently sent as a separate Messages API call using a Sonnet-tier Claude model. The release notes are not needed until the following morning, so results have approximately 12 hours of acceptable latency. Your team needs to reduce per-token API cost for this step while keeping the same model and prompts, with no change to the model tier or output quality. Which approach satisfies all these constraints?

Options:

A.

Concatenate all 200 commit messages into a single Messages API request and have the model return all summaries in one response, because fewer requests always reduce total token cost.


B.

Issue the 200 Messages API requests in parallel using concurrent connections, because concurrency lowers the per-token price charged by the API.


C.

Submit the 200 requests to the Message Batches API with unique custom_id values and retrieve the results after the batch finishes, which applies a 50% discount to all input and output tokens.


D.

Switch the summarization calls from the Sonnet-tier model to a Haiku-tier model to take advantage of Haiku’s lower per-token rates.


Expert Solution
Viewing page 1 out of 5 pages
Viewing questions 1-10 out of questions