100% Latest & Updated Anthropic CCA-F Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 200
An MCP client caches a reference-template catalog that was originally loaded through a read-only resource. After the publisher updates a template, clients keep presenting the old version as current. Which resource-handling change prevents stale template selection?
- Track resource version or update notification and refresh the referenced content before declaring a template current.
- Replace the read-only resource with a mutation tool that creates a new billing record whenever a template is viewed.
- Rely on the cached resource forever because templates usually change infrequently.
- Change the display title of the cached template without validating its underlying content version.
- Clear all user session state on each lookup but keep loading the same old resource body.
Explanation
Correct Answer
A:A read-only resource is a sound way to publish templates, but clients must detect when the referenced material changes. A version, cache policy or supported update signal should trigger re-fetch and identity verification before the template is treated as current. This addresses freshness at the resource boundary without granting mutation capabilities.
Incorrect Answers
B:Creating billing records just to read reference material reintroduces a side effect that a catalog should not have. The problem is stale cached content, not missing ability to mutate business state. Retain a read-only resource and track content versions or update events to refresh clients safely.
C:Infrequent changes are still changes, and the case states a published update has already occurred. An indefinite cache would continue to show old instructions as current. A supported freshness policy or change notification must make the client invalidate its former version before relying on it.
D:Renaming a locally cached item does not alter its content or prove it represents the publisher’s latest revision. The important identity is the resource and its verified version. A client should refresh and validate the updated resource rather than cosmetically altering a stale title.
E:Clearing dialogue state cannot force an MCP resource cache to fetch a newer body if the caching policy still accepts the old version. It also loses unrelated context. Resource change notification or explicit version-aware refresh solves the actual stale-template problem.
Question 201
An MCP integration returns outputs in inconsistent shapes across team members' SDK versions. Which implementation choice best closes the specific gap described?
- Put team-shared server configuration in the appropriate project-scoped MCP configuration.
- Validate external instructions against approved configuration and do not follow untrusted remediation text.
- Pin compatible protocol/server versions and validate the declared output schema.
- Scope the integration to authorized projects and users rather than enable it everywhere.
Explanation
Correct Answer
C:Pin compatible MCP/SDK/server revisions where appropriate and validate structured output against declared schemas at the receiving boundary. Add representative integration tests so mismatches are detected before agents consume inconsistent fields.
Incorrect Answers
A:Project-scoped configuration ensures teams use a common server endpoint but does not guarantee they run compatible client SDK/protocol versions or validate the same result schema.
B:Ignoring untrusted remediation text is crucial for prompt-injection defense; it cannot resolve shape drift introduced by different SDK versions on otherwise valid tool calls.
D:Narrowing integration visibility controls which users or projects can access it, but authorized users may still receive incompatible object shapes when their SDKs diverge.
Question 202
An MCP server supports one customer but is accidentally registered globally for all workspaces. Which architecture decision would most directly meet the stated requirement?
- Enforce tenant authentication and authorization inside the MCP service handler.
- Scope the integration to authorized projects and users rather than enable it everywhere.
- Put team-shared server configuration in the appropriate project-scoped MCP configuration.
- Distinguish connection failure from a successfully initialized empty tool catalog.
Explanation
Correct Answer
B:Register the MCP server only for the authorized customer project or user scope, avoiding availability in unrelated workspaces. Confirm effective settings and keep independent server-side tenant checks for defense in depth.
Incorrect Answers
A:Tenant authentication inside the server protects against cross-customer data access, but a globally registered connector can still appear in every agent’s tool menu and invite confusion or unnecessary calls.
C:A project-shared configuration is suitable only if the project is the correct authorized boundary. Putting the same customer-specific connector into every project configuration would retain the overbroad exposure.
D:Distinguishing connection failure from an empty catalog is useful in troubleshooting, but the catalog is improperly visible globally. Availability diagnostics do not fix the scope.
Question 203
A service's MCP tool contains a prompt injection telling the agent to ignore system rules. What should the team change first to resolve this exact failure mode?
- Treat tool output as untrusted data and enforce independent host permissions.
- Improve the action's name, purpose, and argument semantics in its server tool metadata.
- Distinguish connection failure from a successfully initialized empty tool catalog.
- Enforce tenant authentication and authorization inside the MCP service handler.
Explanation
Correct Answer
A:Treat server-returned instructions as untrusted data and verify any requested action against higher-priority policy and independent host permissions. A malicious snippet telling Claude to ignore safeguards must not be permitted to trigger privileged operations.
Incorrect Answers
B:Better tool metadata improves selection but does not protect against malicious instructions appearing inside a legitimate-looking tool result after invocation.
C:Tool discovery errors and an empty catalog are separate operational states; neither addresses the prompt-injection content being returned by a connected MCP server.
D:Tenant authentication restricts data access inside a service, but it does not ensure Claude rejects malicious language in authorized tool output. An attacker may inject content into an otherwise accessible resource.
Question 204
An MCP server crashes during initialization but the agent reports 'no tools are supported'. Which safeguard or workflow change provides the missing guarantee?
- Treat tool output as untrusted data and enforce independent host permissions.
- Namespace and describe server tools so agents can tell which backend owns each action.
- Improve the action's name, purpose, and argument semantics in its server tool metadata.
- Distinguish connection failure from a successfully initialized empty tool catalog.
- Separate resource discovery from controlled editor tools and enforce permissions per operation.
- Represent reusable reference content as an MCP resource rather than a destructive business action.
Explanation
Correct Answer
D:MCP initialization is a distinct protocol lifecycle operation with version and capability negotiation. If that exchange fails or the process exits, the client must report connection or initialization failure, not reinterpret the absence of a successful tools/list reply as an empty catalog. Retry or troubleshoot the server separately.
Incorrect Answers
A:Model-output trust boundaries matter after a server returns data, but here the MCP transport never initialized. Rejecting malicious output does not tell the user whether capability discovery succeeded. The client must represent initialization failure as an error rather than the valid but empty list of tools.
B:Namespaces can distinguish similarly named tools across multiple healthy servers, but there are no valid tool descriptions to disambiguate until the crashed MCP process is recovered. Renaming capabilities cannot fix a transport initialization failure. The orchestration layer should surface that failure explicitly.
C:Clear tool metadata improves tool selection once tools/list is available. In this case the server dies before initialization completes, so the client has no reliable catalog to interpret. The correct safeguard is to preserve the error state rather than claiming an empty supported-tool set.
E:Separating read resources from mutating tools reduces permission mistakes after the server is connected. It cannot establish whether a crashed server supports tools at all. An accurate status must distinguish failed setup from a successful connection returning zero tools.
F:MCP resources are useful for passive reference content, but choosing resource versus tool does not repair failure during connection setup. The agent still needs a truthful indicator that discovery never finished. A successful empty catalog is a different state from a failed initialization.
Question 205
A team wants a read-only resource catalog and a write-enabled document editor under one server. Which response is best supported by these operational facts?
- Separate resource discovery from controlled editor tools and enforce permissions per operation.
- Offer the catalog through a discoverable resource with relevant metadata.
- Enforce tenant authentication and authorization inside the MCP service handler.
- Represent reusable reference content as an MCP resource rather than a destructive business action.
- Namespace and describe server tools so agents can tell which backend owns each action.
Explanation
Correct Answer
A:Expose catalog documents as discoverable read-oriented MCP resources and document editing through explicitly named write tools. Apply authentication, tenant authorization and operation-specific permission checks to the mutating tool, not merely to server access. This preserves a useful shared server without allowing a catalog read to imply editor rights.
Incorrect Answers
B:Offering a catalog as a resource gives clients a clean way to list and read it, but the question also asks for a write-enabled editor under the same server. A resource declaration alone does not define who may edit documents or how write calls are authorized. Separate the editor as a controlled tool with enforced privileges.
C:Tenant authorization is essential for both read and write requests, but a single server-wide allow decision can still expose an edit action to read-only users. The design must distinguish the semantics and permissions of a catalog lookup from a document mutation. Enforce the relevant decision per operation.
D:Converting reference content to an MCP resource is appropriate for the read-only portion, yet that proposal does not specify an editing tool or prevent unauthorized writes. The actual architecture contains two different access modes that need distinct contracts. Pair passive resources with scoped, controlled mutation tools.
E:Clear namespaces and descriptions reduce accidental selection of the wrong backend tool, but tool naming is not a permission boundary. A malicious or mistaken call could still edit a document if the server does not enforce rights. Split catalog and editor contracts and validate write authority in the handler.
Question 206
A malicious server returns a URL to a credential harvesting site as a 'required admin fix'. Which design adjustment is most suitable under the stated constraints?
- Pin compatible protocol/server versions and validate the declared output schema.
- Validate external instructions against approved configuration and do not follow untrusted remediation text.
- Validate transport command and environment dependencies in the deployment runtime.
- Put team-shared server configuration in the appropriate project-scoped MCP configuration.
Explanation
Correct Answer
B:Treat the URL as untrusted and compare any proposed remediation with official configuration and approved administrator procedures. Do not visit the site or submit credentials merely because a tool result instructs it.
Incorrect Answers
A:Schema/version compatibility makes protocol exchanges reliable, but a malicious URL can be perfectly valid data in a well-formed tool result. Type validation alone cannot authenticate a requested admin action.
C:Checking the transport command detects missing executables or runtime dependencies; it does not establish whether a URL returned by a malicious remote server is safe.
D:Project-scoped configuration limits exposure of local integrations but cannot authenticate an external server’s new remediation message. The attack takes place at the content/trust boundary after communication succeeds.
Question 207
A shared MCP server is launched through an unpinned package command every time an engineer opens the project. A package update unexpectedly changes the executable downloaded at startup. What protects the project from silently executing an unreviewed server revision?
- Move the MCP entry to project-scoped configuration but continue fetching the latest unreviewed package at startup.
- Give each engineer separate API credentials while leaving the executable version uncontrolled.
- Pin an approved MCP server artifact or version, validate its provenance, and require review before the executable is updated.
- Turn on verbose tool logs after startup but allow the new downloaded server executable to run unreviewed.
Explanation
Correct Answer
C:A pinned reviewed package version or immutable artifact digest binds every launch to the MCP server implementation the team approved. Verify the distribution source and relevant package signature or digest, then make updates explicit review events. This prevents a new publisher release from silently replacing executable code merely because a developer opens the repository.
Incorrect Answers
A:Project scope makes the server definition visible to the team, which is useful for reproducibility, but does not identify the bytes executed by an unpinned package command. Every engineer may still run a different or compromised release. The missing safeguard is reviewable executable provenance and an approved version boundary.
B:Separate service credentials constrain what a stolen token can do, but they do not protect the developer machine from code executed when an arbitrary updated MCP server starts. The newly downloaded package could still run malicious initialization logic before any API authentication. Pinning and verifying its origin addresses the supply-chain change.
D:Detailed logs might help reconstruct which package ran, but their creation occurs after the unreviewed executable has already started. An attacker-controlled update could access local files or credentials at initialization. Logging is detective evidence, not a substitute for a verified, pinned startup artifact and controlled upgrade process.
Question 208
A developer needs to inspect a small existing file before patching one line. Which corrective action most directly addresses the observed failure?
- Use Read to inspect the exact local content before editing.
- Pass the exact quoted path to a safe read operation.
- Use the authorized Bash/command runner for executable tests and inspect exit status.
- Use Glob-style filename discovery rather than scanning all file content.
Explanation
Correct Answer
A:Read the existing file and inspect the specific line and surrounding function before applying the patch. This prevents replacing the wrong occurrence or assuming file content that differs from the actual checkout.
Incorrect Answers
B:Quoting a path is important when passing it to a shell, but the case does not report a path-escaping problem. A correctly quoted path is still not evidence that the code was inspected before editing.
C:Bash is appropriate for running tests after a change; it does not replace inspection of the source line that needs patching and may introduce needless command execution before a simple read.
D:Glob discovers file paths, not the contents of a known small file. Pattern searching adds an unnecessary discovery step and does not establish the precise line to change.
Question 209
A code agent must replace one function implementation while preserving the rest of its module. Which implementation choice best closes the specific gap described?
- Write a regenerated copy of the complete module after matching the function name, without checking the original function body or preserving adjacent comments.
- Replace the first occurrence of the function name as plain text without requiring a match to the original function body.
- Pass the exact quoted path to a safe read operation.
- Use Edit or an exact targeted file-edit operation instead of rewriting the whole file.
Explanation
Correct Answer
D:Scoped edits minimize unrelated drift and ease verification. The application currently faces this failure: a code agent must replace one function implementation while preserving the rest of its module. Scoped edits minimize unrelated drift and ease verification. The required change is to use Edit or an exact targeted file-edit operation instead of rewriting the whole file.
Incorrect Answers
A:Regenerating the entire module may alter imports, comments and unrelated code despite finding the correct function name. The request is limited to one implementation. An exact context-anchored Edit preserves unaffected code and should fail cleanly if the function body has changed since inspection.
B:Matching only a name can affect a call site or comment rather than the intended implementation, and it provides no check that the source has not changed. A targeted Edit against the expected original body is safer when the rest of the module must remain intact.
C:Path parsing errors should not turn a targeted read into a different command or file. The stated situation is that a code agent must replace one function implementation while preserving the rest of its module. Scoped edits minimize unrelated drift and ease verification. The alternative would pass the exact quoted path to a safe read operation, but the implementation still must use Edit or an exact targeted file-edit operation instead of rewriting the whole file to correct that specific failure.
Question 210
An automation task needs to create a brand-new configuration file with approved contents. Which architecture decision would most directly meet the stated requirement?
- Pass the exact quoted path to a safe read operation.
- Use Write for the new artifact after checking its intended path and permissions.
- Make a context-anchored Edit using nearby stable text.
- Use a controlled filesystem move or validated equivalent operation.
- Use Glob-style filename discovery rather than scanning all file content.
Explanation
Correct Answer
B:Confirm the intended output path, whether a file already exists, and the permitted directory and policy; then use an authorized Write operation with reviewed configuration contents. Verify the new artifact afterward, including permissions and expected bytes. Avoid overwriting unrelated production files.
Incorrect Answers
A:Reading an existing file provides context but cannot create the required new configuration artifact. A quoted read path helps avoid shell mistakes, yet there is no file to read at the requested destination. The operation must be an authorized creation with validated content.
C:An anchored Edit replaces text in an existing document, which the scenario says does not yet exist. Attempting Edit against a new path may fail or act on the wrong file. Use a controlled creation operation rather than pretending the artifact is an edit.
D:A filesystem move is suitable when an existing source artifact should change location. The task instead requires creating a genuinely new configuration file from approved content. Moving an unrelated file could destroy its original location and still fail to produce the intended configuration.
E:Filename globbing can reveal whether a proposed configuration path collides with another artifact, but it performs no file creation. Once path safety is established, Write the approved bytes and verify the result. Discovery is a preliminary check, not the required operation.
Claude Certified Architect - Foundations (CCA-F) Practice Tests