Anthropic CCAR-P (Claude Certified Architect - Professional) Practice Test 16

Question 150

Two tools have similar names, but one previews a customer change and the other commits it. How should their interfaces distinguish them?

  1. Expose the preview operation first and leave both descriptions unchanged
  2. State effects and required authority clearly in each description
  3. Give both tools the same description for consistency
  4. Add detailed output examples without stating which operation writes
  5. Hide the preview tool so the model has fewer choices

Explanation

Correct Answer

B:

Tool selection depends on understanding consequences. Explicit preview-versus-commit semantics reduce accidental use while execution-side authorization enforces the actual boundary.

Incorrect Answers

A:

Ordering may influence selection but does not explain which operation commits a change. The tool contract must communicate effects and required authority.

C:

Identical descriptions hide the important behavioral difference. Consistent formatting should not erase the distinction between observation and modification.

D:

Examples can clarify result shape while leaving side effects ambiguous. The decisive distinction is whether invocation changes external state.

E:

Reducing choices by removing the safe preparation capability can make the workflow less controllable. The issue is clarity, not simply tool count.

Question 151

A lookup returns an upstream timeout, but the adapter converts it to an empty customer list. What should the adapter return instead?

  1. A distinct execution-failure result
  2. The same empty list with a longer explanation elsewhere
  3. A fabricated customer record marked likely
  4. A success flag because the adapter handled the exception

Explanation

Correct Answer

A:

An empty result means the search completed and found nothing. A timeout means the answer is unknown, so conflating them changes business meaning.

Incorrect Answers

B:

Downstream code may consume the empty list as authoritative. The result contract itself must distinguish absence from failed retrieval.

C:

A plausible record does not resolve the failed lookup. It creates unsupported data that later workflow steps might treat as real.

D:

Handling an exception prevents a crash but does not make the lookup successful. Operational recovery and business completion are different outcomes.

Question 152

A catalog tool returns twenty records and a continuation token. The assistant reports that the catalog contains only twenty records. What is missing?

  1. A larger model to count the first page again
  2. A different sorting order for the first page
  3. Pagination handling or an explicit partial-result statement
  4. A retry of the identical first-page request

Explanation

Correct Answer

C:

A page is not necessarily the full result set. The integration must follow continuation when completeness is required or clearly expose the limited scope.

Incorrect Answers

A:

The count of returned records may be correct while the completeness claim is wrong. The missing information is the continuation contract.

B:

Sorting changes which records appear first, not whether more pages exist. It does not establish the total catalog size.

D:

Repeating the initial page will not traverse the continuation. The next request must use the appropriate pagination state.

Question 153

A document tool returns a PDF as raw bytes. An adapter decodes those bytes as UTF-8 text and forwards the corrupted result. What should its contract provide?

  1. A supported binary representation or artifact reference with explicit media type
  2. The filename and file length, with the content omitted
  3. A lossy UTF-8 conversion that silently replaces invalid bytes
  4. A longer text response limit while retaining the UTF-8 decoding

Explanation

Correct Answer

A:

Binary documents need an encoding or reference that preserves their bytes and identifies the content type. Arbitrary text decoding can irreversibly corrupt the payload.

Incorrect Answers

B:

Metadata can identify an artifact but does not provide its contents or a way to retrieve them. The receiver needs a supported content representation or usable reference.

C:

Replacing undecodable bytes discards information and can corrupt the artifact. Binary content needs a representation that preserves it under an agreed media-type contract.

D:

More capacity does not repair an invalid representation of binary data. The adapter must preserve the document rather than simply forward more corrupted text.

Question 154

An agent needs a customer ID before querying that customer's invoices. It proposes both calls in parallel with a guessed ID. What should the executor do?

  1. Resolve the customer lookup before constructing the dependent call
  2. Execute both because parallel calls are always faster
  3. Use the first invoice response to infer the customer
  4. Accept the guessed ID if it is syntactically valid

Explanation

Correct Answer

A:

The invoice request depends on an authoritative result from the first operation. Parallelism is valid only after the necessary input is known.

Incorrect Answers

B:

A faster wrong lookup does not meet the task. Dependency constraints take precedence over the potential latency benefit of concurrency.

C:

That reverses the dependency and can expose or misattribute another customer's data. Identity must be resolved before the scoped lookup.

D:

Valid format does not establish that it identifies the intended customer. The missing information is semantic identity, not schema compliance.

Question 155

A tool permits status values open, pending, and closed. The model submits resolved. Which response best preserves the contract?

  1. Ask the storage layer to keep the unsupported value permanently
  2. Accept the string because it is valid JSON
  3. Map every unknown status to closed
  4. Reject the unsupported value with an actionable validation error

Explanation

Correct Answer

D:

A machine interface should not silently invent equivalence between business states. Clear allowed values let the caller correct the request under the actual contract.

Incorrect Answers

A:

Persisting invalid states weakens downstream assumptions. The system should preserve its defined state vocabulary or explicitly version the contract.

B:

JSON syntax does not establish membership in the permitted value set. Schema and business validation must check the field's allowed semantics.

C:

Unknown terms may have different meanings. Defaulting to a terminal state can cause an unintended and consequential workflow transition.

Question 156

A remote tool changes a required field name without updating the client. Calls begin failing validation. What is the most direct corrective action?

  1. Reconcile the schema version and client argument mapping
  2. Treat the validation error as a transient network outage
  3. Increase retry attempts without changing the payload
  4. Remove the required field from every request

Explanation

Correct Answer

A:

The client and server disagree on the interface. Updating the supported contract and validating compatibility addresses the specific failure.

Incorrect Answers

B:

The error identifies invalid input, not an unavailable transport. Misclassifying it leads to ineffective retries and poor incident diagnosis.

C:

A deterministic schema mismatch will normally recur. Repetition does not make the old field name satisfy the new required contract.

D:

Omitting required data makes the request no more valid. The client must supply the field expected by the supported server version.

Question 157

A tool returns large record IDs as decimal strings. A JavaScript adapter converts them to Number values, causing two distinct IDs to become equal. These identifiers are opaque and require no arithmetic. Which contract change directly fixes the collision?

  1. Format the converted Number with more decimal places
  2. Hash each Number after conversion and use the hash as the record ID
  3. Preserve the original identifier strings through parsing, storage, and transmission
  4. Validate only that each converted Number is nonnegative
  5. Convert the rounded Number back to a string before each tool call

Explanation

Correct Answer

C:

Opaque identifiers need exact equality, not arithmetic. Retaining their original string representation avoids rounding by the numeric adapter and preserves distinct record identities.

Incorrect Answers

A:

Formatting cannot recover digits already lost during conversion. The original string needs to survive the adapter without a lossy numeric step.

B:

Values that have already become equal produce the same input to the hash. Hashing after precision loss cannot restore their original identity.

D:

A sign check says nothing about exact representability. Both rounded values can be nonnegative while referring to different original records.

E:

Converting back produces a string for the rounded value. It cannot reconstruct the original digits that were discarded at the first conversion.

Question 158

A remote analysis service acknowledges a cancellation request, but its contract says completion may win the race and only a later terminal status establishes the outcome. How should the adapter report the acknowledgment?

  1. Cancelled, because any cancellation acknowledgment proves the work stopped
  2. Failed, because requesting cancellation is itself an execution error
  3. Cancellation requested, with the final outcome still pending
  4. Completed, because the original operation was accepted before cancellation

Explanation

Correct Answer

C:

The acknowledgment confirms receipt of the request, not that execution stopped. The adapter must wait for the contracted terminal state before claiming cancellation or completion.

Incorrect Answers

A:

That interpretation contradicts the service contract. The operation may already have completed, so the acknowledgment cannot establish the final outcome.

B:

Cancellation is a lifecycle request rather than evidence of analysis failure. The final status may be completed or cancelled depending on the race.

D:

Earlier acceptance does not prove successful completion. The adapter needs the authoritative terminal status to determine which outcome actually occurred.

Question 159

A service account can read every tenant, but the assistant serves individual employees with narrower permissions. Which identity context should govern document retrieval?

  1. The service account's broadest available permissions
  2. The requesting user's effective permissions
  3. The model's estimate of whether the request is reasonable
  4. The tenant mentioned in the natural-language question alone

Explanation

Correct Answer

B:

The service's technical access must not silently become every user's entitlement. Retrieval needs to enforce the caller's allowed scope on each request.

Incorrect Answers

A:

This would expose data beyond the employee's authority. Infrastructure credentials are not a substitute for user-level authorization.

C:

Reasonableness is not an authorization grant. Access decisions must follow explicit identity and policy information outside the model.

D:

A user can name a resource they are not permitted to access. The requested scope must be checked against authenticated entitlements.

Question 160

A user loses access to a folder, but a long-running assistant still holds an old permissions snapshot. What should protect later reads?

  1. Revalidate permissions at the resource-access boundary
  2. Assume login-time authorization lasts for every future action
  3. Ask the user whether access was revoked
  4. Keep serving cached documents until the conversation ends

Explanation

Correct Answer

A:

Entitlements can change during a session. The data service should apply current authorization rather than rely indefinitely on a stale snapshot.

Incorrect Answers

B:

Authentication duration does not necessarily freeze resource permissions. Later revocation must affect subsequent protected operations.

C:

User self-report cannot enforce an authoritative permission change. The resource owner or policy system must determine current entitlement.

D:

Session continuity does not override revocation. Cached content also needs an access policy that reflects the current authorization boundary.

Claude Certified Architect - Professional (CCAR-P) Practice Tests