Home › Certifications › Databricks Generative AI Engineer › Application Development — Agents, Tools and MCP
44 multiple-choice questions and 11 flashcards on Application Development — Agents, Tools and MCP, about 15% of the Databricks Generative AI Engineer bank. Every one carries a written rationale.
Application Development — Agents, Tools and MCP is one of 8 chapters in CoStudy's Databricks Generative AI Engineer bank, and it holds 44 of the bank's 300 multiple-choice questions — roughly 15% of the total. That proportion is not arbitrary: chapters follow the certifying body's published exam outline, and the number of questions in each is set by that domain's published weight, so the share of your practice time this chapter takes matches the share of the real exam it accounts for.
Studying by chapter is worth doing once you have a diagnostic score. A single overall percentage tells you whether you are close; it does not tell you which domain is dragging. Working a weak chapter in isolation, and re-testing it in isolation, is the fastest way to move a score that has stalled — and it is why the mock exams in CoStudy report by domain rather than as one number.
10 questions drawn from this chapter, with the full rationale shown — the controlling principle behind the right answer, and why each wrong option tempts and fails.
A supervisor agent occasionally loops between two sub-agents until it times out. The FIRST control to add is
Answer: A — an explicit maximum-iteration limit with a defined fallback response
A) Correct — bounded iteration with a deterministic fallback is the standard safety control for agent loops. B) A bigger window lets the loop run longer before failing. C) Throughput makes the loop spin faster, not stop. D) Replaying afterwards diagnoses but does not prevent the loop.
When wrapping an internal API as a custom MCP server, which concern should be addressed FIRST?
Answer: B — how the server authenticates to the API and how those secrets are scoped
B) Correct — the server becomes a privileged bridge, so credential handling, scoping and secret storage are the primary design decisions. A) Serialization detail is trivial by comparison. C) Language choice is an implementation preference. D) Future consumer counts affect scaling, which is addressed after the security boundary is sound.
A developer wants to see, for one failing request, exactly which tools were called, with what arguments, and how long each took. The MOST direct way is to
Answer: A — inspect the MLflow trace for that request, which records a span per tool call
A) Correct — tracing is the purpose-built view of an agent's execution: spans, inputs, outputs and timings per step. B) Raw logs are unstructured and lack the span hierarchy. C) The change feed shows index data changes, not agent control flow. D) Rate limiting governs traffic and tells you nothing about a single request's internals.
Function calling in an agent means the LLM:
Answer: A — Returns JSON naming a tool and its arguments
A) Correct — the model emits structured JSON identifying a tool and arguments; the orchestrator runs it and feeds the result back. B) The agent code executes, never the model. C) The model has no shell. D) Nothing in function calling touches the host filesystem.
A team already runs a vendor-provided MCP server elsewhere in their estate and wants their Databricks agent to use it. Which characterization is correct?
Answer: B — an external MCP server is connected as a tool source, and its credentials must still be governed
B) Correct — external servers are a first-class category; you connect them and then handle authentication, secrets and egress under governance. A) Re-implementation defeats the purpose of a shared protocol. C) There is no such batch-only restriction. D) Managed means Databricks-hosted; hosting location is precisely what distinguishes the categories.
A chat app maintains conversation state. Where should the chat history live?
Answer: D — In application state, replayed into each prompt within the token budget
D) Correct - the application owns the transcript and re-sends the relevant portion, summarizing older turns to stay inside the budget. A) Completion APIs are stateless between calls. B) Similarity search over history loses ordering and recency, so it supplements rather than replaces the transcript. C) Manual pasting is not a state mechanism.
Which risk is MOST specific to persisting agent memory that includes raw user messages?
Answer: C — sensitive personal data is retained beyond its purpose unless masking and retention apply
C) Correct — durable memory turns transient input into a retained data asset, so masking, access control and retention become mandatory. A) Column limits are irrelevant to an append-only message log. B) A well-indexed keyed read is fast; latency is not the distinguishing risk. D) Memory and tool calling are independent.
A team wants each sub-agent in a supervisor system to be independently versioned and released. Which arrangement BEST supports this?
Answer: D — register and serve each sub-agent as its own Unity Catalog model and endpoint
D) Correct — separate registered models and endpoints give each team its own lifecycle, rollback and monitoring boundary. B) One artifact forces lockstep releases, the opposite of the requirement. C) Runtime notebook imports have no versioning or promotion story. A) Prompt strings in a config file are not a deployable, testable agent boundary.
Which statement BEST describes what the LLM actually uses to decide whether to invoke a particular Unity Catalog function as a tool?
Answer: C — the function name, parameter names and types, and the comment/description text
C) Correct — the tool schema handed to the model is name, typed parameters and description; a vague comment is the usual cause of a tool never being called. A) Grants control whether the call succeeds, not whether the model chooses it. B) The plan is invisible to the model. D) Data volume never reaches the model's tool-selection step.
Which practice does the MOST to improve a Genie space's answer accuracy?
Answer: B — curating a small set of well-described tables and adding example question-and-SQL pairs
B) Correct — Genie quality is driven by metadata quality and worked examples over a tight table scope. A) Warehouse size affects latency, not correctness. C) A wide scope increases ambiguity and join errors — the opposite of what helps. D) Requiring SQL from users removes the reason to use Genie.
4 cards from the 11 in this chapter.
What problem does the Model Context Protocol solve for agent development?
It gives tools and data sources a single standard interface, so any MCP-compatible agent can discover and call them without bespoke per-tool integration code. Tools become reusable across agents and frameworks.
Name the three categories of MCP server available for agent tool integration on Databricks.
Managed MCP servers hosted by Databricks for built-in resources such as Vector Search indexes, UC functions and Genie Spaces • External MCP servers run by third parties • Custom MCP servers you build and host yourself, for example on Databricks Apps.
Why is appending the full conversation history to every agent request a poor persistent-memory strategy?
It grows unbounded, driving up latency, token cost and the risk of exceeding the context window, and it dilutes relevant facts with noise. Persist state in a datastore and retrieve or summarize only the relevant memories per turn.
Mosaic AI Agent Framework?
Build, evaluate, deploy LLM agents using LangGraph or custom Python. Integrated with MLflow tracing + evaluation.
These are a sample. The full Application Development — Agents, Tools and MCP chapter runs 55 items with per-chapter progress tracking, on the web and in the iOS app.
Open Databricks Generative AI Engineer in CoStudy →