100% Latest & Updated Anthropic CCA-F Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 150
A schema marks every parameter optional but the action cannot work without destination_account. Which design adjustment is most suitable under the stated constraints?
- Define destination_account as a typed string but leave it optional in the schema and permit the handler to run without it.
- Declare genuinely required fields and validate them before execution.
- Set a safe bounded default and document pagination in the tool schema.
- Separate eligibility lookup from the privileged side-effecting refund action.
- Define a lean output contract with the relevant typed fields and identifiers.
Explanation
Correct Answer
B:The agent cannot reliably infer a missing destination that the user never authorized. The case involves a schema marks every parameter optional but the action cannot work without destination_account. The agent cannot reliably infer a missing destination that the user never authorized. The implementation therefore needs to declare genuinely required fields and validate them before execution.
Incorrect Answers
A:Type checking a field that may be absent is not equivalent to requiring it. The action cannot complete without a destination account, so an input object lacking that field must fail before execution. Make the field required and validate its presence rather than accepting a technically typed but incomplete request.
C:A schema marks every parameter optional but the action cannot work without destination_account. Unbounded results inflate latency, tokens, and accidental disclosure without improving the user's requested lookup. The agent cannot reliably infer a missing destination that the user never authorized. The suggested action would set a safe bounded default and document pagination in the tool schema; it does not declare genuinely required fields and validate them before execution, which is the necessary correction for the observed fault.
D:A schema marks every parameter optional but the action cannot work without destination_account. Read operations and irreversible financial mutations demand different tool contracts and approvals. The important technical distinction is that the agent cannot reliably infer a missing destination that the user never authorized. This action would separate eligibility lookup from the privileged side-effecting refund action instead of declare genuinely required fields and validate them before execution, so the original fault would persist.
E:A schema marks every parameter optional but the action cannot work without destination_account. Compact schemas reduce context pressure while preserving information needed for downstream decisions. The agent cannot reliably infer a missing destination that the user never authorized. The suggested action would define a lean output contract with the relevant typed fields and identifiers; it does not declare genuinely required fields and validate them before execution, which is the necessary correction for the observed fault.
Question 151
A read tool returns errors as ordinary successful strings and the model quotes 'not found' as data. What targeted change avoids repeating this failure?
- Use a structured result separating successful payload from error state.
- Standardize timestamps to an explicit timezone-aware machine-readable format.
- State side effects and read-only behavior explicitly in its interface description.
- Define a lean output contract with the relevant typed fields and identifiers.
Explanation
Correct Answer
A:Return an explicit failure status or tool error signal with structured details separate from successful data. The model can then say the lookup failed or choose an authorized recovery action instead of quoting the literal words “not found” as a discovered value.
Incorrect Answers
B:Timezone-aware timestamp formats prevent chronology errors in valid data. They cannot distinguish an exception from a legitimate response payload when the read tool serializes both as ordinary successful text.
C:Describing side effects accurately helps an agent decide whether invoking a tool is safe. This read call has already returned a misleading result; metadata does not replace an explicit error state for the execution outcome.
D:A lean schema for typed result fields improves consumption, but it must separately express success and failure. Without the error discriminant, a typed field could still carry the string “not found” as if it were ordinary data.
Question 152
A design proposes a single universal tool wrapping dozens of unrelated services. Which corrective action most directly addresses the observed failure?
- Give customer and order tools distinct descriptions naming their expected entity and triggers.
- Name each tool according to its distinct resource and use-case.
- State side effects and read-only behavior explicitly in its interface description.
- Split unrelated capabilities into cohesive tools with narrowly described responsibilities.
Explanation
Correct Answer
D:Separate the capabilities into cohesive actions with clearly typed inputs, narrow purpose descriptions and appropriate per-action authorization. Claude can then select a relevant operation while hosts can enforce the operation’s actual resource and risk scope.
Incorrect Answers
A:Good customer and order descriptions would help two particular tools, but the proposal currently combines dozens of unrelated capabilities. This option does not actually split those interfaces into independently authorized, cohesive actions.
B:Naming tools according to resources is useful after deciding the correct granularity. Merely renaming the one universal wrapper cannot make its unrelated parameters and side effects safe or easy to choose.
C:Explicit read/write and side-effect descriptions improve transparency but do not solve the excessive permission reach of a single interface that can invoke many unrelated services.
Question 153
A command tool's description omits an example for two similar date filters. Which implementation choice best closes the specific gap described?
- State side effects and read-only behavior explicitly in its interface description.
- Narrow the description to explicit operations, side effects, and prohibited uses.
- Add concise, representative schema examples showing the distinct inclusive and exclusive boundaries.
- Define a lean output contract with the relevant typed fields and identifiers.
- Name each tool according to its distinct resource and use-case.
- Set a safe bounded default and document pagination in the tool schema.
Explanation
Correct Answer
C:Provide short valid input examples showing an inclusive date interval and an exclusive end bound, including timezone and boundary expectations where applicable. These examples disambiguate otherwise similar field names for model-generated arguments. Confirm each example validates against the actual schema and handler semantics.
Incorrect Answers
A:Side-effect descriptions are critical when a tool might mutate data, but the present ambiguity concerns two date-filter argument boundaries. A general read-only statement does not teach the model whether a named filter includes its end date. Example arguments should make that distinction explicit.
B:A narrowed list of operations can improve tool selection, but the model can still supply the wrong date filter if the two fields sound similar. Document each field’s inclusive or exclusive behavior with representative sample inputs and expected selections, rather than only prohibitions.
D:Compact typed output fields make results easier to consume downstream but do not clarify the input meaning of the two date filters. The error occurs before output is returned. Teach the model the correct call syntax and exact boundary behavior.
E:Clear tool names help choose between separate operations, but both date filters are arguments to the same command. Naming the tool more descriptively still leaves the difference between inclusive and exclusive comparisons unspecified. Provide field-level examples with expected effects.
F:Bounded pagination controls output size and protects against unbounded result sets. It does not explain whether the supplied date endpoint is included in the comparison. The missing detail is a schema example demonstrating date-filter semantics, not response length.
Question 154
An MCP customer search tool times out, but the server sends an empty successful result. Claude concludes there are no matching customers and advises staff to close the case. Select TWO changes that preserve error meaning and avoid the false no-match conclusion.
- Return an MCP tool-result error with isError set and an actionable timeout description, rather than a successful empty search set.
- Have the agent distinguish transient failure from a valid empty result and retry within limits or escalate for a verified lookup.
- Convert every MCP timeout into an empty content array so downstream prompts are simpler to parse.
- Retry forever without observing rate limits or communicating the unresolved lookup to the user.
- Show the tool server’s internal authentication token in the error message to assist debugging.
Explanation
Correct Answers
A:A timeout means the lookup did not complete, not that the customer database returned zero matching rows. An isError result and a bounded description preserve the distinction between unavailable evidence and a successful no-match answer. The explanation should avoid exposing internal credentials or secret connection details.
B:Once the tool returns a truthful error, the orchestrator must decide how to recover rather than convert missing data into a final customer conclusion. A limited retry can handle temporary connectivity; persistent failure should be visible to staff with an escalation path. The assistant should not assert absence of a customer without a completed query.
Incorrect Answers
C:A structurally valid empty array has the meaning of a successful lookup with no matches in this workflow. Using that representation for timeouts destroys the difference between negative evidence and unavailable evidence. The assistant can then make an unsupported operational decision and close a legitimate case incorrectly.
D:Unbounded retry can exhaust resources, delay all other cases and hide a persistent dependency outage. It does not supply verified customer data during the outage. The workflow needs a defined retry budget, an explicit error state, and honest escalation when results remain unavailable.
E:An authentication token is unrelated to resolving a customer lookup timeout and must not be disclosed through model-visible tool output. Exposing it introduces a new credential-compromise risk. An error should give an appropriate category and recoverable diagnostics without sensitive service secrets.
Question 155
An MCP payment tool rejects a malformed bank identifier but reports 'temporary server problem'. What should the team change first to resolve this exact failure mode?
- Mark authorization failure as non-retryable until identity or policy changes.
- Return a precise non-retryable validation error referencing the invalid field.
- Return isError=true but retain the false description "temporary server problem" and give no invalid-field details.
- Add error category, request identifier, and safely redacted message.
- Use structured error codes for rate limit, validation, authentication, and unavailable service.
Explanation
Correct Answer
B:Return a validation-class error that names the malformed bank identifier field and explains the allowed format without echoing sensitive account data. Mark the same unchanged request non-retryable. That lets the agent ask for corrected input instead of consuming its budget on a nonexistent transient server outage.
Incorrect Answers
A:Authentication failure needs a different policy response than malformed input; the identifier in this question violates format validation rather than user privilege. Marking authorization non-retryable would misclassify the problem and tell the model to reauthenticate instead of correcting the bank field.
C:An isError flag is helpful but does not explain the invalid bank identifier if the message still says “temporary server problem.” The caller could retry with unchanged data. Include a precise validation category and safe field-specific explanation in the model-visible result.
D:An error category and request ID support observability, but a generic logged “bad request” may still leave the user unable to fix the bank identifier. The decisive correction is an accurate validation error tied to the relevant field and declared non-retryability.
E:Structured error categories distinguish rate limiting from validation and outage, but the current failure requires that the actual response say validation rather than temporary server problem. Include the invalid-field details and avoid an automatic retry on the unchanged input.
Question 156
A catalog MCP server has a transient 503 response but marks it permanent. Which safeguard or workflow change provides the missing guarantee?
- Distinguish temporary availability errors and provide bounded retry guidance.
- Provide a fixed delay while continuing to classify every HTTP 503 as a permanent failure.
- Return a precise non-retryable validation error referencing the invalid field.
- Preserve the denied authorization state and request approved reauthentication, not a bypass.
Explanation
Correct Answer
A:Label the 503 as temporary or retryable only where safe, and provide bounded retry/backoff guidance. This allows the client to wait for availability rather than permanently abandon a valid catalog lookup; avoid unbounded or immediate retries under load.
Incorrect Answers
B:A fixed delay can be useful for rate limiting, but leaving the response marked permanent instructs clients not to retry at all. Timing advice does not fix the erroneous error classification that caused the catalog request to be abandoned.
C:A non-retryable field-validation error is correct when an argument violates an input schema. The case describes an unavailable upstream service, and changing its category to validation would mislead the client.
D:Reauthentication helps when a caller lacks authorization, not when an otherwise valid request receives a transient server-unavailable response. It would obscure the real operational failure and could cause needless credential changes.
Question 157
A tool returns HTTP 200 with a text message 'operation failed' inside a success result. Which response is best supported by these operational facts?
- Add error category, request identifier, and safely redacted message.
- Mark authorization failure as non-retryable until identity or policy changes.
- Propagate a safe error summary into the model-visible tool result.
- Mark application-level failure via the MCP error signal and structured content.
Explanation
Correct Answer
D:Return a CallToolResult with isError true and appropriate safe structured or text content for the application-level failure. HTTP 200 may still indicate a successful RPC exchange; the MCP tool result independently signals that the requested operation failed.
Incorrect Answers
A:An error category and request ID are useful diagnostic fields, but without marking the tool call failed the host may still treat the response as successfully returned business data.
B:A permission rejection is one possible tool error, but there is no indication this particular failure was authentication-related. Classifying all failures as non-retryable authorization errors would prevent appropriate recovery.
C:A sanitized text explanation helps Claude understand the failure, but placing that text in a success result keeps the same ambiguity between ordinary content and a failed operation.
Question 158
A refund tool encounters a network timeout after submitting a transaction and recommends blind retry. Which design adjustment is most suitable under the stated constraints?
- Return a tool-level error flag with timeout details and retryability metadata.
- Add error category, request identifier, and safely redacted message.
- Return an unknown-outcome status and the transaction's reconciliation identifier.
- Supply bounded backoff or retry-after information when the server can support it.
Explanation
Correct Answer
C:Return an explicit unknown-outcome state tied to the idempotency key or transaction reference, then query the payment system before any retry. This prevents double-refunding a customer if the first attempt committed despite the lost acknowledgment.
Incorrect Answers
A:Reporting a timeout with an error flag helps surface the failure, but declaring the call retryable without confirming settlement can submit the same refund twice. Recovery needs an outcome reconciliation path, not merely an error label.
B:A request identifier and redacted diagnostic category support investigation, but they do not tell an agent whether the transaction already occurred. A reliable recovery status must carry or connect to the transaction’s unique idempotency reference.
D:Retry-after advice is suitable for requests known not to have executed. Here a side-effectful call may already have reached the processor, so delayed blind retry is still unsafe without reconciliation.
Question 159
A resource-not-found lookup returns an uncaught stack trace with database credentials. What targeted change avoids repeating this failure?
- Use structured error codes for rate limit, validation, authentication, and unavailable service.
- Return a sanitized structured not-found error without secret internals.
- Mark application-level failure via the MCP error signal and structured content.
- Return a tool-level error flag with timeout details and retryability metadata.
Explanation
Correct Answer
B:Return a sanitized not-found status with the resource identifier or safe correlation ID, not the internal exception dump. Keep full diagnostic context in restricted server logs so downstream systems can handle absence without exposing secrets.
Incorrect Answers
A:Broad error codes can help clients distinguish rate limits and auth failures, but they do not guarantee that an uncaught exception’s sensitive stack and environment values are removed from the tool payload.
C:Marking the tool result as an error is appropriate, but an error flag alone leaves credentials exposed if raw exception details are included in the returned content. Sensitive values must be filtered at the boundary.
D:Timeout/retry metadata is inappropriate for a resource that was not found and does not address the primary risk: an uncaught stack trace contains privileged database credentials.
Question 160
An MCP tool returns retryable true for permission denied. Which corrective action most directly addresses the observed failure?
- Classify expected vs unexpected failures conservatively and cap retries.
- Return a precise non-retryable validation error referencing the invalid field.
- Mark authorization failure as non-retryable until identity or policy changes.
- Mark application-level failure via the MCP error signal and structured content.
- Retry the same tool call and automatically raise its service privileges until authorization succeeds.
Explanation
Correct Answer
C:An authorization-denied response must not advertise retryable=true when the same principal and policy remain in force. Mark the condition non-retryable and explain that legitimate reauthorization or policy change is required. Otherwise the agent may loop and trigger account lockouts.
Incorrect Answers
A:Expected failures should be classified so retries are limited, but treating permission denied as temporary still leaves the model repeating an unauthorized call. The key error is a retryable flag inconsistent with authentication or policy denial. Fix that classification rather than merely shortening retries.
B:A field-level validation error helps when a tool receives malformed input, but this call is denied by access control. A correctly shaped input does not grant missing permissions. Its failure state should remain authorization denied and non-retryable with unchanged identity.
D:Using an MCP error indicator exposes a tool failure, but a wrong retryability signal can still cause automated repeated attempts. The model needs the error class and retry guidance to agree. A permission denial is not normally repaired by a timer-based retry.
E:Automatically expanding privileges to make a denied call pass would turn a security control into an escalation trigger. Never allow a model to bypass missing authorization. Preserve the denied result and direct the user to an approved access path if the task is legitimate.
Claude Certified Architect - Foundations (CCA-F) Practice Tests