Courseiva

Claude Certified Architect - Professional (CCAR-P) — Questions 301–375

502 questions total · 7 pages · All types, answers revealed

Page 4

Page 5 of 7

Page 6
301
MCQhard

You are architecting a Claude-based agent for a regulated financial client that performs long-running portfolio rebalancing workflows. A compliance requirement mandates that no single trade instruction may be executed unless it is cryptographically traceable to the exact model-generated intent that produced it. The agent uses the Messages API with tool use, and several downstream services consume tool calls asynchronously. Which architectural mechanism best satisfies this requirement while preserving agent autonomy?

A.Require the model to emit a SHA-256 hash of its own reasoning text inside the tool input, and verify that hash in the downstream trade service before execution.
B.Route all trades through a single orchestrator agent that logs a natural-language summary of each decision to an append-only ledger after the trade is confirmed.
C.Enable prompt caching on the system prompt so that every trade instruction inherits a stable cache key that can be presented to auditors as proof of origin.
D.Persist every assistant turn containing a tool_use block, its tool_use id, and the matching tool_result, forming an immutable audit chain keyed by the tool_use id.
AnswerD

The tool_use id is generated by Claude and echoed back in the corresponding tool_result, so pairing them creates a verifiable link between model intent and downstream execution. Persisting the full assistant turn preserves the reasoning context around the intent, and the id becomes the cryptographic join key that compliance can replay. This satisfies traceability without constraining how many tools the agent may call.

Why this answer

Binding each tool call to the platform-generated tool_use id and persisting the surrounding assistant turn creates a deterministic chain from model intent to executed instruction. Because the id appears in both the tool_use block and the tool_result, downstream services and auditors can reconcile them without trusting model-authored text. Caching, summaries, or self-hashes do not establish that binding.

Exam trap

The trap here is assuming that any unique value the model or cache layer produces can serve as an audit key, when only the platform-issued tool_use id is reliably echoed through the tool_result.

302
MCQmedium

An enterprise is integrating Claude Sonnet 5.5 into an internal financial advisory platform. The legal team mandates that the model must never provide binding tax advice under any circumstances, and that any non-compliance with this rule must be strictly flagged and blocked. The engineering team proposes relying entirely on Anthropic's safety classifiers and usage policy enforcement to catch and stop these specific business rule violations. As the lead enterprise architect, what is your evaluation of this proposed approach?

A.The approach will work if the team sets the model effort level to maximum, which forces the model to strictly evaluate compliance against uploaded legal documents.
B.The approach is correct because stop_reason will return a refusal status whenever the model detects a violation of internal corporate advisory policies.
C.The approach is flawed because model safety classifiers enforce broad usage policies, whereas domain-specific business rules require dedicated system prompts, guardrails, and output validation.
D.The approach is valid because Anthropic's safety classifiers can be customized via the API to enforce company-specific legal compliance rules.
AnswerC

Model safety classifiers handle systemic risks like harmful content rather than nuanced enterprise policies such as regional financial regulations. Ensuring adherence to internal business rules requires robust system instructions, output validation checks, and human oversight layers built into the application.

Why this answer

Anthropic's safety classifiers and usage policy are designed to enforce broader safety boundaries such as preventing the generation of dangerous content, hate speech, or malicious code. They do not enforce specific enterprise business rules, proprietary legal policies, or domain-specific compliance constraints like restrictions on financial or tax advice. Enforcing internal business logic requires dedicated system prompts, deterministic guardrails, output evaluation pipelines, and human-in-the-loop validation rather than relying on core model safety mechanisms.

Exam trap

Candidates often assume that standard LLM safety classifiers and refusal mechanisms can be configured to catch custom, domain-specific business policy violations.

303
MCQhard

You are managing a long-term AI project. How should you handle stakeholder communication when the underlying model architecture changes (e.g., release of a new model generation)?

A.Update the model automatically without telling stakeholders to avoid confusion.
B.Create a transition plan with a phased testing period using a sandbox environment.
C.Recommend staying on the old model forever to avoid any potential issues.
D.Ask the stakeholders to choose the new model for you.
AnswerB

This is the standard architectural procedure for managing model upgrades. It allows for performance validation, regression testing, and quality assurance before the new model goes live in production. This approach minimizes risk and provides stakeholders with the assurance that the change is being managed, tested, and vetted properly.

Why this answer

Communicating major model changes requires a proactive, structured approach that highlights both benefits and potential disruptions. By framing the upgrade as a planned lifecycle event, you can manage the transition by defining testing phases, regression benchmarks, and a rollback strategy. This demonstrates professional control, reassuring stakeholders that the change is an intentional improvement rather than an unpredictable disruption to their business operations.

Exam trap

Candidates often propose a 'switch' to the new model without a testing phase, ignoring that stakeholders need to see a validation strategy to trust the new deployment.

304
MCQhard

An enterprise risk team is designing an automated continuous red-teaming harness for a production agent built on the Claude Agent SDK. The agent processes unauthenticated end-user input and invokes MCP tools. The harness generates synthetic adversarial prompts to discover prompt injection vulnerabilities. Which evaluation methodology is most robust for automatically detecting successful prompt injection compromises during red-teaming runs?

A.Inspect the agent's tool invocation logs to verify whether adversarial instructions triggered unexpected tool executions or parameter overrides.
B.Measure total token consumption across the conversation turns to flag abnormal execution spikes indicative of looping behavior.
C.Check if the API response stop_reason parameter returns refusal instead of end_turn during adversarial evaluation runs.
D.Filter API response content blocks for specific forbidden keywords or substrings returned by the final assistant message turn.
AnswerA

Evaluating tool invocation traces directly detects whether adversarial prompts successfully manipulated the model into calling unauthorized functions or injecting malicious parameters. This provides a deterministic signal of tool-use compromise regardless of what the final text output states.

Why this answer

When red-teaming tool-calling agents, analyzing model text responses alone is insufficient because successful prompt injections frequently lead to unauthorized tool invocations without explicit refusal text. A robust red-teaming harness must evaluate trace-level telemetry, specifically inspecting tool call arguments and sequence logs to verify whether untrusted context successfully manipulated tool execution parameters or triggered restricted actions.

Exam trap

Assuming red-teaming evaluations should only grade the model's text generation output rather than auditing tool invocation traces.

305
MCQmedium

Your team is managing a document processing service. A stakeholder suggests that you should 'automatically re-run' any request that receives negative user feedback. Why is this a poor architectural decision?

A.Re-running requests without modifying the system prompt or effort level is unlikely to resolve the root cause of the error.
B.The Messages API prevents you from sending the same user message twice in a row.
C.Automatic retries will trigger a 429 rate limit error for every re-run.
D.The Messages API does not allow re-running requests with the same input.
AnswerA

Blindly retrying a request that resulted in negative feedback is inefficient and unlikely to yield a different or better outcome. If the model struggled with the task, it will likely struggle again unless the prompt, effort, or model configuration is changed to address the specific failure identified by the user.

Why this answer

Automatically re-running requests upon negative feedback is problematic because it treats the model as a stochastic variable that can be 'fixed' by luck, rather than addressing the root cause of the error. Without changing the prompt, the input, or the effort level, a re-run is likely to produce a similar result, leading to wasted tokens, increased costs, and latency for the user, all while failing to address the underlying quality issue that caused the negative feedback in the first place.

Exam trap

Candidates often think that re-running or retrying is a valid 'self-healing' strategy, but it ignores the fundamental need for systemic improvement.

306
MCQmedium

A logistics agent needs to fetch shipping rates from five different carriers simultaneously to find the best price. Which architecture is best suited for this requirement?

A.Chain of Thought (CoT) prompting
B.Orchestrator-Worker Pattern
C.Recursive Reflection
D.Single-Agent Sequential Loop
AnswerB

This pattern allows a lead agent to delegate independent tasks to multiple specialized workers. In this scenario, the orchestrator can trigger five carrier-specific tool calls in parallel, collect the results, and then synthesize the findings to determine the best price, optimizing both speed and logical separation.

Why this answer

The Orchestrator-Worker pattern is ideal for tasks that can be parallelized. A central orchestrator identifies the need for multiple independent lookups and dispatches them to parallel workers (or tool calls). This significantly reduces total execution time compared to a sequential process where each carrier is queried one after another.

Exam trap

Candidates often choose a sequential loop or a single-agent architecture. They fail to recognize that parallelizing independent tasks is the primary driver of performance gains in modern agentic systems.

307
MCQeasy

In the Anthropic tool-use workflow, what is the primary purpose of the 'system prompt' relative to tool usage?

A.To provide the JSON schema for each tool
B.To store the results of previous tool executions
C.To define the API keys for the external services
D.To establish the agent's persona and tool-use guidelines
AnswerD

The system prompt is the correct place to define the agent's role (e.g., 'You are a helpful logistics assistant') and provide high-level instructions on how to prioritize different tools, how to handle errors, and how to interact with the user after receiving results from the tools.

Why this answer

The system prompt serves as the 'instruction manual' for the agent. It defines the agent's identity, its overall goals, and the constraints within which it must operate. While tool schemas define the 'how,' the system prompt provides the 'why' and 'when,' guiding the model's decision-making process for tool selection.

Exam trap

Candidates often confuse the system prompt with the actual JSON tool schemas, failing to realize the system prompt dictates the operational guidelines while schemas define syntax.

308
MCQeasy

A team is rolling out an internal Claude-powered assistant for their engineering organization. Adoption is low and developers report that they do not trust the answers for anything beyond trivial questions. The enablement lead wants to increase adoption by making the assistant's behavior more transparent and debuggable. Which change best supports that goal?

A.Restrict the assistant to answering only questions about internal documentation and disable all other capabilities.
B.Hide the system prompt and tool definitions from users to keep the interface simple.
C.Expose the system prompt, the tools available, and the retrieved context used for each answer, and log request IDs for support.
D.Increase the model's temperature so answers vary more and feel more natural to developers.
AnswerC

Showing the instructions, tools, and retrieved context lets developers verify why an answer was produced and whether the assistant had the right information. Request IDs make it possible to investigate specific bad answers with support. This transparency directly addresses the trust gap that is suppressing adoption across the engineering organization.

Why this answer

Trust grows when developers can see the inputs that shaped an answer. Exposing the system prompt, available tools, and retrieved context lets engineers verify whether the assistant had the right information and instructions. Logging request IDs enables targeted investigation of bad answers, turning vague distrust into specific, fixable issues that the enablement team can address.

Exam trap

The trap here is treating low adoption as a model quality problem and reaching for temperature or scope changes, when the actual blocker is that developers cannot see how answers are produced.

309
MCQeasy

A fintech startup wants to use Claude to generate marketing copy that references competitor products by name and makes performance comparisons. Legal counsel asks the architect which governance step is most appropriate before this capability goes live.

A.Establish a documented review process that classifies the use case against Anthropic's Usage Policies and applicable advertising regulations before deployment.
B.Increase the model's temperature setting so the copy sounds more creative and varied.
C.Enable prompt caching to lower the cost of generating large volumes of marketing variants.
D.Add a spell-check and grammar pass to the generated marketing copy before publication.
AnswerA

Generating comparative claims about named competitors raises both usage-policy and regulatory questions, so a documented classification and review step is the right governance gate. It ensures the use case is assessed against Anthropic's policies and advertising law before any content is produced. The other measures improve output quality or performance but do not resolve the legal and policy eligibility question.

Why this answer

The scenario involves a potentially sensitive use case: comparative advertising that names competitors. Governance best practice is to classify the use case against Anthropic's usage policies and relevant advertising regulations through a documented review before deployment. Sampling parameters, proofreading, and caching affect style, quality, and cost, and none of them determine whether the activity is permitted or lawful.

Exam trap

The trap here is reaching for a technical or quality control when the actual blocker is a use-case eligibility question that must be resolved through policy review.

310
MCQeasy

When using Claude Code in a production-like environment, which configuration setting is most appropriate for a senior developer who wants to review all file modifications before they are committed, but allow the agent to read the codebase freely?

A.Use 'bypassPermissions' mode to allow Claude to work autonomously and then use 'git diff' to review the changes later.
B.Set the permission mode to 'default' and rely on the built-in prompts for risky actions.
C.Set the permission mode to 'acceptEdits' to streamline the development process.
D.Set the permission mode to 'plan' to prevent any actual changes from being made to the filesystem.
AnswerB

In 'default' mode, Claude Code will ask for explicit user permission before executing any tool that modifies the state, such as Edit, Write, or Bash. This perfectly matches the requirement for a human-in-the-loop approval gate while allowing non-destructive actions like Read to proceed seamlessly.

Why this answer

The 'default' permission mode in Claude Code is designed specifically for this balance. It allows the agent to perform low-risk actions like reading files or checking the environment (Read/Glob) without constant interruption, but it triggers a mandatory permission prompt for 'risky' actions such as Edit or Write. This creates a human-in-the-loop approval gate that ensures least privilege is maintained for the write-access capabilities of the agent while maintaining developer productivity for research and planning tasks.

Exam trap

Confusing 'plan' mode (which allows no edits) with the 'default' mode (which allows edits after approval).

311
MCQmedium

Your team is managing a document summarization service. You want to implement a change management process for your system prompts. Which approach ensures that prompt updates are tested and validated without impacting production traffic?

A.Implement the change in a separate workspace, validate with representative test sets, and then deploy to the production workspace.
B.Deploy the updated prompt to production and use a metadata tag to flag test requests for the monitoring system.
C.Use the same API key in a different environment to ensure consistency in performance metrics across testing and production.
D.Use the Message Batches API for all updates to ensure that production traffic is automatically queued during the deployment.
AnswerA

Using a separate workspace for testing allows you to conduct comprehensive evaluations with representative test cases, ensuring that the new prompt performs as expected without affecting production users; this strategy provides a safe, isolated environment for validation before the final rollout to the production environment.

Why this answer

The correct approach involves using separate workspaces or API keys to isolate testing environments from production. By maintaining a dedicated staging environment that mirrors the production configuration but uses a different workspace, you can perform rigorous evals and performance testing on updated prompts. Once the new prompt meets the desired success criteria based on your evaluation test sets, you can promote the change to production.

This setup prevents accidental disruption of production traffic while allowing for full-scale validation of prompt performance, latency, and output quality.

Exam trap

Candidates often suggest using different model IDs for testing, which does not account for the consistency needed when comparing actual production performance.

312
MCQeasy

During a project post-mortem, stakeholders feel that the technical limitations of the LLM were not clearly explained during the planning phase. What action would have best mitigated this perception?

A.Provide stakeholders with the full technical whitepaper of the model's training data.
B.Conduct an expectation-setting workshop demonstrating both model strengths and known limitations.
C.Include a disclaimer in the final project report acknowledging the potential for errors.
D.Ask the AI engineers to write a memo outlining the model's performance metrics.
AnswerB

An interactive workshop allows stakeholders to see the model in action, creating a balanced understanding of its capabilities and constraints. This direct experience helps stakeholders frame their expectations appropriately, ensuring they understand the necessity of human-in-the-loop workflows and other safeguards required for a production-ready system.

Why this answer

Transparency regarding model capabilities and constraints is vital for setting realistic expectations. By providing a clear, non-technical overview of what the model can and cannot do during the initial planning phase, stakeholders can better align their business objectives with the actual technical reality, reducing disappointment and friction during later project stages and establishing a foundation of trust and professional credibility.

Exam trap

Candidates often select technical documentation handoffs or post-project surveys, forgetting that proactive expectation-setting workshops during planning are vital to prevent stakeholder misalignment.

313
MCQhard

Your enterprise team is authoring operational guidelines for managing API error handling and resiliency across multiple services using Claude models. Which guideline accurately reflects the SDK and API error recovery behavior?

A.Configure the client to automatically retry streaming requests from the exact token where a connection dropped mid-stream.
B.Rely on the SDK's built-in automatic retries for connection errors and status codes 408, 409, 429, and 5xx, while handling 4xx configuration errors manually without retrying.
C.Treat HTTP 529 overloaded errors as permanent failures that require immediate escalation to executive stakeholders.
D.Implement custom retry loops for HTTP 400 invalid request errors to catch intermittent serialization bugs in the application payload.
AnswerB

Standard SDK implementations incorporate robust exponential backoff routines for transient network issues and server overload states. Persistent client-side errors like invalid requests or authentication failures will never succeed on retry and require code corrections instead.

Why this answer

Official Anthropic SDKs automatically handle transient errors by retrying connection failures along with HTTP status codes 408, 409, 429, and 5xx using exponential backoff strategies by default. Operational documentation must instruct developers and support engineers that client SDKs manage these transient retries automatically, while 4xx client errors other than rate limits (such as 400 invalid requests or 401 authentication failures) should not be retried because they indicate persistent configuration problems.

Exam trap

Engineers frequently write custom wrapper retry loops for every error code, duplicating SDK built-in logic or incorrectly attempting to retry fatal 4xx request validation errors.

314
MCQhard

An insurer uses a Claude-based agent that can call internal tools to look up policy details. During review, the safety team finds that a document uploaded by a claimant contains text instructing the agent to email the full policy database to an external address. The agent has an email tool available. Which control most directly prevents this class of failure?

A.Scan uploaded documents with a classifier that flags imperative language and quarantine any document that scores above threshold.
B.Add a system prompt instruction telling the model to ignore any instructions found inside uploaded documents.
C.Require human approval for every tool invocation the agent proposes, regardless of which tool or argument is involved.
D.Enforce tool-level authorization so the agent's identity lacks permission to send external email, and constrain tool arguments to validated allowlists.
AnswerD

Removing the agent's ability to send external mail makes the injected instruction inert no matter how persuasive the document is, because the capability simply does not exist at the credential layer. Argument allowlisting further blocks misuse of tools the agent does retain, such as restricting a lookup to the current claimant's policy. This is a deterministic boundary rather than a behavioral request.

Why this answer

When untrusted content can reach a model that holds real capabilities, the reliable fix is to remove the dangerous capability from the agent's identity and constrain the arguments of the tools it keeps. Injected text can persuade a model but cannot grant permissions the credential layer denies, so an agent without external-email rights cannot exfiltrate regardless of what the document says. Detection and prompting remain useful layers but are not deterministic.

Exam trap

The trap here is treating prompt injection as a text-filtering problem, when the decisive control is limiting what the agent is authorized to do rather than what it is willing to read.

315
MCQhard

A team building an automated loan processing assistant using Claude Opus 5.5 is concerned about potential socioeconomic bias. They decide to use a 'Safety Watchdog' subagent to review the primary model's outputs. During the audit of this watchdog, which design flaw would most likely lead to ineffective bias detection?

A.The watchdog model is the same tier (Opus 5.5) as the primary model, which may cause redundant processing and increased latency.
B.The watchdog uses tool calls to fetch real-time market data instead of relying solely on its internal training data for fairness checks.
C.The watchdog is not provided with the original user input or the full context of the decision-making process, only the final output.
D.The watchdog model is set to a lower effort level than the primary agent, potentially reducing its reasoning depth during the review.
AnswerC

Evaluating bias requires understanding the relationship between the input and the output. Without the original context—such as the applicant's profile or the specific criteria used—the watchdog cannot determine if the primary model's decision was based on objective financial factors or biased socioeconomic variables.

Why this answer

A common design flaw in multi-agent systems is failing to provide the watchdog with clear, objective criteria or sufficient context to distinguish between legitimate financial risk factors and biased socioeconomic proxies. If the watchdog lacks explicit evaluation guidelines or the necessary context from the original user request, it may fail to identify when the primary model is using proxy variables—such as zip codes or educational background—to make biased decisions. The watchdog must operate on the same data and logic as the primary agent to perform a meaningful assessment.

Exam trap

Candidates often assume that adding a second model (a watchdog) automatically improves safety, ignoring the need for explicit, structured evaluation criteria.

316
MCQmedium

A retail company's legal team discovers that several engineering squads have been calling the Anthropic API with personal API keys obtained on individual credit cards, outside the corporate agreement. Leadership wants a governance model that both eliminates this practice and preserves the ability to audit all Claude usage centrally. Which governance model best achieves this?

A.Provide a centralized Anthropic Console organization with workspace-scoped API keys issued per squad, and route all usage through a corporate gateway that logs every request.
B.Publish a policy prohibiting personal API keys and require engineers to attest annually that they comply.
C.Block outbound traffic to api.anthropic.com at the corporate firewall for all users except the platform team.
D.Ask Anthropic account management to monitor for personal keys belonging to company employees and report them monthly.
AnswerA

Centralizing the account under one Console organization removes the incentive and the mechanism for personal keys, because squads receive sanctioned credentials scoped to their workspace. Routing traffic through a corporate gateway produces complete, uniform logging, so leadership gains the audit visibility it asked for. The approach pairs a technical prohibition with an enabling alternative, which is what makes it durable.

Why this answer

Eliminating shadow AI requires giving teams a sanctioned, easy path while removing the unmanaged one, which a centralized Console organization with workspace-scoped keys accomplishes. Central auditability then follows from routing all traffic through a corporate gateway that records every request. Policies, attestations, blanket blocks, and vendor-side monitoring either lack enforcement teeth, suppress legitimate use, or rely on attribution the vendor cannot make.

Exam trap

The trap here is choosing a policy statement or a network block as the fix, when shadow AI is driven by lack of a convenient sanctioned alternative and can only be governed by providing one plus centralized logging.

317
MCQeasy

What is the primary risk associated with 'Prompt Injection' attacks in enterprise AI?

A.Increased latency for all users.
B.Unauthorized control of model behavior.
C.A reduction in model accuracy.
D.The model becoming permanently unavailable.
AnswerB

Prompt injection is the deliberate manipulation of the model's instructions by a user. This can lead to the model behaving in ways that contradict its original purpose, such as revealing internal data, bypassing security checks, or executing arbitrary commands, representing a significant risk to the integrity of the system.

Why this answer

Prompt injection allows attackers to override core system instructions, potentially forcing the AI to leak sensitive data, bypass safety filters, or perform unauthorized actions. This is a critical risk because it undermines the entire security model of the AI application. Enterprise systems must treat all external user input as untrusted, necessitating strong architectural controls to prevent attackers from hijacking the model's intended logic and operational behavior.

Exam trap

Candidates often focus on data leakage as the primary risk. While serious, the fundamental threat of prompt injection is the loss of control over the model's decision-making logic.

318
MCQhard

You are managing a long-running agentic workflow that uses `claude-opus-5-5`. As part of your 'evals as contracts' strategy, you have implemented a check that ensures the agent correctly identifies tool failures. A developer proposes that you only run these heavy evaluations during the weekly release cycle to save on token costs. What is the primary architectural risk of this approach?

A.The evaluation results will not be statistically significant because they are not run against a large enough volume of production traffic.
B.The feedback loop for detecting regressions in agentic logic becomes too slow, increasing the cost of remediation.
C.The model will lose its fine-tuning benefits if the evaluations are not run frequently enough to keep the model 'warm'.
D.The API rate limits for the organization will be exceeded if all evaluations are concentrated into a single weekly batch.
AnswerB

A weekly evaluation cycle introduces a dangerous latency in the feedback loop, allowing bugs in the agent's reasoning or tool-use logic to go undetected for days. This delay increases the complexity of identifying the root cause, as multiple commits might have occurred, making it difficult to isolate the specific change that broke the contract.

Why this answer

Running evaluations only on a weekly basis creates a significant window of vulnerability where regressions can be introduced and persist unnoticed. In an agentic workflow, small changes to the prompt or tool definitions can have cascading effects that break the agent's ability to handle tool failures. By decoupling the evaluation contract from the continuous integration pipeline, you lose the ability to detect these issues early, making them significantly harder and more expensive to debug once they reach the production environment.

Exam trap

Candidates often underestimate the volatility of agentic workflows and focus on cost-saving rather than the integrity of the contract.

319
MCQmedium

Which document is essential for an organization to maintain when preparing for an AI audit?

A.A list of all model parameters and hyperparameters.
B.An up-to-date AI Risk Register.
C.The raw training data files for the LLM.
D.A transcript of every single user interaction.
AnswerB

An AI Risk Register is a critical document for any compliance or safety audit. It tracks potential risks, their severity, and the controls implemented to mitigate them. It serves as evidence that the organization is actively managing its AI safety profile and following best practices in governance.

Why this answer

An AI audit requires proof of governance, testing, and safety measures. An AI Risk Register, which documents identified risks, their potential impact, and the mitigation strategies in place, is essential. It provides auditors with a clear history of how the organization identifies, assesses, and manages its AI-related risks, demonstrating a mature approach to safety and compliance that satisfies both internal and external oversight requirements.

Exam trap

Candidates often confuse the AI Risk Register with technical logs or performance dashboards. They fail to realize that auditors need a high-level governance document, not just raw system data.

320
MCQmedium

A platform team at a large enterprise wants to standardize how Claude is invoked across 30 internal microservices. They need to enforce prompt templates, model selection, and retry logic centrally, while still allowing service teams to customize business-specific instructions. Which approach best balances central governance with team autonomy?

A.Publish an internal SDK that wraps the Anthropic API and embeds a versioned prompt template registry from which teams can inherit and override specific sections.
B.Let each service team manage its own Anthropic API keys, prompts, and retry logic, and rely on quarterly architecture reviews to keep behavior aligned.
C.Require each service team to copy a canonical prompt file into their repository and update it manually whenever the platform team changes standards.
D.Deploy a shared API gateway that rewrites every request to a single canonical prompt and strips service-specific instructions before forwarding to Claude.
AnswerA

A versioned internal SDK with a prompt template registry gives the platform team a single control point for model choice, retries, and base prompts, while services inherit and override only what they need. This preserves governance and developer velocity without duplicating integration code across 30 services.

Why this answer

The best solution provides a single, versioned integration layer that centralizes cross-cutting concerns like authentication, retries, and model selection, while exposing extension points for domain-specific prompts. This gives the platform team enforceable standards and gives service teams the flexibility they need, without code duplication or prompt drift.

Exam trap

The trap here is assuming central governance must mean a single shared prompt, when governance is really about controlling the integration layer and letting teams extend it safely.

321
Multi-Selectmedium

An insurance company is preparing an AI risk register for its Claude-based claims triage system. The risk team must document controls that reduce the chance of biased or inconsistent decisions affecting policyholders. (Choose two.)

Select 2 answers
A.Collect aggregate throughput metrics showing how many claims the system processes per hour during peak periods.
B.Define and version the decision criteria and prompts used for triage, and re-validate them against a representative dataset whenever they change.
C.Raise the model's max_tokens setting so the triage system can produce longer, more detailed justifications for each decision.
D.Establish a human review and appeal path so affected policyholders can challenge a triage outcome and have a person re-examine the decision.
E.Switch to the largest available Claude model on the assumption that greater capability automatically eliminates biased outputs.
AnswersB, D

This is correct because bias and inconsistency often enter through drifting criteria or undocumented prompt edits. By versioning the decision logic and re-validating against a representative dataset on every change, the team can detect shifts in outcomes across demographic groups and demonstrate that the criteria were intentionally designed and reviewed, which is core evidence for a defensible risk register entry.

Why this answer

Fairness controls require both a defined, versioned decision logic that is re-validated against representative data and a human appeal path that catches harmful outcomes the model produces. Together they create a preventive and a corrective layer. Throughput, token budgets, and model size describe performance or capability, not equity, and cannot substantiate a claim that biased or inconsistent decisions have been controlled.

Exam trap

The trap here is equating a larger or more capable model, or longer outputs, with reduced bias, when fairness must be measured and governed through versioned criteria and human recourse.

322
Multi-Selectmedium

Which TWO metrics are most useful for evaluating developer productivity in an LLM-driven organization? (Choose TWO)

Select 2 answers
A.Mean time to deploy a prompt improvement to production.
B.Total number of prompts written by a developer each week.
C.Success rate of automated evaluation suites in CI/CD.
D.Total API usage cost per day for the entire organization.
E.Number of lines of code written in the application backend.
AnswersA, C

Reducing the time between identifying a prompt improvement and deploying it is a key metric for developer velocity. It reflects the efficiency of the CI/CD pipeline and the quality of the surrounding tooling, directly impacting how fast a team can iterate on their LLM features and respond to feedback.

Why this answer

Measuring productivity in LLM development requires balancing speed of iteration with the quality of the output. Metrics like mean time to deploy prompt changes and the success rate of automated evaluations provide a clear picture of how quickly and effectively a team can work. These indicators help identify bottlenecks in the CI/CD pipeline and ensure that improvements are actually enhancing the system's overall performance rather than just adding complexity.

Exam trap

Test-takers frequently select traditional software agile metrics like lines of code or commit frequency, which do not accurately reflect LLM engineering productivity.

323
MCQmedium

An agent is engaged in a multi-hour troubleshooting session involving dozens of tool calls and thousands of lines of log data. The architect notices that the agent is starting to 'forget' early symptoms of the problem. Which strategy best addresses this while managing token costs?

A.Truncating the oldest messages once the limit is reached
B.Implementing a recursive summarization buffer
C.Switching to a model with a 1-million token window
D.Storing all tool results in an external vector database
AnswerB

Summarizing previous turns into a concise narrative preserves the essential findings and progress of the agent. By passing this summary forward into new turns, the agent maintains a continuous understanding of the session history without needing to re-process every individual token from the original, verbose tool outputs.

Why this answer

Managing context in long-running agentic sessions requires a balance between detail and capacity. A summarization strategy combined with a sliding window allows the agent to retain the 'gist' of historical turns while keeping the most recent, high-fidelity data available. This prevents context overflow while maintaining the logical continuity of the troubleshooting process.

Exam trap

Candidates frequently suggest simply increasing the context window or dumping all logs into the prompt. This ignores the exponential cost of token usage and the degradation of model focus over time.

324
MCQmedium

A security architect is designing an audit logging strategy for a Claude-powered system using the Anthropic API. To ensure comprehensive forensic capabilities, which data should be captured in the application-level logs for every API request?

A.The API key used for the request and the internal user ID associated with the session to enable strict identity-based auditing.
B.The raw base64-encoded binary data for all image inputs and document blocks to ensure exact reconstruction of the multi-modal input.
C.The full request body including system prompts, user messages, and tool definitions, alongside the complete raw response content.
D.The model ID, input/output token counts, stop_reason, request timestamp, and a sanitized version of the interaction history.
AnswerD

This approach provides the necessary visibility for auditing model behavior and cost management while maintaining security by sanitizing the interaction content to remove sensitive data before it is persisted in the log repository.

Why this answer

Effective audit logging for LLM interactions must balance observability with data privacy. Recording the full prompt and response is necessary for post-incident investigation, but it must be filtered to exclude PII or sensitive internal data. By logging the specific model ID, input and output token usage, and the stop_reason, architects gain the ability to perform cost-attribution, monitor latency, and investigate why a model might have refused a request or truncated an output.

This provides a clear audit trail for compliance and operational troubleshooting.

Exam trap

Candidates often assume that logging the raw HTTP request body is sufficient, forgetting that streaming responses and tool usage patterns require specific logic to reconstruct the full interaction state.

325
MCQeasy

When designing a system that uses Claude to automate cloud infrastructure changes via a CLI tool, which practice is mandatory for managing the administrative credentials required for those changes?

A.The credentials should be encrypted and sent as a 'document' block in the first message of the conversation.
B.The credentials must be provided to the model in the system prompt to ensure it has the 'identity' required for the CLI.
C.The credentials should be stored in the tool's 'input_schema' as default values to simplify the model's tool calls.
D.The credentials should be managed by the host environment and never passed to or from the Claude API.
AnswerD

This is the fundamental principle of secure LLM integration. By keeping administrative credentials in the host environment (e.g., IAM roles, environment variables), the agent can execute CLI commands through a tool without ever needing to know the underlying secrets. This ensures the secrets are never logged or exposed in the model's context.

Why this answer

Administrative credentials should never be accessible to the LLM. Instead, the application should run the agent in a restricted environment where the necessary credentials are pre-configured in the shell or environment, and the agent is only given access to specific, narrowed-scope tools. This prevents the model from ever 'seeing' the credentials while still allowing it to perform tasks.

The credentials remain in the host environment, and the agent's interaction is limited to invoking the tools that use those credentials internally.

Exam trap

Assuming that 'masking' or 'redacting' secrets in the prompt is an acceptable alternative to total exclusion.

326
MCQmedium

Which pattern is most suitable for an agent that must balance the need for speed (latency) versus the need for correctness in a customer support scenario?

A.Always prioritize speed by using the smallest, fastest model available.
B.Use a dual-path architecture with immediate streaming and background verification.
C.Force the user to wait for verification before showing any response.
D.Use a RAG-only architecture to guarantee factual accuracy.
AnswerB

This architecture provides the best of both worlds: immediate feedback for the user and a secondary validation layer that ensures the content is accurate. This pattern manages the trade-off between perceived latency and result quality, delivering a superior user experience without sacrificing the precision required for high-quality support.

Why this answer

The 'Dual-Path' pattern, where the system initiates an immediate low-latency response while simultaneously running a more comprehensive, high-correctness check in the background, optimizes for both user experience and accuracy. This ensures the user feels acknowledged immediately, while the eventual output remains verified and accurate. This balance is critical in customer support, where perceived responsiveness is as vital as providing correct, verified information for technical or complex queries.

Exam trap

Candidates often choose between either speed or accuracy. They mistakenly assume they must sacrifice one, ignoring that a dual-path architecture allows for both immediate user feedback and eventual verification.

327
MCQmedium

Six months after launch, a logistics company's operations VP reports that the Claude-based exception-handling assistant 'used to be great and now gives worse answers,' though no code has changed. You confirm the application code and system prompt are untouched. What is the most likely explanation you should investigate first?

A.The prompt caching layer has expired its entries, forcing the model to reason without the operational context it previously had.
B.The assistant is now encountering a broader distribution of exception types than during the pilot, including cases that were out of scope for the original evaluation set.
C.Latency has increased over time, and the operations team is now perceiving slower responses as lower quality answers.
D.The model provider has silently retrained the underlying model, so previously correct behaviours have been overwritten without notice.
AnswerB

A stable application facing a shifting input distribution will appear to degrade even when nothing in the code changed. As the assistant gains adoption, users bring exception categories the pilot never covered, and accuracy on those unfamiliar cases is naturally lower. Comparing current input distributions against the original evaluation set is the fastest way to confirm whether the workload itself has drifted.

Why this answer

When code, prompt, and model snapshot are unchanged but users report degradation, input distribution drift is the leading hypothesis. Early pilots exercise a narrow set of exception types chosen by the implementation team, while production usage expands into long-tail cases the evaluation never covered. Measuring the current mix of incoming exception categories against the original test set either confirms drift or rules it out, and it is a cheap first check before investigating infrastructure.

Exam trap

The trap here is assuming that unchanged code implies unchanged behaviour, when the inputs reaching the system are the more likely variable in a maturing deployment.

328
MCQeasy

When designing an LLM-based application, what is the primary benefit of using a 'System Prompt' compared to embedding instructions in the user message?

A.It significantly reduces the latency of every request sent to the model.
B.It provides a dedicated space for behavioral instructions, improving consistency and safety.
C.It allows the model to cache the entire user conversation history automatically.
D.It eliminates the need for any further user input during the conversation.
AnswerB

System prompts are treated as high-priority instructions by the model, setting clear boundaries for tone, format, and safety. This enhances consistency across user interactions and is a standard architectural pattern for building robust, secure, and reliable LLM applications. It is essential for predictable operational behavior.

Why this answer

System prompts define the core persona, constraints, and operational boundaries of the model, which remains consistent throughout the session. This separation of concerns improves developer productivity by keeping the application logic clean and separating user-provided data from behavioral instructions. It also helps prevent prompt injection attacks, as the model is explicitly instructed to treat the system prompt as a higher-priority directive compared to the user's input.

Exam trap

Candidates often argue that system prompts are for 'security' only, missing the primary benefit of behavioral consistency and the separation of instruction from user-provided data.

329
MCQmedium

An executive stakeholder asks why a service that consistently performs well suddenly experiences a spike in 429 errors during the end of the month. As the lead architect, what is the most likely reason for this behavior?

A.The API key associated with the service has expired, and the system is incorrectly reporting an expiration as a rate limit error.
B.The model version used by the service has been deprecated, causing the API to reject all requests with a rate limit error.
C.Another team within the organization has deployed a high-volume service that is consuming a large portion of the shared organizational rate limit.
D.The Claude API service is undergoing a scheduled maintenance period that automatically triggers 429 rate limit errors for all users.
AnswerC

Because rate limits are shared globally across the organization, the actions of other teams directly impact your service's availability. When new, high-traffic applications are deployed without coordinating with the existing services, they can consume the shared capacity and trigger 429 errors in otherwise stable production systems.

Why this answer

The most likely reason for sudden 429 errors in a previously stable service is the introduction of new, high-volume workloads within the same organization. Since rate limits are shared at the organization level, an increase in total organizational traffic—perhaps from a new project or a batch processing job—can exhaust the available capacity, leading to throttled requests for existing services. This highlights the importance of organization-wide visibility and coordination rather than just monitoring individual service performance.

Exam trap

Candidates often assume the issue must be with the specific application's code, ignoring the shared nature of the organization's rate limits.

330
MCQeasy

When designing a human oversight interface for a Claude-powered customer service agent, which information is most critical to display to the human supervisor to help them evaluate the 'honesty' of a model's response?

A.The 'cited_text' and document locations returned by Claude to verify the response against the source materials.
B.The total number of 'input_tokens' and 'output_tokens' used in the specific turn to ensure the response was efficient.
C.The 'stop_reason' for the message to determine if the model was interrupted by a safety filter or a token limit.
D.The 'user_id' from the metadata field to track which customer is interacting with the agent for audit purposes.
AnswerA

Citations are the most direct way for a human to verify the model's honesty. By showing exactly which parts of the source documents the model is referencing, the supervisor can immediately confirm if the agent is accurately representing the facts or making up information (hallucinating).

Why this answer

To evaluate 'honesty' and ground responses, supervisors need to see the 'citations' and the source documents used by the model. Claude's ability to provide 'cited_text' and locations within document blocks allows a human to quickly verify if the model is hallucinating or if its claims are actually supported by the provided knowledge base. Without these citations, a human reviewer would have to manually search through all reference materials to validate the agent's response, making the oversight process inefficient and prone to human error.

Exam trap

Focusing on technical metrics like token usage or latency instead of grounding-related features like citations.

331
MCQmedium

You are designing a risk mitigation strategy for an agent built with Claude Sonnet 5.5 that uses the 'thinking' block. A security reviewer is concerned that the model's internal reasoning might reveal sensitive system instructions or internal logic to end-users. How should you address this concern based on the Claude API's handling of thinking blocks?

A.Implement a regex-based redaction layer to scrub the thinking blocks before they are returned to the client.
B.Disable thinking entirely by setting the effort level to 'low' for all user-facing requests.
C.Rely on the API's behavior of omitting or summarizing thinking text to prevent exposure of raw reasoning.
D.Forward the thinking blocks to a separate 'Audit Agent' for safety verification before the user sees the response.
AnswerC

The Messages API does not provide the raw internal reasoning trace to the application. It provides summarized or omitted versions, which prevents the end-user from seeing the step-by-step logic. This architectural choice by Anthropic serves as a built-in safety control against the leakage of sensitive internal 'deliberation' logic to the user.

Why this answer

The Claude API is designed with safety in mind regarding internal reasoning. Raw thinking blocks (the chain of thought) are never exposed directly to the client in a way that allows them to be shown to end-users as a raw trace. Instead, thinking text may be returned summarized or omitted entirely in the response.

Because the raw reasoning trace is not exposed, the risk of 'leaking' the exact internal logic through the thinking block is mitigated by the API's architecture. Architects should focus on the final output blocks for PII or logic leaks.

Exam trap

Thinking that thinking blocks are a 'raw trace' that must be manually redacted before being sent back to the model.

332
Multi-Selecthard

Your organization is scaling a high-volume data extraction pipeline. Stakeholders are worried about occasional output truncation. Which TWO technical strategies should you communicate as the primary ways to address this limitation?

Select 2 answers
A.Increase the max_tokens parameter in the API request, ensuring that streaming is enabled to support larger output values.
B.Implement a retry loop that automatically switches to a different model tier if the previous request returns a max_tokens stop_reason.
C.Set the output_config.effort to 'max' to force the model to prioritize completion over reasoning depth, preventing truncation.
D.Send the truncated assistant message back as the last message in the conversation history to allow the model to resume generation from where it left off.
E.Modify the system prompt to explicitly request more concise or structured output, such as JSON, to reduce the overall token consumption per response.
AnswersA, E

Increasing the max_tokens parameter is the direct way to accommodate longer responses, and the platform documentation specifically recommends using streaming for larger max_tokens values to manage latency and avoid HTTP timeouts during long-horizon generation tasks.

Why this answer

When Claude hits the max_tokens limit, the output is truncated, and the stop_reason is returned as 'max_tokens'. Because current models do not support assistant-message prefill or 'continuation' of a partial turn, you must either increase the budget or change the instructions. The correct architectural approach is to either increase the max_tokens allocation (often requiring streaming for very large values) or to modify the system prompt to request more concise output formats, such as structured JSON, which helps the model stay within a predictable token envelope.

Exam trap

Candidates often suggest sending the partial assistant message back to 'continue' the generation, which is explicitly unsupported and will cause an API error.

333
MCQeasy

Your organization is performing an incident response review after a Claude-powered system produced a refusal for a valid, non-sensitive business request. Which factor is the most likely cause, and what is the best way to address it?

A.Report the incident as a platform-wide API error to the Anthropic support team for immediate resolution.
B.Disable the safety classifiers in the API configuration to prevent future false-positive refusals.
C.Switch to a different model tier, such as Opus 5.5, which does not have safety classifiers enabled.
D.Refine the prompt to provide more context and explicitly state the benign purpose of the request to reduce classifier triggers.
AnswerD

Improving prompt clarity and providing context is the standard way to resolve false-positive refusals. When the model understands the intent and the lack of harm, it is less likely to trigger safety classifiers. This is the correct approach to handling refusals within the bounds of the Anthropic platform's safety policies.

Why this answer

Refusals occur when the model's safety classifiers trigger, often due to ambiguous prompts that the model perceives as violating safety policies. The best way to address this is to clarify the prompt, provide clear context, and ensure the system prompt is robust. In some cases, if the refusal is a false positive, you can refine the language to be more explicit about the benign nature of the task.

Anthropic does not provide a way to 'turn off' safety classifiers, so you must work within the safety guidelines by improving the quality and clarity of your prompts.

Exam trap

Candidates often believe they can disable safety filters or that a refusal indicates a system-level bug rather than a prompt-level ambiguity.

334
Multi-Selecthard

An organization is preparing a governance risk assessment for deploying a high-throughput automated classification pipeline using Claude Haiku 5.5 via the Message Batches API. Which TWO operational characteristics of batch processing must the governance team account for in their architecture?

Select 2 answers
A.Batch processing requests bypass standard organization rate limits and execute instantly regardless of current platform load.
B.Results return in arbitrary order, requiring the ingestion pipeline to match items back to source data using each request's unique `custom_id`.
C.Batch requests are processed asynchronously within a window of up to 24 hours, making them unsuitable for real-time latency-sensitive user experiences.
D.Prompt caching cannot be utilized within Message Batches API requests due to asynchronous execution constraints.
E.Failed or expired batch requests are automatically re-queued and retried indefinitely until successful completion.
AnswersB, C

Batch results are processed asynchronously and returned in any order, making it mandatory for downstream ingestion logic to index and reconcile completed records using the unique `custom_id` provided in the initial batch payload. Relying on array position will cause severe data corruption.

Why this answer

The Message Batches API processes requests asynchronously at a discounted rate, with results arriving within up to 24 hours. Because results do not come back in submission order, the pipeline must match each result to its source record using the custom_id assigned to each request.

Exam trap

Candidates often assume that batch results are returned sequentially in the same order as submitted, or that incomplete batches can be resumed mid-stream.

335
MCQeasy

An engineering team is reviewing the results of an offline bias evaluation run on Claude Haiku 5.5 for a resume screening application. The evaluators notice occasional unexpected refusals when processing resumes containing non-traditional career paths. How should the architect interpret these refusals within the context of model behavior and safety systems?

A.The model is automatically enforcing the enterprise customer's internal recruitment guidelines regarding non-traditional applicant qualifications.
B.The refusals are triggered by Anthropic's safety classifiers enforcing usage policies, and they signal via a specific stop reason rather than ordinary conversational text.
C.The client application experienced a connection timeout and triggered an internal HTTP 408 response code during batch processing.
D.The API endpoint has returned an HTTP 413 error code indicating that the resume input payload exceeded the maximum context window limits.
AnswerB

When an application request triggers safety safeguards, the response completes with a refusal stop_reason, indicating intervention by Anthropic's safety classifiers. Recognizing this distinction helps evaluation teams separate policy safety triggers from standard model formatting or logic issues.

Why this answer

Refusals in Claude applications are triggered by Anthropic's safety classifiers and usage policies when content matches restricted criteria, rather than enforcing specific business or hiring rules defined by the customer. When evaluating bias or filtering behavior, architects must distinguish between safety classifier refusals and ordinary conversational text declines.

Exam trap

Candidates often confuse model safety refusals with company-specific business rule rejections or custom system prompt constraints.

336
MCQhard

You are drafting documentation for operations teams managing a high-volume document summarization service built around Claude Sonnet 5.5. The service makes heavy use of prompt caching by placing stable reference material at the start of the system prompt. An operator wants to know how to force an immediate expiration of the prompt cache entry when the reference manual is updated. How should you document this procedure?

A.Direct operators to rotate the organization's primary API key, which instantly flushes all cached prompt prefixes across all workspaces.
B.Advise operators to submit an empty request payload with the cache_control flag set to zero, forcing the server to clear its memory banks.
C.Instruct operators to call the cache deletion endpoint using the unique cache identifier returned in the previous response headers.
D.Explain that prompt caches cannot be manually purged; they expire automatically based on their TTL, and updating the prefix naturally triggers a cache miss followed by a new write.
AnswerD

Prompt caching operates on automated prefix matching with defined time-to-live expiration rules. There is no supported administrative API to force an immediate purge, so operators must simply deploy updated content, accepting that the modified prefix will induce a temporary cache write before subsequent requests read from the new cache.

Why this answer

Prompt cache entries cannot be manually purged or forcefully expired on demand via an API endpoint, because the platform manages cache lifetimes through automatic expiration windows based on their configured Time-To-Live. To update cached instructions, operators must deploy the new reference text; the next request will naturally create a new cache entry after a cache miss, while the old entry expires according to its normal TTL lifecycle.

Exam trap

Candidates frequently invent administrative cache invalidation endpoints or assume that altering parameters forces an immediate platform-wide cache purge, ignoring the TTL-based nature of prefix caching.

337
Multi-Selectmedium

An organization is building an internal CLI tool that uses Anthropic's API. They want to improve developer productivity by implementing robust error handling and monitoring. Which TWO strategies should they implement? (Select TWO)

Select 2 answers
A.Implement exponential backoff logic for handling 429 and 5xx API responses.
B.Store API keys as plain text in the CLI configuration file for ease of developer access.
C.Use structured logging to track token usage, response latency, and request IDs.
D.Set the maximum token limit to 4096 for all requests to ensure uniform response times.
E.Disable all request retries to ensure the CLI tool fails fast during network issues.
AnswersA, C

Exponential backoff is a standard pattern for distributed systems to handle temporary overloads and rate limits. By waiting longer between retries, it reduces pressure on the API and increases the likelihood of a successful subsequent request. This prevents automated tasks from crashing when facing high traffic or transient congestion.

Why this answer

Implementing exponential backoff and structured logging are foundational for operational reliability. Exponential backoff gracefully handles rate-limiting and transient errors, preventing pipeline failures. Structured logging allows teams to parse API metrics, latency, and token usage, providing visibility into costs and performance.

These practices directly improve developer experience by reducing time spent troubleshooting intermittent failures and optimizing API resource consumption in automated workflows.

Exam trap

Candidates rely on basic try-catch blocks without implementing exponential backoff or structured logging for transient API failures.

338
MCQeasy

An enterprise architect is reviewing the 'metadata' field in the Messages API. The security team asks if this field can be used to store sensitive customer session IDs to assist in data retention audits. What is the primary restriction on this field?

A.The field is free-form but has a strict 1KB limit to prevent prompt injection via metadata.
B.The metadata field is only available when using Claude Haiku 5.5 to minimize processing overhead.
C.The field only supports a 'user_id' key, which should be an opaque identifier for abuse detection.
D.Any data in the metadata field is automatically encrypted and excluded from all data retention logs.
AnswerC

The metadata object is purposefully restricted to 'user_id'. This allows the architect to provide a unique but non-identifiable string that helps Anthropic identify patterns of abuse without the architect having to share actual PII or sensitive session data. This is the only supported way to use the metadata field.

Why this answer

The 'metadata' field in the Messages API is strictly limited to a single sub-field: 'user_id'. This field is intended to provide an opaque identifier for the end-user, which Anthropic uses for abuse detection and to enforce usage policies. It is not a general-purpose metadata store for application-specific data like session IDs, transaction hashes, or PII.

Using it for sensitive data would be a violation of best practices, as this field is specifically designed to be shared with the model provider for monitoring purposes.

Exam trap

Treating the 'metadata' field as a free-form JSON object for any application data.

339
MCQmedium

A customer-support agent must sometimes escalate to a human and sometimes resolve autonomously. The compliance team requires that any action touching billing be reviewed by a human before execution, while password resets may proceed automatically. The architect wants the model to decide routing without hardcoding every rule in the prompt. Which design best satisfies the requirement?

A.Fine-tune the model on historical escalations so it learns which actions compliance typically requires humans to approve.
B.Classify each proposed tool call by risk tier in the orchestration layer, auto-approve low-risk actions, and require human approval for billing-tier actions regardless of model output.
C.Give the model a single escalate tool and instruct it in the system prompt to use judgment about when human review is required.
D.Log every tool call the agent makes and have the compliance team review the logs weekly to catch any unauthorized billing actions.
AnswerB

Enforcing the risk tier outside the model makes the control deterministic and auditable: billing actions cannot execute without human approval even if the model proposes them. Password resets proceed automatically because they fall in the low-risk tier. The model still decides routing in the sense of proposing actions, but the orchestration layer holds the authoritative gate, satisfying compliance without hardcoding every conversational rule in the prompt.

Why this answer

The compliance requirement is a hard gate, so the decision to require human approval must live in deterministic orchestration code rather than in model judgment. Tiering tool calls by risk lets low-risk actions like password resets flow automatically while billing actions are held for approval before execution. The model can still propose actions, but the authoritative approval decision is enforced outside it, which makes the control auditable and immune to prompt drift or probabilistic misrouting.

Exam trap

The trap here is assuming that a well-written system prompt or a fine-tuned model can serve as a compliance control, when only deterministic enforcement outside the model can guarantee a gated action.

340
MCQhard

An organization is building a tool that uses Claude to automate the categorization of incoming customer support tickets. Because the model occasionally misclassifies sensitive tickets, the governance board requires that any ticket categorized as 'Urgent' or 'Escalation' must be reviewed by a human agent. How should the architect implement this review constraint?

A.Design the system so that the agent's output is always a structured category field, and the orchestration layer contains the business logic to route the ticket to a human if the category is 'Urgent' or 'Escalation'.
B.Use the orchestrator to classify the ticket independently of the Claude agent, and only use Claude to draft the response if the ticket is not 'Urgent'.
C.Instruct the model via the system prompt to include a 'human_review_required' flag in its response if the ticket is urgent, and let the orchestrator act on that flag.
D.Use Claude to perform the classification and then have a second call to Claude to verify if the classification was correct, using the result of the second call to trigger a human review.
AnswerA

This design adheres to the principle of keeping control logic in the application layer. By requiring structured output, the orchestrator can reliably parse the classification and apply the defined business rules for routing. This ensures that the human-in-the-loop requirement is enforced consistently, regardless of whether the model is highly confident or slightly uncertain.

Why this answer

The architect should implement a routing pattern where the Claude agent acts as a classifier. The output must be a structured JSON object. The orchestration layer evaluates this output; if the category is 'Urgent' or 'Escalation', the orchestrator routes the ticket to a manual review queue instead of proceeding to the automated response workflow.

This design ensures that the routing logic is handled by the application logic, which is predictable, rather than by the model, which is probabilistic.

Exam trap

Relying on the model to perform both the classification and the routing to the human queue within a single prompt cycle.

341
MCQmedium

A platform team maintains a shared prompt library used by 40 internal services. After a subtle wording change to a summarization prompt caused a 12% drop in a downstream classification F1 score, the team wants every prompt change to be reviewable, version-pinned, and automatically regression-tested before rollout. Which approach best satisfies these requirements?

A.Move all prompts into a shared spreadsheet with a change log column, and instruct service owners to copy the latest text into their code before each release.
B.Deploy every prompt change straight to production behind a feature flag, then compare aggregate F1 scores over the following week and revert manually if quality declines.
C.Store prompts as versioned files in a Git repository, require pull-request review, and run a CI job that evaluates each changed prompt against a held-out golden dataset before merge.
D.Keep prompts inline in each service's source code and rely on each team's existing unit tests, which mock the Claude response, to catch quality regressions.
AnswerC

Git gives immutable versions, diffable history, and mandatory peer review, while the CI evaluation job gates merge on measured quality against a golden dataset. This directly addresses reviewability, version pinning through commit SHAs or tags, and automated regression detection, so a wording change that degrades the classification F1 score is caught before it reaches the 40 consuming services.

Why this answer

Treating prompts as versioned code in Git couples three needed controls: peer review through pull requests, immutable references through commits or tags, and automated quality gates through a CI evaluation against a golden dataset. Because the evaluation runs before merge, a wording change that harms the downstream classification score is blocked rather than discovered in production, which protects all consuming services.

Exam trap

The trap here is assuming that ordinary unit tests with mocked model responses validate prompt quality, when only evaluation against real model outputs on a golden dataset can detect a semantic regression.

342
MCQmedium

Your team is running a production summarization service. You have noticed that the model occasionally fails to follow specific formatting constraints defined in the system prompt. To improve consistency while keeping costs controlled, which architectural change should you prioritize?

A.Utilize output_config.format to enforce a JSON schema and increase the effort level if formatting errors persist.
B.Add a new 'negative constraint' section to the system prompt explicitly listing all forbidden formats and patterns to guide the model.
C.Implement a 'retry' loop in your application code that sends the model's output back to itself when formatting errors are detected.
D.Set the sampling temperature to 0.0 to eliminate randomness and force the model to produce deterministic results for every summarization request.
AnswerA

Enforcing a JSON schema via output_config.format provides a programmatic guarantee that the model's output conforms to your structural requirements. Combining this with increased effort allows the model to dedicate more reasoning tokens to satisfying these constraints, resulting in higher reliability without relying on the inherent ambiguity of natural language instructions.

Why this answer

The most robust way to enforce output consistency in production is to leverage structured outputs. By utilizing output_config.format, you constrain the model's response to a specific schema, which is significantly more reliable than relying on natural language instructions in a system prompt. This approach reduces the need for costly post-processing or retry logic.

If the model still struggles, adjusting the effort level (e.g., to 'high') is the appropriate lever to increase reasoning depth for better constraint adherence, rather than simply hoping for better results through prompt tuning alone.

Exam trap

Candidates often suggest adding more negative constraints to the system prompt, which can lead to prompt bloat and diminishing returns, or they incorrectly suggest setting temperature to zero.

343
Multi-Selecthard

An autonomous agent is designed to browse the web and perform research. Which TWO mechanisms are most critical for preventing infinite loops and excessive API consumption during autonomous tool-calling cycles?

Select 2 answers
A.Increasing the context window size
B.Implementing a maximum iteration counter
C.Using a lower temperature setting
D.Hashing and comparing previous state snapshots
E.Enabling prompt caching for tool definitions
AnswersB, D

A hard limit on the number of turns an agent can take provides a definitive fail-safe against recursive behavior. This ensures that even if the model's reasoning fails to reach a conclusion, the process terminates after a pre-defined threshold, protecting the system from infinite execution and associated costs.

Why this answer

In autonomous agentic loops, the risk of 'stuck' states or recursive logic is high. Implementing both hard iteration limits and state-based detection ensures the system remains within operational bounds. These safeguards are essential for production-grade agents to prevent runaway costs and to provide a predictable user experience in non-deterministic environments.

Exam trap

Candidates often rely only on simple prompt instructions telling the agent not to loop, failing to implement hard programmatic safety limits like iteration counters and state hashing.

344
MCQmedium

A multinational corporation uses Claude Opus 5.5 to process high-volume legal documents. The privacy team insists that the model must not 'remember' details from one document to influence the summary of another. How should the architect design the API usage to ensure strict context isolation?

A.Configure the metadata field with a unique session ID for every document to prevent cross-contamination.
B.Enable the 'compaction' beta feature to ensure that old context is summarized and removed after every turn.
C.Ensure that every document is processed in a separate, isolated POST /v1/messages request to maintain statelessness.
D.Use the /clear slash command at the start of every request to reset the model's internal memory.
AnswerC

Since the Messages API is stateless, each request starts with a clean slate. By treating every document as a distinct, independent call, the architect ensures that the model cannot carry over information from previous turns, which perfectly aligns with the requirement for strict isolation between processed documents.

Why this answer

The Messages API is inherently stateless, meaning no conversation state is preserved between calls. By ensuring that each document is processed in a fresh, isolated API request, the architect guarantees that the model has no access to information from previous documents. This 'stateless' design is the primary defense against cross-document information leakage, effectively satisfying the privacy team's requirement without needing complex context management or manual clearing of memory stores.

Exam trap

Candidates often overthink by suggesting manual memory clearing or session resets, forgetting that the core API design is already stateless.

345
MCQeasy

A new developer asks you where to find the API keys for their project. They have access to the organization's Anthropic Console. Which guidance is correct regarding the management of these keys?

A.Use the default API key provided at account creation for all development and production tasks.
B.Generate the keys within the specific project's workspace in the Anthropic Console.
C.Request the keys from the Anthropic sales representative to ensure they are properly authorized.
D.Generate a single organization-wide key and share it in the team's internal documentation.
AnswerB

Managing keys within a project-specific workspace is the standard security practice. It ensures that credentials are scoped to the project, allows for independent rotation and revocation, and enables granular usage monitoring, which is essential for maintaining a secure and manageable enterprise environment.

Why this answer

API keys are sensitive credentials that must be managed within the context of a specific workspace. Developers should not share keys or use keys from other workspaces. Instead, they should navigate to the specific workspace assigned to their project in the Anthropic Console to generate and manage their keys.

This ensures that the organization can maintain a clear audit trail and enforce access control policies, preventing unauthorized usage and ensuring that each project's usage is correctly tracked and limited.

Exam trap

Allowing developers to generate 'organization-wide' keys, which is not a standard practice for secure and scoped access.

346
MCQmedium

A healthcare provider must decide between hosting Claude on a private cloud instance (via a major provider) or using the Anthropic API with a Zero Data Retention (ZDR) agreement. What is the primary 'vendor risk' associated with the ZDR approach that an architect must document?

A.The risk that the model will perform significantly slower because it cannot cache system prompts under a ZDR policy.
B.The technical risk that the Messages API will only support the user role and not the assistant role in ZDR mode.
C.The risk that the provider will use the data for model training if the ZDR agreement is not renewed annually.
D.The reduced ability for the vendor to assist in incident post-mortems or abuse investigations due to the lack of stored logs.
AnswerD

Under a ZDR agreement, the vendor does not retain the content of the requests. This means that if a security incident or a system failure occurs, the vendor cannot review the historical logs to help identify the cause. The organization must take full responsibility for capturing and securing its own audit trails.

Why this answer

While Zero Data Retention (ZDR) provides significant privacy benefits by ensuring that prompt and completion data are not stored on the provider's servers, it introduces a specific operational risk: the loss of native debugging and abuse monitoring logs. If an incident occurs (such as a safety violation or a technical failure), the provider's ability to assist in the investigation is limited because the data was never retained. The architect must ensure the organization has its own robust logging and auditing infrastructure to compensate for this lack of provider-side visibility.

Exam trap

Mistaking ZDR for a feature that automatically prevents prompt injection or model hallucinations.

347
MCQeasy

What is the primary benefit of using a standardized Prompt Library for a large enterprise development team?

A.It completely replaces the need for custom code in application development.
B.It enforces strict compliance and reduces the need for developer ingenuity.
C.It facilitates prompt versioning, sharing, and standardized performance evaluation.
D.It ensures that the model always generates the same output.
AnswerC

Centralizing prompts enables version control, which is essential for tracking changes. Sharing templates across teams reduces duplication, while standard evaluation metrics within the library allow for consistent benchmarking. This infrastructure is critical for professional teams, as it directly improves quality, efficiency, and collaboration during the development of AI applications.

Why this answer

A centralized Prompt Library ensures consistency, reusability, and easier version management. By treating prompts as shared assets, developers avoid duplication of effort and can leverage proven, high-quality prompt templates. This accelerates the development lifecycle and improves the reliability of AI applications across the organization, as team members can contribute to and benefit from a common repository of optimized, tested prompts.

Exam trap

Candidates frequently focus on prompt performance optimization alone, missing that the primary enterprise benefit is the operational governance provided by versioning, sharing, and centralized management.

348
MCQhard

Your team is training developers to use Claude Code's `plan` mode for high-risk refactoring tasks. A developer is concerned that they might accidentally trigger unauthorized file edits during the planning phase. How should you advise them to use this feature safely?

A.Utilize `plan` mode, which leverages read-only tools to research and propose changes without executing edits.
B.Instruct developers to run Claude Code in a container where the file system is mounted as read-only.
C.Enable the `bypassPermissions` flag to allow the model to fully explore the codebase without interruption.
D.Define a custom PostToolUse hook that blocks all Edit tool calls if the current session is in a production-linked directory.
AnswerA

The `plan` mode restricts the model to using read-only tools, ensuring no files are modified. This allows the developer to review the agent's proposed approach and reasoning before deciding whether to proceed with actual file edits, providing a safe sandbox for validating complex architectural changes.

Why this answer

The `plan` mode is a read-only execution state designed specifically for exploration and strategy formulation. When a user invokes `plan` mode, the agent utilizes read-only tools to analyze the codebase, research dependencies, and propose a comprehensive strategy without modifying any files. This provides a safety mechanism for developers to review the proposed changes before committing to an actual `Edit` or `Write` operation.

By training developers to use `plan` mode as a precursor to any major structural change, the team can ensure that the agent's logic is vetted before any persistent modifications are made to the codebase.

Exam trap

Candidates may mistakenly believe that `plan` mode requires special permission configuration or that it might still perform 'light' edits, missing the fundamental read-only design.

349
MCQmedium

A platform team is building a shared Claude integration library used by 40 internal microservices. Each service currently hard-codes its own model ID, max_tokens, and retry logic. The team wants a single place to roll out model upgrades and enforce consistent retry behaviour without redeploying every service. What is the most effective architecture for this requirement?

A.Place an HTTP proxy in front of the Anthropic API that rewrites the model field on every request and centralizes retries.
B.Move all Claude calls into a single shared monolith service and have the 40 microservices call it over gRPC.
C.Publish a versioned internal SDK that reads model configuration from a central configuration service at startup and exposes typed client wrappers with built-in retry and backoff.
D.Add a shared environment variable file to each repository and require every service owner to pull the latest values before each deployment.
AnswerC

A versioned SDK backed by a central configuration service lets the platform team change model IDs, token limits, and retry policy for all 40 services without touching each codebase. Typed wrappers enforce consistent behaviour and can be regression-tested once. Because configuration is fetched at startup, upgrades roll out on the next service restart, balancing safety and speed.

Why this answer

A versioned SDK reading from a central configuration service gives the platform team one lever for model IDs, token limits, and retry policy while preserving per-service autonomy. It enforces consistent behaviour through typed wrappers, supports staged rollouts, and avoids the fragility of repository-level environment files or an opaque rewriting proxy. This is the standard pattern for operational enablement at scale.

Exam trap

The trap here is assuming that centralizing retries through a proxy also solves configuration management, when it actually hides model changes and removes the typed contract developers need.

350
MCQmedium

Your enterprise uses a shared system prompt across multiple internal services. A stakeholder wants to modify the prompt to add a specific instruction for a new use case. What is the primary risk of updating this shared prompt without a clear migration strategy?

A.The API will reject the request with a 400 error due to the system prompt length exceeding the defined organization limit.
B.The change will cause unintended behavior regressions in all services currently consuming the shared prompt.
C.The model will require a higher effort level to maintain the same quality standard after the prompt is updated.
D.The API will automatically invalidate all existing prompt cache entries, causing a temporary cost and latency spike.
AnswerB

Shared system prompts create a single point of failure where a modification intended for one use case propagates to all consumers. This leads to unpredictable behavior across the organization, as the model's instruction following may be optimized for the new requirement while becoming less effective for others.

Why this answer

Modifying a shared system prompt introduces significant risk because changes can cascade across all dependent services, leading to unpredictable regressions in unrelated workflows. Without a strategy like versioning, feature flagging, or service-specific overrides, you lose the ability to verify that the change is safe for all consumers. This lack of isolation forces an 'all-or-nothing' upgrade path, which is dangerous in enterprise environments where different teams may have distinct tolerance levels for changes in model behavior or output formatting.

Exam trap

Candidates often focus on the technical ease of updating a shared prompt, overlooking the architectural risks of tight coupling between disparate services.

351
MCQmedium

Your organization has a strict audit policy requiring the tracking of model-generated output tokens against specific user sessions. How should you extract this information from the Messages API for audit purposes?

A.Request the usage report from the Admin API to get a per-session breakdown of token consumption.
B.Capture the output_tokens value from the usage object in each API response and map it to your application's session identifier.
C.Enable the session_id field in the request metadata to have it returned in the response usage object.
D.Use the token counting endpoint before every request to log the expected output tokens for the session.
AnswerB

The usage object returned by the Messages API contains the exact count of output_tokens generated for that request. By logging this value alongside your internal session identifier, you create a reliable and auditable record of model usage that strictly follows the platform's provided metrics.

Why this answer

When the API processes a request, the usage object in the response provides a breakdown of tokens, including input_tokens and output_tokens. By capturing these values from every response, you create a precise audit trail of model consumption. Since the API is stateless, you must ensure your application layer correlates these usage metrics with the specific user session identifier that initiated the request to satisfy the audit requirement.

Exam trap

Candidates often look for a 'session_id' field in the API response, which does not exist, rather than correlating usage with their own app state.

352
MCQmedium

An enterprise is planning to use an external AI provider for a high-volume data classification task. To avoid platform-specific vendor lock-in, they plan to use standard JSON schemas for input and output. What is the most significant risk associated with this strategy regarding model-specific behavior?

A.The cost of processing JSON schemas is significantly higher than using plain text input, potentially violating the enterprise budget.
B.The schema might be too large, causing the model to hit the context window limit immediately upon processing the input.
C.Standardized JSON schemas are not supported by the API endpoints of most modern AI providers.
D.Different models have varying levels of instruction-following capability, which may lead to inconsistent adherence to the strict JSON constraints.
AnswerD

Models vary in their ability to strictly follow formatting constraints; a schema that works perfectly on one model might be hallucinated or ignored by another, requiring developers to adjust prompts and validation logic for each specific vendor.

Why this answer

Even when schemas are standardized, different models have unique tendencies in how they interpret instructions, handle edge cases, or prioritize information. A model trained to be more 'creative' might ignore strict JSON formatting constraints in favor of prose, or it might struggle with specific tool-use patterns that are optimized for another model. Therefore, relying solely on a schema does not guarantee functional equivalence across platforms; the organization must implement robust validation and potentially model-specific prompt adjustments to ensure consistent behavior.

Exam trap

Candidates often assume that a schema definition is enough to make an LLM behave identically regardless of the underlying model, ignoring the inherent variance in model reasoning and instruction following.

353
Multi-Selecthard

You are scaling an agentic system that uses external APIs. Which THREE design patterns prevent the agent from being blocked by third-party rate limits or latency?

Select 3 answers
A.Circuit breaker pattern to detect and isolate failing API endpoints.
B.Synchronous, real-time polling for every single tool invocation.
C.Asynchronous task queuing for long-running tool operations.
D.Request-response caching to serve recurring tool result patterns.
E.Increasing model temperature to provide more creative workarounds.
AnswersA, C, D

A circuit breaker monitors for failures and trips when a threshold is reached. This stops the agent from sending requests to a service known to be down, preventing wasted resources and allowing the service time to recover. It is essential for protecting the agent from external system instability.

Why this answer

Managing external dependency risk is critical for production agents. Implementing a circuit breaker prevents cascading failures by halting calls to failing services. A task queue enables asynchronous execution, decoupling the agent's reasoning from external latency.

Finally, caching common responses reduces total API calls, improving throughput and reliability. Combined, these patterns create a resilient boundary between the autonomous agent and the unpredictable nature of external network services.

Exam trap

Candidates often focus on increasing API rate limits or scaling infrastructure, failing to recognize that architectural patterns like circuit breakers and caching are the standard for handling third-party instability.

354
MCQhard

Your organization uses a 'Human-in-the-loop' review portal where supervisors inspect intermediate agent reasoning before approving a final output. You notice that supervisors are becoming biased by the agent's 'thinking' trace, leading them to approve incorrect results. How should you adjust the oversight design?

A.Use the 'compact' feature to summarize the thinking trace into a shorter version, reducing the amount of information the supervisor needs to process.
B.Implement a 'blind' review process where the human evaluates the output based on the original request, without seeing the thinking trace.
C.Increase the 'effort' parameter of the model to ensure the thinking trace is more accurate and less prone to errors.
D.Require supervisors to grade the agent's reasoning trace before they review the actual output.
AnswerB

Blind review forces the supervisor to perform an independent assessment of the output against the source data. By removing the model's reasoning trace from the primary view, you eliminate the anchoring effect of the model's own logic, ensuring that the human's approval is based on objective evidence rather than the model's persuasive reasoning.

Why this answer

To mitigate 'automation bias' where humans trust the model's intermediate reasoning, you should implement 'blind' or 'decoupled' reviews. Instead of showing the full chain-of-thought trace, provide the human reviewer with the raw input data and the proposed output, and have them perform their own independent validation. If needed, provide the agent's reasoning as a separate, secondary view only after the human has made their own assessment, preventing the model's potentially flawed logic from anchoring the supervisor's decision-making process.

Exam trap

Candidates often believe that more transparency (showing the full reasoning) always improves safety, ignoring the cognitive bias it introduces in human reviewers.

355
MCQhard

Your organization is auditing its high-volume document classification pipeline that uses the Message Batches API. An auditor requests a report showing the exact input and output token usage, including cache read/write metrics, for every request in a batch. How should you retrieve this information?

A.Enable verbose logging in the SDK to capture the full raw JSON response from every batch request.
B.Query the /v1/usage endpoint to retrieve aggregated metrics for all batch jobs processed within the last 24 hours.
C.Use the usage field returned within each individual processed result in the batch output.
D.Call the /v1/messages/count_tokens endpoint for every request before submitting the batch to log the expected input tokens.
AnswerC

Each succeeded result in a Message Batch contains the full message, including its usage object with input, output and cache read/write token counts. That gives per-request figures for every item in the batch.

Why this answer

The Message Batches API processes requests asynchronously and returns results that include the usage field for each individual request. This usage object contains the necessary breakdown of input_tokens, output_tokens, cache_creation_input_tokens, and cache_read_input_tokens. By processing the results file generated by the batch job, you can extract these metrics for every single processed item.

Since the batch result is the definitive source for usage data on batched requests, it is the only reliable audit trail for these specific operations.

Exam trap

Candidates often look for a central logging or billing API endpoint, forgetting that batch usage is embedded directly within the individual result items returned after processing.

356
MCQhard

An organization runs a nightly batch job that uses the Claude Messages API to classify support tickets. The job currently processes tickets one at a time, taking several hours and occasionally exceeding the nightly window. The team wants to cut wall-clock time substantially without exceeding their rate limits or degrading classification quality. Which change is most effective?

A.Split the tickets across multiple API keys belonging to different team members to multiply the effective rate limit.
B.Submit the batch via the Message Batches API, which processes requests asynchronously at a lower cost and returns results without holding a synchronous connection.
C.Increase the max_tokens value on each request so the model has more room to reason before classifying.
D.Lower the temperature to zero and retry any borderline classifications until the model returns a confident label.
AnswerB

The Message Batches API is designed for high-volume, non-interactive workloads and processes requests asynchronously, which removes the sequential bottleneck and reduces cost. It fits the nightly classification job because results are not needed in real time. This directly shortens wall-clock time while respecting rate limits, since batching is the intended mechanism for bulk work.

Why this answer

The runtime problem is a throughput problem, not a model-quality problem. The Message Batches API is purpose-built for high-volume, non-interactive work, processing requests asynchronously and at lower cost than synchronous calls. For a nightly classification job that does not need real-time responses, batching removes the sequential bottleneck and shortens wall-clock time while staying within rate limits.

Exam trap

The trap here is optimizing the model's output settings or spreading keys when the actual bottleneck is that requests are issued one at a time and should be submitted as a batch.

357
MCQhard

A product owner asks you to add a feature that lets internal users upload customer contracts so Claude can extract renewal dates and auto-populate a CRM. During intake you learn the contracts contain personally identifiable information and commercially sensitive terms. The product owner wants to launch in three weeks with no legal review. As the architect, what is the most appropriate action?

A.Document the data flows and PII exposure, engage legal and security for a review, and propose a phased launch where extraction runs only on redacted or approved contract types first.
B.Agree to the three-week timeline but process all contract text through an external public model endpoint to reduce internal infrastructure work.
C.Launch on schedule and add a note in the backlog to complete the privacy review after the first month of production usage once real data volumes are known.
D.Reject the feature outright because contracts always contain sensitive data and no AI system should ever be used for extraction tasks.
AnswerA

This action respects both the business goal and the compliance obligations the scenario surfaces. Documenting data flows gives reviewers what they need, and a phased approach limited to approved contract types lets the product owner deliver value sooner without exposing regulated data prematurely. It balances delivery pressure with the non-negotiable need for legal and security sign-off on PII handling.

Why this answer

When a requested feature involves PII and sensitive commercial terms, the architect's role is to make the risk visible and enable a compliant path rather than to either block or bypass review. Documenting data flows, engaging legal and security, and scoping an initial launch to approved contract types satisfies the product owner's delivery goal while ensuring regulated data is handled under proper controls.

Exam trap

The trap here is choosing between blind speed and total refusal, when the correct professional response is to surface the compliance risk and propose a scoped, reviewed path to delivery.

358
MCQhard

Your team is designing a system that uses the Message Batches API to process thousands of customer documents for PII redaction. The governance team requires that a human verifies the redaction quality for a random sample of 5% of the processed documents before they are moved to permanent storage. How should you design this oversight?

A.Design an application-layer workflow that samples 5% of the batch results for human review before final ingestion.
B.Include a system prompt instruction telling the model to flag its own work for human review if it is unsure about PII detection.
C.Use the Claude Agent SDK to run the batch process, as it provides built-in auditing tools for human intervention.
D.Ask the model to include a 'confidence_score' in its JSON output and use that to filter documents for human review.
AnswerA

This approach keeps the batch processing efficient while enforcing a mandatory verification gate outside of the model's execution path, ensuring that human oversight is performed on the actual outputs before they are persisted.

Why this answer

The Message Batches API is an asynchronous, non-latency-sensitive tool. To implement human-in-the-loop oversight effectively here, you should design a post-processing stage in your pipeline. After the batch completes, your application should programmatically select 5% of the results, route these to a queue for human review, and only upon manual approval trigger the movement of these documents to the final storage location.

This ensures the batch process remains efficient while maintaining the mandatory quality-check gate.

Exam trap

Candidates often try to force the model to perform the audit internally during the batch process, which does not satisfy the requirement for human verification.

359
Multi-Selecthard

An engineering organization wants to raise developer productivity across teams building on Claude. Leadership asks the platform team to identify interventions that reduce repeated manual work and shorten the feedback loop for prompt and integration changes. (Choose two.)

Select 2 answers
A.Mandate that all prompt changes be approved by a central architecture board that meets twice monthly.
B.Provide a reusable internal library that wraps common Claude API calls, including retry, streaming, and token accounting, so teams stop reimplementing the same plumbing.
C.Require every team to freeze its prompt text for a full quarter so that results remain comparable across services.
D.Instruct each team to build its own bespoke evaluation scripts and dashboards so that tooling matches local needs exactly.
E.Stand up an evaluation harness that runs candidate prompts against versioned golden datasets and reports quality and latency deltas on every pull request.
AnswersB, E

A shared library removes duplicated plumbing work and standardizes behavior such as retries and streaming, which shortens the path from idea to working integration. Because token accounting is centralized, teams get consistent cost visibility without building it themselves. This directly reduces repeated manual work and lets engineers focus on product logic instead of re-solving transport concerns in every service.

Why this answer

The two interventions that directly reduce repeated work and tighten feedback are a shared client library that absorbs common plumbing and a centralized evaluation harness that reports quality and latency deltas on every pull request. Together they remove duplicated effort and surface regressions early, letting teams iterate faster while keeping results comparable across services.

Exam trap

The trap here is equating rigor with control, so freezing prompts or adding a slow approval board feels productive even though both lengthen the feedback loop and reduce throughput.

360
MCQmedium

A financial company is deploying an agent that uses a custom MCP server to query account data. The security team is worried about 'over-privileged' MCP tools. How should the architect scope the tool access?

A.Implement a specialized MCP server that exposes only the specific read-only tools needed for account data retrieval.
B.Give the agent full read/write permissions to the database to ensure it can handle all possible account-related workflows.
C.Rely on the agent's system prompt to restrict its usage of the provided tools to account inquiries only.
D.Configure the agent to use a generic 'SQL Query' tool that can access any database table available in the environment.
AnswerA

By creating a specialized MCP server that only exposes necessary, read-only tools, the architect limits the agent's capability to exactly what is needed. This restricts the potential impact if the agent is compromised, as it lacks the ability to execute write operations or access unrelated data tables.

Why this answer

The most secure way to manage MCP tool access is to limit the server's scope so that it only exposes the specific tools and data required for the agent's function. By using the 'roots' capability to restrict filesystem access and ensuring the MCP server's implementation only connects to authorized backend APIs with read-only credentials where appropriate, the architect enforces the principle of least privilege. This ensures that the agent's capability is bounded by the MCP server's design rather than the agent's own desires.

Exam trap

Candidates often assume that MCP servers are inherently secure because they are external components, ignoring the need to configure them for least privilege.

361
MCQmedium

Your organization is building a red-teaming harness for an agent that uses an MCP server to access internal project files. You want to test if the model can be tricked into exfiltrating sensitive data from files it should not access. Which strategy should be prioritized for this red-teaming scenario?

A.Focus solely on testing if the model generates harmful or toxic content when prompted with adversarial inputs.
B.Attempt to use the agent's file-reading tools to traverse directories beyond the authorized roots configured in the MCP server.
C.Enable the server-side refusal fallback feature to ensure the model automatically switches models upon detecting a safety violation.
D.Automate the submission of thousands of random strings to the model to check for API rate limit errors.
AnswerB

This directly tests the effectiveness of the MCP server's perimeter security and the agent's adherence to its defined operational boundaries, which is critical for preventing unauthorized file access during model-driven workflows.

Why this answer

Effective red-teaming for agentic file access requires testing the boundaries of the MCP server's visibility. By attempting to use the agent's file access tools to traverse directories or read files outside of the defined roots, you simulate a prompt injection or model hallucination scenario where the model ignores its instructions. This approach verifies whether the MCP server and the agent's permission layer are correctly configured to enforce least privilege rather than relying solely on the model's adherence to system instructions.

Exam trap

Candidates often assume that red-teaming should focus on the model's refusal to answer harmful questions, forgetting that agentic workflows require testing tool-use boundaries specifically.

362
MCQmedium

In a swarm of specialized agents, what is the primary benefit of using a 'Blackboard' pattern for inter-agent communication?

A.It forces all agents to run sequentially, which improves execution speed.
B.It eliminates the need for any form of agent orchestration or management.
C.It enables decoupled, non-linear collaboration between specialized agents.
D.It increases security by isolating agent memory into individual silos.
AnswerC

By utilizing a shared blackboard, agents can contribute findings independently, allowing for a non-linear problem-solving process. This decoupling is crucial because it allows individual agents to focus on their specific tasks while providing a unified view of the current progress, enabling more sophisticated emergent reasoning across the entire multi-agent swarm.

Why this answer

The Blackboard pattern allows multiple agents to contribute their expertise to a shared data structure, or blackboard, which serves as a common knowledge base. This promotes decoupling, as agents do not need to know about each other's existence, only how to read from or write to the blackboard. This architecture is essential for complex, multi-faceted problems where multiple specialized agents must collaborate without creating rigid, brittle dependency chains.

Exam trap

Candidates often confuse the Blackboard pattern with a centralized controller. They mistakenly believe the pattern is about command-and-control, rather than the decoupling of agents through a shared knowledge space.

363
MCQmedium

During a project milestone review, a stakeholder asks why the team is creating separate system prompts for different agentic sub-tasks rather than using a single, comprehensive 'master' prompt. How do you explain the architectural benefit of this approach?

A.It is the only way to ensure that the model uses the same tool definitions across all different parts of the agentic workflow.
B.It prevents the model from hitting the maximum token limit by spreading the instructions across multiple API calls.
C.It ensures that the model can be 'reset' to a clean state between sub-tasks, which is required by the stateless nature of the Messages API.
D.It allows us to maintain a smaller context window for each sub-task, improving efficiency and reducing the likelihood of the model ignoring instructions.
AnswerD

Granular prompts help the model stay focused on the specific task at hand. By limiting the instructions to what is necessary for that sub-task, you prevent the model from being overwhelmed by irrelevant data or instructions, which significantly increases the reliability and consistency of the agent's output at each step of the process.

Why this answer

Using specialized, granular system prompts for specific sub-tasks is a best practice for managing agentic workflows. It reduces the context window footprint for each step, minimizes the risk of prompt injection and instruction drift, and makes it easier to version and test individual components of the workflow. A single 'master' prompt often leads to 'instruction fatigue' where the model struggles to prioritize competing directives, whereas modular prompts allow for more focused and reliable model performance at each stage of the task.

Exam trap

Thinking that a single prompt is simpler or more efficient, ignoring the challenges of managing complexity and model focus in large prompts.

364
MCQmedium

You are documenting the process for handling 429 rate-limit errors in your production document extraction pipeline. A junior developer suggests that they should just set the SDK to retry these requests indefinitely to avoid data loss. Why should your documentation explicitly advise against this approach?

A.Indefinite retries will result in the organization's API keys being permanently revoked by Anthropic for suspicious traffic patterns.
B.The API will automatically drop any request that is sent during a 429 period, so retries are effectively wasting compute resources.
C.Excessive retries can worsen service instability and prevent the system from recovering, as they ignore the backpressure signals intended to manage load.
D.The SDK is physically unable to perform retries, so the developer must implement a custom loop that handles the 429 error manually.
AnswerC

The API's rate limits act as a backpressure mechanism to maintain global service health. By ignoring these signals and retrying indefinitely, your application contributes to the very congestion it is trying to overcome, potentially leading to prolonged downtime and preventing the system from recovering effectively from the initial overload condition.

Why this answer

Indefinite retries can exacerbate service degradation during periods of high load, potentially leading to a cascading failure across your infrastructure. The API's rate limits are designed to protect the service stability for all users. Your application should respect the `retry-after` header and implement exponential backoff rather than aggressive, infinite retries.

Furthermore, your documentation should emphasize that 429s are a signal to adjust the workload or scale appropriately, not a transient issue that can be solved by simply hammering the API with more requests.

Exam trap

Confusing standard network resilience with the need for rate-limit management, which requires respecting server-side backpressure signals.

365
MCQmedium

An organization deploying a Claude-powered customer service assistant requires strict policy governance around handling safety refusals. When the model determines an input violates Anthropic's safety policies, how does the API indicate this event to the application runtime?

A.The request completes with an HTTP status 200, returning a response body where `stop_reason` is explicitly set to `refusal`.
B.The API throws an HTTP 400 Bad Request error containing the specific policy violation code in the JSON error header.
C.The API terminates the network socket immediately and issues an HTTP 403 Permission Denied response payload.
D.The response payload populates `content` with an error array while setting the global response status field to `rejected`.
AnswerA

Anthropic handles safety refusals as completed generation turns rather than network failures. The API returns an HTTP 200 success code and sets `stop_reason` to `refusal`, allowing client applications to handle the state gracefully.

Why this answer

Safety refusals triggered by Anthropic's safety classifiers complete normally over standard HTTP connections (status code 200) rather than raising HTTP error codes. The application detects a refusal by inspecting the response payload, specifically checking if `stop_reason` is set to `refusal`. On modern models, additional classification details may be provided in `stop_details` within the response.

Exam trap

Expecting a safety policy violation to return a 403 Forbidden or 400 Bad Request HTTP status code.

366
MCQmedium

An organization is building an internal review portal where human supervisors inspect intermediate agent reasoning and tool calls. During a security audit, an architect notes that the application is exposing raw internal thinking blocks directly to the UI dashboard as a verifiable audit trail of the model's logic. What is the primary architectural flaw in this design?

A.Rendering thinking blocks triggers an immediate 400 invalid request error because thinking tokens cannot be passed back in multi-turn loops.
B.Exposing thinking blocks consumes excessive cache read input tokens and violates prompt caching optimization rules.
C.The API does not expose the raw chain of thought; relying on thinking blocks for compliance auditing is architecturally invalid because thinking output is not a structured reasoning trace.
D.The API exposes raw chain of thought traces that violate data privacy regulations when rendered to end users.
AnswerC

The API never exposes the raw chain of thought. Applications must capture explicit tool usage, structured outputs, and application logs to satisfy compliance and oversight requirements rather than depending on internal thinking text.

Why this answer

Current models use adaptive thinking where the raw chain of thought is not exposed by the API. Applications receive either summarized thinking or standard output content blocks, but the internal reasoning trace is not guaranteed to be returned in a raw, inspectable format suitable for audit trails. Treating opaque thinking outputs as a complete, deterministic audit log creates a false sense of security regarding model transparency.

Exam trap

Candidates often assume that because thinking tokens are counted and returned, the complete internal cognitive process of the model is fully transparent and auditable.

367
MCQmedium

A healthcare provider uses the Files API to upload large medical manuals that Claude Sonnet 5.5 references to answer staff queries. When a manual is updated, the architect needs to ensure the old version is no longer accessible or stored. What is the correct procedure for managing this data lifecycle?

A.Upload the new manual with the same filename to automatically overwrite the existing file_id.
B.Use the /v1/files/{file_id}/update endpoint to patch the content of the existing document.
C.Set the 'ephemeral' property in the Files API upload request to ensure it is deleted after one use.
D.Upload the new version and then call the DELETE method on the old file's specific file_id.
AnswerD

This is the correct lifecycle management pattern. Because files are immutable, you must upload the new content to get a new ID and then explicitly delete the old ID to ensure the sensitive or outdated data is removed from Anthropic's storage, maintaining strict data hygiene.

Why this answer

Files uploaded through the Files API are not overwritten or patched in place; they persist until they are deleted. To replace a document, upload the new version, which gets a new file_id, update the application to reference it, and delete the old file with DELETE /v1/files/{file_id}. This removes the superseded content and stops it being referenced in future requests.

Exam trap

Assuming that uploading a file with the same name overwrites the existing one in the Files API.

368
MCQmedium

Refer to the exhibit. Your application is hitting rate limits. A stakeholder is concerned about the user impact. What is your communication strategy?

A.Tell them the service is unusable and wait for Anthropic to fix it.
B.Explain the rate limit, the automatic retry mechanism, and the scaling plan.
C.Ignore the issue until the stakeholder asks about it again.
D.Blame the engineering team for poor code quality.
AnswerB

This provides a comprehensive answer that covers the problem (rate limits), the immediate fix (retry mechanisms), and the long-term solution (scaling). This approach demonstrates control, foresight, and a proactive management style, which reassures the stakeholder that the issue is understood and being handled correctly according to architectural best practices.

Why this answer

When hit by technical constraints, the architect must communicate the limitation, the current mitigation (retry logic), and the plan for long-term scaling. This is vital because stakeholders need to know that the system is self-healing, but also that you are actively working on increasing capacity. Clear communication prevents panic and demonstrates that the system was designed with resilience in mind, maintaining stakeholder trust during temporary service interruptions.

Exam trap

Candidates often focus solely on the technical fix (e.g., increasing limits) without addressing the communication aspect, leaving stakeholders unaware of the system's resilience and current recovery status.

369
MCQeasy

Your organization has a policy that any Claude agent failure must be reported to the security team within one hour. During a routine check, you identify that a Claude Sonnet 5.5 agent returned a 'refusal' stop_reason due to a safety violation. How should your automated system handle this event?

A.Treat the refusal as an API error and trigger the SDK's automatic retry mechanism.
B.Log the refusal, capture the stop_details, and escalate the incident to the security team for review.
C.Clear the conversation history and re-send the request using a higher effort level to bypass the filter.
D.Ignore the refusal and update the system prompt to be more permissive to prevent future blocks.
AnswerB

This is the appropriate incident response workflow. Logging the refusal along with the stop_details allows security teams to analyze why the model blocked the request. Escalation ensures compliance with the organizational mandate to report potential safety failures within the specified timeframe, enabling effective post-incident evaluation of the agent's behavior.

Why this answer

When the API returns a 'refusal' stop_reason, it indicates that the request triggered an internal safety classifier. As part of the incident response lifecycle, your application must log this refusal, capture the stop_details, and immediately alert the security team as per your organization's policy. The refusal is a signal that the input was flagged as problematic, and it requires human review to determine if the failure was a false positive or a legitimate security concern.

Exam trap

Candidates often suggest re-running the request automatically, which might violate safety policies if the content is truly harmful.

370
MCQmedium

Your enterprise team is designing a multi-turn customer support chatbot using Claude Sonnet 5.5. A business stakeholder asks why the application cannot seamlessly 'continue' an assistant response that was cut off due to hitting the max_tokens limit by feeding the truncated text back into the messages array as the last turn. How should you explain this limitation?

A.The API strictly forbids assistant-message prefill and rejects attempts to continue a truncated response by passing the partial text back in the message history.
B.Truncated responses automatically transition into long server-tool pause turns, requiring a background execution handler rather than direct message continuation.
C.Passing partial text back triggers an immediate safety refusal because the text was generated without an active tool loop or valid reasoning trace block.
D.The prompt cache will be permanently invalidated and incur triple billing penalties if an incomplete assistant response is reintroduced into the conversation prefix.
AnswerA

Current models explicitly do not support assistant-message prefill, meaning that ending the messages list with a partial assistant turn returns a 400 error. Stakeholders must understand that outputs truncated by hitting max_tokens cannot be resumed this way and require higher token caps or concise output design.

Why this answer

Assistant-message prefill and continuation of truncated responses via a partial assistant turn are not supported on current models and return an HTTP 400 error. The correct approach to prevent truncation is to raise max_tokens or stream large values, while remembering that adaptive thinking tokens also count toward the total max_tokens limit. Attempting to feed truncated assistant text back into the message history invalidates the strict alternating role requirement and will be rejected by the API server.

Exam trap

Candidates often assume LLM APIs permit resuming incomplete generations by injecting the truncated text back as an assistant role, mirroring chat UI workarounds.

371
MCQeasy

A media company wants a lightweight, recurring review of its Claude-powered content moderation assistant. The team has no dedicated compliance staff and wants the cheapest process that still produces defensible evidence of oversight. Which approach fits best?

A.Commission an annual third-party audit with formal attestation and a published report.
B.Track the volume of user complaints and treat a stable or declining trend as sufficient evidence of adequate oversight.
C.Rely on the vendor's published safety evaluations and model cards as the primary evidence of the assistant's suitability.
D.Adopt a scheduled sampling review where a rotating staff member scores a fixed sample of outputs against written criteria and records the results.
AnswerD

Periodic human sampling against documented criteria produces dated, reproducible evidence of oversight at low cost, and it can be run by existing staff with a short rubric. Recording scores and reviewer identity creates the audit trail regulators expect. This matches the requirement for a lightweight but defensible process.

Why this answer

Defensible oversight means showing that a named person reviewed outputs against written criteria on a defined schedule and recorded the outcome. Scheduled sampling achieves exactly that with minimal tooling and staffing, and the recorded scores form a durable evidence trail. Vendor documentation and complaint trends are supporting signals, not substitutes for local, documented human review.

Exam trap

The trap here is equating passive outcome metrics or vendor documentation with active oversight, when reviewers look for evidence that the deploying organization itself examined outputs against criteria.

372
Multi-Selectmedium

When designing an agentic system, which TWO of these 'observability' metrics are most crucial for monitoring the health of the agent's reasoning process?

Select 2 answers
A.Total Step Count per Task.
B.Average latency of the user's internet connection.
C.Tool Call Success Rate.
D.The color profile of the agent's UI dashboard.
E.Number of times the user clicks the refresh button.
AnswersA, C

Monitoring the number of steps an agent takes helps identify inefficient workflows or runaway reasoning. If a task that should take 3 steps is taking 50, the agent is likely stuck in a loop or struggling to formulate a plan, indicating a need for better prompt instructions or debugging.

Why this answer

Tracking 'Step count per task' and 'Tool call success rate' provides immediate visibility into whether the agent is diverging or struggling. An unusually high step count indicates potential infinite loops or circular reasoning. A low tool call success rate reveals integration failures or ambiguous tool definitions.

By monitoring these, you can detect system degradation before it impacts the end-user, allowing for proactive debugging and iterative improvements to the agent's core instruction set.

Exam trap

Candidates frequently select vanity metrics like total token usage or wall-clock elapsed time, failing to realize that reasoning health is specifically evaluated via step counts and tool success rates.

373
MCQmedium

Your organization has a strict 'zero data retention' (ZDR) agreement with Anthropic. A developer accidentally logs the full input prompt of a failed Claude request to an external logging service. How should this incident be classified and handled?

A.Classify the incident as a minor technical error because the API itself is stateless and Anthropic does not retain the data in its own systems.
B.Treat the incident as a data breach, purge the logs from the external service, and perform a risk assessment on the exposed content.
C.No action is required as the data was already processed by the model and the ZDR agreement ensures that all data is discarded immediately by Anthropic.
D.Ask the security team to contact Anthropic to request the deletion of the data from the external logging service that the developer used.
AnswerB

This is a legitimate data breach because sensitive data was sent to an external, potentially insecure location. The correct incident response is to contain the exposure by deleting the logs, assess the impact of the leaked information, and implement training to ensure that prompt logging is restricted to authorized, secure environments.

Why this answer

This incident must be handled as a data breach of sensitive information. Even though the API is stateless and Anthropic has a ZDR agreement, the developer's action exported the data to an unauthorized, third-party logging service that is not covered by the ZDR agreement. The incident response process must focus on purging the logs from the external service and rotating any credentials that might have been included in the logged prompt, as the organization's ZDR status does not protect data once it leaves the secure environment.

Exam trap

Candidates often incorrectly assume that if the API is stateless, logging the data elsewhere is harmless.

374
MCQeasy

A stakeholder asks why the AI system occasionally provides different answers to the same question. How do you explain this?

A.Tell them it is a bug and that the team is working on a fix for consistency.
B.Explain that the model uses a 'temperature' parameter to balance variety and predictability, which is key to its generative nature.
C.Blame the training data for being inconsistent and poorly structured.
D.State that the system is broken and should be shut down until it is perfect.
AnswerB

This explanation is technically accurate and provides the stakeholder with a mechanism for control. By understanding that temperature controls creativity, they can now participate in decisions about how to tune the model, which empowers them and improves their confidence in the overall system design and performance.

Why this answer

Explaining the concept of model temperature and non-determinism is crucial for managing expectations about AI behavior. By framing it as a balance between creativity and consistency, you help stakeholders understand that this variability is a fundamental aspect of generative AI. This allows them to make informed decisions about whether to adjust parameters for their specific use case, ensuring they have the right tool for the job while maintaining realistic expectations about performance.

Exam trap

Candidates often blame the model for being 'broken' or inconsistent, failing to explain that variability is a configurable feature intended to provide diverse and creative outputs when necessary for the task.

375
Multi-Selectmedium

Your team is evaluating the cost-benefit of using Claude Opus 5.5 versus Claude Sonnet 5.5 for a complex agentic workflow. The stakeholders are concerned about the higher cost of Opus. Which TWO factors should you highlight to justify the potential ROI of using the more capable model?

Select 2 answers
A.Using Opus 5.5 allows us to bypass the need for prompt caching, as the model's inherent intelligence can infer the necessary context without relying on pre-processed data prefixes.
B.Opus 5.5 processes tokens faster than Sonnet 5.5, which will lower our total infrastructure costs by reducing the overall execution time of our long-running agentic workflows.
C.Opus 5.5 supports a larger context window than Sonnet 5.5, allowing us to include more historical data in our prompts without incurring additional prompt caching costs.
D.Opus 5.5 offers superior reasoning capabilities, which significantly reduces the frequency of task failures and the subsequent need for expensive human-in-the-loop remediation.
E.The higher cost of Opus 5.5 is offset by its ability to reliably complete multi-turn tasks in fewer iterations, effectively lowering the total token consumption for the entire agentic loop.
AnswersD, E

For complex workflows, the cost of human error correction and manual oversight is often the largest expense. By choosing a more capable model that achieves higher accuracy, you reduce these downstream operational costs, providing a clear financial justification for the higher initial cost of the model.

Why this answer

When justifying the use of a more expensive model, you must focus on the business impact of quality and performance. Opus 5.5 may reduce the total cost of ownership by completing tasks more accurately in fewer turns, reducing the need for costly human intervention, complex error-correction logic, or multiple failed attempts that would occur with a less capable model. This 'quality-led' ROI is often more significant than the delta in per-token API costs.

Exam trap

Focusing on speed or latency as the primary justification for Opus, whereas its true value lies in reasoning depth and accuracy for complex tasks.

Page 4

Page 5 of 7

Page 6

All pages