Question 240
A code-assistant MCP server exposes connection strings in tool descriptions and logs. The team is considering this step: Move credentials to protected configuration and remove them from tool-visible text. What evidence should they review before proceeding?
Explanation
Correct Answer
Check MCP configuration, log redaction, credential scope and retention. Secrets and tool metadata should be separated and protected with trusted secret stores.
Incorrect Answers
A working MCP connection does not prove secret protection. Inspect visible metadata, log redaction and credential storage.
Strong passwords can still leak through tool descriptions. Remove SQL credentials from exposed metadata and rotate leaked ones.
Grants do not establish safe logging. Inventory exposed SQL connection strings and who can read retained MCP logs.