Courseiva

CCNA Governance, Safety, and Risk Management Questions

8 of 233 questions · Page 4/4 · Governance, Safety, and Risk Management · Answers revealed

226
MCQhard

Your financial services firm is concerned that the Claude-powered loan pre-screening agent might be disproportionately rejecting applicants from certain geographic regions. You need to implement a continuous monitoring strategy. What is the most effective way to detect this bias?

A.Enable prompt caching to ensure that the model receives the exact same system prompt, preventing variance in decision-making logic that could cause bias.
B.Configure the system prompt to require the agent to justify its rejection decision, and then parse this justification for geographic mentions.
C.Use the Files API to store all incoming loan applications and perform a manual review of every tenth application to check for geographic bias.
D.Implement an asynchronous monitoring pipeline that aggregates agent decisions and performs statistical parity tests across demographic and geographic segments.
AnswerD

Aggregating decisions and running statistical parity tests across segments measures disparities in rejection rates directly, which is what systemic bias looks like at scale. Running this analysis asynchronously keeps it out of the loan-processing critical path.

Why this answer

The most effective method for detecting bias in a production agent is to implement a secondary, asynchronous evaluation loop. This involves logging inputs and outputs, then running them against a secondary, specialized model or a deterministic evaluation script that checks for disparities in rejection rates across protected or sensitive geographic segments. This approach allows you to identify trends in model behavior that might not be visible in individual transaction logs, ensuring compliance and fairness without impacting the latency of the primary user-facing workflow.

Exam trap

Confusing real-time PII redaction with post-hoc bias monitoring; they serve different purposes and operate at different stages of the request lifecycle.

227
MCQmedium

An architect is designing an audit logging strategy for a system using Message Batches for large-scale data classification. They need to ensure that every batch result is correctly mapped back to the original input for audit purposes. What is the most effective way to achieve this?

A.Configure the batch result storage to enable automatic correlation with the input file.
B.Include the original document ID in the system prompt for every request within the batch.
C.Use the batch creation timestamp to order the results and match them to the input sequence.
D.Assign a unique custom_id to each request and store the mapping to the source data in your internal system.
AnswerD

The custom_id is the primary mechanism for correlating batch results with original inputs. By managing this mapping in your own database, you ensure that every classification result is accurately traced back to the source, providing a robust audit trail for high-volume processing tasks.

Why this answer

The Message Batches API requires a custom_id for each request, which must be unique within the batch. This custom_id is returned with the result, allowing the architect to programmatically link the model's output back to the specific source document or classification task. By storing this mapping in an internal database, the architect creates an immutable link between the input data and the AI-generated result, satisfying the requirement for traceability in automated processing workflows.

Exam trap

Candidates might try to use the 'metadata' field to correlate requests, but the custom_id is specifically designed for this purpose in batches.

228
MCQmedium

Your organization is investigating a security incident where a production Claude Sonnet 5.5 agent leaked sensitive information into its reasoning trace. You need to purge the affected conversation context to prevent further leakage. How do you effectively clear the context?

A.Wait for the 5-minute cache TTL to expire, which will purge the conversation from Anthropic's servers.
B.Stop including the messages containing the sensitive information in the next API request.
C.Use the context editing (beta) feature to delete the specific messages from the server's cache.
D.Send a /clear command in the next Messages API request to reset the conversation state.
AnswerB

The Messages API is entirely stateless. The model's context is defined solely by the messages you send in the current request. By omitting the previous messages that contained the sensitive data, you ensure that the model has no access to that information in subsequent calls, which is the correct way to clear context.

Why this answer

In the stateless Messages API, the client must send the full conversation history with every request. To clear the context, you must stop sending the previous messages that contain the sensitive information in a new request. Using the /clear command is not applicable here, as that is a feature of the Claude Code CLI, not the Messages API.

By resetting the conversation list to only the necessary system prompt and the current user input, you effectively ensure the model no longer has access to the leaked data from previous turns, as no server-side 'memory' persists unless you explicitly provide it in the input.

Exam trap

Candidates often assume there is a server-side command to 'clear' or 'purge' an API session, which does not exist.

229
MCQhard

Your organization uses Message Batches for large-scale data classification. You discover that some batches contain sensitive PII that should have been redacted. How should you handle the risk of PII leakage in future batches?

A.Use the metadata field in the Message Batches API to tag requests containing PII for special handling by the provider.
B.Implement a preprocessing pipeline to redact or mask PII from the input data before submitting the Message Batches.
C.Instruct the model in the system prompt to ignore and redact any PII it encounters in the input messages.
D.Rely on the organization's zero data retention arrangement as the only control, since it means no PII is stored by the provider.
AnswerB

Sanitizing input data before it reaches the API is the only way to guarantee that PII is not processed or stored by the model. By masking or redacting sensitive fields in your internal pipeline, you ensure that the model receives only the necessary, non-sensitive data, effectively eliminating the risk of PII leakage.

Why this answer

The most effective strategy is an automated redaction or masking step in the data pipeline that runs before requests are submitted to the Message Batches API. The API does not inspect content for PII, so the application must sanitize the input to meet its compliance requirements. This keeps sensitive information from ever reaching the model, while batch processing stays as efficient as before.

Retention arrangements and prompt instructions can complement this control but cannot replace it.

Exam trap

Candidates might suggest enabling zero data retention as the primary fix, but that only addresses storage, not the processing of PII in the prompt itself.

230
MCQmedium

An organization is using the Message Batches API to process 100,000 customer support transcripts for PII and sensitive data. During the design phase, the architect is concerned about how to handle the API keys used by the redaction script. What is the most secure way to manage these keys in a batch processing workflow?

A.Embed the keys in the system prompt of the batch request so the model can use them to sign the redacted output.
B.Use environment variables in the local script that submits the batch and processes the results upon completion.
C.Rely on the Message Batches API's built-in 'vault' feature to automatically manage third-party service credentials.
D.Include the keys in the 'custom_id' field of each batch request to ensure they are available when processing results.
AnswerB

This follows standard secure development practices. The script that interacts with the Anthropic API retrieves its own necessary secrets from a local secure store (like environment variables). The LLM itself remains unaware of these keys, and they are never transmitted as part of the batch request or result files.

Why this answer

In a batch processing workflow, the actual LLM call (via the Message Batches API) is asynchronous. The secrets used for the broader workflow (like keys for a database or a downstream redaction service) should reside in the environment where the batch creation and result-retrieval scripts are running. These keys should never be included in the 'custom_id' or the 'messages' array sent to the Anthropic API.

By keeping the secrets in the orchestration layer, the architect ensures that the sensitive credentials are never transmitted to or stored within the Anthropic batch processing system.

Exam trap

Thinking that because batches are 'offline' and cheaper, they are inherently more secure for secret storage.

231
MCQhard

A multinational insurer wants to quantify how often its Claude-based claims assistant produces outputs that violate its internal tone and fairness policy before it expands the pilot to three new countries. The compliance team needs a repeatable, statistically defensible measurement rather than anecdotal review. Which approach best meets this need?

A.Run a structured evaluation over a stratified sample of representative claims, scoring each output against a written tone-and-fairness rubric with two independent raters.
B.Review the model's system prompt and knowledge sources with legal counsel to confirm the policy language is correctly worded.
C.Monitor the assistant's average response latency and error rate in production dashboards during the pilot period.
D.Ask the pilot's ten claims adjusters to report any tone or fairness problems they notice in daily use.
AnswerA

A stratified sample drawn from representative claims produces a measurable denominator, and a written rubric applied by two independent raters yields inter-rater reliability evidence. This turns policy violations into a rate with confidence bounds, which is precisely the repeatable, statistically defensible measurement the compliance team requires before scaling.

Why this answer

Quantifying violation frequency requires a defined sample, a consistent scoring instrument, and controls for scorer bias. Stratified sampling over representative claims plus a written rubric scored by two independent raters yields a rate with reliability evidence, which is what lets compliance compare countries and justify or reject expansion on evidence rather than impressions.

Exam trap

The trap here is treating user complaints, prompt review, or system telemetry as if they produced a violation rate, when none of them establishes a sample denominator or a consistent scoring standard.

232
MCQmedium

A multinational bank runs a Claude-powered assistant that drafts internal credit memos. Auditors require the bank to prove that every generated memo can be traced to the exact human who requested it, the data sources the model retrieved, and the decision it influenced. Which governance capability should the architect implement first to satisfy this requirement?

A.Configure automatic prompt caching to reduce latency and cost for repeated credit memo templates.
B.Deploy a content moderation layer that filters sensitive financial terms before prompts are sent to Claude.
C.Enable structured audit logging that records request identity, retrieved source references, and downstream model output identifiers for each Claude invocation.
D.Set up a dashboard that tracks aggregate token consumption and monthly API spend per business unit.
AnswerC

Structured audit logging captures the requestor identity, the retrieval context, and the output reference together, producing an immutable trace that maps each memo to its origin, sources, and use. This directly satisfies the auditor's demand for end-to-end lineage, whereas the other controls improve security or quality but do not by themselves create the required evidentiary record.

Why this answer

The requirement is evidentiary lineage: for each generated memo, the bank must show the requesting human, the retrieved sources, and the output that influenced a decision. Structured audit logging is the only control that binds identity, retrieval context, and output reference into a reviewable record. Filtering, caching, and spend dashboards address confidentiality, efficiency, and cost respectively, none of which reconstruct the chain of custody auditors demand.

Exam trap

The trap here is assuming that any logging or monitoring already in place satisfies audit traceability, when only logs that correlate requestor identity, retrieved sources, and output identifiers create usable evidence.

233
MCQmedium

A financial services firm's Claude-powered customer service agent begins generating responses that contain internal account IDs not intended for public view. The incident response team needs to immediately stop the leaks while they investigate the root cause in the prompt chain. Which architectural action provides the fastest and most reliable containment?

A.Implement a deterministic output filter in the application layer to redact patterns matching the account IDs.
B.Increase the 'effort' parameter to 'max' to ensure the model follows safety instructions more closely.
C.Switch the model from Claude Sonnet 5.5 to Claude Opus 5.5 to leverage higher reasoning capabilities.
D.Add a negative constraint to the system prompt specifically forbidding the mention of account IDs.
AnswerA

Implementing a deterministic filter at the application layer is the most reliable containment method. It creates a hard boundary that does not rely on model compliance. This allows the service to stay online if necessary while ensuring that sensitive patterns are physically removed from the response before egress.

Why this answer

In an incident involving data leakage, the fastest and most reliable containment strategy is to use a deterministic gateway or proxy to intercept and block the specific patterns. While updating the system prompt or switching models might eventually work, these are probabilistic and require re-evaluation. A deterministic regex or PII-redaction layer at the application level ensures that even if the model continues to hallucinate or leak IDs, they are stripped before reaching the end user, providing a hard safety boundary during the investigation.

Exam trap

Choosing to update the system prompt as the primary containment measure for a data leak.

← PreviousPage 4 of 4 · 233 questions total

Ready to test yourself?

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