Find out if you're ready for CCAR-P. Take the free timed mock exam and get your score in minutes, or study the free CCAR-P questions below with answers and explanations.
You are running a controlled experiment to compare two prompts and must complete the design steps before
executing the experiment.
Which two steps must be completed BEFORE running the experiment with random assignment? (Select two.)
Each correct answer presents part of the solution.
Show answerHide answer
Correct answer: A, CDetermine the minimum detectable effect size and the sample size needed for power.
Define the hypothesis and the primary success metric for the comparison.
Explanation
Explanation
C. Define the hypothesis and primary success metric. Before random assignment, the experiment must pre-specify a clear hypothesis and a single primary metric. Anthropic's official prompt engineering documentation explicitly states that "defining the task and success criteria" is the first and most critical step, with success criteria needing to be specific and measurable to guide subsequent evaluation and optimization. If the metric is chosen after seeing the data, it constitutes post-hoc selection and renders the experiment invalid.
A. Determine the minimum detectable effect size and sample size. Sample size must be calculated before the experiment to ensure sufficient statistical power to distinguish genuine effects from noise. LLM outputs are stochastic, and small prompt differences are often subtle, making insufficient sample sizes likely to produce false conclusions. Experimentation methodology literature points out that running underpowered tests is one of the most common experimental design errors. The sample size formula requires pre-input of the minimum detectable effect size (MDE) and significance level.
Why the Other Options Are Incorrect
B. Decide to promote, reject, or iterate — This is a post-experiment decision that can only be made after analyzing the results, not a pre-experiment step.
D. Analyze results against predefined metrics — This is a post-data collection analysis activity that occurs after the experiment is completed.
E. Document recommendations, trade-offs, and alternatives — This is post-decision documentation work, belonging to the final stage of the experiment lifecycle.
Question 2Choose 1
You are identifying the highest-impact optimization for a deployment whose token cost is dominated by a
long, repeated system prompt and a large retrieved context per request.
Which optimization most directly targets the dominant cost driver?
Show answerHide answer
Correct answer: CMove the long, repeated system prompt into a cacheable prefix and trim retrieved context to the spans
relevant to each query.
Explanation
Explanation:
The dominant cost drivers identified in the question are the long, repeated system prompt and the large retrieved context per request. Option C directly addresses both: moving the stable system prompt into a cacheable prefix allows subsequent requests to reuse the cached computation, with cache-read tokens billed at a substantially lower rate—Anthropic's own pricing documentation confirms cached reads cost a fraction of standard input pricing. Meanwhile, trimming retrieved context to only query-relevant spans reduces the volume of input tokens per request, which is precisely the variable driving the other half of the cost structure. Research on retrieval depth tradeoffs shows that always using heavy retrieval wastes budget on unnecessary context, while per-query routing can reduce billed tokens by 26% without quality loss.
Why the other options are incorrect:
A increases retrieval depth, which worsens the dominant cost driver by adding more retrieved tokens per request—the opposite of optimization.
B adds more repeated content to the system prompt, increasing the very token volume that needs reduction.
D switches to the heaviest model, raising per-token costs without addressing the structural waste from redundant prompts and excessive retrieval.
References:
- Anthropic prompt caching documentation: cache reads are billed at reduced rates and the cache follows a prefix-matching hierarchy.
Question 3Choose 1
You are assessing a Claude-based system whose dominant risk is silent quality drift on safety-relevant outputs
after a model-version upgrade.
Which assessment activity most directly addresses this risk?
Show answerHide answer
Correct answer: DMaintain an adversarial evaluation set with version-attributed scoring so each upgrade is measured
against the same set before promotion.
Explanation
Explanation:
The core of this question is "silent quality drift in safety-related outputs"—it is invisible, has serious consequences, and is specifically triggered by model version upgrades. Option D maintains an adversarial evaluation set and performs version-attributed scoring, which directly addresses two key requirements: first, using the same fixed adversarial test set ensures that results are longitudinally comparable across different model versions, rather than the evaluation criteria drifting with each upgrade; second, version attribution ensures that each score can be traced back to a specific model version, making it impossible for degradations to be obscured by "overall metrics look fine." Research shows that silent updates to LLM services can introduce behavioral drift, leading to regressions in safety constraints and other aspects, and deployer-side compatibility gates (blocking updates unless safety/performance standards are met) are an effective governance tool. The Anthropic platform documentation also explicitly states that even if model weights are fixed, serving infrastructure updates (including safety classifiers) may produce observable behavioral differences—this further demonstrates the necessity of fixing the evaluation set and scoring by version.
Why the other options are incorrect:
- A disabling adversarial evaluation entirely eliminates the only means of detecting safety drift; quality regressions will only be discovered after entering production.
- B random rotation of adversarial inputs makes cross-version comparisons impossible (each upgrade is tested with different questions), so degradation cannot be attributed to version changes.
- C skipping evaluation and relying on user complaints essentially makes production the testing ground; by the time problems are discovered, safety-related harm has already occurred.
References:
- arXiv (2026): deployer-side governance framework proposes "risk-category-based testing suite" and "compatibility gates" to address silent updates and safety regressions.
Question 4Choose 1
A Claude Architect is reviewing a post-deployment performance report for an AI-assisted legal-document
summarization system. The report includes these observations:
Average summarization time decreased from 47 minutes to 6 minutes per document.
Associates spend less time on summaries, but overall billable output has not measurably changed.
Infrastructure costs increased by 22% because redundant retry logic generated additional API calls .
Some summaries require attorney correction, adding an average of 8 minutes of review per document.
Which analysis correctly attributes each observation to the appropriate business-value pillar?
Show answerHide answer
Correct answer: DObservation 1 indicates an efficiency gain; Observation 2 shows that productivity has not yet been
realized; Observation 3 is a solution-cost issue; Observation 4 is an efficiency loss that partially offsets
Observation 1.
Explanation
Explanation:
This question requires mapping the four observations to the CCAR-P business value pillars (Efficiency, Productivity, Solution Cost, Performance SLA).
- Observation 1 (summarization time decreased from 47 to 6 minutes): This is a direct efficiency gain. Efficiency measures the speed or resource cost to complete a specific task.
- Observation 2 (associates spend less time, but billable output has not changed): This shows that productivity has not yet been realized. Productivity means increasing total output (revenue, billables) with the same resources. Saving time is only an efficiency gain unless that saved time is redeployed to generate more value.
- Observation 3 (infrastructure costs increased by 22% due to retry logic): This is a solution-cost issue. The technological solution is consuming more budget than planned due to inefficiencies (redundant retries).
- Observation 4 (attorney correction adds 8 minutes per document): This is an efficiency loss (rework) that partially offsets the gains from Observation 1. The net time saved is actually 33 minutes (47 - 6 - 8), not 41 minutes.
Why the other options are incorrect:
- A misclassifies Observation 4 as a performance-SLA issue. SLA refers to system latency or uptime contracts, not human rework time.
- B misclassifies Observation 3 as SLA degradation. Increased API costs do not inherently violate a latency/uptime SLA. It also misclassifies Observation 2, which is a productivity gap, not an efficiency gain.
- C incorrectly states Observation 4 is an SLA improvement (it is a loss) and misclassifies the other pillars.
References:
- CCAR-P Domain 1: Business value pillars. Efficiency (doing the same task faster), Productivity (increasing business output), Solution Cost (financial cost of the tech), and Performance SLA (system reliability/latency).
Question 5Choose 2
A pilot AI assistant for procurement specialists shows 89 percent first-response acceptance, but follow-up
surveys reveal that specialists frequently override the assistant’s vendor recommendations after considering
criteria the assistant did not evaluate. The pilot owner wants to ship the assistant unchanged because of the
strong acceptance rate.
Which two Discernment-competency observations should you raise BEFORE approving the launch? (Select
two.)
Show answerHide answer
Correct answer: C, DThe unconsidered criteria represent a scope gap in the assistant’s input space.
Acceptance does not establish whether recommendations remain correct after specialist review.
Explanation
Explanation:
The core of the Discernment competency is critically evaluating the quality of AI outputs, rather than merely counting how often outputs are accepted. In this scenario, the "89% first-response acceptance rate" only shows that specialists initially accepted the recommendations; it does not prove that the recommendations were correct.
Option C (scope gap in the input space) directly addresses the root cause revealed by the follow-up surveys: specialists frequently override the recommendations "after considering criteria the assistant did not evaluate." This means that the assistant's input space lacks the key evaluation dimensions that specialists actually use. This is a Discernment judgment about the completeness of the problem definition—the output may "look reasonable," but it does not cover the decision factors that truly matter.
Option D (acceptance does not establish correctness after review) directly targets the misleading nature of the acceptance rate. Discernment requires judging the "Product" quality of the output, not the initial reaction. If the recommendations are overturned at a high rate during specialist review, then the high acceptance rate is merely a superficial metric and cannot support launch readiness.
Why the other options are incorrect:
- A contradicts the core of Discernment: acceptance rate is a process metric and cannot replace judgment about output quality.
- B concerns statistical representativeness, which pertains to survey methodology, not to the Discernment competency's critical evaluation of AI output quality.
- E concerns the adequacy of the pilot duration, which is an empirical sufficiency issue for reliability and does not directly address the substantive problem that recommendations are frequently overturned due to omitted evaluation criteria.
References:
- Discernment competency definition: evaluating AI outputs critically, including Product (output quality) and Process (reasoning) dimensions.
You are assessing data-exfiltration risk in a Claude-based assistant that has tools for both internal-document retrieval and outbound HTTP calls.
Which scenario most directly indicates a data-exfiltration risk?
Show answerHide answer
Correct answer: CAdversarial content in a retrieved document instructs the model to call the outbound HTTP tool and
send sensitive content to an attacker-controlled URL.
Explanation
Explanation:
The scenario in Option C directly describes the classic path of indirect prompt injection leading to data exfiltration: adversarial instructions are embedded in the retrieved document (untrusted data), inducing the model to call an outbound HTTP tool and send sensitive content to an attacker-controlled URL. This simultaneously satisfies two conditions: untrusted content influences tool invocation and the existence of a network-capable exfiltration channel. In an agent architecture, the context window does not distinguish between "data" and "instructions"—system prompts, user messages, and tool outputs are all in the same token stream. An attacker only needs to hide instructions in a document, and the model may treat them as legitimate commands and execute them. The retrieved document itself is untrusted data; its embedded instructions should not be treated as authorized commands. Once such instructions cause the assistant to include sensitive internal information in an outbound HTTP request, information crosses a trust boundary and is disclosed to an external party without proper authorization.
Why the other options are incorrect:
A describes a normal business call to an allow-listed domain to fulfill a user request, which is a legitimate use of the outbound tool, not exfiltration.
B is a routine question-and-answer interaction with no involvement of sensitive data or outbound tools.
D describes a user retrieving a document they are authorized to view, which is normal access behavior with no outbound transmission link.
References:
- Indirect prompt injection mechanism: tool output and system instructions share the same context window, with no structural signal distinguishing data from instructions; a trust boundary must be enforced at the application layer.
Question 7Choose 1
You are reviewing a peer’s Claude Code permission rules for an enterprise rollout. The rules grant
unrestricted Bash access to all projects across all developers.
Which response is most appropriate?
Show answerHide answer
Correct answer: CReplace unrestricted Bash with narrowly scoped tool patterns that allow only the specific commands the
workflows require, and add explicit deny rules for sensitive operations.
Explanation
Explanation:
The core issue is that granting unrestricted Bash access to all developers across all projects violates the principle of least privilege and creates an enormous attack surface. Unrestricted Bash exposes filesystem, credential, process, network, package-management, and potentially infrastructure-administration capabilities across every repository. A single prompt injection, compromised repository, or accidental command could have catastrophic consequences.
Option C (replacing unrestricted Bash with narrowly scoped tool patterns and adding explicit deny rules) directly applies the principle of least privilege. Anthropic's permission system supports allow, ask, and deny rules, with deny evaluated before ask and allow. Explicit deny rules should protect destructive commands, sensitive files, credential stores, and deployment systems. Enterprise configuration should combine managed baseline restrictions with project-specific permissions where necessary, and high-impact commands should remain subject to confirmation.
Why the other options are incorrect:
A deliberately expands the attack surface further by adding unrestricted access to more tool categories, moving in the opposite direction of security hardening.
B treats configuration simplicity as more important than enterprise security, failing to account for prompt injection, accidental commands, compromised repositories, or excessive human approval burden.
D disables all permission rules entirely, which is the most dangerous option—it eliminates every safeguard and guarantees that any malicious or accidental action runs unchecked across all projects.
References:
- Claude Code permissions documentation: deny rules are evaluated before ask and allow; a narrower allow cannot carve an exception out of a broad deny.
Question 8Choose 1
You are supporting an EU-based deployment with GDPR obligations.
Which combination of measures best supports the deployment’s GDPR posture?
Show answerHide answer
Correct answer: Aenterprise-tier deployment with a signed Data Processing Addendum, defined data-retention
configuration, redaction of personal data not needed for the task, and documented data-subject-rights
handling
Explanation
Explanation:
The core requirement for GDPR deployment is to establish a compliant data processing chain, rather than simply hoping the model "will not leak data." Option A covers all key elements required by GDPR: enterprise-tier deployment and a signed Data Processing Addendum (DPA) establish the legal basis for controller-processor relationships; Anthropic officially provides DPA to customers, and Enterprise plans explicitly support GDPR compliance, including EU/EEA regional processing, data subject rights support, and retention policies . Defined data retention configuration controls the lifecycle of data within the system; Anthropic's commercial API defaults to a 30-day retention period, with zero data retention (ZDR) available through agreement for sensitive data . Redaction of personal data not required for the task embodies the GDPR's data minimization principle (Article 5), reducing the risk exposure of personal data entering the model . Documented data subject rights handling process corresponds to GDPR Articles 15–20 (access, rectification, erasure, portability), and is an obligation that controllers must fulfill .
Why the other options are incorrect:
B (disabling retention configuration, redaction, and data subject rights handling) directly violates GDPR's data minimization, storage limitation, and accountability principles, and constitutes active non-compliance.
C (using a personal account to process large-scale EU personal data, with no DPA and no data subject rights process) lacks the legal basis for processing—the personal account terms are not suitable for business processing of personal data and provide no DPA protection .
D (pasting complete EU personal data into every prompt) violates the data minimization and purpose limitation principles; GDPR requires that only personal data necessary for the purpose be processed, not "the more the better" .
References:
- Anthropic official: DPA available to potential customers; Enterprise plans support GDPR compliance including EU/EEA regional processing and data subject rights .
Question 9Choose 2
A security audit uncovers two issues: (1) all end users share a single API key, and (2) tool calls are executed
without logging the initiating user.
Which two mitigations directly address these specific findings? (Select two.)
Show answerHide answer
Correct answer: D, EAdd actor attribution to tool-call logs so each call records the initiating user identity.
Replace the shared API key with per-user OAuth tokens carrying scope-restricted permissions.
Explanation
Explanation:
The audit found two specific issues: (1) all end users share a single API key, and (2) tool calls are not logged with the initiating user. The two mitigation measures must directly correspond to these two findings.
Option E (replacing the shared API key with per-user OAuth tokens carrying scope-restricted permissions) directly addresses the first finding. A shared API key means all requests execute under the same identity—once the key is leaked, the blast radius covers all users, and logs cannot distinguish who performed which operation. The Claude platform documentation explicitly states that "shared personal keys act as one person," and recommends using identity-backed keys or per-user authentication for shared workloads . The CCAR-P Domain 2 (Tool Design & MCP Integration) explicitly tests per-user OAuth architecture: when tools require per-user authentication across multiple tenants, the correct approach is to centralize the auth flow, token storage, and audit trail in one place, rather than embedding tokens in prompts or scattering them across each agent . Replacing the shared key with per-user OAuth tokens ensures each request carries a distinguishable user identity and constrains the scope of operations available to each user through scope restrictions.
Option D (adding actor attribution to tool-call logs) directly addresses the second finding. "Tool calls executed without logging the initiating user" means that once an incident occurs, it is impossible to trace who triggered the call. The CCAR-P blueprint explicitly lists "audit logging" as a core content area of Domain 4 (Governance, Safety & Risk Management) . Adding actor attribution to tool-call logs enables each call record to carry the initiating user identity, satisfying traceability requirements.
Why the other options are incorrect:
A (validating structured outputs against a schema) addresses output format correctness, not credential management or audit logging.
B (enforcing RBAC at the retrieval layer) is a reasonable security control, but the audit findings focus on API key sharing and tool-call logging, not retrieval-layer authorization.
C (moving credentials from prompts to a server-side secret store) addresses the risk of credential leakage within prompts, but the finding is "shared API key," not "API key in prompts"; moreover, this option does not address the issue of tool-call log attribution.
References:
- Claude Platform authentication documentation: shared keys act as a single identity; per-user identity-backed credentials are recommended .
Question 10Choose 1
You are reviewing a customer-support agent’s configuration. Each candidate tool falls into one of four
categories: (1) required to complete defined tasks, (2) frequently used and reduces hand-offs, (3) occasionally
useful for unrelated work, (4) speculative future utility.
Which categories should typically remain in the agent configuration?
Show answerHide answer
Correct answer: CCategories 1 and 2 only, because they map to defined tasks and the agent’s regular hand-offs.
Explanation
Explanation:
The core principle of tool configuration is least privilege and necessity: tools should directly map to the agent's defined tasks and regular workflows, rather than accumulating based on "might be useful someday" or "broader is better."
Categories 1 and 2 should be retained. Category 1 (tools required to complete defined tasks) is self-evidently necessary—these tools are the foundation for the agent to fulfill its responsibilities. Category 2 (frequently used and reduces handoffs) directly improves workflow efficiency and reduces unnecessary human intervention. CCAR-P Domain 3 explicitly distinguishes between "required" and "frequent": an emergency escalation tool may only be invoked 0.1% of the time but is still necessary, whereas a frequently used tool naturally has justification for retention because it maps to actual task flows. The practical rule is: start from the smallest tool set that covers the role's tasks and only add tools when test runs demonstrate a real gap.
Why the other options are incorrect:
- A (retaining only category 3) completely inverts the priority order—tools "occasionally useful for unrelated work" neither map to defined tasks nor serve regular workflows, and retaining them introduces selection ambiguity and unnecessary attack surface.
- B(retaining only category 4) is the most dangerous choice—"speculative future utility" means no validated use case currently exists, and configuring tools in advance based on speculation is a typical anti-pattern of capability bloat.
- D (retaining all four categories) confuses "broader tool access" with "better performance." Research shows that when a single agent has 18 or more tools, selection reliability begins to decline significantly, while the ideal range is 4–5 tools. Unused tools increase context consumption and introduce distractors, and sensitive tools being "configured but instructed not to use" constitutes weak governance.
References:
- CCAR-P Domain 3 capability bloat analysis: assess the necessity of each tool using "required, not merely frequent" as the criterion.
Full mock exam
Sit the CCAR-P exam before exam day
Full-length mocks with the same number of questions and the same time limit as the real CCAR-P exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.