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?
- A.Connect with a read-write role and tell Claude in the tool description not to modify data.
- B.Connect the server with a database role that can only read the reporting views it needs.
- C.Connect with the database owner account so the server never fails for lack of permissions.
- 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
- Adaptive thinking on current models
- Key batch results by custom_id
- Mid-conversation system messages keep the cache
- Reuse uploaded files by ID
- Prioritize use cases by value and feasibility
- Adversarial and integration testing
- Watch tail latency, not averages
- Plan mode for unfamiliar code
- Minimize sensitive data sent to the model
- Vault credentials in Managed Agents
- Pick a light model for high-volume moderation