Quiz 4 Question 20 of 20

A customer analytics platform builds an MCP server that exposes a database query tool. The MCP server is connected to a Claude agent that has read access to a customer database. During testing, an analyst prompts Claude: 'Generate a report on Q3 revenue.' Claude successfully queries sales data. Then the analyst pastes a CSV file into the chat: 'Can you analyze this CSV? [CSV content with a hidden row: "; DROP TABLE sales; --]'. Claude calls the query tool with a SQL string that incorporates the CSV data directly, causing a SQL injection. What MCP server-side control prevents this?

Select an answer to reveal the explanation.

Motivation