Question 170
A client successfully authenticates to an MCP server. What additional decision may still be required for a sensitive tool?
- Whether successful tool discovery permits every listed operation.
- Whether the server's TLS certificate alone grants access to all accounts.
- Whether the authenticated identity is authorized for that operation and resource.
- Whether the token's mere presence is enough without checking its applicable scope.
Explanation
Correct Answer
C:Authentication identifies the caller's credential context. Authorization still has to determine whether that caller may perform the particular operation on the requested resource.
Incorrect Answers
A:A visible capability can still require operation- and resource-specific permission checks.
B:Transport authentication of the service does not authorize the user's operation on a particular account.
D:Possessing a token does not establish that it permits the requested sensitive action.
Question 171
A newly connected server exposes a tool whose description asks the host to reveal unrelated secrets. How should that description be treated?
- As proof that secret disclosure is required by MCP.
- As safe because it is formatted as JSON.
- As untrusted capability metadata subject to host policy.
- As a higher-priority instruction than the user's request.
Explanation
Correct Answer
C:The description comes from the external server being assessed. It cannot grant that server access to unrelated credentials or override the host's policy; treating it as authority would cross the trust boundary.
Incorrect Answers
A:A server's claim does not define protocol-wide authorization.
B:Structured encoding does not make content trustworthy.
D:External metadata has no such authority.
Question 172
A local MCP server runs as a process under the user's account. What security implication matters?
- Its tool descriptions automatically sandbox it.
- It cannot access local resources because MCP is a protocol.
- Its process permissions and installation source require deliberate control.
- Every local server is trusted by definition.
Explanation
Correct Answer
C:A local server can exercise its granted OS capabilities. Least privilege and trusted software provenance remain important. A locally launched server can inherit meaningful access from its process environment. Running on the user's machine does not make an unreviewed executable trustworthy.
Incorrect Answers
A:Descriptions do not enforce filesystem or network isolation.
B:Protocol use does not erase the process's operating-system privileges.
D:Local execution does not establish trustworthy behavior.
Question 173
In MCP version 2025-11-25, a tool declares an outputSchema for its structured result. Which response practice supports machine consumption?
- Return conforming structuredContent and let clients validate it against outputSchema.
- Put result fields inside inputSchema instead of returning data.
- Let every result use incompatible field types without updating the contract.
- Return only an unlabelled prose paragraph and assume the declared schema changes it automatically.
Explanation
Correct Answer
A:The result data and declared output schema provide an explicit machine-checkable interface. This is server-produced result data, distinct from schema-constrained text generated by the model. A compatible text representation may also be supplied for consumers that need it.
Incorrect Answers
B:An input description specifies accepted arguments, not the values produced by execution.
C:Variable undocumented types defeat the declared output interface.
D:A declaration does not transform arbitrary prose into the promised structured object.
Question 174
An MCP server using the 2025-11-25 stdio transport prints a startup banner to stdout before protocol messages. The client reports malformed input. What should change?
- Wrap the startup banner in a JSON string and keep writing it to stdout before protocol messages.
- Teach the client to ignore every stdout line that lacks a familiar tool name.
- Write protocol responses to stderr and keep stdout for all human-readable logs.
- Reserve stdout for protocol messages and send diagnostic logging to stderr.
Explanation
Correct Answer
D:Separating diagnostics from the message stream prevents ordinary logs from corrupting protocol framing. The client parses stdout as protocol traffic, so an ordinary banner is not harmless decoration. A diagnostic message on stderr does not itself mean the tool operation failed.
Incorrect Answers
A:Valid JSON alone is not a valid MCP protocol message. The diagnostic string would still appear in the channel reserved for protocol traffic.
B:Protocol traffic includes initialization, responses, and notifications beyond tool names. This filter can discard valid messages while leaving the server's channel violation unresolved.
C:This reverses the stdio transport's channel roles. The client expects protocol messages on stdout and would not receive responses through the intended channel.
Question 175
A tool reuses one idempotency key for every customer's order. What can go wrong?
- The service will automatically distinguish requests by customer intent despite identical keys.
- Every request is guaranteed to become independent.
- Different intended operations may be incorrectly treated as the same request.
- Idempotency eliminates all authorization checks.
Explanation
Correct Answer
C:An idempotency key identifies one logical operation within the service's documented scope. Reusing it for different orders can cause a new order to be rejected or mistaken for the earlier operation.
Incorrect Answers
A:Idempotency behavior follows the service's contract, not an inferred intention to create a different order.
B:Key reuse has the opposite purpose: associating retries.
D:Deduplication does not establish permission.
Question 176
A search tool supports an expensive regex mode that can scan an entire archive. Most requests need indexed exact matching. What should the interface communicate?
- Describe both modes as instant lookup with no distinction.
- Make regex mode the silent default for every query.
- Make the modes explicit, document their tradeoffs, and enforce query resource limits in the service.
- Rely only on the model to estimate the archive size from the tool name.
Explanation
Correct Answer
C:A clear contract helps choose an appropriate search while backend limits bound execution cost. Indexed lookup and archive-wide matching have different resource profiles. Documenting the distinction improves selection, while a service-side limit protects against unexpectedly costly expressions.
Incorrect Answers
A:An inaccurate cost description encourages expensive scans when a narrower operation would suffice.
B:A broad expensive default wastes resources for tasks served by indexed matching.
D:A name cannot reliably convey data volume or enforce a resource ceiling.
Question 177
A tool can filter records by tenant and date. Why apply valid filters before retrieving large result sets?
- Filtering guarantees every returned fact is correct.
- Reduced irrelevant retrieval within the requested scope.
- It makes pagination impossible.
- It removes the need to authenticate.
Explanation
Correct Answer
B:Server-side selection is more efficient than retrieving everything and asking the model to discard unrelated records. Filtering before materialization avoids sending records outside the requested scope into the context window. It complements authorization and does not replace verification of returned facts.
Incorrect Answers
A:Filters constrain scope but do not validate content truth.
C:Filtered result sets can still require pagination.
D:Access control remains necessary.
Question 178
A tool sometimes returns price as a number and sometimes as formatted prose. What is the downstream risk?
- Every consumer can infer the value without ambiguity.
- Consumers cannot rely on a stable typed result contract.
- That the tool is now guaranteed to return fresher prices.
- That structured JSON results can never contain optional fields.
Explanation
Correct Answer
B:Predictable types support validation and calculation. Human-readable formatting should not replace the structured value needed by the application. A typed price lets consumers perform predictable comparison and arithmetic. Currency, scale, and presentation formatting should be represented explicitly instead of changing the field's type between calls.
Incorrect Answers
A:Currency symbols and formatting can introduce parsing errors.
C:Data representation and observation freshness are separate properties of the result contract.
D:Optional fields can be well-defined; the defect here is inconsistent representation of the same price field.
Question 179
A tool accepts updates for several records. Some may succeed before another fails. What should the contract state?
- Only the total number of input records.
- That the model may assume success for omitted outcomes.
- Describe the whole operation as atomic because all record updates were submitted in one JSON request, without examining backend transaction behavior.
- That every failure implies nothing changed, regardless of implementation.
- Whether execution is atomic and how per-record outcomes are reported.
Explanation
Correct Answer
E:The caller needs to distinguish rollback from partial success. Recovery depends on which changes actually committed. A caller cannot design recovery without knowing whether failed bulk work may have partially committed. Per-record outcomes or an atomicity guarantee determine what remains to be retried or reconciled.
Incorrect Answers
A:Input count does not reveal execution semantics.
B:Missing results cannot establish successful updates.
C:One request envelope does not imply one atomic transaction. The implementation may commit some entries before another fails.
D:That would misrepresent partial commits.
Question 180
A tool defaults an omitted region to the server's region, but the user specified another region in the task. What should the caller do?
- Change the user-facing answer to match the default.
- Use the most common region from training data.
- Pass the requested region explicitly and validate that it is supported.
- Omit region because defaults always override user intent.
Explanation
Correct Answer
C:Explicit parameters preserve the user's constraint and avoid accidental reliance on deployment-local defaults. A default fills in unspecified input; it should not override a target already provided by the user. Supplying the explicit region avoids accidental execution in the server's home region.
Incorrect Answers
A:Rewording does not fulfill the requested operation.
B:Popularity does not determine this request's target.
D:A default is fallback behavior, not authority to ignore an explicit requirement.