Courseiva

Claude Certified Architect - Professional (CCAR-P) — Questions 226–300

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

Page 3

Page 4 of 7

Page 5
226
MCQmedium

An enterprise architectural review board is establishing a bias evaluation baseline for a new Claude-based resume screening system. The team plans to evaluate bias by submitting test profiles that vary only by demographic markers (such as gender-associated names) and checking for consistency in output scores. Which statistical measure should the lead architect require to quantify disparate impact across demographic categories?

A.Mean squared error of output token probabilities across model runs
B.Semantic cosine similarity between system prompt embeddings and output text
C.Overall F1-score averaged across all candidate evaluations
D.Demographic parity ratio comparing selection rates of candidate subgroups
AnswerD

Demographic parity evaluates whether the selection rate for one demographic group matches another. In automated screening, comparing the selection rates across modified profiles directly quantifies disparate impact, providing a mathematically sound and regulatory-aligned bias metric.

Why this answer

To evaluate fairness and bias in categorical recommendation outputs, measuring demographic parity (disparate impact ratio) compares the selection rates between different demographic groups. Disparate impact is calculated by dividing the pass or selection rate of the protected group by the selection rate of the baseline group. A ratio significantly below 1.0 (traditionally below 0.8 in legal/regulatory frameworks) signals actionable algorithmic bias.

While accuracy and standard deviation measure general performance and variance, they fail to isolate systematic variance across protected demographic attributes.

Exam trap

Candidates often confuse general model accuracy or toxicity metrics with demographic fairness metrics like demographic parity ratio.

227
MCQhard

An architect is designing a secure gateway for an MCP-based agent that accesses internal HR records. The legal team requires that the agent's 'identity' and 'permissions' be verifiable at the resource level. Which MCP transport and authentication strategy best supports this requirement?

A.Use the stdio transport and rely on the operating system's filesystem permissions to restrict the agent's access to the HR database.
B.Configure the Messages API MCP connector to use a single shared API key for all HR resource requests to simplify auditing.
C.Implement a custom slash command in Claude Code that prompts the user for their HR password before every tool call.
D.Use the Streamable HTTP transport with OAuth, allowing the MCP server to validate the agent's identity via bearer tokens.
AnswerD

Streamable HTTP is designed for remote connectivity and integrates seamlessly with standard security protocols like OAuth. This allows the architect to issue scoped tokens to the agent, which the HR MCP server can then verify to ensure the agent only accesses authorized employee records, meeting the legal requirement.

Why this answer

For remote MCP servers, the 'Streamable HTTP' transport is the standard choice as it allows for modern web-based authentication and authorization. Specifically, using OAuth for authorization enables the MCP client to pass a verifiable bearer token to the MCP server. This token can represent the specific agent or user session, allowing the HR resource server to perform granular access control checks.

This is superior to local stdio transports, which rely on the local system's process permissions and are harder to integrate with centralized enterprise identity providers for fine-grained resource-level auditing.

Exam trap

Choosing stdio transport because it is 'local' and assuming it is therefore more secure for HR data.

228
MCQhard

A Claude agent maintains a long conversation with a user over weeks. The architect notices that the agent gradually forgets early constraints the user stated, even though the conversation is well within the model's context window. The team wants to fix this without re-summarizing the entire history on every turn. Which approach is most appropriate?

A.Raise the temperature slightly so the model explores more of the conversation when generating.
B.Increase the model's context window by switching to a larger variant so all history fits with room to spare.
C.Move persistent user constraints into a structured memory store that is retrieved and injected as a system-level block on each turn.
D.Insert the early constraints again at the very end of every user message as a reminder.
AnswerC

Extracting durable constraints into a structured memory store and re-injecting them each turn keeps them salient regardless of how the conversation grows, without re-summarizing everything. It directly addresses gradual forgetting by giving constraints a stable, high-priority position. This is the scalable pattern for long-lived agents with persistent user preferences.

Why this answer

Persistent constraints belong in a durable memory store that is retrieved and injected as a system-level block each turn, giving them stable salience without repeatedly summarizing the whole history. Larger context windows, repeated reminders, and temperature changes do not fix attention dilution over long conversations, and two of them are actively counterproductive. Structured memory is the right architectural layer for durable user preferences.

Exam trap

The trap here is assuming that a larger context window solves forgetting, when the scenario already excludes that and the real issue is salience of persistent constraints.

229
MCQhard

An organization discovers that their AI application is producing biased outputs on certain demographic groups. What is the correct governance step to take first?

A.Immediately delete all historical user data.
B.Suspend the affected functionality to perform a root cause analysis.
C.Publish a press release explaining the bias.
D.Ignore the bias if the system is highly profitable.
AnswerB

Suspending the affected functionality is the responsible governance action to mitigate immediate harm. It allows the team to perform a thorough root cause analysis, identify the source of the bias, and ensure that appropriate fixes are in place before the service is resumed for the users.

Why this answer

The first step in addressing bias is to pause the specific application or feature until a root cause analysis can be performed. Continuing to use an AI that is known to exhibit bias causes ongoing harm and creates legal and reputational risk. Once the system is stabilized, the team can then perform a systematic audit, update the model instructions or data, and re-validate before moving back into a production state.

Exam trap

Candidates often rush to 're-train' the model to fix bias. They ignore the immediate need to halt the harmful output while a root cause analysis is performed.

230
MCQmedium

An organization is building an internal agent using Claude to perform file system operations on a shared development server. They want to ensure the agent cannot access sensitive configuration files located in restricted directories. Which architectural control best enforces the principle of least privilege in this scenario?

A.Use the 'none' tool_choice setting to prevent the agent from using any tools that could interact with the file system.
B.Include a strict instruction in the system prompt explicitly forbidding the agent from accessing the restricted directories.
C.Implement a path-based validation layer within the tool execution logic that checks every file request against an allow-list of directories.
D.Configure the Claude API metadata field to restrict the agent's access to specific file system paths based on the provided user_id.
AnswerC

Implementing a validation layer within the tool's execution logic provides a hard enforcement mechanism that is independent of the model's output. By checking the requested path against an allow-list before executing the operation, the system ensures that the agent cannot escape its designated sandbox, regardless of the prompt content.

Why this answer

The most effective control for restricting an agent's file system access is to enforce boundaries at the tool definition and execution layer, specifically by setting clear root directories or path-based permissions. In the context of the Claude Agent SDK or a custom tool implementation, defining a restricted workspace or using a 'root' boundary prevents the agent from traversing outside the authorized directory, regardless of what the model requests. This ensures that even if a prompt injection occurs, the underlying OS-level or application-level tool implementation rejects the path access request.

Exam trap

Candidates often confuse prompt-based constraints with architectural enforcement. Simply telling the model 'do not access X' is insufficient for security-critical operations.

231
MCQeasy

A developer is building a system that stores user-provided medical documents. The organization is subject to strict data residency laws. When using the Files API, what should the architect keep in mind regarding the storage of these documents?

A.Files uploaded via the Files API are exempt from data residency laws because they are processed by an AI model.
B.The Files API automatically ensures that all data is stored in the region nearest to the user.
C.Uploading a document via the Files API automatically encrypts it to meet all international data residency standards.
D.The organization remains responsible for maintaining data residency compliance for all stored documents.
AnswerD

The use of platform tools like the Files API does not alter the fundamental legal obligations of the organization; the firm must ensure its data storage practices, including how files are uploaded and retained, align with local regulations regardless of the features provided by the platform.

Why this answer

The Files API allows for the efficient handling of documents, but the architect must remember that while the API provides a way to reference documents via file_id, the content is still processed as input tokens. More importantly, the organization is responsible for its own data governance, including where and how it stores its source files. The Files API does not replace the organization's legal responsibility to maintain compliance with data residency laws; the application must ensure that files are managed and stored in accordance with these regional requirements.

Exam trap

Assuming that using the Files API offloads the organization's compliance responsibility to the AI provider.

232
MCQeasy

What is the primary role of an AI Safety Committee in an enterprise architecture?

A.To handle daily technical debugging of model latency.
B.To oversee ethical standards and risk-based governance.
C.To directly write all production system prompts.
D.To manage the cloud provider's physical data centers.
AnswerB

The primary mandate of an AI Safety Committee is to define and enforce ethical guidelines, assess risk profiles for new use cases, and ensure the deployment meets organizational safety requirements. This governance layer is essential for mitigating risks such as bias, safety violations, and regulatory non-compliance in enterprise AI.

Why this answer

An AI Safety Committee acts as the governance body responsible for overseeing the ethical and safe deployment of AI systems. This committee establishes policies, reviews high-risk use cases, and ensures compliance with legal and safety standards. Their role is critical in bridging the gap between technical implementation and organizational values, ensuring that safety is not an afterthought but a central component of the entire AI development lifecycle.

Exam trap

Candidates sometimes assume the AI Safety Committee handles code optimization or hardware procurement, rather than focusing purely on ethical oversight and governance.

233
MCQmedium

An enterprise is building an internal AI tool to summarize legal documents. To ensure fairness, they want to prevent the model from favoring documents from specific law firms. Which approach is most effective for auditing this bias?

A.Use the Anthropic API's 'metadata' field to tag each document with its law firm, then analyze the usage logs for patterns of bias.
B.Ask the model to self-report any potential biases it feels while summarizing documents from specific firms during the development phase.
C.Conduct a blind test comparing model performance on anonymized versus non-anonymized documents to identify if the source influences the summary quality.
D.Review the model's raw internal thinking trace for each summary to identify if the model explicitly considers the law firm name.
AnswerC

A blind comparison isolates the effect of the firm name: the same kind of document is summarized with and without the firm identified, and any difference in quality can be attributed to the name. That gives a measurable basis for the audit.

Why this answer

The most effective approach is to perform 'blind' testing using a test set where the law firm names are stripped or anonymized. By comparing the model's summaries of the same document types from different firms (when the firm name is present versus when it is not), the team can calculate a 'bias score.' This systematic comparison allows the team to verify if the model's output quality correlates with the firm name, providing an empirical basis for tuning the system instructions to focus exclusively on content.

Exam trap

Candidates often suggest using the model's 'thinking' logs to audit bias, but the raw chain of thought is not exposed, making this impossible.

234
MCQhard

A team notices that Claude's performance fluctuates for a specific task. What is the most logical step to stabilize the output?

A.Increase the temperature to its maximum value to explore more possibilities.
B.Embed several high-quality examples of the task into the prompt.
C.Rewrite the instructions to be longer and more descriptive.
D.Add a post-processing step to filter out low-quality outputs.
AnswerB

Few-shot prompting provides concrete examples that clarify intent and structural requirements. This technique significantly reduces the model's search space, forcing it to follow the pattern demonstrated in the examples. It is the most effective way to improve consistency and quality without requiring changes to the model itself.

Why this answer

Stability in LLM outputs is best achieved through Few-Shot Prompting. By providing high-quality, representative examples within the prompt, developers reduce the ambiguity the model faces, ensuring more consistent reasoning. This technique is a cornerstone of professional prompt engineering, as it guides the model towards the desired behavior and format, significantly improving reliability across varying inputs and reducing the need for constant, manual fine-tuning or excessive prompt complexity.

Exam trap

Candidates often jump straight to fine-tuning or altering model parameters when facing fluctuating performance, overlooking the simpler and faster fix of few-shot prompting.

235
Multi-Selectmedium

When designing a stakeholder status dashboard for an AI implementation project, which THREE metrics are most critical to include to demonstrate success and maintain alignment?

Select 3 answers
A.Model training loss values.
B.Average latency (time-to-first-token).
C.Token usage and associated API costs.
D.Rate of error/refusal responses.
E.Number of lines of code written to build the UI.
AnswersB, C, D

Latency is a primary driver of user experience. Providing data on time-to-first-token helps stakeholders understand the perceived speed of the application. High latency can lead to business process delays, making it a critical metric for monitoring whether the application meets the user's operational needs in a real-world production environment.

Why this answer

Selecting the right KPIs is vital for stakeholder buy-in. By focusing on latency, cost per request, and error rates, you provide a balanced view of system performance and operational health. These metrics allow stakeholders to track ROI and identify potential bottlenecks, ensuring that the architectural decisions align with the business's operational goals and that the lifecycle of the AI application is transparently managed throughout the production deployment phase.

Exam trap

Candidates include vanity metrics like total requests or raw lines of code processed instead of actionable operational metrics.

236
MCQmedium

A developer wants to reduce the cost and latency of their LLM application, which sends repetitive, long context windows. Which optimization technique is most appropriate?

A.Aggressively compress all input text using standard text compression algorithms.
B.Implement prompt caching for static segments of the context window.
C.Switch to a smaller model version regardless of performance requirements.
D.Move all conversation processing to the client-side browser to offload the server.
AnswerB

Prompt Caching allows the developer to store and reuse the prefix of a prompt. This drastically reduces the number of tokens processed by the model on every call, leading to lower latency and significantly reduced costs for applications that involve large, unchanging instructions or documents.

Why this answer

Prompt Caching is designed specifically to handle large, static context segments by allowing the model to reuse the computed state. By caching parts of the prompt, the application avoids redundant processing, which directly reduces both latency and cost. This technique is a crucial operational enabler for developers building complex apps that rely on large knowledge bases or extensive instructions.

Exam trap

Candidates often suggest reducing the context window or shortening the prompt, which degrades performance, instead of using prompt caching to optimize repetitive, large context segments.

237
MCQhard

A red-teaming team successfully induces a Claude-based agent to ignore its system prompt and start acting like a pirate. What is the most critical governance failure that allowed this to happen?

A.The architecture failed to enforce a clear boundary between trusted instructions and untrusted input data.
B.The organization failed to use the 'thinking' feature to monitor the model's reasoning trace for malicious intent.
C.The system prompt was not written in a sufficiently authoritative tone to command the model's compliance.
D.The red-teaming program did not use a more capable model like Claude Opus 5.5 to perform the attack.
AnswerA

Prompt injection occurs when instructions embedded in untrusted data are treated as commands by the model. A robust architecture must explicitly separate these inputs, ensuring that the model's system prompt instructions cannot be overridden by the content of user-supplied data, which is a critical governance requirement for secure agentic systems.

Why this answer

The failure to properly separate instructions from untrusted data is the most critical governance issue here. When an agent is susceptible to prompt injection, it indicates that the system prompt was likely not sufficiently protected or that the architecture failed to treat external tool outputs or user inputs as untrusted. Governance must focus on enforcing clear boundaries between the instructions provided by the architect and the data provided by the user.

Relying on the model to 'obey' the system prompt without architectural enforcement is a common, high-risk oversight that leads to system subversion.

Exam trap

Candidates often suggest that the model should have been more 'disciplined' or that the system prompt was not 'strict' enough, ignoring the underlying architectural failure.

238
MCQeasy

An enterprise architect is reviewing the security of a Claude-based assistant. The audit logs show that the 'thinking' tokens are being counted as part of the total output tokens. Why is this important from a governance and cost-monitoring perspective?

A.Thinking tokens are free and do not need to be monitored for cost attribution.
B.Thinking tokens are separate from output tokens and do not count toward max_tokens.
C.Thinking tokens should be disabled to prevent them from inflating the audit logs.
D.They represent a significant portion of token spend and impact the overall output limit, necessitating integrated tracking.
AnswerD

Because thinking tokens are part of the total token count and consume space within the max_tokens limit, they must be tracked to maintain accurate cost reporting and to ensure the model has enough headroom to complete its reasoning and subsequent response generation without being cut off mid-thought.

Why this answer

On current models, thinking tokens count toward the max_tokens limit and represent a significant portion of the total token spend, especially when high effort settings are used. Since they directly impact both the cost and the potential for a request to be truncated if the limit is reached, they must be included in your token consumption monitoring and audit logs. Failing to account for these tokens would lead to inaccurate cost attribution and could cause unexpected errors where the model is cut off prematurely, impacting the quality of the service.

Exam trap

Candidates often think thinking tokens are separate or not part of the max_tokens count, leading to poor capacity planning.

239
MCQmedium

When designing a system that uses Claude for data extraction, how should a developer handle non-deterministic outputs to ensure operational reliability?

A.Set the temperature to zero to guarantee the exact same output every time.
B.Implement a post-processing validation layer that checks the output schema.
C.Ask the model to explain why it extracted the data in a specific way.
D.Use a larger model to reduce the probability of hallucinated extraction formats.
AnswerB

A validation layer acts as a guardrail, ensuring that if the model produces malformed or unexpected output, the system can catch and handle the error. This pattern is essential for reliability, as it allows for retries or manual intervention, ensuring that the integrity of the downstream database remains intact.

Why this answer

Operational reliability in data extraction is achieved through structural constraints and validation. By forcing the model to output specific formats and validating those outputs against a predefined schema, developers can mitigate the risks of non-deterministic LLM behavior. This approach ensures that downstream systems receive the data they expect, turning the variability of generative AI into a manageable input for traditional software engineering components.

Exam trap

Test-takers often rely entirely on system prompts to enforce formatting, forgetting that LLMs are non-deterministic and require a programmatic post-processing validation layer for true reliability.

240
Multi-Selectmedium

You are leading a project involving Claude integration. Which TWO of the following steps are essential for successful stakeholder expectation management during the model evaluation phase?

Select 2 answers
A.Promise 100% accuracy for all complex logic tasks to secure stakeholder buy-in.
B.Define specific, measurable KPIs related to task completion time and accuracy rates.
C.Schedule a weekly demo that showcases edge cases to highlight system limitations.
D.Exclude non-technical stakeholders from the evaluation process to maintain focus.
E.Automate all stakeholder status reports to avoid any human interaction.
AnswersB, C

Defining clear KPIs provides a shared language for project success. This objective measurement allows stakeholders to evaluate the system's performance against concrete business goals, preventing the project from drifting into undefined territory where success is subjective and difficult to prove, thereby improving project governance and communication.

Why this answer

Managing expectations requires balancing technical transparency with business clarity. By defining clear success metrics and documenting the limitations of LLMs, you prevent misalignment between the technical performance and business outcomes. These actions ensure that stakeholders are aware of both the potential and the constraints of the system, fostering a collaborative environment where iterations can occur based on real data rather than misguided assumptions about artificial intelligence capabilities.

Exam trap

Candidates often suggest hiding system limitations to keep stakeholders happy, missing that transparently showcasing edge cases and defining strict KPIs is vital.

241
MCQmedium

An organization is building an internal assistant that fetches data from an internal database via an MCP server. The security team is concerned that the assistant might inadvertently display sensitive user data in the conversation history, which could be logged or stored by the application. What is the best practice to mitigate this risk?

A.Use the 'stop_sequences' parameter to cut off the response whenever the model detects a name or address.
B.Enable the 'thinking' block and analyze the chain of thought for PII before showing the answer to the user.
C.Limit the MCP server to only return hashed identifiers instead of raw user data.
D.Configure the model with a system prompt that explicitly forbids the output of PII, and trust the model's safety training.
AnswerC

Returning only hashed identifiers and the minimum fields needed means raw personal data never reaches the model, so it cannot be repeated in the conversation or end up in stored history. This is a structural control that does not depend on the model choosing to withhold information.

Why this answer

Privacy by design works at the data source: if the MCP server returns only the fields the task needs, with identifiers hashed or tokenized, raw personal data never enters the model's context and so cannot appear in responses or logs. Prompt instructions and output-pattern tricks are not reliable controls; the application should still scrub anything it persists to logs.

Exam trap

Relying on the model to spontaneously 'censor' its own output without explicit, structured tool-level constraints or application-level post-processing.

242
MCQhard

An organization runs a high-volume financial analysis workflow using Claude Opus 5.5 through the Messages API. During a post-incident review of an output truncation error that led to incomplete trade reporting, the engineering team proposes prefilling the assistant role with the truncated response text to let the model continue its output in a recovery request. According to platform specifications, how should your incident response architecture handle this proposal?

A.Reject the proposal because assistant-message prefill is not supported on current models and will trigger a 400 invalid request error.
B.Approve the proposal provided that the partial assistant text is wrapped in XML tags within a standard user message instead.
C.Implement the fix by sending the partial assistant text with a special retry header to bypass validation checks.
D.Accept the proposal as long as the request uses streaming mode to handle the extended output tokens smoothly.
AnswerA

Assistant-message prefill is explicitly unsupported on current models and returns a 400 error. Recovery from truncated outputs requires increasing max_tokens or adjusting prompt instructions rather than attempting to stitch partial assistant turns back into the messages array.

Why this answer

Assistant-message prefill—ending the messages list with a partial assistant turn—is not supported on current models and will result in a 400 bad request error. During an incident where outputs are truncated due to hitting max_tokens, attempting to feed the truncated text back as an assistant prefill will fail. Instead, the incident remediation procedure must update the request configuration to raise max_tokens, enable streaming for large outputs, or restructure the prompt to demand concise formatting.

Exam trap

Many developers assume assistant prefill works universally across all LLM APIs for conversational continuation, forgetting that current Anthropic models reject prefilled assistant turns with a 400 error.

243
Multi-Selecthard

Your team manages a production document extraction service. You need to provide executive stakeholders with a monthly quality report. Which TWO metrics provide the most accurate assessment of the system's operational health and production quality?

Select 2 answers
A.The frequency of 'refusal' stop_reason occurrences in production logs.
B.The average latency of API calls during non-peak hours.
C.The total number of cached tokens read during the reporting period.
D.The rate of 'max_tokens' stop_reason in API responses.
E.The total number of input tokens consumed by the pipeline each month.
AnswersA, D

Refusal stop reasons are critical indicators of where your system prompt or input data interacts poorly with safety classifiers. Tracking these allows you to identify if the model is declining legitimate business tasks, enabling you to refine instructions or improve grounding to ensure the model remains helpful while strictly adhering to policy.

Why this answer

For automated document extraction, simple success/fail counts are insufficient. You must track the 'refusal' rate, as it indicates when safety classifiers or system constraints prevent the model from completing a task, and the 'max_tokens' stop reason, which reveals if the model is being truncated due to length limits. Together, these metrics provide a clear view of where the model is struggling, allowing for targeted prompt adjustments or structural changes to the pipeline to ensure consistent data extraction.

Exam trap

Confusing usage metrics like token counts with quality metrics; token counts measure cost, not the accuracy or reliability of the actual data extracted.

244
MCQmedium

Your organization is developing a resume-screening pipeline using Claude Sonnet 5.5 to assist human recruiters in ranking candidate applications. To ensure fairness across demographic cohorts, the engineering team proposes lowering the model's effort configuration to its minimum setting, arguing that reduced thinking depth prevents the model from noticing and potentially over-correcting for sensitive demographic keywords. From a governance and bias evaluation perspective, why is this proposed approach flawed?

A.Reducing effort prevents the Messages API from accepting document blocks containing resume attachments, causing pipeline failures before any bias evaluation can occur.
B.Lowering model effort automatically disables safety classifiers, leaving the resume-screening pipeline vulnerable to direct prompt injections embedded inside candidate resumes.
C.Lowering model effort invalidates existing prompt cache breakpoints, causing excessive cache write costs and violating organizational governance policies.
D.Reducing model effort restricts internal reasoning depth, which impairs nuanced evaluation and can increase erratic classification variance rather than systematically removing demographic bias.
AnswerD

Lowering effort diminishes the model's capacity to perform rigorous, multi-step analysis needed for complex evaluation tasks. This reduction in reasoning rigor often degrades overall accuracy and consistency, exacerbating fairness issues rather than resolving them. Systematic bias mitigation requires robust evaluation suites, diverse test sets, and explicit prompt design rather than hobbling the model's core cognitive performance settings.

Why this answer

Lowering the effort configuration on current models reduces thinking depth and overall token spend, which degrades reasoning quality rather than eliminating demographic bias. When evaluating bias and fairness, minimizing model capabilities can lead to unpredictable classification errors and higher variance in output quality, making it harder to detect or mitigate systemic disparities. Instead, fairness evaluation requires systematic testing against representative demographic test cases, clear evaluation metrics, and carefully structured prompt guidelines that explicitly instruct the model to evaluate applications based on objective professional qualifications regardless of non-merit attributes.

Exam trap

Candidates often assume that turning down model capability parameters or reducing reasoning depth inherently neutralizes complex social biases by making the model 'simpler'.

245
MCQmedium

A firm is building a financial advisor chatbot. Which safety measure is most critical for preventing the model from providing unauthorized investment advice?

A.Always set temperature to 0.0 for every query.
B.Deploy a guardrail layer to filter prohibited topics.
C.Retrain the model on only financial regulations.
D.Add a disclaimer at the end of every response.
AnswerB

A guardrail layer acts as a safety gate, inspecting both input and output for prohibited topics like investment advice before they reach the user. This is a deterministic control that is far more reliable than relying solely on the model's internal prompt adherence, providing a robust safety boundary.

Why this answer

In financial contexts, providing unauthorized advice can lead to legal liability and significant user harm. Implementing a rigid system prompt that explicitly defines the model's limitations, combined with a deterministic 'guardrail' layer that checks for prohibited topics, is essential. This multi-layered approach ensures the model stays within its operational scope, protecting the firm from regulatory risk and ensuring users receive consistent, safe, and accurate information.

Exam trap

Candidates frequently assume that prompt engineering or system instructions alone are sufficient to prevent unauthorized advice. They underestimate the ease with which users can bypass these instructions through clever prompting.

246
MCQmedium

Your organization operates a customer-facing agent that uses an MCP server to fetch real-time inventory data. During a security incident, it is discovered that the MCP server was compromised and began returning malicious tool outputs designed to trigger prompt injection. Which action should be your immediate priority in the incident response plan?

A.Immediately rotate the API keys for the affected workspace and force a redeployment of the Claude Code environment.
B.Update the system prompt to explicitly include a instruction that ignores all inputs from MCP servers during the investigation period.
C.Initiate a full model retrain on the current agent configuration to remove the influence of the malicious data from the model's weights.
D.Disable the compromised MCP server connection and review the tool interaction logs to assess the extent of the injected instructions.
AnswerD

Disconnecting the MCP server stops the attack vector at the source, preventing further malicious inputs. Reviewing the tool interaction logs is the standard forensic procedure to identify what data was processed or if the agent attempted to execute unauthorized commands based on the injected instructions.

Why this answer

The immediate priority is to isolate the threat vector while maintaining system availability. Since the MCP server is the source of the untrusted data, you must disconnect the compromised MCP server immediately to prevent further malicious tool outputs from reaching Claude. Following this, you should initiate an audit of all historical tool interaction logs to determine the scope of the injection attempts, verify the integrity of the agent's current context, and then rotate any credentials associated with that specific MCP server connection to ensure future security.

Exam trap

Candidates often suggest retraining the model or clearing the entire workspace, which are disproportionate or ineffective responses to a compromised external tool interface.

247
MCQmedium

An orchestration agent runs a nightly workflow that fans out to 12 subagents, each calling a partner REST API. Partner calls intermittently return HTTP 429 with a Retry-After header. The orchestrator currently retries immediately in a tight loop, causing cascading 429s and duplicate side effects on the partner systems. Which architectural change best addresses both the throttling and the duplicate side effects?

A.Reduce the fan-out to a single subagent that processes all 12 partners sequentially with no retry logic at all.
B.Switch every subagent to a larger context window so each can hold the full history of prior 429 responses and learn to avoid them.
C.Introduce a shared token-bucket rate limiter in front of the partner calls plus idempotency keys on every mutating request, with subagents respecting Retry-After.
D.Increase the orchestrator's max_tokens so the model can reason longer about each 429 before deciding to retry.
AnswerC

A shared token bucket caps aggregate concurrency across all 12 subagents so bursts stop triggering 429s, while Retry-After compliance paces retries. Idempotency keys let the partner recognize a repeated mutating call and return the original result instead of creating a second record, which directly eliminates duplicate side effects. Together these address throttling and duplication at the architecture layer rather than relying on model behavior.

Why this answer

Bursty fan-out against a rate-limited partner needs two coordinated controls: a shared limiter so the aggregate request rate stays under the partner's ceiling, and idempotency keys so a retried mutating call cannot create a second side effect. Honoring Retry-After aligns retry timing with the partner's guidance. Token or context changes operate on model text, not on outbound traffic, and serializing the workload removes parallelism without addressing throttling or duplication.

Exam trap

The trap here is assuming that making the model 'smarter' about errors, via more tokens or more context, substitutes for enforcing rate limits and idempotency at the orchestration layer.

248
MCQmedium

A project stakeholder is concerned about the latency of Claude 3.5 Sonnet responses in a high-throughput production application. How should the architect manage this communication?

A.Dismiss the concern as latency is inherent to LLMs.
B.Immediately switch to Claude 3 Haiku for all requests.
C.Provide latency metrics and propose streaming to improve perceived performance.
D.Request the stakeholder to increase their budget for higher rate limits.
AnswerC

Sharing empirical latency data builds transparency, while suggesting streaming allows the application to render content progressively. This improves the user experience and perceived responsiveness without requiring a change in the model architecture. Engaging stakeholders with actionable technical solutions effectively manages expectations while providing a clear path forward for production optimization.

Why this answer

Addressing performance concerns requires a blend of technical transparency and expectation management. By quantifying latency through benchmarking and offering specific optimization strategies like streaming or prompt engineering, the architect establishes trust. This process is crucial because stakeholders often perceive latency as a failure of the model rather than a facet of network or inference configuration, and proactive communication prevents unnecessary escalations while keeping project timelines intact.

Exam trap

Candidates often choose answers that suggest changing the model provider entirely or blaming the network, missing that proactive technical solutions like streaming and quantifiable metrics must be combined with expectation management.

249
MCQmedium

An enterprise team is using the Message Batches API to process thousands of customer documents for PII redaction. The governance team mandates that the agent performing the redaction must not have access to any external tools, only the provided context. How do you enforce this restriction within the batch request?

A.Set the 'tool_choice' parameter to 'none' in the request to prevent the model from calling any tools.
B.Include a system message that explicitly states 'Do not use any tools' to guide the model's behavior.
C.Omit the 'tools' parameter from the request payload to ensure no tools are registered or available to the model.
D.Use a custom model ID that has been specifically configured to disable all tool-calling capabilities.
AnswerC

By not providing any tools in the API request, you ensure that the model has no functional capability to trigger a tool_use response, effectively enforcing a strict least-privilege environment where the model is limited to processing the input context and generating the requested redactions.

Why this answer

When using the Message Batches API, the most effective way to ensure least privilege is to explicitly define the tools allowed for the specific request. By providing an empty list or omitting the 'tools' parameter in the API request within the batch, you ensure the model cannot invoke any tools. This restricts the agent's capability to just the text processing task, preventing any potential unauthorized data exfiltration or external system interaction during the bulk processing job.

Exam trap

Candidates often think they need to modify the model's system prompt to forbid tool use, but explicit tool definitions in the API request are the primary control mechanism.

250
MCQhard

A security auditor is reviewing your Claude Code deployment. They find that developers are using a `.claude/settings.json` file to manage environment variables for API integrations. Which configuration change should you make to ensure that these secrets are not inadvertently committed to version control?

A.Use the `/init` command to regenerate the project settings and manually encrypt the environment variables before saving them to the settings file.
B.Move the environment variables to `.claude/settings.local.json` and ensure this file is added to your project's `.gitignore` file.
C.Configure the Claude Code hook to run a validation script that scrubs any sensitive patterns from the settings files during the session start.
D.Update the permissions.deny rule in the project configuration to block the Read tool from accessing any file matching the pattern `*secrets*`.
AnswerB

Moving secrets to the local settings file ensures they remain outside the repository. By adding this file to `.gitignore`, you guarantee that sensitive credentials are never uploaded to source control, which is the standard industry practice for protecting development credentials while maintaining the flexibility of local configuration for individual developers on the team.

Why this answer

To prevent secrets from reaching version control, you must distinguish between global, project-wide, and local configuration files. The `.claude/settings.local.json` file is specifically designed for personal project overrides and is not intended to be checked into source control. By migrating sensitive environment variables from the shared project-level settings to this local file, you ensure that secrets remain local to the developer's environment while shared project settings remain clean and safe for repository integration.

Exam trap

Candidates often confuse project-wide settings which are shared via source control with local-only settings that should remain private.

251
MCQmedium

A developer is concerned about the high token cost and latency of an agent that has access to 50 different tools. What is the most effective architectural change to optimize this system?

A.Dynamically inject tools based on intent classification
B.Switch from JSON to XML tool definitions
C.Compress the tool descriptions into single words
D.Force the model to use only one tool per turn
AnswerA

Using a lightweight classifier to identify the user's intent allows the system to provide only a small subset of the 50 tools. This reduces the input token count, lowers latency, and improves the model's accuracy by removing irrelevant tool schemas that could cause confusion or lead to hallucinations.

Why this answer

Model performance and cost are directly impacted by the size of the system prompt and tool definitions. By implementing a dynamic tool selection mechanism, the architect can ensure that only the tools relevant to the user's current intent are loaded into the context, significantly reducing the prompt overhead for every turn.

Exam trap

Candidates often suggest fine-tuning the model to handle more tools, overlooking that dynamic injection is the standard architectural approach to reduce context bloat and improve performance.

252
MCQmedium

When evaluating the performance of Claude for a new feature, which metric is most useful for understanding the impact on end-user experience?

A.Total number of API calls made per month.
B.Time to First Token (TTFT).
C.The total number of tokens generated per response.
D.The memory usage of the server hosting the API client.
AnswerB

TTFT directly correlates with the user's perception of application speed. When users interact with a chat interface, waiting for the first word to appear is the most impactful moment. Minimizing this time significantly improves the user experience, making the application feel much more responsive and interactive.

Why this answer

Time to First Token (TTFT) is the most critical metric for perceived latency. Even if the full response takes a long time to generate, users feel that an application is responsive if the initial tokens appear quickly. By prioritizing TTFT, developers can ensure that the application feels 'fast' and interactive, which is the most significant factor in maintaining user engagement and perceived product quality in LLM-powered applications.

Exam trap

Candidates often confuse throughput or total completion time with user experience. They incorrectly prioritize total response time, ignoring the psychological importance of initial response speed in interactive applications.

253
MCQmedium

Your engineering organization is drafting runbooks for operators who support agentic applications using Claude Opus 5.5 and Sonnet 5.5. The runbook needs to explain how tool execution loops and stop reasons are processed by the application harness. What operational guidance is accurate regarding tool use stop reasons?

A.Instruct operators that a tool_use stop reason means the API server will automatically pause execution while waiting for external database queries to complete.
B.Explain that when a response returns a tool_use stop reason, the client application must execute the tool and return the output in a matching tool_result block.
C.Advise operators to handle missing tool results by letting the API automatically drop unfulfilled tool calls after a timeout period.
D.Document that tool failures must be handled by terminating the session instead of reporting them through the tool result structure.
AnswerB

Accurate runbooks must describe the stateless tool loop where a tool_use stop reason prompts the client to execute the requested tool and supply the corresponding tool_result blocks in the next request to maintain conversation flow.

Why this answer

Operational runbooks for tool-enabled applications must instruct support teams on how the API communicates model state through response stop reasons. When Claude invokes a tool, the API returns a stop reason of tool_use alongside tool use blocks. The application harness must execute the designated tool locally and return the output via a user message containing matching tool result blocks.

Operators must know that every tool use block requires a corresponding result, and that failure to provide one results in an immediate 400 validation error on the subsequent request.

Exam trap

Candidates frequently believe that the API pauses and waits automatically for tool execution without requiring the client application to explicitly send a follow-up request containing tool results.

254
MCQhard

A developer productivity team runs an internal Claude-powered code review assistant. During peak morning hours, many developers submit large diffs simultaneously and the assistant returns HTTP 429 responses with a retry-after header. The team wants to keep latency predictable for interactive users while still processing queued batch jobs overnight. Which design best achieves this?

A.Separate interactive and batch traffic into distinct queues with different priority, apply exponential backoff with jitter on 429s, and use retry-after to pace the batch queue.
B.Immediately retry every 429 request in a tight loop until it succeeds, because the retry-after header is only advisory and can be ignored for interactive traffic.
C.Switch all traffic to a smaller, cheaper model during peak hours to reduce the chance of hitting rate limits, then switch back after the peak window ends.
D.Increase the max_tokens parameter on every request so fewer round trips are needed, reducing the total number of API calls during peak hours.
AnswerA

Isolating traffic lets interactive requests get served first while batch jobs absorb throttling. Exponential backoff with jitter prevents synchronized retry storms, and honoring retry-after paces the batch queue to the server's actual capacity, keeping interactive latency predictable during peak morning load.

Why this answer

Traffic isolation plus backoff with jitter and retry-after pacing is the standard pattern for protecting interactive latency under throttling. Batch work can tolerate delay and should absorb the throttling signal, while interactive requests deserve priority. This keeps the developer experience stable without ignoring the server's pacing guidance.

Exam trap

The trap here is treating 429 responses as a transient glitch to retry immediately, when they are a pacing signal that must shape queue priority and backoff behavior.

255
Multi-Selecthard

An enterprise architect is designing a multi-workspace strategy to ensure compliance and cost control. Which TWO of the following are essential actions for managing access control and governance across these workspaces?

Select 2 answers
A.Assign distinct API keys to each workspace to ensure clear attribution of usage and security incidents.
B.Rotate API keys only when a security incident is confirmed to minimize the overhead of secret management.
C.Grant all developers read-only access to all workspaces to encourage knowledge sharing and best practices.
D.Configure each workspace to share the same API key to simplify secret management across different cloud environments.
E.Implement centralized monitoring of audit logs across all workspaces to detect anomalies and unauthorized patterns.
AnswersA, E

Unique keys are fundamental to maintaining workspace-level isolation. They allow administrators to track costs, monitor performance, and respond to security events specific to each business unit, ensuring that one team's activity does not obscure the audit trail or usage metrics of another team.

Why this answer

Effective governance in a multi-workspace environment requires both strict administrative boundaries and centralized oversight. First, assigning unique keys to each workspace ensures that usage and potential security incidents are easily attributable to specific organizational units, preventing cross-contamination of audit trails. Second, implementing centralized monitoring and alerting for all workspaces allows the security team to identify anomalies, such as unexpected spikes in usage or unauthorized API patterns, across the entire organization, ensuring that the decentralized nature of workspaces does not lead to fragmented security visibility.

Exam trap

Failing to recognize that decentralizing workspaces necessitates a centralized layer for oversight and monitoring.

256
MCQmedium

An enterprise governance team is conducting a periodic audit of their internal red-teaming program for applications built with the Claude Agent SDK. The auditors notice that developers frequently update system prompts and tool descriptions to fix vulnerabilities discovered during red-teaming exercises. The architect needs to explain how these frequent modifications impact prompt caching efficiency across agent execution turns. What guidance should the architect provide?

A.Updating system instructions causes the API to automatically fallback to a secondary model tier, invalidating the model ID in the response metadata.
B.Tool definitions and system prompts are excluded from prompt caching mechanics, meaning red-teaming edits have zero impact on cache efficiency.
C.Frequent modifications to system prompts or tool definitions invalidate the prefix cache, requiring the application to rebuild cache entries and temporarily increasing token costs.
D.Modifying system prompts automatically triggers an immediate purge of all active organization-wide cache entries across every workspace.
AnswerC

Prompt caching depends on a strict prefix match over tools, system prompts, and messages; altering early components disrupts the cached prefix, invalidating downstream cached tokens and incurring cache write overhead.

Why this answer

Prompt caching operates via an exact prefix match over tools, system prompts, and initial message history. Any change made near the beginning of the prompt—such as modifying system instructions, reordering tool definitions, or altering early conversation prefix content—invalidates the cache for everything following that breakpoint. Therefore, when developers constantly tweak system instructions or tool definitions during red-teaming remediation, they inadvertently disrupt the cache prefix, leading to increased cache write costs and reduced cache hit rates until stable configurations are established.

Exam trap

Candidates often believe that prompt caching dynamically matches semantic intent, missing the fact that caching relies on strict prefix byte-matching.

257
MCQmedium

You are presenting the roadmap for a multi-stage LLM implementation to non-technical stakeholders. What is the most effective approach?

A.Detail every technical parameter and model architecture variation.
B.Frame the roadmap around business goals and performance milestones.
C.Present the technical hurdles as the primary focus to manage expectations.
D.Exclude all risks to ensure the stakeholders approve the budget.
AnswerB

Aligning the roadmap with business outcomes communicates the 'why' behind the project, which is what leadership cares about most. By highlighting how each phase solves a business problem, the architect ensures that stakeholders understand the value of the investment, fostering long-term commitment and clearer project trajectory monitoring.

Why this answer

Focusing on business outcomes rather than model mechanics is key when communicating with non-technical stakeholders. By tying each phase to a specific value proposition or risk reduction, the architect makes the project tangible. This is critical because stakeholders are invested in the business impact, and excessive technical jargon can obscure the ROI, leading to a loss of project support or misaligned expectations regarding deliverables.

Exam trap

Candidates frequently present deep technical details about model architectures, forgetting that non-technical stakeholders care exclusively about business goals and performance milestones.

258
MCQmedium

A financial services firm runs a Claude-powered loan pre-screening agent that reads applicant emails and drafts a preliminary recommendation. The firm's risk committee insists that no automated decision may be finalized without a documented human review step. Which control most directly satisfies this requirement while preserving the agent's throughput?

A.Log every model request and response to immutable storage and retain the logs for seven years.
B.Increase the model's temperature to zero and add a system prompt instructing Claude to be conservative in its recommendations.
C.Insert a mandatory human-in-the-loop approval gate before any recommendation is written back to the loan origination system.
D.Enable prompt caching on the applicant-email summarization step to reduce latency and cost per screening.
AnswerC

A human-in-the-loop gate places a person between the model's draft and the system of record, so an automated decision never becomes final without documented review. The agent still reads and drafts at machine speed, and only the last write is gated, which preserves throughput while producing the auditable review artefact the risk committee demands.

Why this answer

The risk committee's requirement is about who authorizes a decision, not how the model behaves or how well activity is recorded. Only a human-in-the-loop approval gate makes a person the final authorizing step before the recommendation reaches the loan origination system, yielding the documented review the committee expects while letting the agent handle upstream work automatically.

Exam trap

The trap here is assuming that making the model more cautious, faster, or better logged substitutes for an actual human decision point before the output is finalized.

259
MCQmedium

A Claude-based customer onboarding assistant has been in production for one quarter. The steering committee asks how you will decide whether to expand it to two additional regions. Which approach best supports that lifecycle decision?

A.Run a defined evaluation against agreed success metrics from the pilot, then present results as a stage-gate decision to the committee.
B.Expand immediately to both regions because the assistant has had no reported outages in production.
C.Wait until a region formally requests the assistant, then build it on demand.
D.Survey the engineering team about whether they feel the assistant is ready for more traffic.
AnswerA

A stage-gate review compares measured outcomes against success criteria agreed before the pilot, such as task completion rate, escalation reduction, and satisfaction scores. Presenting this evidence lets the committee make a defensible go, no-go, or conditional decision about regional expansion. It also preserves a feedback loop so lessons from the first region inform localization, compliance, and support planning for the next two.

Why this answer

Lifecycle decisions at scale should be evidence-based and governed through stage gates. By measuring the pilot against pre-agreed success metrics and presenting the results to the steering committee, you convert an expansion question into a structured go/no-go decision. This protects the organization from scaling unproven value, creates a documented rationale, and ensures regional differences in language, compliance, and support are addressed before commitment.

Exam trap

The trap here is treating operational stability as proof of business readiness, when expansion decisions require measured outcome evidence against agreed criteria.

260
MCQmedium

When designing an agent capable of multi-step tool use, what is the most important property to maintain across steps?

A.The exact same temperature parameter for every step.
B.The model's internal memory of its own personality.
C.Synchronization between the agent's world model and the environment.
D.Using the same model provider for every single step.
AnswerC

The 'world model' is the agent's mental map of the current environment state. If this map deviates from reality, the agent will choose incorrect tools or pass wrong arguments. Maintaining strict synchronization ensures that the agent's next action is always based on the most accurate, real-world data available.

Why this answer

Ensuring state consistency is the most important property. Each tool call changes the environment, and the agent must understand the new state to plan the next step. If the state becomes inconsistent—e.g., the agent thinks a file was deleted but it wasn't—the agent's plan will fail.

Architecting for state observability ensures that the model always has an accurate 'world model' to work from.

Exam trap

Candidates often assume that simply tracking tool execution logs is sufficient, failing to realize that discrepancies between the agent's internal assumptions and the actual remote environment cause silent multi-step execution failures.

261
MCQhard

You are migrating a high-volume document summarization service to a newer model version. The service uses the Message Batches API to process requests at scale. How should you handle the migration of these batches?

A.Update the batch configuration via the API to point the model field to the new version.
B.Cancel all pending batches and resubmit them using the new model ID to ensure immediate consistency.
C.Submit new requests using the new model ID while allowing existing batches to complete with the legacy model.
D.Use the same custom_id for the new model batches so that the results are merged into the legacy data.
AnswerC

Message batches are immutable after submission, so you must treat the migration as a transition of your submission pipeline. Submitting new batches with the updated model ID while letting existing ones finish ensures no service disruption and allows for a clean separation of performance data between the two versions.

Why this answer

Because each result in a Message Batch is processed individually and results are returned as succeeded, errored, canceled, or expired, you should implement a phased migration strategy. You cannot 'upgrade' an existing batch already in flight. Instead, you must allow existing batches to complete or expire, and then submit all new requests using the new model ID.

This ensures you maintain clear attribution for quality and costs, and allows you to handle any failures or retries for the new model independently of the legacy batches.

Exam trap

Candidates often assume there is a way to modify or re-target batches that are already queued or processing, which is not supported by the Batch API.

262
MCQeasy

A software vendor is preparing for a customer security review of its Claude-powered support assistant. The customer asks how the vendor prevents the assistant from leaking one tenant's data into another tenant's conversation. Which architectural control most directly addresses this concern?

A.Add a system prompt instructing the assistant to answer only questions about the current customer.
B.Scope every retrieval query and every stored conversation to the authenticated tenant identifier, and reject requests whose tenant scope cannot be resolved.
C.Set the assistant's temperature to zero to make responses more predictable across tenants.
D.Enable Claude's extended thinking so the assistant reasons more carefully before answering.
AnswerB

Enforcing tenant scope at the data access layer ensures that only the authenticated tenant's documents can enter the context window, regardless of what the model is asked. Failing closed when scope cannot be resolved removes the ambiguous cases that typically cause leaks. Because the boundary is enforced in code the model cannot influence, it answers the customer's concern about isolation directly.

Why this answer

Cross-tenant leakage is prevented at the point where data is selected, not at the point where text is generated. Binding every retrieval and storage operation to the authenticated tenant identifier, and failing closed when that identifier is missing, guarantees that only authorized content can reach the model. Prompt instructions, extended thinking, and temperature settings alter model behavior but leave the underlying data access path unchanged.

Exam trap

The trap here is answering a data-isolation question with a model-behavior setting, when isolation is enforced by the retrieval and storage layer rather than by how the model is prompted or sampled.

263
MCQmedium

During a project milestone review, a stakeholder asks why the Anthropic model output occasionally varies. How do you explain this in a way that manages expectations?

A.State it is a bug and that a patch will be deployed.
B.Explain that LLMs use probabilistic sampling, which creates variance.
C.Suggest setting the temperature to 0 for all future requests.
D.Ignore the concern as it is common knowledge in AI.
AnswerB

Providing a technical explanation of how sampling parameters influence output helps stakeholders understand the underlying logic. It shifts the discussion from 'broken vs. working' to 'tuning for desired outcomes.' This transparency builds confidence and allows stakeholders to participate in defining the desired balance between creativity and consistency.

Why this answer

Explaining the concept of 'temperature' and probabilistic nature of LLMs is essential to manage expectations. By framing variation as a feature that allows for creative and diverse responses, the architect aligns the stakeholder with the technology's strengths. This is crucial for avoiding frustration when stakeholders expect deterministic software-like behavior from generative AI models, which can lead to misaligned quality assessments.

Exam trap

Candidates often suggest trying to eliminate output variance entirely by forcing zero temperature, failing to explain the fundamental probabilistic nature of LLMs to stakeholders.

264
MCQmedium

An organization is using Claude Code to automate internal documentation tasks. They are concerned that malicious content in a repository could perform prompt injection when the model indexes the files. How should they secure the environment?

A.Enable the 'memory' tool to force the agent to store all file content in a secure, encrypted local database before processing.
B.Delete all files that contain natural language, keeping only the executable code, to prevent the model from reading potential injection text.
C.Use the configuration settings to deny the agent read access to directories that contain untrusted or externally sourced dependencies.
D.Set the permission mode to 'bypassPermissions' for all internal users to ensure they can work without interruption.
AnswerC

Restricting access to untrusted directories using `permissions.deny` rules effectively prevents the agent from reading files that are more likely to contain malicious instructions. This proactive approach limits the agent's exposure to potential prompt injection vectors while still allowing it to perform its required tasks on trusted code.

Why this answer

When tools like Claude Code index a repository, the content of files is ingested into the context window. To prevent injection, the architect must use the permission and exclusion features available in the environment. Specifically, configuring the `permissions.deny` rules to exclude sensitive or untrusted directories and ensuring that `CLAUDE.md` files are used to clearly define safe interaction boundaries are effective measures.

By controlling which parts of the filesystem the agent can read and interact with, the architect minimizes the risk of the model encountering and acting upon malicious instructions hidden within arbitrary codebase files.

Exam trap

Assuming that Claude Code's built-in tools are inherently safe and do not require configuration to restrict file access based on risk profiles.

265
MCQmedium

An organization is concerned about the reliability of an external model provider for its mission-critical customer support agent. Which architectural pattern provides the best risk mitigation against provider-side service interruptions?

A.Increase the maximum token limit for all requests to ensure that the model can provide detailed, long-form explanations even during periods of high latency.
B.Use the highest model tier (Opus) for all tasks to ensure the best possible performance and reduce the likelihood of internal logic errors.
C.Implement a multi-provider or multi-region routing strategy to allow for seamless failover if one endpoint becomes unavailable or experiences high error rates.
D.Configure the agent to retry every failed request indefinitely until it succeeds, ensuring no data loss occurs during service outages.
AnswerC

Routing traffic across different regions or providers ensures that the application is not tethered to a single point of failure. This strategy is essential for mission-critical systems, providing the resilience needed to maintain uptime even when the primary service provider faces technical difficulties.

Why this answer

For mission-critical systems, relying on a single provider endpoint introduces a single point of failure. By implementing a routing or orchestrator-worker pattern, the architect can build in redundancy. If a primary provider experiences an outage, the system can failover to a secondary model or a different deployment region.

Furthermore, keeping the agentic loop separate from the model call itself allows for graceful degradation, where the agent might switch to a less capable model or a fallback logic if the primary model tier is unavailable, ensuring business continuity.

Exam trap

Candidates often assume that simply increasing rate limits or using larger models solves availability issues, missing the need for architectural redundancy.

266
MCQhard

An enterprise application connects Claude Sonnet 5.5 to remote enterprise software via Model Context Protocol (MCP) Streamable HTTP transport. Security auditors express concern that remote MCP servers might inadvertently expose access tokens or accept unauthorized tool invocation calls. Which governance architecture correctly secures token management and tool execution on remote MCP servers?

A.Store user authentication credentials inside local `CLAUDE.md` files so remote MCP endpoints can read them during the initialization handshake
B.Pass raw OAuth refresh tokens in the MCP tool description schema so Claude can authenticate each server request automatically
C.Configure the Messages API MCP connector to automatically bypass server authorization when requests originate from pinned model IDs
D.Authenticate remote HTTP transport using OAuth managed by the MCP client host, while enforcing strict schema validation on all returned tool calls
AnswerD

This architecture maintains a secure separation of concerns. The MCP client application manages OAuth handshake tokens securely over HTTP transport without exposing raw tokens to the LLM. In addition, validating schema inputs guards against untrusted payloads or prompt injection attacks.

Why this answer

Remote MCP servers operating over Streamable HTTP transport should implement standard enterprise authentication and authorization controls, typically using OAuth 2.0. The application hosting the MCP client manages authentication tokens outside the LLM context. Furthermore, because MCP tool definitions and tool outputs can carry prompt injection vectors, the MCP host application must strictly validate tool call arguments, enforce user authorization scopes, and keep high-privilege credentials contained within secure server infrastructure.

Exam trap

Relying on Claude to validate bearer tokens or store OAuth access tokens inside MCP tool call arguments.

267
MCQeasy

A government agency wants assurance that its Claude deployment will not be used to generate content that violates Anthropic's usage policies. Which action most directly supports ongoing policy compliance?

A.Disable all safety filters so the agency retains maximum control over what the model is allowed to output.
B.Review Anthropic's usage policies and configure the deployment so its use cases fall within permitted categories, documenting that mapping for internal review.
C.Route all requests through a third-party gateway that anonymizes the agency's identity from Anthropic.
D.Purchase the highest available usage tier so the agency's traffic is treated as a trusted enterprise workload.
AnswerB

This is correct because compliance starts with understanding the provider's usage policies and deliberately aligning the deployment's use cases to permitted categories. Documenting that mapping creates an auditable statement of intent and gives reviewers a concrete basis to confirm the agency is not operating in a prohibited area, which is the most direct and durable way to support ongoing policy compliance.

Why this answer

Policy compliance is achieved by understanding the provider's acceptable use categories, deliberately designing the deployment to stay within them, and documenting that alignment so it can be reviewed. Configuration changes, spending tier, and identity obfuscation do not alter the obligation to use the service within policy and provide no evidence of alignment.

Exam trap

The trap here is assuming that a higher commercial tier, or hiding traffic behind a gateway, grants exemption from the provider's usage policies.

268
MCQmedium

An organization wants to enforce consistent prompt engineering standards across teams. They have a large library of prompts and need to ensure that developers use approved versions while maintaining audit trails of prompt usage. What is the most effective approach?

A.Require developers to manually copy-paste prompt templates into a shared documentation Wiki.
B.Implement a custom middleware layer that encrypts all prompt traffic at the network edge.
C.Deploy a central prompt management service that provides versioned API endpoints for prompt retrieval.
D.Enforce strict hardcoding of all prompts within the application source code with mandatory PR reviews.
AnswerC

A central registry enables immutable versioning and structured metadata, allowing developers to fetch vetted prompts via API. This creates a single source of truth that simplifies auditing and testing. It allows prompt engineers to update prompts centrally without requiring developers to redeploy their application code frequently.

Why this answer

Using a centralized Prompt Registry allows teams to version-control, audit, and distribute approved prompt templates. This ensures governance without hindering developer velocity, as teams can reference specific versions through API calls rather than hardcoding prompts. Establishing a registry mitigates risks associated with prompt injection and inconsistent model behavior across different product features, effectively bridging the gap between security compliance and rapid software iteration.

Exam trap

Candidates often suggest hardcoding prompts in application code or using simple version control systems like Git, failing to realize that these do not provide the necessary runtime API-based governance and auditability required.

269
MCQmedium

A stakeholder is concerned that your Claude-powered document classification system had a temporary drop in performance after a model update. How do you explain the need for ongoing 'eval-gated' releases in your post-incident report?

A.Tell the stakeholder that the issue was caused by a temporary API outage and that the model performance itself remained consistent throughout the incident.
B.Describe the incident as a necessary 'learning period' where the model needs time to adjust to the new document types in the production environment.
C.Explain that model updates are unpredictable and that the team will revert to the older, stable model version for all future production tasks.
D.Explain that the drop was detected by the eval-gated release process, which allowed the team to pinpoint the issue and perform the necessary prompt adjustments before a full-scale deployment.
AnswerD

This response highlights the importance of the eval-gated release process as a safeguard. It shows that the performance dip was part of a controlled, data-driven validation workflow. This transparency builds trust by demonstrating that the team has a systematic way to verify and optimize model performance before it impacts end-users.

Why this answer

Performance fluctuations are common during model migrations. By explaining the 'eval-gated' release process—where the new model's performance is measured against a fixed test set of documents before full rollout—you demonstrate that the drop was identified and mitigated using professional standards. This approach frames the performance dip as a data-driven checkpoint in the lifecycle, reassuring stakeholders that the system's accuracy is being managed through rigorous, automated evaluation rather than guesswork.

Exam trap

Candidates often try to explain the model update as 'just an upgrade' without mentioning the necessity of testing.

270
MCQmedium

A team is concerned about data privacy. They want to ensure that no personally identifiable information (PII) is sent to the LLM. What is the most effective way to manage this in a developer-friendly way?

A.Provide all developers with a PII detection manual and perform monthly audits.
B.Deploy a middleware proxy layer that detects and redacts PII before model submission.
C.Only use the LLM to process public data that has been vetted by legal teams.
D.Require developers to encrypt all prompt text using AES-256 before sending.
AnswerB

A centralized middleware layer provides a 'secure-by-default' architecture. By automatically redacting PII, the team ensures compliance without adding friction to the developer's workflow. This is a scalable, robust pattern that minimizes the risk of data leakage while keeping the application code clean and manageable.

Why this answer

Building a middleware proxy for PII redaction ensures that sensitive data is scrubbed before it ever leaves the company's network. By automating this at the infrastructure level, developers are freed from the responsibility of manual redaction, reducing the risk of human error. This approach balances developer productivity with strict security compliance, making it an essential operational pattern for enterprise-scale LLM adoption.

Exam trap

Test-takers frequently select client-side regex checks or manual code reviews, overlooking that a centralized middleware proxy layer provides automated, scalable, and foolproof PII redaction without burdening individual developers.

271
MCQmedium

An architect needs to implement a 'Red Teaming' process for a new Claude deployment. What is the primary objective of this activity in the context of AI governance and safety?

A.To optimize the model's latency and throughput for high-volume traffic.
B.To adversarialy test the model to find safety gaps and potential for misuse.
C.To automate the generation of unit tests for the application's UI components.
D.To verify that the model's billing and usage credits are being tracked correctly.
AnswerB

The goal of Red Teaming is to simulate the behavior of a malicious actor. By intentionally trying to provoke the model into generating harmful, biased, or restricted content, architects can identify where the current guardrails are weak and strengthen them before the official launch.

Why this answer

Red Teaming is a proactive safety practice where a group of testers tries to find vulnerabilities, biases, or ways to make the model fail. This is a critical component of risk management, as it identifies potential issues before they can affect real users in a production environment.

Exam trap

Candidates confuse red teaming with standard performance benchmarking, accuracy testing, or automated unit testing of functional application code.

272
MCQhard

An enterprise architect is designing a Claude deployment where a single prompt may contain data belonging to customers in the EU, Brazil, and California. The legal team requires that each data subject's rights be honored independently and that processing purposes be documented per jurisdiction. Which architectural approach best supports this requirement?

A.Implement data classification and purpose tagging at ingestion so each record carries jurisdiction, lawful basis, and permitted processing purpose metadata that the orchestration layer enforces at prompt assembly time.
B.Route all prompts through a single global data lake so that lineage is consistent and easy to report.
C.Rely on the model provider's regional endpoints to satisfy all three jurisdictions automatically.
D.Ask business users to manually remove data from prompts when it is not needed for the current task.
AnswerA

Tagging records with jurisdiction, lawful basis, and purpose lets the orchestration layer include only data whose processing purpose matches the current request, honoring each subject's rights independently. Enforcement at prompt assembly prevents mixed-jurisdiction leakage. The other options either centralize data in ways that complicate localization or rely on manual, error-prone practices that cannot scale to per-subject obligations.

Why this answer

Honoring rights independently while documenting purpose per jurisdiction requires machine-readable metadata attached to each record and enforced during prompt assembly. Classification tags for jurisdiction, lawful basis, and permitted purpose let the orchestration layer exclude data whose purpose does not match the current request, which is the only approach here that scales and remains auditable. Centralization, endpoint selection, and manual pruning do not deliver per-subject enforcement or purpose documentation.

Exam trap

The trap here is believing that regional inference endpoints or a unified data lake solve multi-jurisdiction compliance, when the binding requirement is per-record purpose and rights enforcement.

273
MCQmedium

When implementing a 'Human-in-the-loop' (HITL) checkpoint, what is the best way to handle the state persistence during the wait period?

A.Keep the connection open to avoid re-initializing the agent.
B.Persist the state in an external database and terminate the process.
C.Store the state only in the client-side browser memory.
D.Retry the tool call periodically until the human responds.
AnswerB

Externalizing the state allows for scalability and durability. By saving the session context in a database, the system can remain idle without consuming compute resources. Once the human provides input, the system can reload the state, reconstructing the agent's context to resume the task seamlessly and reliably.

Why this answer

Externalizing state to a persistent database is essential. Agentic systems are often stateless by design, but a wait period requires 'pausing' execution. Saving the entire conversation history, current tool state, and reasoning chain allows the process to resume exactly where it left off once human approval is received.

This prevents data loss and maintains context continuity, which is critical for long-running, complex workflows.

Exam trap

Test-takers often assume that keeping the process alive in memory or using local process threads is sufficient for waiting states, ignoring that agentic architectures require externalized database persistence.

274
MCQmedium

An enterprise is using an agent to automate software deployments. The security team wants to ensure that the agent cannot execute arbitrary shell commands in the production environment. How should the architect configure the agent's permissions?

A.Configure the agent's permissions to allow only specific, pre-authorized bash scripts using the 'permissions.allow' rule pattern.
B.Disable the agent's ability to run any external commands and require a human to manually trigger the deployment scripts.
C.Use the 'bypassPermissions' mode to ensure the agent runs quickly without being interrupted by permission prompts during deployment.
D.Provide the agent with full access to the Bash tool but instruct it via the system prompt to only run approved deployment scripts.
AnswerA

Using a rule-based configuration to allow only specific scripts ensures that the agent is restricted to exactly the tasks it is designed to perform. This is a robust application of least privilege, as it prevents the agent from executing arbitrary or malicious commands, regardless of what the model attempts.

Why this answer

The most effective control is to restrict the agent's tool access by defining specific, allowed shell commands or by using a sandboxed execution environment. In the Claude Agent SDK, permissions can be managed by defining specific rules in the configuration, such as allowing only specific bash scripts or subcommands. By explicitly allowing only known, safe operations and denying everything else, the architect adheres to the principle of least privilege and prevents the agent from being used to perform unauthorized system modifications.

Exam trap

Candidates often assume that 'Bash' tool access is binary, but it can be restricted to specific commands.

275
MCQmedium

An organization is deploying an MCP server that grants Claude access to a private database. The database requires an API key for authentication. Where should this API key be stored and how should it be passed to the MCP server to maintain security?

A.Include the API key in the MCP server's tool definition description so the model knows how to authenticate.
B.Pass the API key as a parameter in the tool_use block when the model calls the database tool.
C.Store the API key in a secure vault and have the host retrieve it and inject it into the MCP server environment at runtime.
D.Hardcode the API key in the MCP server's configuration file and commit it to the repository to ensure it is always available.
AnswerC

This approach keeps the secret out of the prompt context and limits its exposure to the server environment. By using a secure vault, you ensure that the credential is encrypted at rest and only accessible to authorized processes, providing a secure, industry-standard way to manage sensitive authentication data.

Why this answer

The API key should be stored in a secure, encrypted vault or secret management service that is accessible only to the environment where the MCP server is running. When the MCP server is initialized, the host application should retrieve the key and provide it to the server through a secure channel, such as an environment variable or a secure configuration file that is not committed to version control. This ensures that the secret remains isolated from the model itself and is only used by the server to authenticate its requests to the database.

Exam trap

Candidates often suggest passing the secret as a tool argument, which would place the secret directly in the model's prompt context, exposing it to logs and potential model leakage.

276
MCQhard

An architect is designing a system where Claude Sonnet 5.5 must generate very short, one-word labels for high-velocity classification. They are concerned that the model's 'adaptive thinking' might lead to safety refusals or truncated responses if the 'max_tokens' limit is set too low. What is the recommended approach to manage this?

A.Use assistant-message prefill to provide the first character of the label, which suppresses safety refusals.
B.Set 'max_tokens' to a very low value (e.g., 5) and disable thinking to ensure only the label is returned.
C.Use a sufficient 'max_tokens' limit but lower the 'effort' level to reduce the depth of thinking and associated costs.
D.Enable 'strict' mode on the output schema, which automatically bypasses the thinking phase and safety classifiers.
AnswerC

Lowering the 'effort' (e.g., to 'low') is the correct lever for simple tasks like classification. It signals the model to spend fewer tokens on reasoning. Combined with a reasonable 'max_tokens' limit, this ensures the model has enough head-room to complete its thinking and provide the final label.

Why this answer

On current models like Sonnet 5.5, thinking is enabled by default and tokens consumed by the thinking process count toward the 'max_tokens' limit. If 'max_tokens' is set to a very small number (e.g., 5), the model may be cut off during its thinking phase before it ever generates the classification label. To ensure the label is generated while managing costs and safety, the architect should use a higher 'max_tokens' value and instead lower the 'effort' level (e.g., to 'low').

This reduces the depth of thinking and token spend without risking premature truncation or refusal due to incomplete reasoning.

Exam trap

Setting a tiny max_tokens to force short output, which actually breaks adaptive thinking models.

277
Multi-Selecthard

An enterprise is planning a multi-cloud strategy to deploy Claude models across both direct Anthropic API and Google Cloud Vertex AI to mitigate single-vendor outage risks. Which TWO platform operational differences must the lead architect address to ensure seamless failover and feature compatibility across platforms?

Select 2 answers
A.Claude models running on Google Cloud Vertex AI do not support safety filters or Constitutional AI principles enforced by Anthropic.
B.Prompt Caching is strictly disabled on Google Cloud Vertex AI due to Google's cross-tenant memory isolation policies.
C.Authentication methods differ: direct API utilizes Anthropic API key headers, whereas Vertex AI requires GCP IAM credentials and OAuth tokens.
D.Direct Anthropic API calls enforce an absolute 2K output token limit, whereas Google Cloud Vertex AI permits up to 128K output tokens.
E.Endpoints, client classes and request envelopes differ between the platforms, so a thin adapter layer is needed.
AnswersC, E

Direct API calls authenticate using standard HTTP header API keys issued by Anthropic, while Google Cloud Vertex AI requires GCP IAM permissions, Service Account keys, or Google OAuth2 tokens. Application proxies handling multi-cloud routing must implement dual authentication drivers.

Why this answer

When architecting multi-platform failovers across direct Anthropic API and cloud hyperscalers like Google Cloud Vertex AI, architects must account for structural differences in authentication mechanisms, API request wrappers, feature availability, and rate-limiting structures. Direct Anthropic API uses API keys and specific header structures, while Google Cloud Vertex AI relies on Google Cloud IAM credentials and GCP project endpoints. Furthermore, rate limits and quota allocations operate under different enterprise tiers and structures across vendors, requiring explicit translation layers in the application proxy.

Exam trap

Assuming unified client SDK calls will seamlessly handle authentication and rate limits across vendors without platform-specific configuration layers.

278
MCQmedium

You are managing a Claude-based document extraction pipeline. Stakeholders report that the model occasionally misunderstands specific industry jargon. How should you structure the feedback loop to resolve these terminology issues?

A.Use the model's internal memory to store the jargon definitions after the first time it encounters them.
B.Instruct the users to provide the definition of the jargon in their prompt every time they send a document.
C.Rely on the model's inherent reasoning capabilities to infer the correct jargon meaning through context.
D.Maintain a glossary of jargon and inject it into the system prompt as grounding context.
AnswerD

Injecting a maintained glossary into the system prompt provides the model with the necessary grounding to correctly interpret industry-specific terminology. This approach is highly effective for ensuring consistent output quality across a stateless API, as it explicitly guides the model's interpretation of jargon based on the organization's specific domain requirements.

Why this answer

You should create a 'terminological feedback loop' where extracted errors are identified by domain experts, logged, and then aggregated into a glossary or a set of few-shot examples. This structured content should then be injected into the system prompt or as a document block in the request. This ensures the model receives consistent, high-quality guidance on how to interpret industry-specific language without relying on the model's internal knowledge.

Exam trap

Candidates often suggest that the model will eventually learn the jargon through repeated use, which is incorrect as the API is stateless.

279
MCQhard

A financial firm uses an agent to draft loan pre-screening emails. The security team discovers that the model occasionally includes fragments of previously processed emails in its outputs if the conversation context is not cleared. What is the most effective way to ensure data isolation between different loan applicants?

A.Set a high temperature to randomize the output.
B.Clear the conversation history between every applicant request.
C.Add a 'do not remember' instruction to the system prompt.
D.Use the Memory tool to explicitly delete data after each email.
AnswerB

Clearing the conversation history ensures that the model starts each loan pre-screening task with a blank slate, effectively preventing any data from previous applicants from influencing or appearing in the current applicant's generated output.

Why this answer

To prevent data leakage between sessions, the application must ensure that the context is completely reset between unrelated tasks. Using a `/clear` equivalent or explicitly initializing a new session for every applicant ensures that no data from one loan application resides in the context window of the next. This is a fundamental principle of data isolation in stateless API-based architectures, where the client is responsible for managing the state and history to avoid accidental data carryover.

Exam trap

Candidates often suggest using a 'forget' instruction in the system prompt, which is unreliable, rather than the structural enforcement of session isolation.

280
MCQmedium

A financial firm requires a strict audit trail of all AI-generated content to comply with regional regulations. They use the Messages API. How should the system handle 'refusal' responses in the audit logs?

A.Discard all refusal responses in the logs since they do not contain any AI-generated content or sensitive output.
B.Alert the human user that the request failed and purge the interaction from the system logs to protect user privacy.
C.Log the stop_reason as 'refusal' and include the 'stop_details' to document the safety violation category.
D.Automatically re-submit the request with a more permissive system prompt until the model provides a response.
AnswerC

Capturing the stop_reason and stop_details is essential for a complete audit trail, as it allows security teams to monitor for patterns of prohibited requests and verify that the model is behaving according to the defined safety constitution.

Why this answer

A 'refusal' stop_reason indicates that the model has triggered a safety violation and declined to provide a response. For compliance and auditing, it is crucial to log not only the fact of the refusal but also the 'stop_details' provided by the API. This category of refusal provides insight into why the model blocked the request, which is vital for tuning safety filters and proving to auditors that the system is actively enforcing safety policies and catching potentially harmful or prohibited inputs.

Exam trap

Candidates often ignore refusals in logs, viewing them as 'non-events,' whereas they are actually critical data points for demonstrating safety guardrail effectiveness.

281
Multi-Selecthard

Your team is building an LLM-powered application and experiencing high latency during peak times. Which TWO actions would best improve developer productivity and operational efficiency when debugging these bottlenecks?

Select 2 answers
A.Implement distributed tracing with custom spans for model inference and prompt processing.
B.Switch all internal communications to asynchronous polling to avoid blocking operations.
C.Enable detailed token usage monitoring and latency logging for every API call.
D.Force all developers to use the largest available model to ensure high quality results.
E.Disable all logging and monitoring to minimize overhead on the network layer.
AnswersA, C

Distributed tracing provides the necessary visibility into the complete request lifecycle. By identifying exactly how long the model takes versus pre-processing tasks, developers can isolate the root cause of latency. This reduces debugging time and allows for data-driven decisions when selecting model tiers or implementing caching.

Why this answer

Observability and granular tracing are critical for diagnosing LLM latency. By capturing token usage and latency metrics per request, developers can pinpoint whether the bottleneck is model inference, networking, or pre-processing. These insights enable targeted optimizations like prompt caching or streaming, which are essential for scaling production-grade generative AI applications while keeping developer workflows focused on high-impact performance improvements rather than guesswork.

Exam trap

Candidates often suggest generic performance tuning like model quantization or hardware upgrades, missing the specific need for observability tools that provide granular visibility into LLM-specific bottlenecks like token processing.

282
MCQmedium

A developer is using the Claude Agent SDK and wants to prevent an agent from performing unauthorized web fetches if a user provides a URL to a malicious domain. Which approach provides the most robust, deterministic protection against this threat?

A.Write a detailed instruction in the `CLAUDE.md` file listing the banned domains and explaining the safety risks.
B.Implement a `PostToolUse` hook to check the content of the fetched website and delete it if it contains injection attempts.
C.Set the model to Claude Haiku 5.5, as its lower reasoning capability makes it less likely to follow complex malicious instructions.
D.Use the `permissions` setting in `settings.json` to define a specific `WebFetch(domain:trusted.com)` allow rule.
AnswerD

The Claude Agent SDK's permission system is the correct place for deterministic tool constraints. By explicitly allowing only trusted domains, the SDK harness will automatically block any attempt by the agent to fetch data from other URLs, providing a robust defense against URL-based prompt injection.

Why this answer

The Claude Agent SDK provides a built-in `permissions` system that allows developers to define explicit `allow` and `deny` rules for tools like `WebFetch`. By configuring a `deny` rule for specific domains or using a restricted `allow` list for known-safe domains in the `settings.json` file, the developer can enforce a deterministic security policy. This is superior to prompting because the SDK harness checks these permissions before the tool is even invoked, ensuring that the model cannot be 'convinced' to bypass the restriction.

Exam trap

Thinking that a system prompt instruction to 'only visit example.com' is a deterministic security control.

283
MCQmedium

An enterprise is deploying a high-stakes Claude-based agent for internal IT support that can modify user access permissions. The architecture team wants to implement a 'Human-in-the-loop' (HITL) pattern to ensure compliance and prevent unauthorized privilege escalation. Which design approach effectively enforces this oversight while maintaining operational efficiency?

A.Enable prompt caching for all system instructions to ensure the model maintains a consistent understanding of its safety boundaries throughout the interaction.
B.Implement a 'PreToolUse' hook that intercepts the agent's tool call, pauses execution, and requires a human to sign off on the specific action before the tool is invoked.
C.Configure the agent to use Claude Opus 5.5 and include strict instructions in the system prompt to ask for permission before calling administrative tools.
D.Use the 'tool_choice' parameter to force the agent to only call authorized tools, reducing the likelihood of the model attempting to perform prohibited administrative tasks.
AnswerB

Deterministic hooks provide a reliable gate that exists outside the model's reasoning process. By blocking the tool execution until a human provides an explicit confirmation, the architecture ensures that the agent cannot proceed with sensitive actions autonomously, effectively mitigating the risk of unauthorized privilege escalation regardless of the model's internal prompt state.

Why this answer

The most robust design for sensitive actions is to require explicit human verification before a tool execution is finalized. By using a 'PreToolUse' hook in Claude Code or a similar orchestration check in a custom agent harness, the system can intercept the request. The agent generates the plan, but the human must approve the specific tool call (e.g., 'update_permissions') before the tool_result is generated and processed by the system, ensuring that no unauthorized changes occur without oversight.

Exam trap

Assuming that simply using a more capable model like Opus 5.5 is a sufficient control for preventing unauthorized actions, or relying solely on system prompts to restrict behavior.

284
MCQmedium

An enterprise architect is auditing an agent's access to sensitive internal APIs. The agent uses a tool that requires an API key to authenticate. The architect notices that the API key is passed as a constant in the tool's input schema. Why is this a security risk?

A.The API key will count towards the total token usage of every request, increasing the cost of the agent's operation.
B.The API key is visible in the tool definition and can be accessed by anyone who can inspect the agent's configuration.
C.The API key might be truncated by the model if it exceeds the maximum input token limit for the tool.
D.The API key cannot be rotated because it is hardcoded in the tool schema, forcing a redeployment of the agent.
AnswerB

Hardcoding credentials in a tool definition exposes them to anyone with access to the agent's source code or configuration files. This violates the principle of keeping secrets separate from configuration and makes them highly vulnerable to unauthorized access and accidental disclosure.

Why this answer

Including sensitive credentials as constants in an input schema exposes those secrets to anyone with read access to the tool definition or the codebase. Furthermore, if the model includes these inputs in its reasoning or history, the secrets can be leaked through logs or monitoring tools. Credentials should always be managed at the infrastructure level and injected at runtime—never hardcoded or defined as static values within the agent's configuration or tool definitions.

Exam trap

Candidates often believe that if the schema is only used by the model, it is 'secure', forgetting that schemas are often stored in plain text and visible to developers.

285
MCQhard

Your organization is performing a risk assessment for adopting an 'AI-as-a-Service' platform that offers automated model fine-tuning on user data. Which architectural principle should guide your decision to reject this feature in favor of alternative methods?

A.Fine-tuning always results in higher latency compared to the standard Messages API, negatively impacting real-time user experiences.
B.Managed fine-tuning services often charge significantly higher per-token rates than standard inference, exceeding budget limits.
C.The model's internal reasoning trace is not exposed, making it impossible to verify how fine-tuning influences output bias.
D.Fine-tuning risks embedding proprietary data into the model weights, complicating data deletion requirements and auditability.
AnswerD

Embedding proprietary data into model weights makes it nearly impossible to surgically remove specific information for GDPR 'right to be forgotten' requests, whereas RAG-based systems allow for clean, granular deletion by simply removing the source document from your storage.

Why this answer

Automated fine-tuning on proprietary data embeds that data in model weights that are hard to audit, version or migrate, and specific records cannot easily be removed later. Enterprise architects should prefer prompt engineering and retrieval-augmented generation (RAG), where documents stay in the organization's own storage and are supplied in context at request time. Keeping data separate from model weights gives cleaner lifecycle management, easier compliance auditing, and the ability to update knowledge without retraining.

Exam trap

Assuming that fine-tuning is necessary for accuracy, when prompt engineering and context management are usually sufficient.

286
MCQmedium

A media company uses Claude through the Anthropic API to draft articles. Legal counsel asks the platform team to demonstrate that every published draft can be traced to the exact model behavior that produced it, even after Anthropic deprecates older models. The team currently calls the alias claude-sonnet-4-5. Which change best satisfies counsel's requirement?

A.Increase max_tokens and set temperature to zero so outputs become deterministic.
B.Pin requests to a dated model snapshot identifier and archive the full request parameters and response with each draft.
C.Log the alias string claude-sonnet-4-5 alongside each draft in the content management system.
D.Enable prompt caching so identical requests return consistent outputs across model updates.
AnswerB

A dated snapshot identifier names an immutable model version, so a stored request can be replayed against the same behavior later instead of silently moving to a newer build. Archiving the complete request parameters and the returned response closes the loop, because it captures both the exact input and the output that was published. Together they give counsel a reproducible record that survives alias updates and routine model refreshes.

Why this answer

Traceability to a specific model behavior requires two things: an immutable model identifier and a durable record of the exact input and output. A dated snapshot pins behavior so it can be reproduced or referenced after deprecation, while archiving request parameters and responses preserves the actual interaction. Aliases, caching, and sampling settings modify cost, latency, or variance but none of them establish which model version produced a given published artifact.

Exam trap

The trap here is treating a model alias as a stable version identifier, when aliases are deliberately repointed to newer builds and therefore cannot anchor an evidentiary record.

287
MCQmedium

An organization is auditing the use of prompt caching in their Claude-based classification pipeline. A developer suggests that they should include a timestamp in the system prompt to ensure that they are always using the most recent policy guidelines. Why is this a potential governance and performance risk?

A.The model will treat the timestamp as a new, high-priority instruction, potentially causing it to ignore other business policies.
B.The timestamp will cause a cache miss on every request, negating the cost and latency benefits of prompt caching.
C.The model will be unable to process the prompt if it contains a timestamp, resulting in a 400 error.
D.Including a timestamp in the system prompt is a violation of the Anthropic usage policy regarding data retention.
AnswerB

Prompt caching relies on a stable prefix match. Introducing a volatile variable like a timestamp ensures that the prefix will never match across requests, forcing the model to re-process the entire prompt every time. This negates the cost-saving benefits of caching and significantly increases the overall latency of the classification pipeline.

Why this answer

Prompt caching works by prefix match, so a volatile element such as a timestamp inside the cached prefix causes a cache miss on every request. The whole prefix is then processed and billed at full price each time, with higher latency. Volatile values belong after the cached content (for example in the latest user message), and policy updates should be rolled out as deliberate, versioned prompt changes so they stay auditable.

Exam trap

Candidates often think that using timestamps is a clever way to ensure 'freshness', forgetting that it breaks the fundamental efficiency of the caching mechanism.

288
MCQhard

A healthcare provider is using Claude to summarize patient clinical notes. Which governance control is most critical to prevent potential HIPAA violations?

A.Use a custom model fine-tuned on public medical journals to avoid using patient data.
B.Ensure that a Business Associate Agreement (BAA) is in place and strictly enforced.
C.Implement a strict 24-hour limit on the storage of all processed clinical summaries.
D.Anonymize all patient notes by removing names before sending them to the API.
AnswerB

The BAA is a legal requirement under HIPAA for any cloud service provider handling PHI. Without this agreement, the healthcare provider is in direct violation of the law. This is the paramount governance step, as it defines the legal responsibility and privacy safeguards that must be maintained.

Why this answer

The most critical control is ensuring that all data processed by the API is encrypted in transit and at rest, and that the organization has a Business Associate Agreement (BAA) with Anthropic. Without a BAA, the provider cannot legally process PHI. This legal framework, supported by technical encryption, is the foundational requirement for any healthcare entity utilizing cloud-based AI services to maintain regulatory compliance.

Exam trap

Candidates often focus on 'encryption' or 'prompt sanitization'. While necessary, these are technical details; the BAA is the essential legal prerequisite for handling PHI in a healthcare context.

289
MCQmedium

An enterprise architect is defining an access control strategy for a large organization using the Anthropic API. The organization has distinct business units, each with its own development lifecycle, security requirements, and budget. Which approach provides the most effective administrative isolation for these units?

A.Create a single workspace and use unique API keys with different prefix naming conventions for each business unit.
B.Deploy a central proxy layer that maps application-level identities to a single shared API key stored in a secure vault.
C.Use a single workspace and rely on the Admin API to programmatically revoke keys if a business unit exceeds its quota.
D.Implement separate workspaces for each business unit to isolate API keys, usage tracking, and administrative access.
AnswerD

Workspaces serve as the logical boundary for resource management. By partitioning business units into separate workspaces, administrators can enforce distinct security policies, track usage independently for billing and audit purposes, and limit the blast radius of potential API key exposure or configuration errors.

Why this answer

Workspaces are the primary mechanism for segmenting an organization's API usage into distinct environments. By creating separate workspaces for each business unit, the architect can enforce independent API key management, monitor usage metrics per unit, and apply specific rate limits or security policies. This structure ensures that a compromise or an accidental resource exhaustion in one workspace does not impact the operational continuity or budget of another, effectively aligning with enterprise governance requirements for multi-tenant internal architectures.

Exam trap

Assuming that API key scoping or IAM roles alone provide sufficient administrative isolation without the structural boundary provided by workspaces.

290
MCQeasy

An organization is concerned about prompt injection in a public-facing Claude application. The security team suggests that the application should automatically detect and block any user messages containing the word 'ignore'. Why is this approach insufficient for a robust security strategy?

A.The model's internal processing is token-based, so keyword filtering is computationally expensive and slow for production APIs.
B.The 'thinking' feature automatically detects and removes malicious keywords, making manual filtering redundant.
C.The Anthropic API requires all messages to be processed, and blocking messages would violate the service terms for public-facing applications.
D.Keyword-based filtering is easily bypassed by using synonyms or rephrased instructions, making it ineffective against motivated attackers.
AnswerD

Attackers can easily use synonyms, creative phrasing, or multi-step logic to achieve the same goal without using the blocked keyword. Because the model processes the semantic meaning of the entire input, simple string matching fails to address the underlying vulnerability of instruction hijacking, rendering the filter essentially useless against any non-trivial attack.

Why this answer

Prompt injection attacks are rarely limited to simple keywords like 'ignore'. Attackers use complex, multi-turn, or context-aware phrasing that can bypass simple blocklists. Furthermore, blocking common words can lead to significant false positives, degrading the user experience.

A professional architecture relies on structural mitigations, such as XML tag isolation and rigorous output validation, rather than brittle, keyword-based filtering, which can be easily bypassed by slightly rephrasing the malicious instruction or using synonyms.

Exam trap

Candidates often think that keyword blacklisting is a valid security layer, but it is fundamentally reactive and easily bypassed by sophisticated adversaries.

291
MCQeasy

A business stakeholder is concerned that migrating to a newer model version might cause the assistant to stop following the custom JSON schema they rely on for downstream data processing. As an architect, what is the best way to handle this during the migration plan?

A.Include a long list of 'do not' instructions in the system prompt to prevent the model from deviating.
B.Use the `output_config.format` parameter with a defined JSON schema to enforce the structure.
C.Ask the stakeholder to update their downstream system to handle any JSON format changes.
D.Increase the 'effort' level in the output configuration to ensure the model focuses more on JSON accuracy.
AnswerB

Using the `output_config.format` parameter provides a programmatic, reliable way to enforce the required JSON structure. This approach is superior to relying on system prompts or prefill, as it ensures that the output will validate against your schema regardless of the model version being deployed in the production environment.

Why this answer

The most robust way to guarantee consistent JSON output is to utilize the `output_config.format` parameter, which enforces a specific JSON schema on the response. By implementing this explicitly during the migration, you decouple the output structure from the model's prose-generation capabilities. This provides a deterministic contract that the model must satisfy, regardless of whether you are using Sonnet, Opus, or Fable, effectively mitigating the risk that a model upgrade will break existing downstream data ingestion pipelines.

Exam trap

Candidates often suggest prompt instructions for JSON formatting, which are vulnerable to model behavior changes during upgrades, whereas structured outputs provide a formal enforcement mechanism.

292
MCQeasy

Your team is preparing a report on an incident where an agentic workflow failed to complete because of an invalid tool call. How should you frame the role of the `tool_result` in the post-incident communication?

A.Report that the tool call was ignored by the API because the model reached a decision without needing the tool output.
B.State that the model had an internal memory issue that caused it to forget how to use the tool after the first attempt.
C.Explain that the agent failed because it was not smart enough to interpret the error returned by the external tool.
D.Clarify that the incident occurred because the system did not feed the tool failure back as an error, preventing the agent from recovering.
AnswerD

This accurately identifies the architectural oversight. By failing to report the error via `tool_result` with `is_error: true`, the system left the model without the necessary context to handle the failure, which is a clear, actionable finding for a post-incident review.

Why this answer

When a tool call fails, the failure must be reported back to the model as a tool_result with is_error set to true, so the model can understand what went wrong and recover or change approach. In this incident the system did not feed the failure back, so the agent had nothing to react to. The report should name that gap and the fix: always return tool failures as error results.

Exam trap

Suggesting that the model should have automatically known why the tool failed without an explicit `tool_result` message.

293
Multi-Selectmedium

An architect is auditing the security of a multi-agent system. Which TWO of the following practices are essential for maintaining an accurate audit trail of agentic actions?

Select 2 answers
A.Encrypt all audit logs using a shared hardcoded key stored in the application environment variables.
B.Log the full raw conversation history of every subagent in a single flattened file for simplicity.
C.Capture all 'tool_use' and 'tool_result' blocks in the audit logs to track every action performed by the agents.
D.Rely on the Anthropic API's internal logs to provide all necessary audit information for internal agent debugging.
E.Implement a correlation ID passed through all agent calls to link subagent actions to the initial user prompt.
AnswersC, E

Logging tool usage is the only way to verify what external actions were taken by the model, including parameters passed to tools and the resulting data, which is vital for auditing agentic behavior and security.

Why this answer

In a multi-agent system, the complexity of the interaction loop makes standard logging insufficient. First, logging the specific tool_use and tool_result blocks is critical because these represent the actual actions taken by the agents, including inputs and outputs. Second, maintaining a consistent request identifier across the entire chain of subagent calls is necessary to stitch together the disparate logs into a coherent 'session' view, allowing auditors to see the full reasoning path and tool execution sequence.

Exam trap

Many architects forget that subagents operate in their own context windows, making it easy to lose the thread of the original user request if session IDs are not propagated.

294
MCQmedium

You are managing a production document summarization service that relies on the `claude-sonnet-5-5` model. Your team intends to pin the model version to ensure stability. What is the primary architectural implication of pinning a specific model ID in your production API calls?

A.It prevents the organization from encountering 429 rate limit errors by reserving dedicated compute capacity for that specific model version.
B.It automatically enables prompt caching for all requests sent to that model ID, reducing latency and costs for repetitive document processing.
C.It guarantees that the model will produce the exact same output for the same input prompts regardless of when the request is sent.
D.It ensures that the application will continue to function consistently against a stable model architecture, facilitating reliable regression testing.
AnswerD

By explicitly requesting a specific model ID, you ensure that your production environment remains coupled to a known model version. This consistency is a prerequisite for effective regression testing, as it allows your team to validate that changes to your prompts or system instructions do not lead to unexpected degradation in performance against a stable model baseline.

Why this answer

Pinning a model ID, such as `claude-sonnet-5-5`, ensures that your application consistently interacts with the same model tier, preventing unexpected behavioral changes that could occur if the underlying model architecture were to shift. While pinning does not guarantee identical outputs for every prompt due to the nature of LLMs, it provides a stable baseline for your evaluation framework. This stability is essential for enterprise services where regression testing is performed against a specific model's performance characteristics and response structure over time.

Exam trap

Candidates often mistakenly believe that pinning a model ID ensures bit-for-bit identical output reproducibility or protects against all possible performance fluctuations.

295
MCQeasy

During an incident review, your team discovers that a Claude Code automated workflow executed an unauthorized file modification. Which configuration change is required to ensure that such actions are prevented in the future?

A.Use the 'plan' mode to ensure the model only researches without modifying files.
B.Add a disclaimer in the CLAUDE.md file forbidding unauthorized edits.
C.Add a deny rule for the 'Edit' operation in the project .claude/settings.json file.
D.Update the agent system prompt to include a strict 'no edit' instruction.
AnswerC

Deny rules in the settings file are the definitive mechanism for blocking specific operations in Claude Code. By adding an explicit deny for 'Edit', you override any other permissions or instructions, ensuring that the agent cannot modify files regardless of the prompt or its internal reasoning.

Why this answer

In Claude Code, permission rules are defined in settings.json files. To prevent unauthorized file modifications, you must explicitly add a 'deny' rule for the 'Edit' operation in the relevant settings scope, such as the project's .claude/settings.json. Because deny rules take precedence over allow rules, this ensures that even if other configurations permit edits, the specific action is blocked.

This provides a clear, deterministic security boundary that overrides model behavior or other looser permissions configured elsewhere in the environment.

Exam trap

Candidates often focus on the model's instructions (CLAUDE.md) rather than the hard enforcement provided by the settings file's deny rules.

296
MCQmedium

An organization is using Claude Sonnet 5.5 in a customer support agent. During an incident, the model refuses to answer a legitimate query because it incorrectly triggers a safety refusal. What is the correct way to address this?

A.Hard-code a bypass for specific trigger words in your application layer.
B.Use the official server-side refusal fallback mechanism if available for the model.
C.Include a 'jailbreak' instruction in the system prompt to ignore safety rules.
D.Increase the temperature to reduce the probability of a refusal.
AnswerB

Anthropic provides an official fallback mechanism on certain models that can automatically re-run a request if it is declined by safety classifiers. This is the supported architectural way to manage false-positive refusals, ensuring that legitimate traffic is still processed without compromising the underlying safety infrastructure.

Why this answer

When the model triggers a safety refusal that is incorrect for your business use case, you should first analyze the refusal to understand why it occurred. If the refusal is a false positive, you can refine your system prompt to provide more context about the legitimacy of the request. Furthermore, if you are on a model that supports it, Anthropic provides an official server-side refusal fallback mechanism that can re-run the request on another model.

Do not attempt to bypass safety filters through prompt injection; instead, rely on proper context and configuration.

Exam trap

Candidates often suggest using jailbreaks or adversarial prompt injection to bypass refusals, which violates safety policies and creates long-term governance risks.

297
MCQeasy

Which of the following describes the role of the 'System Prompt' in an agentic architecture?

A.A temporary buffer for user-provided instructions.
B.A mechanism for defining the agent's identity and constraints.
C.An automated script for executing Python code.
D.A method to store long-term user history.
AnswerB

The system prompt is the primary location for defining 'who' the agent is and the boundaries it must respect. This is an essential architectural component that dictates how the agent processes information, adheres to safety protocols, and interacts with tools, forming the foundation of its autonomous behavior.

Why this answer

The system prompt serves as the 'DNA' of the agent, dictating its core behavior, constraints, and operational goals. By setting the context outside of the user's conversation stream, it ensures that the model adheres to defined roles and ethical boundaries consistently, regardless of user input. It provides the necessary structure that turns a raw LLM into a purposeful, reliable assistant within a larger system architecture.

Exam trap

Candidates frequently confuse the system prompt with dynamic few-shot learning examples, mistakenly thinking it handles turn-by-turn conversation memory rather than persistent global boundaries and agent identity.

298
Multi-Selecthard

You are preparing a go-live readiness review for a Claude-powered advisory assistant used by field staff. The steering committee wants assurance that operational ownership is clear before launch. Which two artifacts are most essential to demonstrate that the lifecycle handover from project to operations is complete? (Choose two.)

Select 2 answers
A.A list of all stakeholders who attended the project kickoff meeting.
B.A documented service ownership agreement naming the accountable team, support hours, and service level objectives.
C.A complete archive of every prompt version ever tested during development.
D.A signed operations runbook covering incident response, escalation paths, and routine maintenance tasks.
E.A slide deck summarizing the assistant's key features for the marketing team.
AnswersB, D

Naming the accountable team, support windows, and service level objectives converts vague intent into enforceable commitments. It tells the steering committee exactly who answers for availability, quality, and response times after launch, and it gives operations a mandate to staff and monitor the service. This artifact is the clearest evidence that the lifecycle handover is complete and that ownership will not lapse.

Why this answer

A complete handover requires both a named owner and the operational procedures that owner will follow. The service ownership agreement establishes accountability, support hours, and service level objectives, while the signed runbook documents incident response, escalation, and maintenance. Together they give the steering committee confidence that the assistant will be sustained after the project team transitions away, rather than drifting without ownership or support coverage.

Exam trap

The trap here is accepting development artifacts such as prompt archives or attendee lists as readiness evidence, when handover requires explicit ownership and operational procedures.

299
MCQmedium

You are auditing an agent that uses Claude to summarize legal contracts. You discover that the model frequently skips clauses that are critical to specific types of minority-owned businesses. What is the most appropriate way to address this failure?

A.Implement a 'human-in-the-loop' review for every single contract to ensure no clauses are missed, regardless of the model's performance.
B.Immediately switch from Claude Sonnet 5.5 to Claude Opus 5.5 to improve the model's reasoning depth on legal documents.
C.Report the issue to Anthropic as a safety violation because the model is failing to perform its task correctly on certain documents.
D.Update the system prompt to include explicit instructions and examples of how to identify and prioritize these specific legal clauses.
AnswerD

Providing clear instructions and multishot examples is the most effective way to align the model's behavior with your specific business requirements. By explicitly defining what the model should prioritize and showing it how to do so, you directly address the reasoning gap that led to the biased outcomes in the first place.

Why this answer

This is a recall and reasoning failure that points to a specific bias in the model's prioritization logic. The best approach is to refine the system instructions to explicitly define the importance of these clauses and provide examples (few-shot) of how to handle them. Following this with a dedicated test set containing these specific contract types allows you to verify that the model's behavior has improved.

This iterative process of targeted prompt engineering and validation is key to responsible AI governance.

Exam trap

Candidates often think that simply switching to a more 'capable' model will fix specific logic gaps, but even the best models need clear instructions on business-specific priorities.

300
MCQmedium

An enterprise architect is reviewing the risks of using Message Batches for high-volume, non-latency-sensitive workloads. They are concerned that the results might not be available if the batch process fails halfway through. What is the correct way to handle failures in a Message Batch?

A.Resubmit the entire batch once the failure is detected to ensure that all requests are processed in the correct order.
B.Wait for the 24-hour expiration period, as Anthropic automatically retries failed requests until they succeed or the batch expires.
C.Configure the batch with a retry policy in the metadata field to handle transient API errors automatically.
D.Identify the failed requests by their custom_id and resubmit only those specific requests in a new batch.
AnswerD

Each request in a batch is independent and results in a specific outcome. By using the `custom_id` to correlate results, you can isolate the failed requests and resubmit them, ensuring that you only pay for and process the tasks that did not complete successfully.

Why this answer

Message Batches are processed asynchronously and every request in the batch gets its own result type: succeeded, errored, canceled or expired. If part of a batch fails, there is no need to resubmit the whole batch. Identify the requests whose result type is errored, canceled or expired, using their custom_id, and resubmit only those in a new batch, which avoids duplicating successful work.

Exam trap

Candidates often believe that a failed batch requires a complete restart or that they should 'retry' the entire batch, which is inefficient.

Page 3

Page 4 of 7

Page 5

All pages