Anthropic CCA-F Practice Test 24
Question 230
A shared .mcp.json file contains an API token and is committed to source control. What is the right remediation?
- Use a project-scoped .mcp.json configuration in the repository
- Remove the token, rotate it and inject credentials through a secure environment mechanism
- Rediscover capabilities and revalidate outstanding calls against the new server state
- Authenticated actor, tool name, arguments metadata, result and correlation identifier
Explanation
Correct Answer
B:Committed secrets can be copied and retained in history. Rotation plus separation of configuration from secrets restores the intended boundary. Remove the committed token from active use and rotate it because git history may retain copies even after deletion. Replace embedded credentials with protected runtime injection and audit repository access.
Incorrect Answers
A:Project scope supports reproducible tooling for the workspace. This alternative does not establish how to avoid leaking MCP credentials through project configuration in the stated workflow.
C:Refreshing MCP tool discovery after a server restart solves stale capability metadata. A committed API token is a credential exposure problem, not an outdated tool catalog. Remove and rotate the secret and supply it through approved environment or secret-management mechanisms.
D:A server-side audit record ties a side effect to the requester and outcome. The scenario instead requires a way to avoid leaking MCP credentials through project configuration.
Question 231
A remote MCP server becomes unreachable but the agent blames the tool schema. What layer should be checked first?
- Test MCP transport connectivity and server availability before changing tool descriptions
- Authorize tenant access against the authenticated caller on every invocation
- Authenticated actor, tool name, arguments metadata, result and correlation identifier
- Rediscover capabilities and revalidate outstanding calls against the new server state
Explanation
Correct Answer
A:A transport failure prevents correct tool discovery or invocation even with a perfect schema. Diagnose connectivity independently of model routing. Connection failure may prevent initialization and tool discovery before any input schema is evaluated. Check the transport, server process and credentials first, then investigate a schema defect only if the server is reachable.
Incorrect Answers
B:A caller-supplied tenant identifier is not proof of permission. That addresses a different part of the system, not the requirement to separate MCP transport availability from tool-design defects.
C:A server-side audit record ties a side effect to the requester and outcome. This capability does not directly separate MCP transport availability from tool-design defects.
D:Connection recovery may alter the available interface. The proposed option cannot provide the specific “Test MCP transport connectivity and server availability before changing tool descriptions” behavior that the case requires. Check the transport, server process and credentials first, then investigate a schema defect only if the server is reachable.
Question 232
A local MCP subprocess dies after initialization and tools disappear mid-session. What reliability improvement fits?
- Publish a reusable MCP prompt template with declared arguments
- Rediscover capabilities and revalidate outstanding calls against the new server state
- Use descriptive server-qualified tool identities and unambiguous descriptions
- Supervise server process health and surface reconnection or restart failures
Explanation
Correct Answer
D:Local tool availability depends on the subprocess lifecycle. Operational monitoring and controlled restart prevent silent tool disappearance. A supervised subprocess needs health checks, controlled restart behavior and clear errors when tools disappear. Do not silently assume stale capabilities remain usable after a process crash.
Incorrect Answers
A:Prompts supply reusable workflow guidance; they are different from data resources and model-invoked tools. This alternative does not establish how to maintain reliable local MCP server lifecycle in the stated workflow.
B:Connection recovery may alter the available interface. The decisive requirement here is to maintain reliable local MCP server lifecycle. Capability rediscovery is important after reconnection, but it does not keep a crashing local subprocess alive or provide visibility into restarts. Process supervision and explicit failure reporting address the outage itself.
C:Namespaces and targeted descriptions help disambiguate tools contributed by separate servers. It would leave the stated need to maintain reliable local MCP server lifecycle unresolved.
Question 233
A developer exposes a passive policy document as a destructive model-controlled tool. Which MCP primitive is a better fit?
- Authorize tenant access against the authenticated caller on every invocation
- Expose the document as a resource for application-directed retrieval
- Authenticated actor, tool name, arguments metadata, result and correlation identifier
- Rediscover capabilities and revalidate outstanding calls against the new server state
Explanation
Correct Answer
B:MCP resources represent contextual data, whereas tools represent callable actions. Choosing the right primitive avoids granting unnecessary execution semantics. An MCP resource exposes reference material for retrieval without representing a side-effecting operation. A policy document should not be disguised as a destructive tool callable merely by model inference.
Incorrect Answers
A:A caller-supplied tenant identifier is not proof of permission. The proposed option cannot provide the specific “Expose the document as a resource for application-directed retrieval” behavior that the case requires. An MCP resource exposes reference material for retrieval without representing a side-effecting operation.
C:A server-side audit record ties a side effect to the requester and outcome. The scenario instead requires a way to separate contextual resources from active tools.
D:Capability rediscovery is useful after an MCP server changes tools, but a passive policy document should not be represented as a destructive model-controlled action. Expose it as a resource, so clients retrieve reference data without needing a side-effecting tool invocation.
Question 234
A team wants users to select a standard analysis prompt from its MCP server. Which protocol concept fits?
- Rediscover capabilities and revalidate outstanding calls against the new server state
- Configure the server in the appropriate user-local Claude configuration
- Publish a reusable MCP prompt template with declared arguments
- Use a project-scoped .mcp.json configuration in the repository
Explanation
Correct Answer
C:Prompts supply reusable workflow guidance; they are different from data resources and model-invoked tools. Correct categorization improves discovery and behavior. MCP prompts provide reusable prompt templates with declared arguments to an interested client. They are different from resources, which expose reference content, and tools, which the model can invoke for operations.
Incorrect Answers
A:Connection recovery may alter the available interface. The decisive requirement here is to expose reusable instruction templates as prompts. Refreshing a server's tool list does not publish a reusable user-selected analysis prompt. MCP prompts are a distinct server capability, not discovered tool replacements.
B:Personal configuration isolates a developer's private tooling from project-shared settings. That addresses a different part of the system, not the requirement to expose reusable instruction templates as prompts.
D:Project scope supports reproducible tooling for the workspace. This capability does not directly expose reusable instruction templates as prompts. A project-level server configuration controls how the client connects, but it does not define the reusable prompt template requested by the user. Expose the template as an MCP prompt with its arguments.
Question 235
A remote MCP server can query multiple tenants, and a tool accepts an arbitrary tenant_id. What must the server do?
- Authorize tenant access against the authenticated caller on every invocation
- Allow the caller to set any tenant_id without checking whether its credentials grant tenant access
- Rediscover capabilities and revalidate outstanding calls against the new server state
- Authenticated actor, tool name, arguments metadata, result and correlation identifier
Explanation
Correct Answer
A:A caller-supplied tenant identifier is not proof of permission. Enforcement belongs at the server boundary irrespective of model prompt. The server must derive permitted tenant access from the authenticated caller, not simply trust a tenant_id argument supplied by the model. Otherwise the tool becomes a cross-tenant read or write vulnerability.
Incorrect Answers
B:A client-supplied tenant identifier is untrusted input, not an authorization claim. The MCP server must validate the requested tenant against the authenticated principal on every call.
C:Connection recovery may alter the available interface. This alternative does not establish how to prevent cross-tenant reads in MCP tool implementations in the stated workflow.
D:A server-side audit record ties a side effect to the requester and outcome. Although useful elsewhere, it is not the direct mechanism to prevent cross-tenant reads in MCP tool implementations.
Question 236
Two MCP servers expose tools with similar names that confuse users. How should integrations reduce ambiguity?
- Give similarly named tools identical descriptions and aliases so model selection stays ambiguous
- Publish a reusable MCP prompt template with declared arguments
- Use descriptive server-qualified tool identities and unambiguous descriptions
- Supervise server process health and surface reconnection or restart failures
Explanation
Correct Answer
C:Namespaces and targeted descriptions help disambiguate tools contributed by separate servers. This is particularly important when effects overlap. Use distinct server namespaces and descriptions that identify the exact capability and intended data source. Two equally named search operations cannot be safely distinguished from a model-generated guess alone.
Incorrect Answers
A:Giving competing tools the same description makes MCP ambiguity worse rather than better. Qualify each tool with its server identity and state the specific operation and source, so a client can select the correct integration without guessing between indistinguishable labels.
B:Prompts supply reusable workflow guidance; they are different from data resources and model-invoked tools. This is not a substitute for “Use descriptive server-qualified tool identities and unambiguous descriptions”; that control is necessary in the stated circumstances. Two equally named search operations cannot be safely distinguished from a model-generated guess alone.
D:Monitoring server health identifies connection and restart failures, but both servers in this question are reachable and publish confusingly similar tool names. Distinct server-qualified identifiers and precise descriptions fix discovery ambiguity; process supervision alone does not change what names a model sees.
Question 237
A team updates an MCP tool input schema while clients are still running. How should deployment proceed?
- Test MCP transport connectivity and server availability before changing tool descriptions
- Authenticated actor, tool name, arguments metadata, result and correlation identifier
- Version the interface and test compatibility with active clients before rollout
- Rediscover capabilities and revalidate outstanding calls against the new server state
Explanation
Correct Answer
C:Tools form a contract between server and callers. Breaking a required argument without compatibility handling can disrupt active workflows. Existing clients may still send the prior argument shape after a schema update. Version or migrate the contract with compatibility tests and clear errors before withdrawing accepted fields.
Incorrect Answers
A:Transport connectivity checks are useful for diagnosing a server that cannot be reached, but the issue is a schema change while active clients depend on the previous contract. Version and compatibility-test the tool interface before rollout, preserving existing callers or documenting a deprecation path.
B:A server-side audit record ties a side effect to the requester and outcome. It would leave the stated need to plan safe MCP contract migrations unresolved.
D:Connection recovery may alter the available interface. The decisive requirement here is to plan safe MCP contract migrations. Rediscovering available tools after a restart does not assure compatibility for already deployed clients using the previous input schema. Versioned rollout tests are required before changing the contract.
Question 238
An MCP retrieval server runs under a root account even though it only reads public docs. What is the appropriate hardening?
- Use a project-scoped .mcp.json configuration in the repository
- Rediscover capabilities and revalidate outstanding calls against the new server state
- Run it with only the filesystem and network permissions necessary for its retrieval scope
- Authenticated actor, tool name, arguments metadata, result and correlation identifier
Explanation
Correct Answer
C:A compromised MCP process should not gain broad host access. Least-privilege process accounts and isolation reduce blast radius. A public-document search service usually needs only read access and approved network destinations. Running it as root increases the impact of a compromised tool response or process vulnerability without improving search.
Incorrect Answers
A:Project-scoped MCP configuration controls which projects load a connector, not the operating-system permissions of its process. A retrieval server running as root still has excessive host privileges. Run it under a restricted identity with only the necessary filesystem and network rights.
B:Rediscovering tools after a reconnect does not reduce the root privileges of an MCP server process. The risk is runtime authority, not stale metadata. Apply least privilege at the process and container boundary so a read-only retrieval service cannot modify unrelated host resources.
D:A server-side audit record ties a side effect to the requester and outcome. Although useful elsewhere, it is not the direct mechanism to limit operating-system privileges of MCP services.
Question 239
Investigators need to know which user invoked an MCP write tool and which record changed. What should the server log?
- Test MCP transport connectivity and server availability before changing tool descriptions
- Authenticated actor, tool name, arguments metadata, result and correlation identifier
- Rediscover capabilities and revalidate outstanding calls against the new server state
- Authorize tenant access against the authenticated caller on every invocation
- Log only the model-generated summary of the write without the authenticated caller.
- Record unredacted passwords and customer secrets in every audit entry.
Explanation
Correct Answer
B:A server-side audit record ties a side effect to the requester and outcome. Logging should avoid exposing sensitive payloads unnecessarily. The audit should record the authenticated user, requested target and actual outcome with a shared invocation identifier. Avoid placing private request contents or credentials into unrestricted logs.
Incorrect Answers
A:A transport failure prevents correct tool discovery or invocation even with a perfect schema. This capability does not directly attribute MCP write operations to a verified caller.
C:Connection recovery may alter the available interface. The direct remedy is “Authenticated actor, tool name, arguments metadata, result and correlation identifier”, which the alternative does not itself accomplish. The audit should record the authenticated user, requested target and actual outcome with a shared invocation identifier.
D:A caller-supplied tenant identifier is not proof of permission. That addresses a different part of the system, not the requirement to attribute MCP write operations to a verified caller.
E:A prose summary cannot provide reliable actor attribution for a changed record. A fluent narrative produced by the assistant is not an audit event proving who called a write tool. Retain authenticated caller identity, tool arguments, timestamps and outcome through trusted logging rather than model-generated prose alone.
F:Sensitive raw payloads in broad logs introduce a new disclosure risk and are not necessary for accountability. Unredacted passwords add exposure and do not improve accountability; identifiers and deliberately minimized metadata are enough to link the authenticated actor to a completed write.
Question 240
A developer copies an MCP server URL from a forum and grants it access to company documents. What should happen first?
- Rediscover capabilities and revalidate outstanding calls against the new server state
- Test MCP transport connectivity and server availability before changing tool descriptions
- Review the server operator, requested privileges and data handling before connection
- Configure the server in the appropriate user-local Claude configuration
Explanation
Correct Answer
C:MCP tools run across a trust boundary. Endpoint validation and explicit authorization are required before exposing internal data. An unfamiliar external MCP server is a privileged integration boundary. Review who operates it, what data it can access and how it stores or forwards content before attaching company documents.
Incorrect Answers
A:Connection recovery may alter the available interface. This alternative does not establish how to vet remote MCP providers before granting sensitive access in the stated workflow.
B:A transport failure prevents correct tool discovery or invocation even with a perfect schema. The decisive requirement here is to vet remote MCP providers before granting sensitive access.
D:Personal configuration isolates a developer's private tooling from project-shared settings. It would leave the stated need to vet remote MCP providers before granting sensitive access unresolved.