Courseiva

CCNA Governance Safety And Risk Management Questions

75 of 233 questions · Page 2/4 · Governance Safety And Risk Management topic · Answers revealed

76
MCQmedium

Which governance model best minimizes the risk of 'shadow AI' usage within a large corporation?

A.Restrict all internet access to prevent employees from reaching AI websites.
B.Implement a centralized enterprise-approved AI service portal with clear usage policies.
C.Require employees to sign a manual waiver every time they use an unauthorized tool.
D.Trust individual departments to manage their own AI security and compliance audits.
AnswerB

A centralized portal serves as the single source of truth for approved tools and policies. By providing a secure, governed environment that meets business needs, the organization provides a legitimate alternative to shadow AI, effectively reducing the incentive for employees to bypass corporate IT policies.

Why this answer

Centralized oversight combined with a standardized, approved AI service catalog ensures that business units use vetted, secure, and compliant tools. This approach provides governance without completely stifling innovation, as teams can request new tools through a formal process. By creating a 'path of least resistance' through managed services, organizations can effectively prevent employees from using unauthorized, non-compliant tools that threaten the firm's security and data privacy posture.

Exam trap

Candidates often suggest 'blocking access' or 'firewalling'. These strategies are ineffective as they drive employees to find workarounds, whereas a service portal provides a compliant alternative.

77
MCQeasy

A healthcare company is using Claude Sonnet 5.5 to summarize patient notes. Their internal compliance policy requires that all AI-generated summaries be clearly labeled and that the model never 'diagnose' a condition, only 'summarize' existing observations. How should the architect implement the labeling requirement to ensure it cannot be omitted by the model?

A.Enable 'thinking' and check the thinking block to verify the model considered the labeling requirement.
B.Instruct the model in the system prompt to start every response with the required disclaimer.
C.Use the Messages API metadata field to store the 'AI-Generated' label for every request.
D.Append the mandatory label to the model's output string in the application code before displaying it.
AnswerD

This is the most robust method for compliance. By handling the label in the 'outer loop' (the application logic), you guarantee that every summary is correctly identified as AI-generated. This removes the risk of the model failing to follow instructions or the disclaimer being truncated due to `max_tokens` limits.

Why this answer

Governance requirements that involve specific formatting or mandatory metadata (like a 'Generated by AI' label) are best handled by the application code wrapping the API call, rather than the model itself. This is known as 'outer-loop' governance. By appending the label to the model's output in the client application, the architect ensures the label is present 100% of the time, regardless of whether the model follows its system instructions or hits a token limit.

Exam trap

Trying to use the system prompt to force a model to include a mandatory label, which is subject to probabilistic failure.

78
MCQhard

During an incident, it was found that an agent leaked information because it was able to access files outside its intended directory. The architect used the Claude Agent SDK and defined permissions in the configuration. Why might the agent have still been able to access forbidden files?

A.The agent was using the default 'ask' mode instead of the 'plan' mode, which allowed it to execute file operations without human confirmation.
B.The permission configuration contained an 'allow' rule that conflicted with a 'deny' rule, and the system prioritized the 'allow' rule.
C.The agent was configured in 'bypassPermissions' mode, or the file access rules were too permissive, allowing the agent to traverse the filesystem.
D.The project was missing a `CLAUDE.md` file, which is required to enforce directory-level security constraints for the agent.
AnswerC

The 'bypassPermissions' mode explicitly skips prompts for risky actions, and broad path definitions in permission rules allow the agent to read or write files outside the intended working directory, leading to the reported security incident.

Why this answer

In the Claude Agent SDK, permission rules (allow, ask, deny) are critical. If an architect defined an 'allow' rule that was broader than intended (e.g., a wildcard path) or if the agent was operating in a 'bypassPermissions' mode, the safety boundaries would be ineffective. It is also possible that the agent was able to use a different tool, such as 'Bash' or 'Edit', that was permitted in the configuration but not sufficiently restricted by specific path rules, allowing it to traverse the filesystem beyond the intended scope.

Exam trap

Candidates often assume that the agent's system prompt or internal 'knowledge' of the file structure is the primary security control, ignoring the SDK's explicit permission configuration.

79
MCQhard

A multinational corporation has multiple regional offices, each with its own workspace and independent API usage. A security auditor discovers that one region is using an API key that was provisioned for a different region's workspace. What is the implication of this cross-workspace key usage?

A.The API will permanently disable both workspaces involved due to the detection of suspicious cross-workspace activity.
B.Usage will be incorrectly attributed to the workspace that owns the key, causing inaccurate cost reporting and audit logs.
C.The API will automatically reject the request because the key is not associated with the current workspace context.
D.Cross-workspace usage is prohibited by the API and will result in a 403 Forbidden response for all such calls.
AnswerB

When a key is used, all metrics, costs, and audit logs are recorded against the workspace that originally generated the key. Using a key across workspaces invalidates your regional cost-center reporting and creates misleading audit trails, making it impossible to perform accurate security and financial reviews.

Why this answer

Each API key belongs to the workspace it was created in. If one region uses a key provisioned for another region's workspace, the API still processes requests made with that valid key, but the usage, spend and any workspace rate limits are attributed to the key's own workspace. That obscures audit trails and breaks cost-center accounting, which is why keys should be issued and used per workspace.

Exam trap

Thinking that all keys under one organization account are interchangeable for any workspace.

80
MCQmedium

A company is using Claude Code for internal development and wants to ensure that project-specific configuration and 'memory' are not accidentally leaked across different teams. How does Claude Code handle the privacy and isolation of project memory files (CLAUDE.md)?

A.Memory files are local: a project's CLAUDE.md is loaded only when Claude Code works within that project's directory tree.
B.All memory files are automatically encrypted using the API key of the first user who runs /init.
C.Claude Code uses a 'Global Context' tool to merge all CLAUDE.md files across a user's machine into every request.
D.Project memory is stored centrally in the Anthropic Console and shared based on workspace ID.
AnswerA

Claude Code loads CLAUDE.md files based on where it is working. A project's memory file applies when working in that project, so switching to a different repository does not carry the previous project's memory over.

Why this answer

Claude Code manages memory through CLAUDE.md files that are scoped to specific directory levels. Project memory is stored in a CLAUDE.md file at the root of the repository, which is typically shared via source control within a team. User-specific memory is kept in the user's home directory (~/.claude/CLAUDE.md).

This hierarchy ensures that project-specific context (like build commands or architecture) remains within the project's scope, while personal preferences remain with the user, providing clear isolation between different development environments.

Exam trap

Thinking that CLAUDE.md files are automatically synced to a central Anthropic cloud storage for all users.

81
MCQmedium

When deploying Claude in a production environment, an architect notices that the model occasionally generates responses that are slightly biased. What is the most appropriate governance-first approach to address this?

A.Ignore the bias as long as the model's overall accuracy remains high.
B.Switch to a smaller model version to reduce the complexity of the outputs.
C.Use a system prompt to define neutral behavior and implement bias-detection evals.
D.Manually rewrite every biased response before it reaches the end user.
AnswerC

System prompts can explicitly instruct the model to be objective and neutral. By pairing this with 'evals' (automated tests that measure bias in responses), an architect can create a feedback loop that continuously monitors and improves the model's adherence to fairness standards.

Why this answer

Bias in AI is an ongoing challenge that requires active management. A governance-first approach involves using a combination of model-native features, like system prompts, and external evaluation frameworks to measure and mitigate bias consistently across the application's lifecycle, rather than ignoring the problem.

Exam trap

Candidates often select 'retraining the model' or 'fine-tuning' as the solution. These are expensive, slow, and overkill for addressing occasional bias, which is better managed through prompt engineering and systematic monitoring.

82
Multi-Selectmedium

A developer is building a document processing pipeline using the Message Batches API. They are concerned about how safety refusals will impact their batch results. Which TWO statements accurately describe how safety refusals are handled within the Message Batches API?

Select 2 answers
A.Refused requests are returned as 'succeeded' results in the batch output.
B.A safety refusal in any single request will cause the entire batch to expire.
C.The stop_reason for a refused request in a batch will be 'refusal'.
D.The batch results file omits any requests that were blocked by safety filters.
E.Refused requests are marked as 'errored' to distinguish them from valid completions.
AnswersA, C

The Batch API treats a refusal as a completed turn. Since the model successfully evaluated the prompt and provided a safety-compliant termination, the individual result status is 'succeeded'. This allows the caller to retrieve the refusal details from the message object just like a normal response.

Why this answer

In the Message Batches API, every individual request within the batch receives a result. If a specific request triggers a safety refusal, that result is marked as 'succeeded' in the batch output because the API successfully processed the request and reached a terminal state. Inside that successful result, the message object will have a stop_reason of 'refusal'.

This ensures that the batch process continues for all other requests and that the architect can identify which specific items in the bulk job failed safety checks without the entire batch being invalidated.

Exam trap

Thinking that a refusal causes a batch 'errored' state or that refused requests are missing from the final results file.

83
Multi-Selecthard

An enterprise is deploying a multi-agent system where a 'Manager' agent delegates tasks to 'Worker' subagents. Each worker has access to specific tools. Which TWO of the following strategies are critical for preventing prompt injection from propagating across the agent chain?

Select 2 answers
A.Implement strict tool access control so that each subagent can only execute necessary functions.
B.Ensure that the Manager agent treats all outputs from Worker subagents as untrusted data.
C.Set the effort level to 'max' for all subagents to improve their ability to detect injection.
D.Configure all subagents to use the same system prompt to ensure consistent safety behavior.
E.Require all agent communications to be encrypted using TLS 1.3.
AnswersA, B

Restricting tool access is essential for defense-in-depth. By limiting the capabilities of each subagent, you ensure that even if a subagent is successfully injected with malicious instructions, it lacks the permissions to perform unauthorized actions, such as accessing sensitive databases or modifying system configurations, thereby containing the potential damage.

Why this answer

In a multi-agent architecture, prompt injection can spread if one agent treats the output of another as trusted instructions. First, you must enforce the principle of least privilege by limiting the tools available to each subagent; a worker should only have access to the specific tools it needs, minimizing the blast radius if it is compromised. Second, you must treat all inter-agent communication as untrusted, meaning the Manager agent must be designed to validate or sanitize the responses from Worker agents before using them to make further decisions or trigger sensitive actions.

Exam trap

Candidates often think that agents within the same system are inherently 'trusted' and do not require the same rigorous input validation as external data.

84
MCQmedium

An organization is using the Anthropic API for a sensitive document processing service. They are concerned about the risk of 'shadow AI' usage where team members might create their own API keys outside of the official governance process. Which strategy is most effective for preventing this?

A.Restrict API key creation to a small group of platform administrators through organization and workspace member roles (managed in the Console or with the Admin API).
B.Conduct quarterly training sessions for all employees on the dangers of using unauthorized API keys for work tasks.
C.Require all employees to manually report any API keys they have created to the security team on a monthly basis.
D.Deploy an agent that regularly scans GitHub repositories for any leaked Anthropic API keys.
AnswerA

Who can create keys follows from the roles members hold. Limiting the roles that allow key creation to a vetted platform team, and provisioning keys through that team, means every key is registered, owned and tracked, which removes the path to unmanaged shadow usage.

Why this answer

The most effective strategy for preventing unauthorized API key creation is to centralize workspace administration and restrict the ability to create keys to a dedicated security or platform team. By enforcing a process where keys are provisioned through an internal service catalog or CI/CD pipeline, the organization ensures that every key is registered, associated with a specific project and owner, and subject to standard security policies. This approach eliminates 'shadow AI' by making the official path the most efficient and compliant way to access the API.

Exam trap

Relying on policy training alone instead of implementing technical controls that restrict key creation capabilities.

85
MCQmedium

A global financial institution must ensure that all prompt data and model responses for their Claude 3.5 Sonnet implementation remain within the European Union to comply with strict GDPR data residency requirements. Which architecture strategy best fulfills this governance mandate?

A.Utilize regional endpoints in AWS Bedrock or GCP Vertex AI located in EU regions.
B.Enable cross-region inference to ensure high availability across global data centers.
C.Configure the standard Anthropic Console with an EU-based billing address.
D.Implement client-side encryption for all prompts using AWS KMS keys.
AnswerA

Regional endpoints in cloud provider environments guarantee that both the inference traffic and the underlying model compute operations are physically restricted to the selected geography. This architecture prevents cross-border data transfers, directly satisfying legal requirements for data sovereignty and internal compliance protocols for handling European citizen data.

Why this answer

Data residency is a critical governance requirement for enterprise deployments in regulated markets. Anthropic provides regional infrastructure through cloud partners like AWS Bedrock and GCP Vertex AI, which allows architects to pin data processing and storage to specific geographic boundaries. This ensures that sensitive information never leaves the legally required jurisdiction during the inference lifecycle.

Exam trap

Candidates often mistakenly believe they can configure data residency natively through the direct Anthropic Console, forgetting that hyperscaler integrations are required for regional pinning.

86
MCQhard

An organization is migrating its Claude-based applications to a new workspace structure. They need to ensure that API keys are managed according to the principle of least privilege. Which practice best secures these keys during the lifecycle of an application?

A.Use a master API key for all applications to simplify credential management across the organization's infrastructure.
B.Store API keys in environment variables on the application server to prevent exposure in the source control system.
C.Scope API keys to individual workspaces and rotate them periodically as part of the organizational security policy.
D.Enable permanent API keys for production environments to avoid service interruptions during automated key rotation cycles.
AnswerC

Scoping keys to specific workspaces ensures that access is limited to the relevant resources. Regular rotation mitigates the risk of long-term credential leakage, and workspace-level isolation allows security teams to audit and manage access permissions effectively, fulfilling the requirements of a robust governance framework.

Why this answer

The most secure lifecycle for API keys involves regular rotation and strict environmental scoping. By assigning specific keys to individual applications rather than sharing them, the architect ensures that a breach is contained to a single application's scope. Furthermore, utilizing workspaces to manage these keys allows for the auditing of key-specific activity, enabling rapid identification and revocation of compromised keys without disrupting other services.

This approach integrates seamlessly with CI/CD secrets management, ensuring keys are never hardcoded and are rotated automatically.

Exam trap

Focusing solely on key rotation while ignoring the importance of mapping keys to unique application identities or workspaces.

87
MCQmedium

Your organization is performing a vendor risk assessment regarding long-term data accessibility. You are concerned that using proprietary platform features might make it difficult to export or migrate your agent's historical interaction data if you decide to change providers. Which action best addresses this data portability concern?

A.Use the model's built-in memory tool to store all historical conversations, ensuring they remain available if you switch providers.
B.Implement a robust application-level logging strategy that captures every request, response, tool call, and tool result independently of the model provider.
C.Ensure that all model-generated thinking traces are stored in a proprietary format specific to the model provider for future analysis.
D.Configure the Messages API to automatically back up all interaction logs to a third-party cloud storage bucket managed by Anthropic.
AnswerB

Logging every request, response, tool call and tool result at the application layer gives the organization a complete record that it owns, independent of any model provider. That record can be audited, replayed or migrated if the organization changes providers.

Why this answer

Data portability requires that you maintain control over the inputs and outputs of your AI systems. Since the Messages API is stateless, you are responsible for logging and storing all conversation history, including tool calls and model responses, in your own secure data stores. By ensuring that your application layer captures these events independently of the model provider, you maintain a complete, platform-agnostic audit trail that can be easily migrated or replayed in a different environment without relying on vendor-specific export tools.

Exam trap

Candidates often believe that the model provider is responsible for storing or maintaining their interaction history, forgetting the stateless nature of the API.

88
MCQmedium

Your organization uses a centralized Admin API to manage workspaces for different business units. A compliance officer asks for a report on the total number of API requests made by each workspace to ensure usage remains within defined limits. How can this information be obtained?

A.Query the `/v1/messages` endpoint for each workspace to count the number of requests.
B.Monitor the `metadata` field of every API request to aggregate usage data by workspace.
C.Use the Admin API to retrieve usage reports for the organization and its constituent workspaces.
D.Enable verbose logging on the Claude Code CLI to capture all request history across the organization.
AnswerC

The Admin API is the designated interface for managing workspaces and accessing organizational usage reports. It provides the necessary data to track request volumes per workspace, which is essential for compliance reporting and ensuring that usage remains within the defined limits set by the organization.

Why this answer

The Admin API is specifically designed to manage organizational resources, including workspaces, API keys, and usage reporting. It provides the necessary visibility into usage metrics across different workspaces, allowing the organization to monitor consumption and enforce compliance with internal usage policies. This is the correct mechanism for centralized management and reporting, ensuring that individual business units remain within their allocated capacity while maintaining an accurate audit trail of overall platform consumption.

Exam trap

Candidates often confuse the Messages API's stateless nature with the workspace management capabilities of the Admin API.

89
MCQmedium

Your organization is running a red-teaming exercise against a document-processing pipeline that uses Claude Haiku 5.5. You discover that the model occasionally hallucinates citations when processing large PDFs. What is the most appropriate architectural fix?

A.Instruct the model in the system prompt to avoid using any information not found in the documents and to provide a 'not found' label if necessary.
B.Enable the citation feature on document blocks to ensure that all answers are explicitly grounded in the provided source material.
C.Increase the 'effort' setting for Claude Haiku 5.5 to 'max' to improve the model's reasoning capabilities and reduce the likelihood of errors.
D.Pre-process all documents to remove any ambiguous language before uploading them to the Files API to make them easier for the model to parse.
AnswerB

With citations enabled on document blocks, the response carries cited_text extracted from the source along with its location, so each referenced claim is tied to real passages in the provided documents. That gives grounded, checkable references instead of citations the model writes freely.

Why this answer

The most effective way to prevent hallucinated citations is to enable the platform's citation feature on document blocks, which forces the model to ground its answers in the provided text. By ensuring that the agent is instructed to only use provided documents and to quote supporting text, you minimize the risk of the model creating false references. This architectural approach shifts the responsibility of verification from the model's internal memory to the provided source material, which is a fundamental requirement for reliable, grounded document analysis.

Exam trap

Candidates often suggest custom prompt engineering to 'tell the model not to hallucinate,' which is less reliable than using native, feature-gated grounding.

90
MCQhard

Refer to the exhibit. The model's response to the user's request is a safety violation. How should the architecture be updated to improve safety?

A.Change the model to a smaller, less capable version.
B.Implement an input-side content moderation guardrail.
C.Require the user to log in with MFA.
D.Increase the frequency of system prompt updates.
AnswerB

An input-side guardrail analyzes the user's prompt for malicious intent or prohibited content before it is processed by the model. This prevents the model from even considering a harmful request, effectively mitigating the risk of the model inadvertently generating malicious scripts or assisting in cyberattacks.

Why this answer

The exhibit shows a clear attempt to elicit malicious code, which constitutes a security risk. To improve safety, the organization must implement a content filtering service that sits between the user and the API. This layer inspects requests against a taxonomy of prohibited activities, such as cyberattacks or illegal actions, before they reach the model.

This is an essential architectural pattern for protecting against harmful inputs in enterprise AI systems.

Exam trap

Candidates often suggest updating the system prompt or retraining the model. They overlook that malicious inputs should be blocked before they ever reach the model's processing logic.

91
MCQmedium

An organization is deploying Claude for a customer support chatbot. They need to ensure that PII is not processed or stored by the model. Which approach best aligns with Anthropic’s safety governance standards?

A.Instruct the model via the system prompt to ignore PII.
B.Enable logging for all prompts to monitor PII usage.
C.Use an anonymization layer to mask PII before the API call.
D.Rely on the model's internal safety filters.
AnswerC

Preprocessing input data with an anonymization layer ensures that no identifiable information reaches the model. This architectural pattern isolates PII from the inference process, satisfying data privacy requirements. It is a highly reliable security control that operates independently of the model's internal capabilities or potential instruction-following vulnerabilities.

Why this answer

Implementing data redaction at the application layer before sending requests to the API ensures that sensitive data never enters the model's processing pipeline. This defense-in-depth strategy is crucial for regulatory compliance like GDPR or HIPAA, as it minimizes the risk of PII leakage. Organizations should always prioritize data minimization when working with LLMs to reduce the liability surface area and maintain strict control over data governance protocols.

Exam trap

Test-takers often choose post-generation filtering or rely on model prompt instructions to handle PII, failing to implement data redaction prior to the API call.

92
MCQmedium

Which governance practice is most effective for managing 'Third-Party Model Risk'?

A.Allowing free access to all models.
B.Conducting vendor due diligence and establishing SLAs.
C.Only using internal models.
D.Relying on public trust instead of contracts.
AnswerB

Vendor due diligence is the standard governance approach for managing third-party risk. It involves assessing the provider's safety practices, data handling, and reliability. Service Level Agreements (SLAs) then set clear expectations for performance, security, and support, ensuring the provider meets the needs of the enterprise's risk management framework.

Why this answer

Managing third-party model risk involves creating a clear vendor management strategy that includes rigorous due diligence, transparency requirements, and contractual guarantees regarding safety and performance. By treating AI providers as critical vendors, organizations ensure that the model provider is held accountable for their platform's safety. This allows the organization to align the provider's capabilities with their own internal risk tolerance and compliance requirements.

Exam trap

Candidates often suggest that the organization can 'fix' the third-party model. They fail to recognize that the organization's control is limited to contractual agreements and vendor oversight.

93
MCQhard

Refer to the exhibit. An application developer is testing a model endpoint. Which security control should be prioritized to prevent the specific risk demonstrated in the exhibit?

A.Increase the temperature setting to 1.0.
B.Implement prompt engineering guardrails and input validation.
C.Reduce max_tokens to 10.
D.Add a user authentication layer to the API.
AnswerB

Robust input validation filters out common injection patterns before they reach the model. Additionally, well-structured system prompts that explicitly define boundaries help the model resist manipulation. This layered security approach is essential for maintaining control over agentic workflows and preventing users from overriding core system instructions during runtime.

Why this answer

The exhibit illustrates a prompt injection attempt aimed at extracting sensitive system instructions. To mitigate this, developers should implement strict input validation and use robust system prompt design. Applying these controls is vital because prompt injection can lead to unauthorized data exposure, policy bypasses, and reputational damage.

Governance frameworks must mandate rigorous red-teaming and input sanitization to protect the integrity of the model's operational logic against adversarial inputs.

Exam trap

Candidates frequently select infrastructure scaling or network firewalls to stop prompt injections, ignoring that application-level guardrails and input validation are required.

94
MCQhard

An enterprise architect is evaluating vendor lock-in risks for an intelligent processing application that uses Claude models. The development team relies heavily on structured output generation, dynamic tool invocation, and low-latency token streaming. To maximize vendor portability across Anthropic's Direct API, Amazon Bedrock, and Google Cloud Vertex AI without creating redundant code paths, which integration strategy should the architect enforce?

A.Deploy custom fine-tuned weights of Claude onto self-hosted infrastructure using open-source container runtimes.
B.Restrict model features exclusively to plain text prompts, avoiding JSON tool schemas and output configurations.
C.Abstract model interactions behind standard Claude Messages API payload specifications within an application gateway layer.
D.Standardize on cloud-native AI orchestrator services specific to each cloud provider to wrap Claude invocations.
AnswerC

Abstracting request schemas, tool definitions, and response parsing to mirror standard Messages API contracts minimizes cloud platform lock-in. Application logic remains unified across Anthropic direct API, Bedrock, and Vertex AI deployments, requiring only minimal translation at the transport adapter level.

Why this answer

Selecting vendor platforms involves balancing platform-native features with lock-in risks. While core messaging concepts translate across Anthropic Direct API, AWS Bedrock, and GCP Vertex AI, raw SDK abstractions or proprietary platform wrappers create operational lock-in. Enforcing standard Messages API request schemas and tool definition contracts via an internal abstraction layer allows seamless migration or multi-cloud deployment.

Relying on platform-native orchestration services locks prompt engineering, tool routing, and streaming behaviors into proprietary cloud provider models.

Exam trap

Assuming that using proprietary cloud provider SDKs automatically guarantees vendor neutrality across all cloud deployments of Claude.

95
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.

96
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.

97
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.

98
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.

99
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.

100
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.

101
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.

102
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.

103
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.

104
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.

105
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.

106
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'.

107
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.

108
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.

109
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.

110
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.

111
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.

112
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.

113
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.

114
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.

115
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.

116
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.

117
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.

118
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.

119
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.

120
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.

121
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.

122
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.

123
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.

124
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.

125
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.

126
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.

127
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.

128
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.

129
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.

130
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.

131
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.

132
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.

133
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.

134
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.

135
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.

136
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.

137
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.

138
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.

139
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.

140
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.

141
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

142
MCQhard

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

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

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

Why this answer

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

Exam trap

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

143
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

144
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

145
MCQhard

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

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

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

Why this answer

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

Exam trap

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

146
MCQhard

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

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

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

Why this answer

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

Exam trap

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

147
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

148
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

149
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

150
Multi-Selectmedium

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

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

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

Why this answer

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

Exam trap

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

← PreviousPage 2 of 4 · 233 questions totalNext →

Ready to test yourself?

Try a timed practice session using only Governance Safety And Risk Management questions.