CCAR-F Tool Design and MCP Integration Practice Question
Network Topology
Refer to the exhibit. An architect is configuring an MCP server to provide read-only access to a SQLite database. What is the primary reason for using the 'env' field in this configuration?
⚠ Common exam trap
Candidates often mistake the 'env' field for a way to configure the model's behavior, whereas it is actually intended for passing secure credentials and runtime constraints directly to the server process instance.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
To provide the necessary database credentials and enforce runtime constraints like read-only access.
The configuration of MCP servers involves defining how the host process should launch and communicate with the server. Using environment variables is a standard method for passing configuration and security constraints to the server process. This ensures that the server operates within the intended security boundaries, such as read-only mode, regardless of the model's requests.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
To specify the transport protocol that the MCP host should use to communicate with the SQLite server.
Why it's wrong here
The transport protocol (e.g., stdio) is typically inferred from the command execution or defined elsewhere in the configuration. The 'env' field is specifically used to pass environment variables to the spawned process, not to define the communication protocol between the host and the server.
- ✓
To provide the necessary database credentials and enforce runtime constraints like read-only access.
Why this is correct
The 'env' field allows the host to inject configuration settings directly into the server's environment. In this case, setting 'SQLITE_READONLY' ensures the server logic restricts database operations to queries only, providing a critical layer of security that the model cannot bypass through prompt manipulation.
- ✗
To define the JSON schema for the tools that the SQLite server will expose to the model.
Why it's wrong here
Tool schemas are defined within the server code itself and communicated to the host via the MCP protocol after the server starts. Environment variables are for process-level configuration and cannot be used to define the complex, structured JSON schemas required for tool definitions.
- ✗
To increase the memory allocation for the 'uvx' command to handle larger database queries.
Why it's wrong here
While environment variables can sometimes influence process memory (like 'NODE_OPTIONS'), the specific variable 'SQLITE_READONLY' is a functional constraint rather than a resource allocation setting. Memory management for MCP servers is typically handled by the operating system or the container runtime, not via arbitrary environment variables.
About these practice questions
Courseiva writes every CCAR-F question from scratch — 271 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Anthropic exam blueprint
This CCAR-F practice question is part of Courseiva's free Anthropic certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CCAR-F exam.