# Implement structured error responses for MCP tools — Practice reading

Exam: CCAR-F — Claude Certified Architect - Foundations (CCAR-F)
Knowledge domain: Tool Design & MCP Integration
HTML: https://learningpathx.com/learning-path/CCAR-F/learn/437

This public learning practice includes correct answers and existing explanations. Reading does not save progress or create a test.

## Question 1

Type: single\_choice
Knowledge point: The MCP isError flag pattern for communicating tool failures back to the agent

A data-export tool rejects a requested 90-day date range because its maximum is 30 days. How should the server communicate this business-rule failure to the agent?

### Options

**A**

Return CallToolResult with isError=true and content stating the 30-day maximum and asking for an allowed date range.

**B**

Throw an unhandled exception directly from the tool handler.

**C**

Return a success result containing only "failed".

**D**

Return an empty result without providing any status signal.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — Return CallToolResult with isError=true and content stating the 30-day maximum and asking for an allowed date range.**: The tool-execution error identifies the policy and possible correction.
* **B — Throw an unhandled exception directly from the tool handler.**: An unhandled exception is less actionable and can break handling.
* **C — Return a success result containing only "failed".**: A success status conflicts with the rejected export.
* **D — Return an empty result without providing any status signal.**: An empty result hides why the operation failed.

## Question 2

Type: multiple\_choice
Knowledge point: The MCP isError flag pattern for communicating tool failures back to the agent

An MCP tool invocation reaches the tool but fails a non-retryable business rule. Which two elements belong in the CallToolResult error pattern sent to the agent? (Choose 2.)

### Options

**A**

Set the CallToolResult isError flag to true.

**B**

Include actionable error content; any retryability/category fields in that content are application-defined conventions.

**C**

Set isError to false merely because the MCP transport successfully delivered the invocation.

**D**

Place isRetryable as a required standardized top-level MCP field instead of using isError.

Correct answer: A, B

### Explanation

Application-defined retryability fields supplement the standard execution-failure signal; they do not replace it.

## Question 3

Type: single\_choice
Knowledge point: The MCP isError flag pattern for communicating tool failures back to the agent

An MCP read-only lookup returns content text "region unsupported" without isError, and the agent treats it as a successful empty lookup. A separate request fails temporarily with isError: true but content only "Traceback..."; the agent guesses it is a bad region and rewrites valid input. Which response-contract change best addresses both traces?

### Options

**A**

Mark both tool-execution failures with isError: true and provide distinct error explanations plus application-defined recovery guidance for invalid region versus temporary outage.

**B**

Add isError: true to the first response and use the same generic failure text for both.

**C**

Return both as JSON-RPC malformed-message errors even though the requests reached their tools successfully.

**D**

Remove isError from the outage response so both are handled as empty successful lookups.

Correct answer: A

### Explanation

A repairs both observed defects. A tool execution failure should be returned as a valid tool result with isError set to true, and its content should explain what failed and what recovery is appropriate. Unsupported region input needs valid region guidance; a temporary upstream outage needs a bounded retry or later-retry instruction without rewriting valid region input. The application defines these categories and recovery details; isError itself does not encode them or guarantee the agent follows them. A generic message loses the distinction, a malformed-request JSON-RPC error misclassifies these executed calls, and clearing the outage flag invites the same false-success interpretation.

## Question 4

Type: single\_choice
Knowledge point: The MCP isError flag pattern for communicating tool failures back to the agent

Which outcome does isError: true provide when an MCP tool returns an error message?

### Options

**A**

It explicitly identifies the returned result as a tool-execution failure for the client and agent to handle.

**B**

It automatically retries every failed request upon execution.

**C**

It converts a tool error into a valid standard business result object.

**D**

It suppresses all returned content from the original caller.

Correct answer: A

### Explanation

Correct interpretation and recovery still depend on the caller; the flag alone does not guarantee model behavior.

## Question 5

Type: multiple\_choice
Knowledge point: The distinction between transient errors (timeouts, service unavailability), validation errors (invalid input), business errors (policy violations), and permission errors

This application classifies temporary dependency outages as transient, malformed business inputs as validation, denied access as permission, and domain-policy rejections as business errors. Which two pairings are correct? (Choose 2.)

### Options

**A**

A temporary service outage encountered while executing a valid tool request is a transient execution error.

**B**

A structurally malformed MCP CallToolRequest is an ordinary successful tool result with no protocol error.

**C**

A date in the wrong format is a basic input validation error.

**D**

A policy violation is a specific permission error type.

Correct answer: A, C

### Explanation

Correct answers: A, C.

Option analysis:

* **A — A temporary service outage encountered while executing a valid tool request is a transient execution error.**: The stated taxonomy classifies temporary outages as transient.
* **B — A structurally malformed MCP CallToolRequest is an ordinary successful tool result with no protocol error.**: A malformed protocol request is not a successful tool result.
* **C — A date in the wrong format is a basic input validation error.**: Wrong date formatting is an input-validation failure.
* **D — A policy violation is a specific permission error type.**: Under this taxonomy a domain-policy violation is business, not automatically permission.

## Question 6

Type: single\_choice
Knowledge point: The distinction between transient errors (timeouts, service unavailability), validation errors (invalid input), business errors (policy violations), and permission errors

A read-only record lookup has undergone several repairs. Attempt 1 returned an upstream 503 before request checks ran. After service recovery, attempt 2 rejected format=xml; format=json is supported. The latest request uses json and a verified reader role. It returns a generic "retrieval denied" for record R-old. A control request with the same role, region and format retrieves R-new successfully. Current policy allows readers to retrieve records younger than 90 days and forbids retrieval of older records for every role; R-new is 20 days old and R-old is 120 days old. The team has one recovery action left and is considering more retries, broader credentials or another format change. Which interpretation best uses the full trace?

### Options

**A**

The remaining failure is a business-policy restriction: the current input and reader access work on the control, while the target exceeds the age cutoff; explain the restriction rather than repeating the earlier remedies.

**B**

The remaining failure is transient because the first attempt returned 503; spend the last action retrying R-old with backoff.

**C**

The remaining failure is validation because xml once failed; spend the last action trying another encoding despite the successful json control.

**D**

The remaining failure is permission-related because the latest text says denied; obtain a broader role to bypass the age cutoff.

Correct answer: A

### Explanation

Earlier transient and validation failures do not remain the diagnosis after they are corrected. The matched control and policy show why the current target is denied despite usable input and reader access.

## Question 7

Type: single\_choice
Knowledge point: The distinction between transient errors (timeouts, service unavailability), validation errors (invalid input), business errors (policy violations), and permission errors

Under an application taxonomy that separates input structure, access permissions and domain policy, a structurally valid, authorized 90-day export is rejected by the product's 30-day rule. Which category applies?

### Options

**A**

Business error

**B**

Transient error

**C**

Protocol error

**D**

Permission error

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — Business error**: The domain policy rejects an otherwise valid authorized operation.
* **B — Transient error**: No temporary dependency failure is described.
* **C — Protocol error**: The protocol request is valid.
* **D — Permission error**: The caller is authorized; the range violates product policy.

## Question 8

Type: multiple\_choice
Knowledge point: The distinction between transient errors (timeouts, service unavailability), validation errors (invalid input), business errors (policy violations), and permission errors

Which two statements correctly distinguish protocol errors from tool execution errors? (Choose 2.)

### Options

**A**

An unknown tool name is a protocol error returned as JSON-RPC message.

**B**

A valid invocation reaches the tool, whose call to an external API fails during a temporary outage; the tool reports isError=true.

**C**

A malformed request payload is generally treated as a retriable business error.

**D**

A policy violation is reported as an unknown-tool protocol error.

Correct answer: A, B

### Explanation

Correct answers: A, B.

Option analysis:

* **A — An unknown tool name is a protocol error returned as JSON-RPC message.**: An unknown tool name is a protocol-level request problem.
* **B — A valid invocation reaches the tool, whose call to an external API fails during a temporary outage; the tool reports isError=true.**: The failure occurs within tool execution and can be represented in its result.
* **C — A malformed request payload is generally treated as a retriable business error.**: Malformed protocol input is not a retriable business operation.
* **D — A policy violation is reported as an unknown-tool protocol error.**: A policy rejection does not mean the requested tool is unknown.

## Question 9

Type: single\_choice
Knowledge point: Why uniform error responses (generic "Operation failed") prevent the agent from making appropriate recovery decisions

An MCP weather tool returns isError: true with the text Operation failed. The same message is used when the caller omits location, when the upstream weather API times out, and when a request violates a business policy. What change best enables an agent to choose an appropriate next action?

### Options

**A**

Return structured metadata identifying error category, retryability, and description.

**B**

Return the failure text without isError so the agent infers failure from context.

**C**

Automatically retry every failed API call three times before reporting any final result.

**D**

Convert every tool failure into an empty but technically successful result object.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — Return structured metadata identifying error category, retryability, and description.**: These fields distinguish correction, bounded retry and policy explanation.
* **B — Return the failure text without isError so the agent infers failure from context.**: Removing the failure marker weakens status interpretation.
* **C — Automatically retry every failed API call three times before reporting any final result.**: Uniform retries waste attempts on unchanged invalid or prohibited requests.
* **D — Convert every tool failure into an empty but technically successful result object.**: An empty success misrepresents failure as valid no-data output.

## Question 10

Type: single\_choice
Knowledge point: Why uniform error responses (generic "Operation failed") prevent the agent from making appropriate recovery decisions

An agent calls an MCP search tool with date\_from=tomorrow even though the tool requires an ISO date. It receives only Operation failed. Why does that response block effective self-correction?

### Options

**A**

It omits the invalid field and format, so the agent cannot distinguish a correction from a retry.

**B**

It falsely implies that the search completed successfully but returned no matching records.

**C**

It confirms that the request reached the upstream provider and skipped the input validation checks.

**D**

It allows the agent to safely reuse the exact same malformed argument in future search requests.

Correct answer: A

### Explanation

Useful validation feedback would identify date\_from, the expected ISO date format, and the need for a corrected value before resubmission.

## Question 11

Type: single\_choice
Knowledge point: Why uniform error responses (generic "Operation failed") prevent the agent from making appropriate recovery decisions

A client receives four classified tool failures: malformed input; a valid token lacking the required role; a permanent business-policy denial; and a timeout on a read-only operation that is safe to repeat. Which recovery mapping respects each cause?

### Options

**A**

Correct the input; request the required role; explain the allowed policy path; retry the read with a bounded delay.

**B**

Retry the same input; request the required role; explain the allowed policy path; retry the read with a bounded delay.

**C**

Correct the input; refresh the same-role token; explain the allowed policy path; retry the read with a bounded delay.

**D**

Correct the input; request the required role; retry the same denied request; retry the read with a bounded delay.

Correct answer: A

### Explanation

A applies a different recovery to each supplied cause. Correct malformed input before resubmitting it; obtain the required authorization role rather than refresh an already valid same-role token; explain the permitted policy path rather than repeat the prohibited request; and retry the stated read-only, repeat-safe timeout with a bounded delay. The first three unchanged retries do not remove their causes. Safe replay of the last operation is an explicit premise, not a consequence of the word timeout or a general guarantee for all tool operations. These recovery classes are application logic distinct from MCP failure signaling.

## Question 12

Type: multiple\_choice
Knowledge point: Why uniform error responses (generic "Operation failed") prevent the agent from making appropriate recovery decisions

An MCP inventory tool rejects a request because warehouse\_id is missing. Which two response elements would help the agent recover without treating this validation error as a transient outage? (Choose 2.)

### Options

**A**

The isError property explicitly set to true

**B**

A text stating warehouse\_id is required

**C**

The same generic text used for every failure

**D**

Empty result list marked as success

Correct answer: A, B

### Explanation

Obtain a valid warehouse\_id from authorized context or the user; do not invent one.

## Question 13

Type: single\_choice
Knowledge point: The difference between retryable and non-retryable errors, and how returning structured metadata prevents wasted retry attempts

An MCP tool rejects a request because its accountId is malformed. Which response design best prevents the agent from wasting retries after it fixes no input?

### Options

**A**

Return an empty successful result so the calling agent can clearly infer no account was found.

**B**

Return isError=true with category validation, isRetryable=false, and accountId's required format, such as ACCT- followed by eight digits.

**C**

Return only the text "Operation failed" and let the agent choose a specific retry limit.

**D**

Return a timeout error because all failed tool calls should always be treated as transient.

Correct answer: B

### Explanation

The format is the stated application's accountId contract; metadata guides recovery while the caller implements its retry policy.

## Question 14

Type: single\_choice
Knowledge point: The difference between retryable and non-retryable errors, and how returning structured metadata prevents wasted retry attempts

A read-only MCP lookup has no side effects and is safe to repeat under a bounded retry policy. Which failure is most appropriately marked retryable without changing its business inputs?

### Options

**A**

A request violates a permanent business policy rule.

**B**

The caller lacks access permission for the resource.

**C**

A temporary service timeout prevents tool completion.

**D**

A required input argument fails the schema validation.

Correct answer: C

### Explanation

For state-changing tools with an unknown execution outcome, first reconcile status or use the documented idempotency contract; timeout alone does not establish safe replay.

## Question 15

Type: multiple\_choice
Knowledge point: The difference between retryable and non-retryable errors, and how returning structured metadata prevents wasted retry attempts

An MCP tool returns Operation failed as ordinary text when a user requests an export that policy permanently prohibits. The agent interprets the text as a successful tool response and retries the request three times. Its caller recognizes isError and already implements a policy that skips unchanged retries when an error payload contains retriable: false. Which two response changes most directly address the observed interpretation and retry failures? (Choose 2.)

### Options

**A**

Mark the result as an error so the agent does not interpret it as success.

**B**

Include retriable: false and explain that the policy violation is permanent.

**C**

Increase the maximum retry count for the agent to five attempts.

**D**

Remove the explanation text completely so the agent will have less to parse.

Correct answer: A, B

### Explanation

A and B address separate failures. Return a valid failed tool result with isError true so this caller recognizes the execution failure, then include its consumed retriable: false field and a customer-readable explanation of the permanent policy restriction. Together they correct success interpretation and suppress unchanged retries in the stated implementation. More attempts do not alter policy eligibility; deleting the reason removes useful recovery context. The retriable field is an application convention, and it works here because the caller already implements its meaning; MCP alone does not enforce this retry policy.

## Question 16

Type: single\_choice
Knowledge point: Returning structured error metadata including errorCategory (transient/validation/permission), isRetryable boolean, and human-readable descriptions

An MCP search call receives an upstream 503 response with `Retry-After: 5`; the service status endpoint confirms a temporary database failover. The same validated query and credentials succeeded just before failover. The application uses errorCategory and isRetryable in its error payload. Which metadata best supports a bounded retry after the indicated delay?

### Options

**A**

errorCategory="transient", isRetryable=true, description="Temporary database failover; retry after 5 seconds within the retry budget."

**B**

errorCategory="permission", isRetryable=true, description="Repeat immediately with the same credentials indefinitely."

**C**

errorCategory="validation", isRetryable=false, description="Rewrite the query even though validation passed."

**D**

description="search failed" without category or retry guidance.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — errorCategory="transient", isRetryable=true, description="Temporary database failover; retry after 5 seconds within the retry budget."**: The explicit failover and 503/retry timing support a transient classification and bounded delayed retry.
* **B — errorCategory="permission", isRetryable=true, description="Repeat immediately with the same credentials indefinitely."**: The evidence identifies temporary failover, not a permission denial; immediate indefinite retry also ignores the timing and budget.
* **C — errorCategory="validation", isRetryable=false, description="Rewrite the query even though validation passed."**: No invalid query is observed, so this invents a validation cause.
* **D — description="search failed" without category or retry guidance.**: The generic message omits the known actionable cause and recovery timing.

## Question 17

Type: single\_choice
Knowledge point: Returning structured error metadata including errorCategory (transient/validation/permission), isRetryable boolean, and human-readable descriptions

An MCP document tool returns isError: true and the description "Access denied," but it omits both errorCategory and isRetryable. The agent repeatedly reacquires a token and retries, even though the user lacks the required role. Which replacement response is best?

### Options

**A**

isError: false with the exact same description so the agent can continue processing.

**B**

isError=true with application content errorCategory="permission", isRetryable=false, the required role name, and the approved access-request path.

**C**

isError: true with errorCategory: "transient" and isRetryable: true to allow retries.

**D**

An unstructured stack trace that exposes internal authorization service details.

Correct answer: B

### Explanation

Correct answer: B.

Option analysis:

* **A — isError: false with the exact same description so the agent can continue processing.**: Success conflicts with denied access.
* **B — isError=true with application content errorCategory="permission", isRetryable=false, the required role name, and the approved access-request path.**: The response identifies the actual authorization correction without unnecessary internal detail.
* **C — isError: true with errorCategory: "transient" and isRetryable: true to allow retries.**: Retrying or refreshing a token does not grant a missing role.
* **D — An unstructured stack trace that exposes internal authorization service details.**: Internal stack details do not provide the required safe recovery path.

## Question 18

Type: single\_choice
Knowledge point: Returning structured error metadata including errorCategory (transient/validation/permission), isRetryable boolean, and human-readable descriptions

A tool requires limit to be a positive integer and rejects limit=-5\. Which explanation best accompanies its validation error?

### Options

**A**

"A generic system error occurred during execution"

**B**

"The incoming request was rejected by the tool API."

**C**

"limit must be an integer greater than zero; supply a value such as 1."

**D**

"Retry the exact same request until the tool accepts."

Correct answer: C

### Explanation

Correct answer: C.

Option analysis:

* **A — "A generic system error occurred during execution"**: A generic message omits the field and correction.
* **B — "The incoming request was rejected by the tool API."**: A rejection statement omits the required constraint.
* **C — "limit must be an integer greater than zero; supply a value such as 1."**: The field, integer type and lower boundary are explicit.
* **D — "Retry the exact same request until the tool accepts."**: Unchanged invalid input will remain invalid.

## Question 19

Type: multiple\_choice
Knowledge point: Returning structured error metadata including errorCategory (transient/validation/permission), isRetryable boolean, and human-readable descriptions

An application puts errorCategory, isRetryable and a human-readable description in MCP tool-result content. Here isRetryable means "the scheduler may replay this operation now." create\_shipment is not idempotent. A timeout occurs after the upstream service accepts operation S-9, so completion is unknown. The current payload says transient, true, "Try again"; the scheduler replays it and creates a duplicate shipment. An existing status endpoint can resolve S-9 after processing settles, returning committed with a shipment ID or conclusively not\_committed. Which two metadata-flow changes jointly preserve the true failure category and allow recovery without premature replay? (Choose 2.)

### Options

**A**

For the unresolved timeout, keep errorCategory=transient but set isRetryable=false; explain that completion is unknown and direct status reconciliation using S-9 before another creation attempt.

**B**

After reconciliation, preserve a committed shipment as the successful outcome; only for conclusively not\_committed emit retry guidance with isRetryable=true and the bounded retry conditions.

**C**

Keep isRetryable=true for the unresolved timeout and append a warning about possible duplicates, leaving the scheduler's boolean-driven behavior unchanged.

**D**

Change errorCategory to permission whenever isRetryable=false, and permanently abandon every operation that experienced a timeout.

Correct answer: A, B

### Explanation

Cause and immediate replay safety are different. A transient transport failure can leave a non-idempotent operation in an unknown state; structured metadata must prevent automatic replay until the application resolves that state.

## Question 20

Type: multiple\_choice
Knowledge point: Returning structured error metadata including errorCategory (transient/validation/permission), isRetryable boolean, and human-readable descriptions

An MCP tool already sets outer CallToolResult isError=true after rejecting start\_date later than end\_date. Which two entries in its application-defined payload identify the category and correction? (Choose 2.)

### Options

**A**

errorCategory="validation".

**B**

description="start\_date must be on or before end\_date; correct the supplied range before retrying."

**C**

A successful-operation marker that tells the agent the rejected query completed successfully.

**D**

description="Request failed" with isRetryable=true but no explanation of the date-order rule.

Correct answer: A, B

### Explanation

Correct answers: A, B.

Option analysis:

* **A — errorCategory="validation".**: This categorizes the supplied values as an input-validation problem.
* **B — description="start\_date must be on or before end\_date; correct the supplied range before retrying."**: The rule explains the relationship that must change before a meaningful retry.
* **C — A successful-operation marker that tells the agent the rejected query completed successfully.**: A success marker contradicts the rejected operation.
* **D — description="Request failed" with isRetryable=true but no explanation of the date-order rule.**: A generic failure plus retry permission does not explain what to fix and can prompt the same invalid call again.

## Question 21

Type: single\_choice
Knowledge point: Including retriable: false flags and customer-friendly explanations for business rule violations so the agent can communicate appropriately

An MCP subscription tool rejects a cancellation because the account is already closed. For a caller that skips unchanged retries when retriable: false is present, which response provides that signal and explains the outcome to the user?

### Options

**A**

A successful empty result payload providing no textual explanation.

**B**

An error with retriable: false stating the account is already closed.

**C**

A transient error instructing the agent to retry after one full minute.

**D**

A detailed stack trace from the subscription database layer.

Correct answer: B

### Explanation

This answer follows the stated tool contract that rejects an already-closed account; other cancellation APIs can define different idempotent-success behavior.

## Question 22

Type: single\_choice
Knowledge point: Including retriable: false flags and customer-friendly explanations for business rule violations so the agent can communicate appropriately

A refund tool's automatic path permits purchases within 30 days. A 47-day-old purchase is rejected, and exceptions require a separate human review that has not occurred. Which explanation best accompanies retriable=false?

### Options

**A**

"Please try submitting this exact refund request again later."

**B**

"Refund processing failed for an unknown and unspecified cause."

**C**

"This purchase exceeds the 30-day automatic refund window; the current request cannot be processed automatically. An exception requires separate human review."

**D**

"The internal payment-service trace data is attached right below."

Correct answer: C

### Explanation

Correct answer: C.

Option analysis:

* **A — "Please try submitting this exact refund request again later."**: Repeating unchanged does not change order age or policy.
* **B — "Refund processing failed for an unknown and unspecified cause."**: The cause is known and should be explained.
* **C — "This purchase exceeds the 30-day automatic refund window; the current request cannot be processed automatically. An exception requires separate human review."**: This states the actual path restriction and the unperformed exception process.
* **D — "The internal payment-service trace data is attached right below."**: Internal trace data does not explain the customer-facing policy.

## Question 23

Type: multiple\_choice
Knowledge point: Including retriable: false flags and customer-friendly explanations for business rule violations so the agent can communicate appropriately

An agent sends an MCP request to merge two customer records. The tool refuses because policy prohibits merging records from different legal entities. The caller currently retries every unmarked error; its implemented retry policy skips repeats when retriable: false is present. The agent then tells the user only "Operation failed." Which two additions to the tool response most directly fix both behaviors? (Choose 2.)

### Options

**A**

Include a retriable: false flag in the error

**B**

Include a clear explanation of the policy rule

**C**

Configure a larger automatic retry budget limit

**D**

Return an empty successful response payload

Correct answer: A, B

### Explanation

The denied operation attempted to merge records from different legal entities; the explanation should preserve that specific policy reason.

## Question 24

Type: multiple\_choice
Knowledge point: Including retriable: false flags and customer-friendly explanations for business rule violations so the agent can communicate appropriately

A refund tool has returned isError: true with application metadata retriable: false, reason: "outside\_30\_day\_window", and order age 47 days. It also includes an internal stack trace. The customer asks whether resubmitting now will succeed. Which two response behaviors correctly apply this result? (Choose 2.)

### Options

**A**

Explain that this order is 47 days old and the 30-day refund rule blocks the requested refund.

**B**

State that resending the same request will not change this outcome and omit the internal stack trace.

**C**

Promise an automatic retry because the tool returned an error rather than a completed refund.

**D**

Describe the order as outside the automatic window but promise an exception has already been authorized.

Correct answer: A, B

### Explanation

A and B accurately translate the supplied result. The order is 47 days old, beyond this tool application's 30-day refund window, and the response marks the failure nonretryable. Resending the same request does not change the age or that rule. Explain that restriction plainly and omit the internal stack trace. The result neither describes a transient outage nor authorizes an exception, so promise neither an automatic retry nor an approved exception. The numeric window and retriable field belong to this application contract; they are not universal MCP refund rules.

## Question 25

Type: single\_choice
Knowledge point: Implementing local error recovery within subagents for transient failures, propagating to the coordinator only errors that cannot be resolved locally along with partial results and what was attempted

A research subagent retrieves four of five documents, then receives a temporary rate-limit error on the last request. After its permitted local retry fails, what should it send to the coordinator?

### Options

**A**

Only the rate-limit message, discarding all four of the retrieved documents.

**B**

Partial results, the failed request, and all previous recovery attempts.

**C**

Return the four retrieved documents and label the overall task complete without identifying the missing fifth document.

**D**

Return the four documents and the rate-limit status but omit the failed request and attempts already used.

Correct answer: B

### Explanation

Correct answer: B.

Option analysis:

* **A — Only the rate-limit message, discarding all four of the retrieved documents.**: Discarding successful work causes unnecessary rework.
* **B — Partial results, the failed request, and all previous recovery attempts.**: The package supports targeted recovery while preserving completed evidence.
* **C — Return the four retrieved documents and label the overall task complete without identifying the missing fifth document.**: The fifth-document gap remains unresolved.
* **D — Return the four documents and the rate-limit status but omit the failed request and attempts already used.**: Without request and attempt details the hub may repeat work blindly.

## Question 26

Type: single\_choice
Knowledge point: Implementing local error recovery within subagents for transient failures, propagating to the coordinator only errors that cannot be resolved locally along with partial results and what was attempted

A worker must retrieve partitions A, B and C for snapshot r7 before the coordinator computes a total. A returns checksum-verified r7 data; B succeeds but its response says r6; C times out during a confirmed transient outage after all permitted local retries. The partitions are independent, but the total requires all three at r7\. Which escalation report best supports valid targeted recovery?

### Options

**A**

Report A/B as complete and ask the coordinator only to retry C, because successful transport proves B is usable.

**B**

Preserve A as valid r7 partial work; mark B as stale/incompatible and C as unavailable; include partition IDs, snapshot evidence, C's retry attempts and errors, and request recovery of B/C before computing the total.

**C**

Discard A, report only a generic failure, and restart every worker without retaining snapshot or retry evidence.

**D**

Report a provisional complete total using r7 A, r6 B and an estimate of C derived from A.

Correct answer: B

### Explanation

The statement “Preserve A as valid r7 partial work; mark B as stale/incompatible and C as unavailable; include partition IDs, snapshot evidence, C's retry attempts and errors, and request recovery of B/C before computing the total.” preserves usable work and exposes the exact remaining obligations. Partition A is independently checksum-verified at r7\. B arrived successfully but is r6, so transport success does not satisfy the required snapshot. C has no usable result after the permitted local transient retries. Keep A, identify B as incompatible and C as unavailable, and send their IDs, snapshot evidence and C's attempts and errors so the coordinator can recover B/C at r7\. The total must wait until all three partitions meet that requirement. Discarding verified A, hiding diagnostics or estimating C cannot establish a complete r7 total.

## Question 27

Type: single\_choice
Knowledge point: Distinguishing between access failures (needing retry decisions) and valid empty results (representing successful queries with no matches)

A valid MCP customer search completes successfully and returns an empty list for the full requested scope, with no further pages. How should the agent interpret it?

### Options

**A**

As an access failure that requires a network retry.

**B**

As a successful query with no matching customers.

**C**

As proof that the tool ignored the request.

**D**

As a permission error requiring credential rotation.

Correct answer: B

### Explanation

Correct answer: B.

Option analysis:

* **A — As an access failure that requires a network retry.**: No access failure is reported.
* **B — As a successful query with no matching customers.**: The completed full search found no matching customers.
* **C — As proof that the tool ignored the request.**: An empty valid result is not evidence of an ignored request.
* **D — As a permission error requiring credential rotation.**: No authorization failure is reported.

## Question 28

Type: multiple\_choice
Knowledge point: Distinguishing between access failures (needing retry decisions) and valid empty results (representing successful queries with no matches)

Which two outcomes indicate an MCP access failure that needs error handling or a retry decision rather than a normal empty-result interpretation? (Choose 2.)

### Options

**A**

A completed search returns an empty array.

**B**

The connection to the MCP server is refused.

**C**

Authentication credentials are rejected.

**D**

A completed filter finds zero qualifying records.

Correct answer: B, C

### Explanation

Access failures require the appropriate recovery decision; rejected credentials are not a reason to repeat the same unauthenticated request indefinitely.

## Question 29

Type: multiple\_choice
Knowledge point: Distinguishing between access failures (needing retry decisions) and valid empty results (representing successful queries with no matches)

For query `warehouse=W1, sku=S9`, an MCP inventory tool returns `isError:false` and `structuredContent:{"status":"complete","items":[],"nextCursor":null}`. Its contract says complete with no nextCursor means the query finished without omitted pages. A different query for W2 ends with a network timeout and no result. Which two next-step judgments are supported? (Choose 2.)

### Options

**A**

Record that the completed W1/S9 query found no matching items; do not retry it solely because its list is empty.

**B**

Keep W2's inventory unknown and use the access-failure recovery policy rather than reporting no stock there.

**C**

Conclude that neither W1 nor W2 has matching inventory because both yielded no item records.

**D**

Retry W1 until it returns at least one item, treating every empty list as a failed call.

Correct answer: A, B

### Explanation

A and B respect both query identity and completion evidence. W1/S9 returned success, complete status and no next cursor; under the stated contract all pages for that query were processed, so its empty list means no matches within that scope. It does not establish that the warehouse has no other inventory. W2 timed out without a result, so its stock remains unknown and needs the applicable access-failure recovery. No returned rows alone cannot distinguish these cases, and a nonempty list is not required for query success.

## Question 30

Type: single\_choice
Knowledge point: Distinguishing between access failures (needing retry decisions) and valid empty results (representing successful queries with no matches)

An agent caches a tool result of \[\] as "no matching orders." Later review shows the tool returned \[\] after swallowing a database connection error. What design change most directly prevents this false empty-result interpretation?

### Options

**A**

Represent lookup failures explicitly apart from successful empty results, and invalidate cached no-match entries known to come from swallowed connection errors.

**B**

Retry every successful empty result until at least one valid order record appears.

**C**

Treat all empty array responses as system authentication or authorization failures.

**D**

Remove all result-status metadata so the agent relies only on array length.

Correct answer: A

### Explanation

A repairs both future interpretation and the known historical consequence. A swallowed database connection error is not a successful search finding no orders. Represent failure explicitly and separately from a successful empty result, then invalidate only the no-match cache entries known to derive from those errors. Otherwise the corrected interface can still leave old false observations in use. Valid empty queries remain meaningful and need not be retried until data appears; an empty array alone proves neither authentication failure nor success. Removing outcome status retains the ambiguity.

## Question 31

Type: single\_choice
Knowledge point: Distinguishing between access failures (needing retry decisions) and valid empty results (representing successful queries with no matches)

A paginated query succeeds with an empty current page but includes next\_cursor=N2\. What must the agent establish before reporting that the full requested query has no matches?

### Options

**A**

Follow the remaining pagination under the contract and confirm complete successful coverage with no matches.

**B**

Treat the first empty page as proof that the full result set is empty.

**C**

Interpret any empty page as a network outage even when the status is success.

**D**

Interpret next\_cursor as proof of failed authentication.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — Follow the remaining pagination under the contract and confirm complete successful coverage with no matches.**: Only complete successful coverage supports the full-scope no-match conclusion.
* **B — Treat the first empty page as proof that the full result set is empty.**: A remaining cursor means later pages have not been checked.
* **C — Interpret any empty page as a network outage even when the status is success.**: Successful empty pages are not inherently network failures.
* **D — Interpret next\_cursor as proof of failed authentication.**: A pagination cursor is not an authentication error.

