Courseiva

Claude Certified Architect - Professional (CCAR-P) — Questions 376–450

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

Page 5

Page 6 of 7

Page 7
376
Multi-Selectmedium

A security architect is configuring the Anthropic Console for a large enterprise. Which TWO features should be implemented to enforce centralized governance and reduce the risk of unauthorized account access?

Select 2 answers
A.Single Sign-On (SSO) integration via SAML 2.0.
B.Automatic rotation of all API keys every 24 hours.
C.Role-Based Access Control (RBAC) to limit 'Admin' permissions.
D.Real-time packet inspection of all API traffic.
E.Hardware Security Module (HSM) storage for all model weights.
AnswersA, C

SSO allows the enterprise to manage Anthropic access through their existing identity provider, such as Okta or Azure AD. This ensures that when an employee leaves the company, their access to the Anthropic environment is automatically revoked, significantly reducing the risk of orphaned accounts and unauthorized access.

Why this answer

Centralized governance in the Anthropic Console involves managing how users authenticate and what permissions they have. Implementing enterprise-grade access controls ensures that only authorized personnel can generate API keys or view usage metrics, which is vital for maintaining a secure and compliant AI environment.

Exam trap

Candidates mistakenly select runtime code-level configurations or model parameters when asked about enterprise-level console governance and access management controls.

377
MCQmedium

Your team is deploying an internal assistant. You have implemented a 'thumbs up/down' feedback mechanism in the UI. When a user provides a negative rating, you want to ensure the assistant's behavior improves for that specific user. What is the best way to leverage this feedback?

A.Directly pass the user's negative feedback to the model as a new user message to 'scold' it.
B.Summarize the feedback and use it to refine the system prompt or provide better few-shot examples in future sessions.
C.Trigger a fine-tuning job using the feedback to update the model weights.
D.Automatically set the model to the highest effort level to force it to think harder about the feedback.
AnswerB

Using feedback to refine the system prompt or add relevant few-shot examples is the most effective way to incorporate user preferences into the model's behavior. By iteratively updating the instructions based on actual user feedback, you can improve the assistant's accuracy and alignment with user expectations over time.

Why this answer

The most effective approach is to capture the negative feedback along with the conversation context and store it in a database. Then, develop a 'feedback refinement' workflow where the captured feedback is summarized and used to update the system prompt or provide few-shot examples for that specific user's future sessions. This ensures the model is explicitly guided by the user's preferences without attempting to 'train' the model directly, which is not supported.

Exam trap

Candidates often think they can use the feedback to trigger an immediate model fine-tuning or that they should try to 'correct' the model in real-time.

378
Multi-Selecthard

Which THREE strategies should be employed to securely manage sensitive data within an agentic workflow?

Select 3 answers
A.Apply PII masking/redaction before passing text to the LLM.
B.Enable the model to have full administrative access to the file system.
C.Implement fine-grained access control (RBAC) on all tool calls.
D.Maintain immutable audit logs of all model inputs and outputs.
E.Embed all user data directly into the system prompt for faster access.
AnswersA, C, D

PII masking ensures that sensitive data never leaves your secure environment in a readable format. By replacing names, emails, or IDs with tokens, the model can still perform logic based on the pattern without ever having access to the real, private data, which is essential for GDPR/HIPAA compliance.

Why this answer

Securing agents requires a layered approach: PII masking before sending to the model keeps data private; granular access control ensures the agent only touches data it is authorized to see; and audit logging provides traceability for every decision made. These components ensure that even if the agent is compromised or hallucinates, the impact is contained, data privacy is maintained, and there is a clear record of actions taken for compliance and forensics.

Exam trap

Candidates often focus solely on encrypting data at rest while forgetting that sensitive PII must be actively scrubbed before being passed to external LLM APIs.

379
MCQmedium

You are operating a Claude-based support agent that must follow a strict refund policy: refunds over $500 require a manager approval code that is only obtainable through a separate internal API. The agent has access to a `get_manager_code` tool, but in production it occasionally issues refunds above $500 without calling the tool. Which architectural change most reliably prevents this?

A.Expand the system prompt to describe the $500 threshold in bold and add two few-shot examples of correct refund handling.
B.Increase the max_tokens setting so the agent has more room to reason about whether approval is needed.
C.Add a pre-tool-use hook that inspects the refund amount and blocks any refund tool call above $500 unless a valid manager code is present in the session state.
D.Lower the model temperature to 0 so the agent produces deterministic decisions.
AnswerC

A pre-tool-use hook runs deterministically before the tool executes, so it can inspect the refund payload and reject any call over $500 that lacks a verified manager code. This enforces the policy outside the model's probabilistic reasoning, which is exactly where a hard business rule belongs. It makes violation architecturally impossible rather than merely unlikely.

Why this answer

Hard business constraints must be enforced deterministically outside the model. A pre-tool-use hook inspects the pending refund call and rejects any amount above $500 that lacks a validated manager code, making the violation impossible rather than improbable. Prompting, temperature, and token limits only shift probabilities and cannot guarantee compliance with a policy that carries financial or legal consequences.

Exam trap

The trap here is assuming that stronger prompting or lower temperature can enforce a hard business rule, when only deterministic interception outside the model can guarantee it.

380
MCQeasy

You are explaining the concept of model version pinning to a non-technical project manager. Which analogy best illustrates why you pin to specific model IDs like `claude-sonnet-5-5` instead of using 'latest'?

A.It is like buying a car; you want the newest model every year to ensure you have the best features.
B.It is like a smartphone update that you must install immediately to ensure your data is secure from hackers.
C.It is like a recipe; if the chef changes the ingredients slightly, the final dish might taste different, so we keep the recipe the same until we test the new one.
D.It is like cloud storage; you don't need to know where the data is, just that it is always accessible and updated.
AnswerC

This analogy clearly explains that even small changes in the 'ingredients' (the model) can lead to different 'results' (outputs), highlighting the need for testing before adopting updates, which is exactly why pinning is critical for maintaining consistency in enterprise applications.

Why this answer

Pinning is about ensuring that the 'engine' of your application remains consistent. Comparing it to an API contract or a pinned software library version is effective. It helps stakeholders understand that while upgrades are beneficial, they are not 'drop-in' replacements.

They require testing to ensure that the logic, safety, and output formats remain aligned with business requirements. This analogy shifts the conversation from technical jargon to the business value of stability and risk management.

Exam trap

Candidates often try to explain technical details like API endpoints or JSON schema validation, which can confuse non-technical stakeholders.

381
MCQeasy

Your organization is performing a periodic audit of an AI-based customer support agent. The compliance team wants to know why you chose to use an 'evaluator-optimizer' pattern for bias mitigation. How does this pattern specifically address fairness concerns?

A.It allows the system to use a cheaper model for the initial generation and a more expensive one only for final output verification.
B.It ensures that all customer interactions are logged for future manual review, which is the only way to perform a proper bias audit.
C.It uses an automated feedback loop to critique and refine responses against fairness criteria before they reach the customer.
D.It forces the model to use a higher effort setting, which inherently reduces the likelihood of generating biased or incorrect information.
AnswerC

This pattern provides a programmatic way to enforce fairness. By having a secondary process evaluate the initial output for potential biases and then prompting the primary model to refine its response, the system ensures that outputs are consistently checked and improved based on specific organizational fairness standards before exposure.

Why this answer

The evaluator-optimizer pattern uses one model (or a set of deterministic rules) to critique the outputs of the primary model, specifically looking for indicators of bias or non-compliance. This creates a loop where the primary agent can adjust its reasoning or response based on the feedback. By systematically checking outputs against fairness criteria, the system can self-correct, providing a dynamic layer of governance that is more responsive than static prompt constraints and easier to monitor for audit purposes.

Exam trap

Candidates often conflate 'evaluator' with human reviewers or external data sources, failing to see it as an architectural pattern.

382
MCQhard

A stakeholder demands that your team integrate Anthropic models into a sensitive financial system. How do you address the 'data privacy' concern?

A.Claim that privacy is guaranteed by Anthropic and no further action is needed.
B.Provide documentation on data encryption, retention, and compliance.
C.Ask them to sign a waiver saying they take responsibility for data leaks.
D.Agree to use the data for model training to improve performance.
AnswerB

Supplying detailed, factual documentation on how data is encrypted, processed, and deleted provides the objective evidence stakeholders need to conduct a risk assessment. This transparency is the primary mechanism for building trust and ensuring the application passes compliance gates, which is essential for successful adoption in regulated industries.

Why this answer

Addressing privacy concerns requires explaining the data security architecture, including data processing, storage, and retention policies. The architect must demonstrate that the implementation aligns with enterprise security standards. This is essential because stakeholder trust is the foundation of any deployment involving sensitive data; without clear documentation and assurance regarding privacy, the project will likely be blocked or experience significant delays during the security review phase.

Exam trap

Candidates often provide generic assurances about security without referencing specific documentation, missing that formal data encryption and retention policies are required for compliance.

383
Multi-Selecthard

You are designing a long-running agent that executes a sequence of irreversible operations, such as issuing refunds and sending customer notifications. The agent runs unattended overnight. Which TWO architectural patterns best ensure that a partial failure does not leave the system in an inconsistent state? (Choose two.)

Select 2 answers
A.Cache all tool responses in memory so the agent can replay the session without re-calling tools after a restart.
B.Raise the max_tokens limit for each planning step so the agent can reason through more contingencies before acting.
C.Implement compensating actions so that each irreversible operation has a defined reversal or mitigation step.
D.Increase the model's temperature so it explores alternative execution orders and avoids getting stuck on a failing step.
E.Record each intended operation in a durable journal before executing it, and mark it complete only after the tool confirms success.
AnswersC, E

Compensating actions provide a defined path to undo or mitigate an operation that succeeded but belongs to a workflow that later failed. For refunds and notifications, this might mean issuing a reversal or a correction notice. Together with journaling, compensation ensures that a partially completed sequence can be brought back to a consistent state rather than left with orphaned side effects.

Why this answer

Unattended agents performing irreversible actions need both a durable record of intent and a way to reverse or mitigate completed steps. Journaling provides the audit trail and restart logic, while compensating actions provide the semantic undo. Together they allow the orchestrator to detect partial completion and bring the workflow back to a consistent state after a crash or timeout.

Exam trap

The trap here is reaching for model-side knobs like temperature or token limits to solve what is fundamentally a distributed-systems durability and compensation problem.

384
MCQhard

An enterprise is investigating a security incident where a production assistant powered by Claude Sonnet 5.5 was subjected to an advanced prompt injection attack embedded within an untrusted document processed via the Messages API. The security team wants to isolate the compromise and verify if the raw chain of internal reasoning can be audited to determine exactly when the injection succeeded. What is the architectural constraint regarding this investigation?

A.The raw chain of thought can be extracted from the thinking block metadata returned in the final streaming event of the API response.
B.Security auditors can inspect the raw reasoning trace because thinking blocks are fully transparent when adaptive thinking is activated.
C.The raw chain of thought is never exposed, so incident investigations must rely on observable tool calls, final outputs, and stop reasons.
D.The incident response team must invoke a diagnostic debug header on POST /v1/messages to force the platform to dump the unredacted thinking trace.
AnswerC

Because the raw chain of thought is not exposed, forensic investigations into prompt injection incidents must rely on analyzing observable artifacts such as emitted tool calls, final response text, stop reasons, and application-level telemetry rather than internal reasoning traces.

Why this answer

On current models, thinking tokens and adaptive thinking are enabled, but the raw chain of thought is never exposed in the API response or logs. Only summarized or truncated thinking may be returned, and thinking blocks must be passed back unchanged in multi-turn tool loops. Therefore, security architects cannot inspect a raw, unredacted internal reasoning trace during an incident review; instead, they must rely on final output blocks, tool usage logs, and system telemetry to reconstruct the incident path.

Exam trap

Candidates frequently assume that internal model reasoning traces are fully logged and exposed for forensic security analysis, confusing standard application telemetry with model internals.

385
Multi-Selecthard

An architect is defining the Shared Responsibility Model for a company deploying Claude via the Messages API. Which THREE tasks are the sole responsibility of the customer (the 'User') rather than Anthropic?

Select 3 answers
A.Classification and sanitization of PII within input prompts.
B.Physical security of the data centers housing the TPU/GPU clusters.
C.Fine-tuning the base model's Constitutional AI principles.
D.Implementing Identity and Access Management (IAM) for API key usage.
E.Monitoring model outputs for internal policy compliance and accuracy.
AnswersA, D, E

Customers are responsible for identifying and managing the sensitivity of the data they send to the model. Anthropic does not automatically know which data points constitute PII for a specific business context, so the customer must implement their own redaction or classification logic before calling the Messages API.

Why this answer

Understanding the Shared Responsibility Model is essential for risk management in AI deployments. While Anthropic secures the base model and underlying infrastructure, the customer remains responsible for the data they input, how they configure access to the API, and the specific ways the model's output is integrated into their business processes.

Exam trap

Candidates often assume that cloud providers or model vendors handle data privacy filtering and output correctness out of the box, confusing provider responsibilities with customer duties.

386
MCQhard

You operate a long-running research agent that maintains a scratchpad of findings across many turns. You notice that as the scratchpad grows, the agent begins ignoring recent tool results and repeating earlier conclusions. You cannot increase the context window. Which intervention most directly addresses the root cause of the recency failure?

A.Move the scratchpad out of the prompt entirely and store it in an external vector database, retrieving relevant entries only when the agent explicitly asks.
B.Append every tool result verbatim to the scratchpad so no information is lost, and instruct the agent to re-read the entire scratchpad before each decision.
C.Restructure the scratchpad into a fixed-size rolling summary that is regenerated each turn, with the most recent tool results kept verbatim in a dedicated, clearly delimited section.
D.Lower the model's temperature to zero so the agent becomes more deterministic and less likely to drift from the current evidence.
AnswerC

The root cause is that accumulated history pushes recent results into a diluted middle position. A rolling summary compresses old findings into a bounded block, while a dedicated recent-results section guarantees the newest evidence sits in a high-attention position. This keeps total context roughly constant, so recency is preserved without needing a larger window.

Why this answer

The agent is not forgetting recent results so much as losing them in an ever-growing block of text where early material dominates attention. Bounding the scratchpad with a regenerated rolling summary keeps total size stable, and reserving a clearly delimited section for the newest tool results puts current evidence in a position the model reliably attends to. This fixes the structural cause rather than the sampling or storage symptoms.

Exam trap

The trap here is diagnosing the recency failure as a memory or determinism problem and reaching for external storage or temperature changes, when the actual cause is where recent evidence sits inside a growing context.

387
MCQeasy

Your enterprise is evaluating the cost of a long-running agentic workflow. A stakeholder asks why the cost seems high for tasks that appear simple. Which explanation best addresses the stakeholder's concern about cost attribution?

A.The model is automatically charging more for complex agentic tasks compared to simple summarization.
B.The agentic loop involves multiple API calls, and the total cost is the sum of tokens across all turns.
C.The API billing is per-request, so long-running agents are inherently more expensive due to overhead.
D.You should switch to a different model tier to see if the cost for the same agentic task decreases.
AnswerB

This is the most accurate and transparent explanation. Agentic workflows are multi-turn processes, and every interaction with the model consumes tokens based on the full message history. Acknowledging this architecture helps stakeholders understand that total consumption is cumulative, allowing for focused optimization of the agent's decision-making logic and turn count.

Why this answer

Costs in agentic workflows often escalate because every turn in the conversation, including every tool use, consumes tokens. In an agentic loop, the model repeatedly processes the conversation history and potentially the same tool outputs multiple times. You should explain that the 'cost per task' is not just one request, but a sequence of requests.

To optimize, you must reduce the number of turns, keep context compact, and ensure tools are efficient, rather than expecting a single-request price for a multi-step agentic process.

Exam trap

Candidates often blame the model or the API cost, failing to recognize that the agent's architecture (number of turns/loops) is the primary driver of cost.

388
MCQmedium

Refer to the exhibit. An agentic loop receives this response from the Anthropic API during a critical multi-step operation. Which strategy should the architect implement to ensure the agent completes its task successfully?

A.Immediately terminate the agent and alert the user
B.Restart the entire agentic loop from the first message
C.Implement exponential backoff with jitter in the orchestrator
D.Reduce the temperature of the next request to 0
AnswerC

This is the standard resilience pattern for distributed systems. Retrying the request after an increasing delay, combined with a small amount of randomness (jitter), helps mitigate congestion on the API server while allowing the agent to eventually proceed with its task once the service stabilizes.

Why this answer

Transient API errors like 'overloaded_error' are common in high-traffic environments. A robust agentic architecture must handle these gracefully using exponential backoff. This prevents the agent from failing the entire task due to a temporary service interruption and ensures that the long-running state of the agent's work is preserved and resumed.

Exam trap

Candidates often suggest increasing the model temperature or changing the system prompt. These do not solve transient infrastructure issues and will result in repeated failures during high-traffic periods.

389
MCQeasy

A support engineering team wants new hires to become productive with the company's internal Claude-powered assistant quickly. They need a single place where engineers can discover approved prompt patterns, see working request examples, and read guidance on handling tool-use results. Which artifact best serves this enablement goal?

A.A curated internal developer portal page containing vetted prompt templates, runnable request and response examples, and tool-use handling guidance, kept current by the platform team.
B.A generated API reference produced directly from the vendor's public documentation and mirrored nightly into the internal wiki.
C.A read-only archive of the last six months of Slack messages from the team's #claude-help channel, searchable by keyword.
D.A shared drive folder of presentation decks from past architecture reviews, organized by fiscal quarter.
AnswerA

A maintained portal consolidates discovery, approved patterns, and executable examples in one authoritative location, which is exactly what shortens onboarding time. Keeping the platform team as owners ensures the content stays aligned with the current API surface. New hires get both conceptual guidance and concrete request shapes without hunting through scattered repositories or outdated chat threads.

Why this answer

Enablement content works when it is curated, current, and executable. A maintained portal lets new hires discover vetted prompt templates, copy working request examples, and read guidance on tool-use results in one place. Ownership by the platform team keeps it aligned with the evolving API and internal conventions, which directly reduces time to first productive contribution.

Exam trap

The trap here is treating any searchable store of past communication or vendor reference material as sufficient enablement, when discovery, approval status, and runnable examples are what actually accelerate onboarding.

390
MCQmedium

An enterprise architect is reviewing an automated 'bias correction' system that prepends the instruction 'Please ensure your response is neutral and free from gender bias' to every user prompt. Why is this approach considered insufficient for professional-grade bias governance?

A.This approach is only valid if the instruction is placed in a User message rather than the System parameter.
B.The Messages API ignores instructions related to fairness and safety to prevent users from bypassing internal filters.
C.It lacks empirical measurement and fails to provide a quantitative baseline for the model's actual performance.
D.Instructions in the system prompt are only effective if the `thinking` block is set to `adaptive` mode.
AnswerC

Governance is fundamentally about measurement. Simply adding an instruction does not tell the architect if the bias was actually reduced or if new issues were introduced. Professional-grade governance requires a systematic evaluation suite (evals) that quantifies bias before and after any mitigation attempt to ensure the risk is effectively managed.

Why this answer

Simple 'preachiness' in prompts—asking the model to be fair—is an unreliable mitigation strategy. It does not address the underlying data biases in the model's training and can lead to 'over-correction' or refusals of legitimate content. Professional governance requires quantitative evaluation (evals) to measure actual output variance, followed by robust structural mitigations like few-shot examples (multishot) that demonstrate the desired neutral behavior, rather than just describing it.

Relying on a single sentence instruction fails to provide the evidence or the consistency required for high-stakes enterprise applications.

Exam trap

Believing that prompt engineering is a substitute for empirical evaluation and measurement.

391
MCQmedium

Your enterprise team is deploying a high-volume document summarization pipeline powered by Claude Sonnet 5.5. You need to write operational documentation for the infrastructure team to monitor token economics and API health. Which operational metric should your documentation emphasize as the primary indicator for prompt caching efficiency?

A.The average latency of POST /v1/messages/count_tokens calls executed prior to batch submission.
B.The frequency of HTTP 413 request too large errors returned by the Messages API endpoints.
C.The ratio of cache_read_input_tokens to total input tokens processed across API responses.
D.The total count of cache_creation_input_tokens generated during initial startup phases.
AnswerC

Tracking the proportion of cache reads against total inputs provides a direct measurement of how effectively static content is bypassing full processing costs. This ratio exposes cache invalidations immediately when timestamps or unstructured parameters shift the prefix match.

Why this answer

When monitoring prompt caching efficiency, operations teams must track the proportion of input tokens served from the cache relative to total input tokens processed. The API response usage object explicitly separates cache_read_input_tokens from uncached input_tokens and cache_creation_input_tokens. A high ratio of cache reads to total input indicates that static system prompts and large reference documents are successfully hitting the 5-minute or 1-hour time-to-live cache prefix without inadvertent invalidations caused by dynamic prefixes or unsorted structures.

Exam trap

Candidates often assume that total input token volume or cache creation costs are the main metrics for caching efficiency, overlooking the critical role of read hit ratios in reducing latency and cost.

392
MCQhard

An enterprise is deploying Claude for high-stakes financial analysis. Which TWO governance controls should be implemented to mitigate the risk of model hallucinations and ensure factual accuracy?

A.Implement Retrieval-Augmented Generation (RAG) to ground responses in internal trusted knowledge bases.
B.Increase the temperature parameter to 1.5 to maximize response creativity.
C.Utilize a secondary model or deterministic script to validate the factual consistency of completions.
D.Require human intervention for every prompt sent to the API to guarantee zero errors.
E.Disable all safety filters to allow the model to process complex financial jargon.
AnswerA, C

RAG limits the model's knowledge scope by forcing it to answer based on provided context rather than its internal training weights. This grounding technique significantly reduces the likelihood of fabrications, ensuring that financial analyses remain consistent with internal facts and corporate data standards.

Why this answer

Mitigating hallucination risk requires a multi-layered approach involving technical constraints and validation processes. Implementing robust Retrieval-Augmented Generation (RAG) grounds the model's responses in verified source documents, while secondary verification steps add a deterministic layer to the output. These controls are essential in financial services where incorrect data can lead to severe regulatory penalties, financial loss, and significant reputational damage to the organization.

Exam trap

Candidates rely solely on increasing model parameters or prompt length to fix hallucinations, ignoring architectural solutions required for factual grounding.

393
Multi-Selecthard

You are designing a Claude agent that must complete a multi-hour research task spanning dozens of tool calls, and the transcript will eventually exceed the model's context window. You want the agent to keep making correct decisions without losing critical earlier findings. Which TWO architectural strategies best preserve decision quality across the compaction boundary? (Choose two.)

Select 2 answers
A.Summarize and discard the oldest transcript turns once a threshold is reached, retaining only the most recent turns verbatim.
B.Enable extended thinking on every turn so the model can reason through the full history internally without needing external state.
C.Raise the max_tokens parameter on every request so the model can hold more of the transcript in a single response.
D.Maintain an external structured scratchpad of confirmed findings, open questions, and decisions, and inject a curated summary of it into each new context window.
E.Persist a durable task state object and rehydrate the agent from it at each context boundary, treating the transcript as a disposable execution log.
AnswersD, E

An external scratchpad decouples durable knowledge from the ephemeral transcript, so compaction can drop raw turns without losing conclusions. Injecting a curated summary re-establishes the essential state each cycle, and because the scratchpad is structured, the agent can update specific fields rather than rewriting prose. This keeps decisions consistent even when the underlying conversation is truncated.

Why this answer

Durable continuity comes from moving authoritative state outside the transcript. A structured scratchpad preserves confirmed findings and open questions, while a persisted task state object lets the agent rehydrate deterministically at each boundary. Together they let compaction discard raw turns safely.

Token limits and internal reasoning do not expand context or survive eviction.

Exam trap

The trap here is conflating output length controls and reasoning effort with input context capacity, when none of them persists knowledge across a context reset.

394
MCQmedium

A stakeholder wants to change the project scope halfway through. How do you evaluate the impact?

A.Accept the change immediately to keep the stakeholder happy.
B.Perform a formal impact analysis and present the trade-offs.
C.Deny the request without explanation to prevent scope creep.
D.Work on the request secretly and surprise them later.
AnswerB

A formal impact analysis is the standard professional approach for managing project scope. It forces the team to consider the technical, cost, and time implications of the change. Presenting these trade-offs clearly to the stakeholder allows them to make an informed decision on whether the change is truly worth the required investment.

Why this answer

Managing scope creep involves a structured impact analysis, covering cost, timeline, and technical feasibility. The architect must ensure that the stakeholder understands the trade-offs of their request. This is vital for maintaining project alignment and ensuring that the team is not overloaded with un-resourced tasks that will derail the core objectives and negatively impact the quality of the final deliverable.

Exam trap

Candidates often agree to changes immediately or reject them outright, failing to perform the necessary formal impact analysis required to assess how scope changes affect project timelines and resources.

395
MCQmedium

A software company is using Claude to generate code snippets for internal projects. The security team is concerned that the model might inadvertently suggest code with known vulnerabilities. Which governance control should be implemented to best mitigate this risk?

A.Require developers to manually review all AI-generated code for security issues.
B.Integrate a static application security testing (SAST) tool into the CI/CD pipeline to scan all AI-generated code before merging.
C.Restrict Claude's access to only generate code for non-critical components.
D.Fine-tune Claude on a dataset of secure code examples to reduce the likelihood of generating vulnerable code.
AnswerB

SAST tools analyze code for security vulnerabilities without executing it. Integrating SAST into the CI/CD pipeline ensures that all AI-generated code is automatically scanned before it is merged, catching issues early. This is a direct and effective control to mitigate the risk of vulnerable code being deployed.

Why this answer

Integrating SAST into the CI/CD pipeline is the most effective control because it automatically scans all AI-generated code for known vulnerabilities before merging. This provides a consistent, scalable, and early detection mechanism. Manual review and fine-tuning are helpful but less reliable, and restricting scope does not address the core risk of vulnerable code.

Exam trap

The trap here is relying on manual review or fine-tuning as primary controls, when automated SAST scanning provides a more systematic and reliable mitigation for vulnerable code.

396
MCQhard

Refer to the exhibit. Which component in this API request represents the primary governance layer for preventing model bypass of organizational policies?

A.The model version string
B.The system parameter instructions
C.The metadata object fields
D.The user role in the messages array
AnswerB

The system prompt is specifically designed to provide high-priority instructions that the model prioritizes over user messages. This architectural feature allows developers to embed safety protocols and governance rules directly into the model's context, ensuring that the AI maintains its intended persona and security posture throughout the interaction.

Why this answer

The system parameter serves as the primary governing instruction set for Claude, establishing the operational boundaries and persona before user input is processed. By defining safety constraints and behavioral rules within this field, architects can implement a foundational layer of protection that limits the model's susceptibility to certain prompt injection techniques and ensures consistent adherence to enterprise safety guidelines.

Exam trap

Test-takers frequently look for external security tools or middleware in the exhibit, overlooking the direct governance role that system parameter instructions play in framing core operational rules.

397
Multi-Selectmedium

An enterprise architect is designing an automated code review tool using Claude. They want to ensure that the system handles potential safety refusals effectively. Which TWO of the following practices should be implemented to ensure robust production monitoring and safety?

Select 2 answers
A.Implement a retry mechanism that automatically resubmits refused requests with a higher 'effort' level.
B.Integrate a check for the 'refusal' stop_reason in the application logic to trigger a specific, user-friendly notification when a request is blocked.
C.Log all requests that result in a 'refusal' stop_reason for periodic review by the security and compliance team.
D.Use the API parameter 'safety_threshold' to adjust the sensitivity of the model to potentially harmful content.
E.Resubmit refused prompts to a different model specifically in order to get around the safety filter.
AnswersB, C

Checking the stop_reason is the standard way to handle safety interventions in production. By identifying the refusal immediately, the application can provide a clear explanation to the user, ensuring a smooth experience and avoiding confusion when the model is unable to process a specific piece of code.

Why this answer

Robust production monitoring for safety involves both immediate handling of the API response and long-term analysis of refusal patterns. Capturing the stop_reason is essential for real-time error handling. Additionally, logging the prompts that trigger refusals allows for periodic audit and refinement of the system instructions to reduce false positives without compromising safety, ensuring the organization maintains a high bar for model security.

Exam trap

Candidates often conflate 'retrying' a refusal with 'logging and auditing', or incorrectly assume that they can adjust the safety sensitivity directly.

398
MCQmedium

Your team is building an automated agent that uses the Files API to process documents. A security auditor is concerned that the `file_id` references might be intercepted or used to access files that the agent should not have access to. How does the Files API handle access control for uploaded documents?

A.The Files API requires a secondary 'secret_token' for each file access, providing an extra layer of security.
B.Files are automatically deleted after 24 hours to prevent unauthorized access from stale references.
C.The API automatically restricts access to files based on the 'user_id' provided in the request metadata.
D.Access to a file is controlled by the API key used to upload it; any key within the same workspace can access it.
AnswerD

The Files API operates at the workspace level. Any API key belonging to the workspace that uploaded the file has the authority to reference that file. This makes proper management of API keys and workspace boundaries the critical factor in preventing unauthorized access to uploaded documents.

Why this answer

Files uploaded through the Files API are scoped to the workspace of the API key used to upload them. Any API key in that workspace can reference the file_id, and there is no per-file access control list inside the API. File security therefore depends on protecting the workspace's API keys and on the application layer deciding which file_ids go into which request.

If a key is compromised, the attacker can reference files in that workspace.

Exam trap

Candidates often assume that the Files API has built-in per-file permission controls, which is not supported.

399
Multi-Selecthard

A financial firm is integrating Claude into its internal document processing pipeline. The compliance team is concerned about potential policy violations during automated data extraction. Which TWO of the following practices should the architect implement to ensure long-term compliance with usage policies and safety requirements?

Select 2 answers
A.Configure the application to automatically retry failed requests until a compliant response is generated.
B.Pin the application to a specific, versioned model identifier and ensure all updates go through a formal re-evaluation process.
C.Implement a comprehensive evaluation suite that tests model outputs against specific compliance criteria.
D.Use the latest model version ID dynamically to ensure the application always benefits from the most recent safety training.
E.Rely on the platform's default rate-limiting to prevent excessive usage that might lead to policy violations.
AnswersB, C

Version pinning ensures that the model behavior remains consistent, which is essential for maintaining compliance. By requiring a formal re-evaluation before moving to a new model version, the firm can verify that the new model adheres to all safety and policy requirements before it is deployed in production.

Why this answer

For an automated pipeline, the architect must ensure that the model's behavior is deterministic and auditable. Version pinning is critical because it prevents unexpected model behavior changes when a new version is released, which could otherwise lead to policy-violating outputs. Additionally, building an evaluation suite that tests for specific compliance scenarios ensures that the system is proactively monitored for drift or regression.

These two practices together form the foundation of a robust governance framework that satisfies both internal audit requirements and external regulatory obligations for AI model usage.

Exam trap

Candidates often prioritize model speed or cost-saving features over the necessary architectural controls for governance, such as version pinning and systematic evaluation.

400
MCQhard

A multinational financial corporation uses Claude Opus 5.5 for high-volume portfolio classification via the Message Batches API. During a governance review, auditors discover that several classification requests triggered safety policy refusals, resulting in missing outcomes for those specific items. How should the engineering lead adjust the batch processing pipeline to properly handle and audit these policy refusals?

A.Catch 400 bad request exceptions in the batch retrieval script and automatically retry those requests with modified custom_id identifiers.
B.Resubmit the entire batch job with lowered adaptive effort settings and disabled prompt caching to bypass Anthropic safety classifiers.
C.Modify the parsing logic to inspect each result's message for a refusal stop_reason and route declined items to a human compliance review queue.
D.Increase the maximum token limit per request in the batch configuration to ensure long financial reports do not trigger truncated responses.
AnswerC

Every request in a batch returns a result. A safety refusal arrives as a completed message whose stop_reason is refusal, so inspecting each result's message lets the pipeline separate usable outputs from declined items for manual review.

Why this answer

Requests that are declined by safety classifiers do not vanish from a batch or raise HTTP exceptions. They come back as completed messages with stop_reason set to refusal, alongside the other results. The pipeline must therefore inspect each result rather than assuming every item contains usable output, and route declined items to a human review queue.

Exam trap

Candidates often think safety refusals in asynchronous batches manifest as dropped items or unhandled server exceptions, missing the explicit result status model.

401
Multi-Selecthard

To ensure long-term maintainability and performance of LLM-based applications, which THREE architectural patterns should architects recommend? (Select THREE)

Select 3 answers
A.Decouple prompt management and model selection from core application logic.
B.Cache frequent identical API requests at the application level.
C.Hardcode system prompts to ensure the model behavior cannot change over time.
D.Implement continuous monitoring of token usage, costs, and latency.
E.Use the largest available context window for every single request to maximize intelligence.
AnswersA, B, D

Separating these layers allows developers to swap models or update prompts without deploying new application code. This modularity is essential for long-term maintainability, as it enables the team to adapt to new model releases or optimization requirements without the risk of breaking existing functionality.

Why this answer

Decoupling model logic, implementing robust caching, and establishing monitoring are vital for long-term sustainability. Decoupling allows for model upgrades without massive refactoring, caching reduces latency and costs for repetitive queries, and monitoring ensures that performance degradation is caught immediately. These patterns transform 'experimental' LLM features into production-grade systems that developers can manage efficiently, reducing the technical debt typically associated with quickly-built AI integrations.

Exam trap

Candidates often select manual processes like 'hardcoding prompts' or 'frequent manual testing,' failing to recognize the need for automated, decoupled architectures necessary for production-scale LLM maintenance.

402
MCQmedium

A Claude agent performs a multi-step deployment task. Step 3 calls a `deploy_service` tool that returns success, but the subsequent verification step fails because the service is not yet healthy. The agent currently treats any tool success as completion and ends the workflow. Which change best addresses this?

A.Instruct the model in the system prompt to always wait 60 seconds and re-check health after every deploy.
B.Increase the agent's max_tokens so it has more room to notice the verification failure in its reasoning.
C.Change the `deploy_service` tool to return a boolean instead of a status string so the agent can parse it more easily.
D.Add a post-tool-use hook that polls the service health endpoint and, if unhealthy, returns a structured error to the model so it can retry or escalate.
AnswerD

A post-tool-use hook runs after the deploy call and can independently verify health, converting a false success into a structured signal the model can act on. This closes the gap between the tool's reported success and the actual desired state. It keeps the orchestration deterministic at the verification boundary while letting the model decide the next step.

Why this answer

The agent conflates tool acceptance with desired end state, so verification must be moved into a deterministic post-tool-use hook that polls health and returns a structured error when the service is unhealthy. That lets the model retry or escalate instead of ending the workflow prematurely. Prompting, return-type changes, and token limits all leave the false-success gap intact.

Exam trap

The trap here is equating a tool's successful response with the workflow's desired outcome, when asynchronous systems often report acceptance before the effect is observable.

403
MCQmedium

An enterprise governance board is establishing an deployment architecture for internal software engineering teams using Claude Code across multiple projects. The board requires a strict policy enforcement layer to deterministically block prohibited terminal operations (such as running specific unsafe bash commands) regardless of how the LLM interprets the system instructions. Which mechanism provides this deterministic enforcement boundary within Claude Code?

A.Implement a custom slash command /audit to review shell histories after execution.
B.Set the permissions mode to plan mode in project settings.json to disallow command execution.
C.Add strict deny rules in the root CLAUDE.md file outlining prohibited bash syntax.
D.Configure a PreToolUse hook in settings.json that exits with code 2 when a prohibited command is detected.
AnswerD

A PreToolUse hook runs local script code prior to tool execution. Exiting with status code 2 deterministically cancels the tool call before any command reaches the terminal and feeds the output message back to the assistant context for programmatic safety control.

Why this answer

In Claude Code, settings instructions or system prompt guidelines in CLAUDE.md are subject to model interpretation and potential jailbreaking or non-compliance. To achieve deterministic control, architects must use hooks defined in settings.json. Specifically, a PreToolUse hook intercepts tool calls before execution.

If the hook script inspects the input parameters (such as a Bash tool call command) and exits with code 2, execution is strictly blocked and stderr is passed back to Claude. This provides a hard, programmatically guaranteed safety boundary.

Exam trap

Assuming that system prompt instructions or CLAUDE.md rules provide deterministic security bounds rather than advisory guidelines.

404
MCQeasy

An engineer is onboarding to a codebase that calls Claude and needs to understand, at a glance, which model, temperature, and max_tokens values a given feature uses. The team wants this discoverable without reading application source. What is the most effective practice?

A.Store model and sampling parameters in a versioned configuration file that the application loads at startup.
B.Rely on code comments near each API call to document the chosen parameters.
C.Ask each engineer to memorize the parameters for the features they own.
D.Log the parameters at debug level so they appear in application logs when needed.
AnswerA

Externalizing model and sampling parameters into a versioned configuration file makes them discoverable without reading application code. Engineers can inspect one file to see which model and limits a feature uses, and changes are reviewable through normal pull requests. It also decouples tuning from code changes, so adjusting temperature or max_tokens does not require a code deploy, improving both clarity and iteration speed.

Why this answer

Parameters that drive model choice, cost, and behavior belong in a versioned configuration file rather than scattered through code or held in memory. This makes them discoverable at a glance, reviewable in pull requests, and changeable without a code deploy. Comments, debug logs, and tribal knowledge each fail at least one of those properties, which is why configuration-as-code is the standard practice for developer enablement.

Exam trap

The trap here is accepting a familiar but weak documentation habit, such as code comments, when the requirement is a durable and reviewable source of truth.

405
MCQmedium

During a pilot, a user discovers the AI can be 'prompt-injected' to reveal internal system instructions. What should be your immediate communication response?

A.Downplay the issue as a minor curiosity and claim it is common for all LLMs.
B.Issue an immediate apology to all users and take the system offline for a security audit.
C.Acknowledge the finding, explain the mitigation plan, and provide an updated timeline for testing.
D.Blame the user for testing the system in a way it was not intended to be used.
AnswerC

Transparency regarding vulnerabilities and clarity in the remediation plan are essential for maintaining stakeholder confidence. This approach shows that the team is proactive in identifying and fixing security flaws, which prevents loss of trust and ensures that the project remains on track despite the technical challenge encountered during the pilot.

Why this answer

Immediate, transparent, and proactive communication is the hallmark of a professional architect. By acknowledging the issue, explaining the fix (such as improved system message structure or input sanitization), and outlining the testing process, you maintain stakeholder trust. This response demonstrates that the team is on top of security and that the system is being actively hardened against threats, which is essential for maintaining project momentum during sensitive pilot phases.

Exam trap

Candidates often attempt to hide the vulnerability or downplay its severity to avoid panic, which destroys stakeholder trust; transparency about the fix and testing timeline is essential.

406
MCQeasy

A developer is building a classification pipeline using Claude Haiku 5.5. They notice that when the model encounters certain sensitive keywords, it returns a 'refusal' stop_reason. The developer wants to know if they can change the 'effort' parameter to avoid these refusals. What is the correct guidance?

A.Yes, setting the effort to 'low' can reduce the likelihood of the model triggering a safety-related refusal.
B.No, the effort parameter does not influence the platform-level safety classifiers, so it cannot be used to avoid refusals.
C.Yes, increasing the effort to 'max' allows the model to better understand the context and avoid unnecessary safety refusals.
D.No, but you can achieve the same result by disabling the thinking process entirely, which removes the safety-check layer.
AnswerB

The effort parameter adjusts reasoning depth and cost. It does not change how Anthropic's safety classifiers evaluate a request, so raising or lowering it is not a way to avoid refusals.

Why this answer

The 'effort' parameter controls the depth of adaptive thinking and the token budget for reasoning. It is intended to trade off latency and cost against the quality of reasoning for complex tasks. It has no mechanism to influence, bypass, or tune the safety classifiers that trigger a 'refusal' stop_reason.

These classifiers are a platform-wide safety feature designed to enforce the usage policy, and they operate independently of the model's effort settings. Modifying the effort will not change the outcome of a request that has been flagged as violating safety policies.

Exam trap

Candidates often incorrectly believe that adjusting model parameters like effort or temperature (which is not supported) can influence safety-related behavior.

407
MCQhard

Midway through a Claude integration project, a business stakeholder asks you to add a feature that would let end users upload arbitrary documents and have Claude answer questions about them. The feature is not in the signed statement of work, and the delivery team is two weeks from the first production milestone. What should you do first?

A.Escalate the request to the project management office and let them decide whether to approve the change.
B.Accept the request and absorb the work into the current sprint so the stakeholder sees responsiveness.
C.Perform a lightweight impact assessment covering effort, risk, cost, and milestone impact, then present options with a recommendation to the sponsor and stakeholder.
D.Decline the request and tell the stakeholder to raise it at the next quarterly planning cycle.
AnswerC

Change requests are handled through impact assessment, not instant acceptance or refusal. Quantifying effort, new risks such as document-handling and prompt-injection exposure, incremental API cost, and the effect on the committed milestone lets the sponsor make an informed trade-off, which is the architect's proper role in lifecycle management.

Why this answer

Scope changes mid-project are normal, and the disciplined response is a fast, lightweight impact assessment that converts an informal ask into a decision the sponsor can make with eyes open. Presenting effort, risk, cost, and milestone impact alongside options respects both the signed commitment and the stakeholder's underlying need.

Exam trap

The trap here is treating a mid-project change request as either an automatic yes or an automatic no, when the architect's job is to price the change and let the accountable sponsor choose.

408
MCQmedium

A company is planning to use a third-party AI platform that offers 'automated model fine-tuning' on user data as a feature. Which governance action is mandatory before proceeding?

A.Review the vendor's data usage policy to confirm if submitted data is used to train or improve their models.
B.Perform a load test to ensure the fine-tuning service can handle the expected data volume.
C.Ask the vendor for a list of other companies using their fine-tuning service to perform a peer review.
D.Request a discount on the service fee based on the volume of data you provide for training.
AnswerA

Confirming the data usage policy is a fundamental governance requirement. If the vendor uses submitted data for training, it poses a severe risk of data exposure. You must ensure the platform allows opting out of training or provides a guarantee that your data is never used for model improvements.

Why this answer

The most critical governance action is to review the platform's data usage policy. If the platform uses customer data for training or fine-tuning, it creates a risk of data leakage or unintentional exposure of sensitive information in future model outputs. The organization must ensure they retain control over whether their data is used for training, or choose a provider that offers explicit zero-data-retention or non-training guarantees for enterprise users.

Without this verification, the organization risks violating privacy regulations and potentially leaking intellectual property through the model's future behavior.

Exam trap

Candidates often assume that 'automated fine-tuning' is always a beneficial feature and fail to scrutinize the underlying data retention and training implications.

409
MCQeasy

Under the shared responsibility model for AI safety, which task is the primary responsibility of the customer when using Anthropic's APIs?

A.Conducting the base model's pre-training safety audits
B.Patching the underlying hardware infrastructure
C.Developing the Constitutional AI principles
D.Monitoring and filtering application-specific user inputs
AnswerD

Customers are responsible for the inputs they send to the model and the outputs they show to their users. Implementing application-level monitoring, moderation, and abuse detection is a critical customer responsibility to ensure the AI solution remains safe and compliant within its specific deployment context.

Why this answer

Anthropic manages the safety of the base model through training and infrastructure, but customers are responsible for how they implement the model in their specific context. This includes monitoring end-user behavior and ensuring that the application's specific use case complies with overall usage policies. Understanding this division is essential for establishing clear accountability and risk management procedures.

Exam trap

Candidates often assume the model provider is responsible for all safety. They fail to realize that the customer is responsible for filtering inputs specific to their unique application context.

410
MCQmedium

An enterprise architecture team is designing an AI-powered legal document analysis system. They want to include a human-in-the-loop mechanism that allows a lawyer to intervene when the agent expresses low confidence in its extraction of key contract clauses. How should the architect design the agent to trigger this intervention?

A.Use the Claude Code 'PreToolUse' hook to monitor the model's thinking blocks for keywords like 'uncertain' or 'unclear'.
B.Configure the system to have the model call a 'request_human_help' tool whenever it encounters complex legal terminology.
C.Set the effort level to 'max' to ensure the model's reasoning is deep enough to avoid the need for human intervention.
D.Instruct the model to output a 'needs_review' flag in its response, which the orchestrator checks to pause the workflow.
AnswerD

By using structured outputs to define a field for confidence or review status, the architect creates a reliable communication channel between the model and the orchestration layer. The orchestration layer can then act on this flag to pause the process, ensuring that human intervention occurs precisely when the model identifies ambiguity.

Why this answer

The most effective design is to have the agent explicitly output a confidence score or a 'human_review_required' flag within a structured output format. The orchestrating application monitors this field; if it meets the threshold, the application halts the agentic loop, presents the document context to the human, and waits for a tool_result that contains the verified information. This pattern leverages the model's ability to self-assess while maintaining hard control in the orchestration layer.

Exam trap

Expecting the model to autonomously pause its own execution without a supporting application-level state machine or orchestration layer.

411
Multi-Selecthard

Your enterprise pipeline experienced a significant spike in costs during a recent incident where an agentic workflow entered a loop. When communicating this to the finance team, which TWO points are most important to emphasize to prevent future recurrence?

Select 2 answers
A.Request a larger budget allocation to cover the potential for future runaway agentic workflows.
B.Describe the implementation of hard limits on the number of turns per agentic workflow to prevent runaway execution.
C.Explain that the team will switch to a cheaper model for all future agentic workflows to reduce the impact of potential loops.
D.Commit to manually reviewing all API usage reports every day to ensure costs remain within expected parameters.
E.Detail the introduction of real-time usage monitoring and alerting to detect and stop abnormal token consumption patterns.
AnswersB, E

Enforcing a maximum number of turns per workflow is a highly effective, deterministic way to prevent runaway agent loops. This safeguard ensures that if an agent gets stuck or enters an infinite loop, the execution will terminate automatically, protecting the organization from unexpected token consumption and associated financial costs.

Why this answer

To prevent future cost spikes, the communication must focus on structural safeguards. First, implementing clear loop-detection logic or turn-limits within the agentic workflow is essential to ensure that runaway processes are terminated automatically. Second, emphasizing the role of monitoring and usage thresholds allows the finance team to understand that the organization now has the visibility and controls in place to detect and mitigate these issues before they result in significant financial impact.

Exam trap

Candidates often focus on 'model choice' as a cost-saving measure, which is less effective than implementing actual control mechanisms like loop detection and usage monitoring.

412
MCQhard

An enterprise is using a third-party tool for 'AI-powered document summarization' that wraps Anthropic's API. The security team identifies that the tool sends the full document content to its own servers before forwarding it to Anthropic. What is the most significant governance risk here?

A.The tool might fail to pass the system prompt correctly to the Anthropic API, leading to inconsistent model responses across documents.
B.The third-party tool might bypass the organization's API rate limits by using its own centralized organizational key for all client requests.
C.The latency introduced by the extra processing step will cause the application to exceed the model's recommended time-to-first-token benchmarks.
D.The third-party tool introduces an intermediate data processing step that stores sensitive information outside the enterprise's controlled environment.
AnswerD

Storing sensitive enterprise data on intermediate servers creates a significant compliance and security risk. The third-party provider's own data retention, security practices, and potential for breach are now part of the enterprise's risk profile, regardless of how securely they interact with the downstream model provider.

Why this answer

The primary risk is 'data proliferation' and the loss of control over sensitive enterprise data. By sending documents to a third-party server, the enterprise is creating an additional, unvetted storage point for sensitive information. Even if the third-party tool uses Anthropic securely, the data is being processed in an environment outside the organization's security perimeter, violating standard data governance policies regarding the handling of sensitive documents and increasing the surface area for potential data breaches.

Exam trap

Focusing on whether the tool uses Anthropic correctly, while ignoring the risk introduced by the tool's own data processing pipeline.

413
MCQhard

Refer to the exhibit. The application is hitting rate limits during peak hours. What is the best architectural change to improve operational resilience?

A.Increase the timeout duration of the API calls indefinitely.
B.Implement an exponential backoff strategy with jitter.
C.Bypass the API gateway and send requests directly to the model's backend IP.
D.Disable all retries to prevent the application from crashing.
AnswerB

Exponential backoff with jitter is the recommended strategy for handling transient rate limits. By increasing the wait time between retries and adding randomness, the application avoids overwhelming the API upon recovery. This ensures a stable, resilient architecture that handles traffic spikes gracefully without persistent errors.

Why this answer

Implementing an exponential backoff strategy with jitter is the industry-standard approach for handling 429 rate-limiting errors. Unlike static retries, this approach prevents the 'thundering herd' problem, where multiple failed requests attempt to reconnect simultaneously, further stressing the service. This enhances operational stability, ensures more graceful handling of high-traffic scenarios, and improves the overall reliability of the system, which is a key requirement for professional architects.

Exam trap

Candidates often choose basic synchronous retry loops or client-side caching instead of exponential backoff with jitter, failing to realize that static retries exacerbate traffic spikes and worsen rate-limit errors during peak operational windows.

414
MCQeasy

A startup is using Claude to generate marketing copy. The legal team is concerned about potential copyright infringement if the model reproduces copyrighted text. Which governance measure should the startup implement to best mitigate this risk?

A.Include a disclaimer that any resemblance to existing works is coincidental.
B.Set the model's temperature to zero to ensure deterministic outputs.
C.Use a plagiarism detection tool to scan all generated content before publication.
D.Fine-tune Claude on the startup's own proprietary content to avoid using external data.
AnswerC

A plagiarism detection tool compares generated content against a vast database of copyrighted works and can flag potential infringements. This allows the startup to review and modify problematic outputs before publication, directly mitigating the risk of reproducing copyrighted text. It is a practical and effective control for this scenario.

Why this answer

The plagiarism detection tool is the most direct mitigation because it actively checks generated content against known copyrighted works and flags potential matches. This allows human review and modification before publication. Other options either do not prevent infringement or are ineffective, such as disclaimers or temperature adjustments.

Exam trap

The trap here is assuming that technical settings like temperature or fine-tuning can prevent copyright infringement, when in fact external verification is needed.

415
MCQeasy

An architect is designing a customer support bot and wants to implement a custom 'No Financial Advice' policy. They notice that when the bot declines a query about stock picks, the stop_reason is 'end_turn' rather than 'refusal'. What does this indicate about the system's current governance implementation?

A.The model is experiencing a high-latency event that prevented a safety check.
B.The request was processed by a model tier that does not support refusals.
C.The safety classifiers have been successfully bypassed by the system prompt.
D.The model is following instructions provided in the system prompt.
AnswerD

When a model declines a request based on instructions (like 'do not give financial advice'), it generates a text response explaining this. Because the model completed its intended task of following the prompt, it returns 'end_turn'. This is the expected behavior for business-level governance and policy enforcement.

Why this answer

A stop_reason of 'end_turn' indicates that the model reached a natural conclusion of its response. If the model is declining to provide financial advice as instructed, it is following the developer's system prompt or instructions rather than triggering Anthropic's built-in safety classifiers. Safety refusals (stop_reason: 'refusal') only occur when Anthropic's own usage policies or safety systems are triggered.

This distinction is vital for governance, as it confirms the model is correctly adhering to application-specific business rules defined by the architect.

Exam trap

Assuming all model 'no' answers are safety refusals, regardless of whether they come from the system prompt or the provider.

416
MCQmedium

A DevOps team uses Claude Code for automated repository maintenance. They have a global 'deny' rule for `Edit` operations in the `~/.claude/settings.json` file. A developer adds an 'allow' rule for `Edit` in the local `.claude/settings.local.json` file to speed up a specific task. How will Claude Code handle an attempt to edit a file in this project?

A.The edit will be allowed, but only if the developer uses the 'bypassPermissions' flag in the terminal.
B.Claude Code will prompt the user to resolve the conflict between the two settings before proceeding.
C.The edit will be denied because the global 'deny' rule takes precedence over any 'allow' rules.
D.The edit will be allowed because local settings take precedence over global user settings.
AnswerC

Claude Code's permission engine combines rules from all scopes (user, project, local, and managed). If a 'deny' rule exists for a specific tool or action in any of these scopes, it overrides any 'allow' rules found elsewhere. This ensures a secure-by-default stance that respects broader governance policies.

Why this answer

In Claude Code's governance model, permission rules follow a 'deny-overrides-allow' logic across all configuration scopes. Even though the developer attempted to grant themselves permission locally in `.claude/settings.local.json`, the global 'deny' rule in the user's home directory (`~/.claude/settings.json`) takes precedence. This hierarchy ensures that enterprise-level or user-level safety constraints cannot be easily bypassed by local project configurations, maintaining a strict 'least privilege' posture across the environment.

Exam trap

Believing that local or 'closest' configuration files override global ones, as is common in many other CLI tools.

417
Multi-Selectmedium

Which THREE practices most effectively support a 'Prompt Engineering as Code' workflow for enterprise teams? (Select THREE)

Select 3 answers
A.Storing prompts in text files within the same repository as the application code.
B.Using hardcoded prompt strings in the production environment for maximum speed.
C.Implementing automated evaluation scripts to test prompt changes against a golden dataset.
D.Mandating manual review for every single request made by the production model.
E.Establishing a peer review process for all changes to prompt templates.
AnswersA, C, E

Treating prompts as code assets allows for version control, branching, and pull-request-based reviews. This ensures that changes to prompts are tracked, auditable, and easily reversible. Keeping them in the repo ensures that the prompt version is always aligned with the application logic that consumes it at runtime.

Why this answer

Managing prompts as versioned assets, automating evaluation pipelines, and enforcing peer reviews enable scalable and safe prompt lifecycle management. When prompts are treated like software, teams gain the ability to rollback, audit changes, and ensure that modifications do not degrade performance. This professionalizes the development process, reducing the risk of unexpected model behavior and allowing teams to deploy LLM-powered features with confidence and speed.

Exam trap

Candidates often select manual tracking methods or storing prompts in disconnected UI dashboards, ignoring software engineering best practices like repository storage and peer reviews.

418
MCQeasy

You are preparing a steering committee update for a Claude-based customer support assistant that has been live for two months. The sponsor asks for a concise way to judge whether the investment is paying off and whether the project should continue to the next phase. Which set of measures best answers that question?

A.Model parameter count and the number of prompt templates currently maintained in the repository.
B.Deflection rate, customer satisfaction for AI-handled interactions, average handling time change, and adoption among support agents.
C.Total number of API calls made and the cumulative token spend since launch.
D.Number of incidents logged and the mean time to resolve production issues over the reporting period.
AnswerB

These measures connect the assistant to business outcomes: fewer escalations, happier customers, faster resolution, and real usage by the intended users. Together they let the sponsor assess whether the investment is producing value and whether expansion is justified. They also expose risks such as high deflection with low satisfaction, which raw volume metrics would hide entirely.

Why this answer

A phase-gate decision needs outcome-oriented evidence, not consumption or engineering trivia. Deflection, satisfaction, handling time, and agent adoption together show whether the assistant improves customer service and is actually used. They also reveal the quality-versus-volume tension that sponsors must weigh, making them the right foundation for a continuation recommendation.

Exam trap

The trap here is equating activity or cost metrics with business value, when sponsors need outcome measures to justify continued investment.

419
MCQmedium

Your engineering team is planning to migrate a high-volume data extraction pipeline from Claude Haiku 5.5 to Claude Sonnet 5.5 to improve reasoning capabilities. During the planning phase, a stakeholder asks whether the existing prompt cache breakpoints will automatically transfer and remain valid after switching the model identifier in the API requests. As the lead architect, how should you respond?

A.The cache will be invalidated because prompt caches are scoped to specific models, requiring new cache writes on Sonnet 5.5.
B.The cache breakpoints will be preserved, but read costs will temporarily revert to standard input rates until the TTL expires.
C.The API automatically migrates cache entries in the background without incurring additional cache creation costs during the transition.
D.The cache entries are shared across models within the same organization, so they will remain valid immediately after migration.
AnswerA

Prompt caches are scoped per model, meaning that switching from Haiku 5.5 to Sonnet 5.5 invalidates existing cache prefixes. Your migration plan must account for initial cache write costs and latency as the new prefix is established on the target model.

Why this answer

Prompt caches are strictly scoped per model tier in the Anthropic architecture. When you change the model identifier in your API requests from Haiku 5.5 to Sonnet 5.5, the existing cache entries established for the previous model cannot be reused. You must re-establish the prefix match and recreate the cache breakpoints on the new model.

While prompt caching will still function on the new model after the initial cache write, the transition requires factoring in an initial spike in cache creation costs and latency for the first requests following the migration.

Exam trap

Candidates often assume that prompt caches are organization-wide or shared across models since the system prompt and documents remain identical, missing the architectural reality that cache entries are bound to specific model endpoints.

420
Multi-Selectmedium

A company is integrating Claude into a high-stakes automated decision-making system. Which TWO practices should be implemented to align with Anthropic’s Responsible AI principles?

Select 2 answers
A.Allow the model to finalize decisions without human review.
B.Implement human-in-the-loop oversight for model outputs.
C.Establish a continuous monitoring and evaluation framework.
D.Only use the most advanced model available for all tasks.
E.Disable all system logs to preserve user privacy.
AnswersB, C

Human-in-the-loop (HITL) oversight is a foundational principle for responsible AI. By requiring humans to review and approve model outputs in high-stakes scenarios, organizations mitigate the risk of errors and ensure that decisions adhere to ethical standards and institutional policies, significantly improving the overall safety of the AI deployment.

Why this answer

Integrating LLMs into high-stakes environments requires a focus on human-in-the-loop (HITL) oversight and continuous monitoring. These practices help manage hallucinations and maintain accountability. Without these safeguards, automated systems can produce biased or incorrect outcomes without human correction.

Implementing these protocols ensures that AI governance remains aligned with human values and organizational safety goals, reducing the risk of unintended consequences in critical decision-making processes.

Exam trap

Test-takers might choose automated self-correction loops without human intervention, overlooking the mandate for human-in-the-loop oversight in high-stakes decisions.

421
MCQmedium

A team uses a CI/CD pipeline to deploy LLM applications. They want to ensure prompt changes do not degrade model performance. Which strategy best integrates evaluation into the development workflow?

A.Perform manual prompt testing by the QA team before every release.
B.Run automated evaluation scripts against a golden dataset during the CI process.
C.Rely on user feedback loops in production to identify and fix issues.
D.Only evaluate the application after it has been deployed to the production environment.
AnswerB

Automated evaluation against a golden dataset provides objective, repeatable metrics to validate prompt quality before deployment. This allows developers to catch regressions early in the SDLC. By integrating this into CI, teams maintain high deployment velocity without sacrificing the quality or safety of the LLM application outputs.

Why this answer

Integrating automated evaluations (Evals) into the CI/CD pipeline ensures that every code or prompt change is validated against a golden dataset. This automated gate prevents regressions from reaching production. It empowers developers to iterate quickly while maintaining a high bar for reliability, which is crucial for operational enablement in LLM-driven environments where non-deterministic model behavior can introduce subtle, hard-to-detect bugs that impact user experience.

Exam trap

Candidates often suggest periodic manual audits or post-deployment monitoring, overlooking the critical requirement to integrate automated evaluation gates directly into the CI/CD pipeline for immediate feedback.

422
MCQmedium

Your team is building a system to categorize customer feedback. To perform bias evaluation on the model outputs, you have established a golden dataset of human-annotated examples. Which approach provides the most robust and scalable method for evaluating bias against your organization's fairness standards?

A.Rely exclusively on the model's refusal rate metrics to identify if it is suppressing responses for specific user groups.
B.Perform manual review of a random 5% sample of outputs to identify potential instances of bias.
C.Use an LLM-as-a-judge to blindly score outputs without providing specific demographic or context-aware rubrics.
D.Run the golden dataset through the model and calculate performance metric disparities across protected demographic segments.
AnswerD

Comparing performance metrics like accuracy or sentiment consistency across demographic segments allows for the detection of statistically significant disparities. This quantitative approach is the foundation of effective bias evaluation, providing clear evidence of where the model may be underperforming or exhibiting biased behavior relative to your fairness benchmarks.

Why this answer

To rigorously evaluate bias, you must measure model performance across protected demographic segments using a representative golden dataset. Implementing a systematic evaluation pipeline that calculates metric disparities (such as error rates or sentiment variance) between these segments is the industry-standard approach. This allows you to detect if the model performs differently for specific groups, enabling targeted prompt refinement or adjustments to effort levels before the system reaches production.

Manual spot-checking is insufficient for enterprise-scale fairness, and relying solely on refusal rates fails to capture subtle, non-refusal biases.

Exam trap

Candidates often choose manual review or simple sentiment analysis, ignoring the need for structured, segment-based metric comparisons on a dedicated golden dataset.

423
MCQeasy

A healthcare provider is using Claude Sonnet 5.5 to assist doctors in drafting patient summaries. The governance team is concerned about 'Automation Bias' among the medical staff. Which evaluation finding would most likely indicate that automation bias is occurring?

A.Claude Sonnet 5.5 requires more 'thinking' tokens when processing complex medical histories.
B.The model's 'refusal' rate is higher for patients from certain zip codes due to safety filters.
C.The API returns a 429 error during peak hours when many doctors are drafting summaries simultaneously.
D.Doctors consistently spend less than 5 seconds reviewing summaries before approving them for the patient record.
AnswerD

Extremely low review times suggest that the human-in-the-loop is not performing a substantive check. This is a classic indicator of automation bias, where users assume the AI is correct and bypass the critical thinking required to catch hallucinations or biased framing.

Why this answer

Automation bias occurs when human users over-rely on AI-generated suggestions, failing to notice errors or biases because they trust the system's 'objectivity' too much. In a medical context, this is measured by the degree to which doctors accept the model's summaries without correction. If the evaluation shows that doctors are approving summaries containing factual errors or demographic stereotypes at a high rate, it indicates they are not critically reviewing the output, which is a significant governance risk.

Exam trap

Confusing the model's internal bias with the human user's bias in responding to the model.

424
MCQmedium

An architect is reviewing the risk profile of an MCP-based agent that uses a 'web_search' server and a 'database_query' server. The goal is to prevent 'Data Exfiltration' where the agent might accidentally send sensitive database records to the web search tool. Which technical control is most effective?

A.Use a 'PreToolUse' hook to inspect the arguments of the 'web_search' tool for patterns matching sensitive data formats.
B.Add an instruction to the system prompt telling Claude to never use database results as parameters for the web search tool.
C.Set the 'max_turns' parameter to a low value to ensure the agent does not have enough steps to perform exfiltration.
D.Isolate the 'web_search' and 'database_query' tools into separate subagents with no shared context window.
AnswerD

This architectural 'air-gapping' is the most robust solution. By ensuring no single model instance has access to both the sensitive data and the external communication channel, you eliminate the possibility of the model making a mistake or being tricked into exfiltrating data. The orchestrator controls the handoff.

Why this answer

In agentic systems, data exfiltration risks arise when a single agent has access to both a 'sink' (a tool that sends data out, like web_search) and a 'source' (a tool that retrieves sensitive data, like database_query). The most effective control is to separate these capabilities into different subagents. A 'Research Subagent' can have web access but no database access, while a 'Data Subagent' has database access but no web access.

The orchestrator then manages the flow of information, ensuring sensitive data is never passed to the subagent with external connectivity.

Exam trap

Relying on a system prompt to 'never share database results with the web search tool'.

425
MCQmedium

A company is implementing a 'human-in-the-loop' review process for Claude-generated outputs in a high-stakes workflow. To audit this process, what should be linked in the audit logs?

A.A common 'request_id' that maps the specific Claude API response to the corresponding human review entry in the internal approval system.
B.The full user prompt and the final edited output saved in the human reviewer's personal workspace.
C.The raw text of the Claude response and the timestamp of the human approval.
D.The model configuration parameters and the total latency of the request, but excluding the reviewer identity for privacy.
AnswerA

Using a shared correlation ID allows auditors to bridge the gap between the automated AI output and the human review process, providing a complete, verifiable audit trail that links individual model interactions to specific human accountability actions.

Why this answer

For high-stakes workflows, the audit log must bridge the gap between the model's output and the human's final approval. By logging the unique identifier of the Claude API response alongside the ID of the human reviewer and their final decision (e.g., approved, rejected, modified), the organization creates an immutable chain of accountability. This ensures that every piece of AI-generated content can be traced back to the specific model interaction and the human agent who validated it, which is a core requirement for regulatory compliance in sensitive domains.

Exam trap

Architects often log the AI response and the human decision separately, failing to include a common correlation ID that links the two events together.

426
MCQmedium

Refer to the exhibit. The user is attempting to trick the model into revealing sensitive information by claiming a high-clearance role. This is an example of which security threat, and how does the 'system' prompt help mitigate it?

A.Man-in-the-middle attack; the system prompt encrypts the secret code name.
B.Prompt injection (jailbreaking); the system prompt establishes a higher-priority context.
C.Denial of Service (DoS); the system prompt limits the tokens used to hide the secret.
D.Data poisoning; the system prompt cleans the training data in real-time.
AnswerB

The user is attempting a 'jailbreak' by assuming a false identity to override safety rules. The system prompt provides a separate, authoritative channel for instructions that Claude is trained to follow strictly, helping the model maintain its boundaries even when the user prompt is manipulative.

Why this answer

Social engineering and role-playing are common techniques used in prompt injection attacks to bypass security constraints. The system prompt is a powerful governance tool because it sets the foundational rules and persona for the model, which are prioritized by Claude's reasoning engine over conflicting instructions found in the user messages.

Exam trap

Candidates frequently misattribute the defense mechanism to post-processing filters or output guardrails, ignoring the structural priority given to the system prompt.

427
MCQhard

Your team is deploying an application that uses PII in prompts. A stakeholder asks how you are mitigating the risk of data leakage. How do you respond?

A.Assure them that the model is smart enough to handle PII.
B.Explain the use of PII masking and data sanitization pipelines.
C.Tell them the model does not store any data anyway.
D.Suggest moving the project to an on-premise LLM to ensure security.
AnswerB

Describing concrete architectural controls like masking or sanitization provides the stakeholder with confidence that privacy is actively managed. These techniques are standard for protecting sensitive information in LLM pipelines. This approach demonstrates a professional, risk-aware mindset that is expected of a certified architect managing complex AI deployments.

Why this answer

The correct response involves explaining a combination of data sanitization, prompt masking, and secure infrastructure design. This is critical because PII handling is a high-liability area. By detailing a defense-in-depth strategy, the architect provides the necessary assurance that privacy is treated with the highest priority, which is vital for maintaining organizational compliance and preventing severe legal or reputational damage during the application's lifecycle.

Exam trap

Candidates often suggest 'just encrypting' the data, which ignores the need for PII masking and sanitization before the data ever reaches the model's context window.

428
MCQeasy

A product owner tells you the Claude assistant 'feels slow' for end users and wants to know what to tell the executive sponsor. You have measured that time-to-first-token is 400 ms but full responses take 9 seconds because outputs are long. Which communication is most accurate and useful for the sponsor?

A.Tell the sponsor that latency is an infrastructure problem owned by the platform team and hand off the ticket.
B.Report that latency is within acceptable bounds and no action is needed.
C.Recommend switching to a different Claude model tier immediately to resolve the speed complaint.
D.Explain that perceived slowness comes from long output generation, not connection setup, and propose streaming tokens to the UI plus asking Claude for more concise answers.
AnswerD

This separates the two latency components accurately: fast first token versus slow full completion, which is characteristic of long generations. It then offers two concrete, low-risk levers, streaming for perceived speed and output-length control for real speed, giving the sponsor a clear problem statement and a path forward rather than a vague promise.

Why this answer

Good stakeholder communication distinguishes between what users perceive and what the system actually measures. Fast time-to-first-token with slow completion is the signature of long outputs, so the honest message names that cause and pairs it with remedies that match it: streaming to improve perceived responsiveness and output-length guidance to reduce real duration. Blaming infrastructure, swapping models without evidence, or declaring the problem nonexistent all misrepresent the measurements.

Exam trap

The trap here is collapsing all latency into a single number and choosing a remedy, such as a model swap or infrastructure escalation, that does not correspond to the measured bottleneck.

429
MCQhard

Which THREE components are essential for building a robust 'human-in-the-loop' (HITL) approval gate within an agentic workflow?

A.A state persistence layer to save the agent context during the pause.
B.An asynchronous messaging system to notify users of pending actions.
C.A direct feedback loop that forces the model to re-train after every human input.
D.A mechanism to resume execution by injecting the human's decision into the next prompt.
E.A mandatory requirement that humans provide a complete rewrite of the agent's plan.
AnswerA, B, D

Persistence is required to resume the agent's reasoning exactly where it left off. Without saving the state, the agent would lose its progress, context, and the reasoning chain that led to the approval request, rendering the workflow broken upon resumption. This layer is fundamental for durable, multi-step agentic processes.

Why this answer

A robust HITL gate requires a state suspension mechanism, a clear communication interface for the human, and an automated resumption process. By pausing the agent's execution, capturing the state, and allowing for human intervention, the system ensures that high-stakes decisions are verified. This is critical for preventing unauthorized or dangerous actions while maintaining the agent's context and momentum throughout the broader automated process.

Exam trap

Candidates often focus only on the notification system, neglecting the critical requirement of state persistence. Without saving the agent's internal state, the context is lost when the human intervenes.

430
MCQmedium

An agentic system is struggling with 'context fragmentation' over long-running sessions. What is the most effective architectural solution?

A.Increase the context window size of the model indefinitely.
B.Implement a hierarchical memory system with summarization.
C.Force the user to clear their history periodically.
D.Only use the most recent 10 messages of the history.
AnswerB

Hierarchical memory allows the agent to access both recent, detailed context and summarized long-term history. By managing memory at different levels of abstraction, you keep the agent's prompts concise and relevant, significantly improving its performance and goal-tracking accuracy over sessions that span hours or days.

Why this answer

Context fragmentation happens when the history becomes too large or disorganized. A 'summarization agent' or a 'memory manager' that periodically compresses the conversation history into a concise summary is the standard solution. This preserves core context while discarding transient details, ensuring the main agent remains focused on the long-term goal rather than getting lost in thousands of lines of previous chat history.

Exam trap

Test-takers might suggest increasing the model's max context window or clearing history entirely, failing to recognize that summarization preserves necessary long-term context.

431
MCQhard

A production agent uses the Claude Messages API with extended thinking enabled to solve multi-constraint scheduling problems. The agent must preserve its reasoning across several tool calls within a single user turn. A developer notices that after the second tool call, the model appears to forget earlier constraints it had already reasoned about. Which change best preserves the reasoning chain across tool calls?

A.Pass the full assistant message, including thinking blocks, back into the conversation history on each subsequent request.
B.Disable extended thinking for subsequent requests once the first tool call has returned, since the constraints are already known.
C.Increase the thinking budget_tokens value so the model has more room to reason on each request.
D.Summarize the thinking blocks into a single text note and append it as a user message before the next tool call.
AnswerA

With extended thinking, the reasoning is carried in thinking blocks attached to assistant messages. To keep that reasoning available across tool calls in the same turn, the orchestrator must return the complete assistant message, thinking blocks included, in the next request's messages array. Stripping them discards the model's prior reasoning and forces it to re-derive constraints, which explains the apparent forgetting after the second tool call.

Why this answer

Extended thinking stores reasoning in thinking blocks that are part of the assistant message. When an agent makes multiple tool calls within one turn, each follow-up request must include the prior assistant message with its thinking blocks intact. Omitting them causes the model to lose the constraints it already reasoned through, producing the observed regression after the second tool call.

Exam trap

The trap here is treating thinking budget as a memory setting, when the real requirement is to preserve the original thinking blocks in the conversation history across tool calls.

432
MCQhard

Refer to the exhibit. An agentic workflow encounters an error immediately after this message is generated by Claude. No further messages are sent to the API. What is the most likely cause of the failure in the orchestration logic?

A.The orchestrator failed to send a tool_result message
B.The input parameters do not match the JSON schema
C.The tool_use ID is missing the required prefix
D.The assistant content block lacks a stop_reason
AnswerA

The Messages API is a turn-based protocol where every tool_use request from the model must be acknowledged with a corresponding tool_result from the client. Without this result, the conversation state is incomplete, and the model cannot proceed to synthesize the information or determine the next appropriate action in the workflow.

Why this answer

The Anthropic Messages API requires a specific sequence for tool use. After the assistant generates a 'tool_use' block, the orchestration layer must execute the tool and return a 'tool_result' message to the model before the assistant can continue its turn. Failing to provide this required response breaks the synchronous nature of the tool-calling conversation flow.

Exam trap

Candidates assume the LLM will automatically proceed after generating a tool call, forgetting that the orchestrator must explicitly feed back a tool result message to continue.

433
MCQmedium

A platform team maintains a shared Claude API integration used by multiple product squads. Squads frequently push prompt changes that break downstream features, and nobody can tell which prompt version produced a given output in production. The team wants every API call to be traceable to an exact prompt revision and wants to gate prompt changes behind review. Which approach best satisfies both requirements?

A.Enable extended thinking on every request and rely on the model's reasoning output to reconstruct which prompt was used.
B.Store prompts in a Git repository, reference each revision by commit SHA when calling the Messages API, and require pull-request review before merging prompt changes.
C.Add a timestamp field to every API request and correlate logs with the deployment time of the calling service.
D.Have each squad maintain its own prompt copy in a shared wiki page and record the editor's name in the page history.
AnswerB

Versioning prompts in Git gives every revision an immutable commit SHA that can be logged alongside each API call, making production outputs traceable to an exact prompt state. Requiring pull-request review enforces a gate before changes reach the shared integration. This combination directly addresses both the traceability and the change-control requirements without adding runtime infrastructure.

Why this answer

Prompts are code and should be treated as such. Git provides immutable commit SHAs that can be logged with each Messages API call, giving exact traceability from a production output back to the prompt revision that generated it. Pull-request review adds a human gate so breaking changes are caught before they reach the shared integration, satisfying the change-control requirement.

Exam trap

The trap here is assuming that timestamps or deployment logs are sufficient to identify which prompt version produced a specific output, when only an immutable revision identifier tied to the prompt content itself can do that reliably.

434
MCQmedium

A financial services firm is deciding whether to access Claude Sonnet 5.5 via the Anthropic API directly or through a major cloud provider's model-as-a-service (MaaS) offering. The firm's primary concern is maintaining consistent governance over custom safety guardrails and ensuring that specific model features like 'thinking' and 'effort' controls are available immediately upon release. Which risk factor should most influence their platform choice?

A.The risk that the cloud provider will not allow the use of system prompts for safety instructions.
B.The risk of higher latency due to the lack of server-side thinking blocks on the direct API.
C.The risk of feature lag where the cloud provider does not immediately support new API parameters like effort levels.
D.The risk that direct API usage prevents the organization from setting up multiple workspaces for cost attribution.
AnswerC

Cloud providers often require additional time to implement and expose new model-specific features through their own proprietary APIs. This lag can prevent an architect from utilizing critical performance or governance controls, such as the 'effort' parameter, which are available on day one through the native Anthropic API.

Why this answer

Feature parity and release velocity are critical risks when choosing between direct API access and third-party cloud providers. While cloud providers offer integrated billing and networking, they often trail behind the primary provider in supporting the latest model features, such as specific 'effort' levels or advanced thinking configurations. For an architect prioritizing the latest governance controls and model capabilities, the direct API provides the most immediate access to the full feature set defined in the platform's development roadmap.

Exam trap

Choosing a cloud provider solely for perceived 'enterprise security' without checking if specific model features are supported.

435
MCQmedium

An architect is designing an AI-powered agent to assist internal staff with HR policy queries. The agent has access to internal documents. How should the architect design the system to ensure that the agent does not provide unauthorized advice or violate usage policies regarding professional guidance?

A.Allow the model to use its full training knowledge to answer all HR questions, assuming the model has been trained on professional standards.
B.Hard-code a list of prohibited topics into the application logic and block any response that contains these keywords.
C.Use a high-effort setting to ensure the model thinks deeply about every HR question, assuming this improves safety.
D.Design the system prompt to explicitly define the model's role as an information retriever and require it to cite internal documents.
AnswerD

Explicitly defining the role and requiring citations enforces boundaries and ensures that the agent acts as an assistant rather than a decision-maker. This approach minimizes the risk of the model providing unauthorized advice while maintaining the necessary transparency for HR compliance and internal auditing of the information provided.

Why this answer

The most robust architectural pattern for this requirement is to use a system prompt that explicitly defines the agent's role, capabilities, and strict boundaries. By clearly instructing the model to defer sensitive or unauthorized topics to human experts and providing it with a limited set of tools, the architect restricts the model's operational scope. Additionally, the agent should be configured to cite its sources from the provided internal documents, which increases transparency and ensures that the model's responses are grounded in verified organizational knowledge rather than potentially hallucinated or policy-violating advice.

Exam trap

Candidates often believe that simply providing data to the model is enough, failing to recognize the importance of role-defining system instructions and source citation.

436
Multi-Selectmedium

Which THREE factors should be prioritized when selecting an Anthropic model for a production-grade application?

Select 3 answers
A.Latency requirements of the specific user task.
B.The total number of parameters in the model.
C.Reasoning capabilities required for the task complexity.
D.Cost efficiency per token generated.
E.Whether the model is open-source or proprietary.
AnswersA, C, D

Latency is a critical factor for user experience. Real-time applications require lower-latency models like Haiku, while complex analysis tasks can afford higher latency in exchange for reasoning performance. Aligning model choice with the user task is essential for building a performant, well-architected application.

Why this answer

Balancing performance, latency, and cost is fundamental to operational enablement. A professional architect must consider the specific requirements of the task—whether high-level reasoning or rapid response—to ensure that the chosen model delivers value efficiently. These factors dictate the system's scalability and overall budget, making them the primary drivers for architectural decisions when building and maintaining reliable AI-powered solutions in a corporate environment.

Exam trap

Candidates often focus only on model 'intelligence' or 'capability,' ignoring operational realities like cost and latency which are critical for production-grade, scalable applications.

437
Multi-Selectmedium

An enterprise is deploying a multi-agent system where a 'Manager' agent calls 'Worker' subagents for specific tasks. The security team is concerned about prompt injection attacks where a user-provided input to the Manager could trick a Worker. Which TWO architectural practices mitigate this risk?

Select 2 answers
A.Use a single global system prompt for all agents to ensure consistent safety behavior across the entire system.
B.Give all agents access to the same tools to simplify the architecture and reduce the complexity of the security policy.
C.Define separate, role-specific system prompts for each subagent to limit their operational scope.
D.Allow subagents to write directly to the Manager's system prompt to facilitate dynamic re-configuration.
E.Implement explicit input sanitization in the Manager before delegating tasks to any subagent.
AnswersC, E

Providing tailored system prompts for each agent ensures that each component of the system has a strictly defined, narrow purpose. This limits the potential for any single agent to be redirected by an attacker, as its operational behavior is constrained by instructions that are relevant only to its specific task.

Why this answer

To prevent cross-agent prompt injection, architects must ensure that context is isolated and that subagents have the minimum necessary permissions. By defining clear boundaries and using separate system prompts for each agent, the risk of a user input influencing a subagent's operational logic is minimized. Additionally, implementing a validation step where the Manager inspects or sanitizes user input before passing it to a subagent prevents unauthorized instructions from reaching the Worker's context window, effectively enforcing the principle of least privilege.

Exam trap

Assuming that a single shared system prompt for all agents is sufficient to maintain security boundaries within a complex multi-agent hierarchy.

438
MCQmedium

Your team operates a Claude agent that triages inbound customer support tickets. After several weeks in production, the agent begins approving refunds above the policy ceiling and citing outdated policy text. Investigation shows the system prompt embeds a policy document that was updated three weeks ago, but the deployed prompt was never regenerated. Which architectural practice most directly prevents this class of failure?

A.Move policy content out of the system prompt and retrieve the current policy at runtime via a versioned tool or retrieval step, recording the version used in each decision.
B.Add a second Claude agent that reviews the first agent's refund decisions and overrides any that appear inconsistent with its own recollection of company policy.
C.Increase the model's temperature slightly so the agent explores alternative interpretations of the policy text it has memorized.
D.Shorten the system prompt by summarizing the policy into a compact bullet list, which reduces the chance that outdated sections remain embedded.
AnswerA

Retrieving policy at runtime decouples the agent's behavior from a frozen prompt snapshot, so updates take effect without redeploying the prompt. Recording the retrieved version makes each decision reproducible and lets auditors see which policy text governed a given refund. This directly addresses staleness because the agent always reads the current authoritative source rather than an embedded copy.

Why this answer

Stale behavior traced to a frozen prompt is best solved by externalizing the mutable knowledge and fetching it at decision time from a versioned source. That way policy updates propagate immediately, and logging the retrieved version makes each action auditable. Compression, randomness, or peer review all leave the embedded copy as the de facto source of truth.

Exam trap

The trap here is treating the symptom as a prompt-engineering problem, when the real defect is that authoritative, frequently changing content was hard-coded into the prompt.

439
Multi-Selectmedium

When implementing AI safety policies, which THREE components should be included to ensure effective operationalization?

Select 3 answers
A.Clearly defined prohibited use cases.
B.Automated technical guardrails for enforcement.
C.The ability to ignore rules during testing.
D.A mechanism for user reporting and feedback.
E.Complete removal of human oversight.
AnswersA, B, D

Defining what the AI is not allowed to do is the first step in safety governance. This provides developers with clear boundaries, reducing the risk of accidental misuse and ensuring that the organization can consistently apply its ethical and compliance standards across all its AI-powered applications.

Why this answer

Operationalizing safety policy requires a combination of clear guidelines, technical enforcement, and feedback mechanisms. Without all three, policies remain abstract documents that are difficult to follow. Effective governance requires that these policies are baked into the CI/CD pipeline, audited regularly, and enforced by technical tools like guardrails, ensuring that the organization can maintain a consistent safety posture across all AI applications and development teams.

Exam trap

Candidates often pick only one of the three components, such as 'technical guardrails,' ignoring that policy requires a combination of human-centric reporting and clear definitions to be fully effective.

440
MCQmedium

A developer needs to log all prompt-response pairs for compliance. What is the most reliable way to implement this without impacting application performance?

A.Write logs to a local file system before sending the response to the user.
B.Use an asynchronous message queue to offload log processing.
C.Request the user to manually send a copy of the interaction for audit.
D.Only log errors instead of every prompt-response pair.
AnswerB

Asynchronous message queues are the gold standard for high-throughput, non-blocking operations. By sending the log data to a queue, the main application thread returns the response to the user immediately, while a background consumer handles the logging task. This ensures both performance and compliance-required reliability.

Why this answer

Asynchronous logging is the key to maintaining application performance while ensuring full auditability. By offloading the logging process to a background task, the main request thread is not blocked, ensuring that users experience minimal latency. This pattern is crucial for compliance-heavy environments where audit trails are non-negotiable but system performance must remain highly responsive to meet end-user demands.

Exam trap

Candidates often choose synchronous database logging within the main request execution thread, failing to recognize that this introduces severe latency bottlenecks and violates real-time application performance requirements.

441
MCQmedium

A developer is using Claude Code and wants to use a custom slash command to quickly scaffold a new API endpoint. They have created a file in .claude/commands/scaffold_api.md. Why is this approach effective for standardizing development tasks?

A.The command file acts as a persistent memory store that automatically updates its content based on the project's evolution.
B.The command executes a shell script that directly creates the API endpoint files and updates the database schema.
C.It ensures consistent task execution by providing a reusable prompt template that Claude follows for common development patterns.
D.It allows the developer to bypass permission checks for specific file creation tasks by using a pre-approved template.
AnswerC

Because custom slash commands are prompt templates, they allow architects to standardize how specific tasks are approached. By providing a template, the organization ensures that every time a developer scaffolds an API, they provide the necessary context for Claude to generate code that meets organizational quality and design standards.

Why this answer

Custom slash commands in Claude Code act as prompt templates. When a developer invokes a command like /scaffold_api, Claude Code reads the corresponding Markdown file in the .claude/commands/ directory and substitutes the provided arguments into the template. This allows the architect to define the exact structure, constraints, and instructions that should be followed for recurring tasks, ensuring that all developers follow the same patterns, include necessary tests, and adhere to API design standards automatically.

Exam trap

Thinking that custom slash commands execute shell scripts or perform direct filesystem operations.

442
Multi-Selectmedium

Which TWO practices best improve the maintainability of large-scale prompt libraries? (Choose TWO)

Select 2 answers
A.Hardcode all prompt versions directly into the application source code.
B.Store prompts in external configuration files or a dedicated prompt management system.
C.Implement a centralized version control system to track prompt iterations.
D.Combine prompts and business logic into monolithic classes for better encapsulation.
E.Avoid using variables in prompts to ensure absolute predictability.
AnswersB, C

Externalizing prompts allows for rapid updates without needing a full software build. This architectural choice enables teams to manage versioning, track changes, and perform A/B testing more effectively. It decouples the prompt engineering lifecycle from the application development lifecycle, significantly enhancing operational agility and overall system maintainability.

Why this answer

Managing large prompt libraries requires modularity and version control to ensure consistency. By treating prompts as code and decoupling them from application logic, teams can implement standardized testing and deployment workflows. This separation allows developers to iterate on prompt performance independently of the software release cycle, reducing the risk of regressions and enabling rapid experimentation within established operational guardrails.

Exam trap

Candidates often suggest embedding prompts directly in code, which makes them hard to version, audit, or update without a full application deployment cycle.

443
MCQmedium

An architect is building a system where Claude summarizes user-uploaded PDFs. To prevent prompt injection where a malicious PDF contains hidden instructions to ignore previous system prompts, which architectural pattern should the architect implement?

A.Delegate the PDF processing to a subagent with specific, narrow instructions to only summarize content and return no executable commands.
B.Pre-process all PDFs to strip out any XML-like tags before sending them to the Claude API for summarization.
C.Use a stop sequence in the API request that triggers if the model detects keywords like 'ignore' or 'instruction' in the PDF.
D.Embed the PDF content directly into the main system prompt to ensure the model has the highest authority over the text.
AnswerA

Using a subagent creates a necessary boundary between untrusted external data and the main application logic. This isolation limits the scope of any instructions hidden in the document to the subagent's local context, preventing them from leaking into or overriding the orchestrator's primary system instructions for the end-to-end task.

Why this answer

To mitigate prompt injection via documents, the architect must treat retrieved document content as untrusted data rather than as instructions. By isolating the document processing into a subagent with a restricted toolset and a specialized system prompt, the orchestrator can ensure that the main model's instructions remain protected. The key is structural separation: the subagent only extracts information and returns a summary to the orchestrator, preventing the malicious content from directly interacting with the primary system instructions that govern the application's core safety and operational behavior.

Exam trap

Assuming that standard system prompts or simple XML tagging alone can neutralize instructions embedded deep within a large, complex document processed by the model.

444
MCQhard

A team maintains a library of internal Claude prompts used by several services. They want to update a shared system prompt once and have every service pick up the change without redeploying, while keeping a rollback path if quality regresses. Which approach best satisfies both requirements?

A.Copy the system prompt into each service's repository and coordinate releases manually.
B.Serve prompts from a versioned prompt registry that services fetch at runtime, with the ability to pin or roll back to a prior version.
C.Keep the system prompt in an environment variable that operators edit directly on running hosts.
D.Embed the system prompt as a constant in a shared library package and publish a new package version for each change.
AnswerB

A versioned prompt registry lets the team publish a new system prompt once and have services fetch it at runtime, avoiding redeploys. Because each version is immutable and addressable, rolling back is a matter of pointing services at the previous version. This satisfies both the update-once and rollback requirements while keeping an auditable history of what each service used at any time.

Why this answer

The requirements point to treating prompts as versioned runtime data rather than code. A prompt registry lets the team publish once, have services fetch the current version, and revert by repointing to a prior immutable version. Duplicated prompts, shared-library constants, and host-level environment edits each force redeploys, lack reliable rollback, or both, so they cannot meet the stated goals.

Exam trap

The trap here is assuming a shared code package is equivalent to a runtime prompt registry, when the package still forces redeploys and complicates rollback.

445
MCQeasy

Why is it recommended to use structured output (like JSON) when building LLM-based applications?

A.It makes the model run faster than returning unstructured text.
B.It ensures the model response is easily consumable by downstream code.
C.It allows the model to compress the output into fewer tokens.
D.It prevents the model from generating hallucinations.
AnswerB

Structured output formats like JSON provide a predictable schema that can be directly mapped to application objects or databases. This minimizes parsing errors, simplifies validation, and drastically reduces the engineering effort required to integrate the model's output into the rest of the software stack.

Why this answer

Structured output ensures that the model's response is easily parsable by downstream systems, eliminating the need for complex, error-prone regex or natural language parsing. This enables seamless integration between AI components and existing backend services, which is vital for building reliable, production-grade software. It directly improves developer productivity by reducing the amount of 'glue code' needed to handle unpredictable text formats, leading to more stable and maintainable application architectures.

Exam trap

Candidates might look for answers involving complex regex parsing or natural language processing libraries rather than utilizing native structured outputs like JSON.

446
MCQmedium

You are managing a Claude-powered customer support bot. A stakeholder is worried that the model might occasionally provide outdated information if the company policies change. How should you set expectations regarding the model's knowledge boundary?

A.Explain that the model's safety training prevents it from hallucinating, so policy updates are not necessary for high-quality, accurate outputs.
B.Suggest that the stakeholder manually trigger a model retraining process whenever the internal policy document is updated.
C.Advise the stakeholder that the model will automatically adapt to new policy documents if they are stored in the same repository as the application code.
D.Inform the stakeholder that the model's knowledge is static and recommend implementing a Retrieval-Augmented Generation pattern to inject current policies into the context window.
AnswerD

This approach correctly identifies that the model lacks inherent real-time access to internal changes and proposes the standard architectural solution of injecting up-to-date documentation into the prompt context. This ensures that the assistant's responses are grounded in current, company-specific information rather than relying on potentially stale training data.

Why this answer

As an architect, you must clarify that Claude's knowledge is fixed at the time of training and does not automatically incorporate real-time internal policy updates. You should explain that grounding the model in current, authoritative documents—provided at request time via the Messages API—is the standard architectural pattern for ensuring accuracy. This approach shifts the reliance from the model's internal training data to the provided system context, ensuring that the assistant reflects the latest version of your business logic.

Exam trap

Assuming that Claude will learn from past interactions or that it automatically knows internal company documents without explicit provision in the prompt or through context-loading mechanisms.

447
MCQhard

Following a security incident where a Message Batches pipeline generated unauthorized data, your organization needs to audit the specific requests that failed. You have the `custom_id` for each request in the batch. What is the correct approach to handling the results of this incident?

A.Filter the batch results by checking the stop_reason field in the message object for each custom_id.
B.Request a full system audit log from Anthropic to identify the specific requests that were blocked.
C.Submit a support ticket to recover the inputs of the requests that failed to reach the model.
D.Re-run the entire Message Batch with a higher effort level to bypass potential safety refusals.
AnswerA

Batch results include a message object for every request. If a request was blocked by safety systems, the stop_reason will be 'refusal'. Filtering by this field allows the architect to isolate the problematic inputs while keeping the rest of the batch data intact for analysis.

Why this answer

Message Batches return results where each request is marked as succeeded, errored, canceled, or expired. A safety refusal from the model is treated as a succeeded result with a 'refusal' stop_reason. To address the incident, the architect must retrieve all batch results and filter for those that either errored or were refused by the safety classifier.

By matching the `custom_id`, the team can precisely identify the specific inputs that triggered the failure, allowing for targeted remediation and re-evaluation without needing to re-process the entire batch.

Exam trap

Candidates often assume that refused requests are missing from the results or that they require a special API call to retrieve, rather than checking the stop_reason in the standard message object.

448
MCQhard

You are designing a high-volume data extraction pipeline. You want to ensure that your system prompt is not re-processed every time, as it contains a large set of instructions and examples. You decide to use prompt caching. Which of the following is a critical requirement for maintaining cache hits?

A.Ensure the system prompt is passed as a message instead of the top-level system parameter to optimize caching.
B.Keep the order of tools and system instructions strictly identical across all requests to ensure a stable prefix match.
C.Use the Files API to upload the instructions and reference them by file_id to automatically cache the content.
D.Include a timestamp in the system prompt to ensure that your cache stays fresh and reflects current data.
AnswerB

Prompt caching relies on an exact prefix match over tools, system prompt and initial messages. Any change in the order or content of these elements causes a cache miss and the prefix is processed again.

Why this answer

Prompt caching is based on a prefix match of the request structure. Any change in the prefix—such as reordering tools, altering the system prompt, or changing the order of messages—will invalidate the cache for all subsequent content. To maintain consistency, stable content (like system instructions and examples) must be placed at the very beginning of the prompt.

You must also ensure that the structure of the request, including the definitions of tools and system messages, remains identical across calls to ensure the cache remains valid.

Exam trap

Candidates often think that caching is based on semantic similarity or that slight variations in the prompt are ignored, which is incorrect.

449
MCQhard

A financial firm uses Claude to analyze sensitive documents. They are concerned about 'false positive' refusals where the model denies a legitimate, safe request due to over-sensitive safety thresholds. As an architect, which strategy is most effective for reducing these occurrences while maintaining safety compliance?

A.Set the temperature parameter to 0.1 and use the system prompt to instruct the model to ignore safety filters.
B.Implement a custom safety layer that re-runs the request if a refusal occurs, automatically bypassing the original trigger.
C.Use a higher 'effort' setting in output_config to force the model to reason through safety concerns and proceed with the request.
D.Use XML tags to clearly define the document boundaries and provide detailed, context-rich system instructions explaining the task's legitimacy.
AnswerD

Providing clear structure with XML tags helps the model distinguish between instructions and data. When the model understands the context of the document and the specific, safe nature of the task, it is less likely to misinterpret the inputs as malicious, effectively lowering the rate of false positive refusals.

Why this answer

False-positive refusals are best reduced through better context: explain the legitimate business purpose in the system prompt, mark the document clearly as data with XML tags, and state exactly what analysis is wanted. Sampling parameters are not accepted on current models, prompts cannot switch safety classifiers off, and raising effort does not override a classifier decision. Where a model does decline, Anthropic's supported refusal fallback can retry on another model, which is different from trying to evade the policy.

Exam trap

Candidates often suggest lowering safety settings or using temperature to control refusals, neither of which are API-controllable levers on current models.

450
MCQhard

You are auditing an agentic workflow that uses the Messages API to process legal documents. The agent uses a 'thinking' block to reason before generating an output. A compliance auditor asks how you can prove the agent isn't 'remembering' sensitive information from previous document batches. What is the correct explanation?

A.Explain that the Messages API is stateless and does not retain any context or state between individual API requests.
B.Explain that you call the `/clear` command after every batch to purge the model's internal memory.
C.Show the auditor your code that explicitly deletes the thinking blocks from the response before storing them in your logs.
D.Demonstrate that you use a unique API key for every document batch, which forces the model to treat each request as a new session.
AnswerA

The stateless nature of the Messages API is the fundamental architectural guarantee that prevents cross-session data leakage. Because the model receives no context from previous requests, it is impossible for it to 'remember' or utilize information from prior, unrelated documents during a new interaction.

Why this answer

The Messages API is stateless; every request must contain the full conversation context. Because the API does not retain any conversation state between calls, the model has no persistent memory across separate API requests. By explaining that each request is an isolated, stateless interaction and that your application does not persist document content in a way that the model can access in subsequent turns, you demonstrate compliance.

The 'thinking' blocks are also transient and only exist within the scope of a single API interaction.

Exam trap

Suggesting that you can 'clear' the model's memory or that you need to send a 'reset' signal; the API is stateless by design, so no reset is needed.

Page 5

Page 6 of 7

Page 7

All pages