CertKeen

Claude Certified Architect — Professional · Free practice question 8 of 12

Read-only roles behind MCP servers

Hensley Analytics is building an MCP server that lets Claude answer questions from its reporting database. Which design follows least privilege?

  1. A.Connect with a read-write role and tell Claude in the tool description not to modify data.
  2. B.Connect the server with a database role that can only read the reporting views it needs.
  3. C.Connect with the database owner account so the server never fails for lack of permissions.
  4. D.Connect with the same account the nightly ETL job uses, to avoid creating another credential.
Show answer and explanation

Correct answer: B. Connect the server with a database role that can only read the reporting views it needs.

Why: The server's credentials define the real limit of what any tool call can do, so they should allow only what the use case needs. Owner, read-write or shared ETL accounts give the model's tool calls far more power than answering questions requires, and a description isn't a control.

More free Claude Certified Architect — Professional questions