Free sample exam
Databricks Certified Context Engineer Associate
Free practice questions for the new Databricks Context Engineer Associate exam, written to its July 2026 guide, on what an AI agent sees at inference time, scored as you go, with the reason behind every answer.
Tecyfy is independent of Databricks. These are our own practice questions, written to the objectives in the official exam guide and answered from Databricks' and Anthropic's documentation.
The real exam
This exam is about one question: what goes into an agent's context window, and what stays out. It covers system prompts and Genie Agent instructions, retrieval with AI Search and Unity Catalog metadata, memory in Lakebase, tools and MCP, compaction, and how sub-agents share context. Most questions describe an agent that misbehaves and ask which change to its context fixes it with the fewest extra tokens.
It is the newest Databricks associate exam, published on 29 July 2026, in English only. Knowledge retrieval and Genie (20%) and memory with Lakebase and MLflow (18%) carry the most weight. The ideas are the ones Anthropic and others describe as context engineering, applied to Databricks' products, and our questions below are answered from Databricks' documentation and Anthropic's own write-ups.
- Questions
- 45 scored, multiple choice and multiple selection, plus up to 10 unscored
- Time
- 90 minutes
- Pass mark
- Not published by Databricks
- Fee
- $200, plus tax
- Delivery
- Online proctored or at a test centre
- Language
- English
- Valid for
- 2 years, renewed by passing the current exam
- Prerequisite
- None; 6 months of hands-on Databricks work recommended
What it covers, by share of the questions
- Foundations of Context Engineering16%
- System Prompt and Instruction Design9%
- Knowledge Retrieval and Genie Configuration20%
- Memory Architecture with Lakebase and MLflow18%
- Tool Design, MCP, and Agent Context13%
- Context Compression and Compaction11%
- Multi-Agent and Long-Horizon Task Design13%
The sample
13 questions in the style of the exam. Pick an answer to see why it is right or wrong. Your best score stays in this browser.
Question 1 of 13
Question 1
A support agent loads the full schemas of 40 tools into every request, though most conversations use 3 or 4 of them. Traces show it often hesitates between similar tools, and its context fills early. Which change most directly reduces context pressure before compaction is needed?
Not this time. Anthropic names bloated tool sets, which cover too much or leave ambiguous choices between tools, as one of the most common agent failures: if an engineer cannot say which tool fits, the agent cannot either. A small, distinct tool set cuts the tokens spent on schemas in every request and the confusion between them. A larger window still fills with the same noise, earlier compaction treats the symptom and loses detail sooner, and a prompt line does not remove the schemas from the context.
Question 2
A Genie Agent's text instructions say the fiscal year starts on 1 February, but 2 of its example SQL queries group revenue by calendar year. Analysts get different yearly totals for the same question on different days. Which failure is this, and what fixes it?
Not this time. The context holds 2 contradictory statements of the same rule, which is context clash, and the model resolves it differently from one question to the next. Databricks' Genie guidance says to keep all instruction types consistent, its example being that if text instructions round to 2 decimals the example SQL must too. Fixing the conflict at its source removes it; outnumbering it with more examples leaves it in the context, and rebuilding the agent is far more than the problem needs.
Question 3
Finance wants every Genie answer about "active customers" to use one definition: at least one order in the last 90 days, excluding test accounts. What is the most reliable way to give Genie that definition?
Not this time. Databricks advises preferring SQL expressions and example SQL over text instructions: SQL expressions define business semantics such as metrics and filters exactly, and text instructions are the last resort for what SQL cannot express. A paragraph leaves Genie to translate the rule into SQL each time, and sample questions show what people ask, not how to compute the answer.
Question 4
An agent answers questions about a warehouse inventory that has hundreds of tables and changes hourly. Today it embeds and loads a large sample of rows into its context at the start of each conversation, and answers are often out of date. Which retrieval strategy fits better?
Not this time. Pre-inference retrieval loads context up front, which suits stable reference text but goes stale on hourly data and spends tokens on rows the question never needs. In the just-in-time approach Anthropic describes, the agent holds lightweight identifiers and loads data at runtime with tools, so it reads current figures and only those the task needs. A hybrid, some context up front and more on demand, is also common; a whole inventory in the prompt is the opposite of a minimal context.
Question 5
A team built a Genie Agent for sales questions by adding 38 tables from 4 schemas, with their columns as they are. Answers are often wrong because Genie joins the wrong tables. What do Databricks' best practices recommend first?
Not this time. Databricks' guidance is to keep a Genie Agent focused: include only the tables needed for its questions, aiming for 5 or fewer, prejoin or denormalise related tables in views or metric views, and limit columns. Clear Unity Catalog names and descriptions matter for accuracy. A Genie Agent supports up to 50 tables, views or metric views, so a higher limit is neither available nor the fix, and instructions or samples that patch each join keep the confusing schema in the context.
Question 6
An agent's catalog holds raw, staging and derived copies of the same customer data, and the agent sometimes retrieves from a stale copy. Before deployment you want it to read only from the authoritative tables. What do you do?
Not this time. The certified and deprecated system tags in Unity Catalog signal which assets meet your standards and which are outdated, and certified assets show a check mark in the workspace, but a tag does not stop anyone reading a table. Permissions do: an agent can only retrieve from what its identity is granted, so granting it only the certified tables constrains its retrieval space before it runs. A prompt rule can be ignored, and a copy in another workspace is one more copy to go stale.
Question 7
A user tells an assistant they want every report as a one-page summary with a table. The assistant follows this for the rest of that conversation, but in a new conversation the next day it has forgotten. The agent uses agent sessions on Databricks. What should change?
Not this time. Sessions hold the state of one interaction, such as its transcript; memories hold durable facts, preferences and decisions that should matter in later, unrelated conversations, retrieved by semantic search. A memory pipeline can distil sessions into memories, and the memory stays when the session is cleared. Replaying every past conversation is the over-retrieval that pollutes context, and a preference written into the shared system prompt applies one user's choice to everyone.
Question 8
An agent reconciles 2,000 invoices over several hours, keeping its progress as a running list in its own context. When the serving container restarts, it starts again from the first invoice. What does it need?
Not this time. Anything kept only in the context window is lost when the process ends. Databricks' agent sessions persist an interaction's state in Lakebase so it survives restarts and can be resumed, and a Delta table of processed records does the same for a batch task. A scratchpad, compaction or a bigger window all still live inside the context, so a restart loses them.
Question 9
An agent's system prompt carries 6 long runbooks (refunds, chargebacks, fraud review and others), but most requests need none of them. How do you cut the baseline context cost without hurting the requests that do need them?
Not this time. Agent Skills, the SKILL.md format Databricks also uses, rely on progressive disclosure: a skill's name and description, about 100 tokens, are always loaded, and its instructions and files enter the context only when the task calls for them. The runbooks stay complete for the requests that need them and cost little for the rest. A 2-sentence summary loses the detail, and moving text to the first message costs the same tokens.
Question 10
An agent is deep into a long task and close to its context limit. Which content is the safest to clear first?
Not this time. Anthropic calls tool result clearing one of the safest, lightest forms of compaction: once a tool was called deep in the history and its result used, the agent rarely needs the raw output again. The user's constraints, the system prompt and the result in use are what the rest of the task depends on.
Question 11
You are writing a compaction prompt for a long-running agent. How should you tune it?
Not this time. Anthropic recommends tuning compaction prompts on complex agent traces: first maximise recall so the summary captures every relevant piece, then iterate on precision to drop superfluous content. Starting short risks the over-aggressive compaction that loses subtle context whose importance only shows later. Simple traces do not exercise what compaction gets wrong, and keeping the last 20 messages is trimming, not compaction.
Question 12
A planning agent must respect a budget limit and 3 excluded suppliers that the user gave in the first turn. To save tokens, it keeps only the last 15 messages, and after a few hours it proposes an excluded supplier. Is the trimming rule enough?
Not this time. A fixed trimming rule assumes old messages stop mattering, which fails when the earliest turns hold constraints the whole task depends on. Compaction that summarises while keeping decisions and constraints, or structured notes the agent writes outside the context and reads back, keeps them at low cost. A longer trimming window only delays the failure, and never compressing runs into the context limit and its loss of focus.
Question 13
An orchestrator dispatches 6 research sub-agents and pastes each one's full transcript, tool outputs included, into its own context. It runs out of room before it can combine their findings. What change most reduces its context load without losing the findings?
Not this time. In the sub-agent pattern Anthropic describes, each sub-agent may use tens of thousands of tokens exploring, but returns only a condensed summary, often 1,000 to 2,000 tokens, so detail stays isolated in its context and the lead agent synthesises. Running them in sequence or enlarging the window still pours the same transcripts in, and a single agent puts all of it in one context.
Sources
Where each fact comes from
- 1Databricks Certified Context Engineer Associate exam guide
- 2Databricks Certified Context Engineer Associate
- 3Badge and Certification FAQ
- 4Effective context engineering for AI agents
- 5Curate an effective Genie Agent
- 6Agent memory and sessions
- 7Agent sessions
- 8Agent memory
- 9Flag data as certified or deprecated
- 10Unity Catalog privileges and securable objects
- 11Agent Skills overview
- 12Unity Gateway Skills
How to study for it, domain by domain
Study the domains in order of weight: the larger the share, the more questions it sets. Each one links to our own free pages that teach it.
20%
Knowledge Retrieval and Genie Configuration
18%
Memory Architecture with Lakebase and MLflow
16%
Foundations of Context Engineering
13%
Tool Design, MCP, and Agent Context
13%
Multi-Agent and Long-Horizon Task Design
11%
Context Compression and Compaction
9%
System Prompt and Instruction Design
Questions
- What is the Databricks Context Engineer Associate certification?
- An associate exam, published on 29 July 2026, on building the information an AI agent receives at inference time on Databricks: instructions and system prompts, retrieval with AI Search, Genie configuration, memory in Lakebase and MLflow, tools and MCP, compaction and trimming, and multi-agent context.
- How many questions are on the Databricks Context Engineer Associate exam?
- 45 scored multiple-choice and multiple-selection questions in 90 minutes, plus up to 10 unscored questions that the time limit already allows for.
- How is it different from the Generative AI Engineer Associate exam?
- The Generative AI Engineer Associate exam covers building and deploying an LLM application end to end. The Context Engineer exam goes deeper into one part of it, what the agent sees, and asks you to diagnose context failures, compaction and memory choices from traces and evaluation results.
- What is the passing score for the Context Engineer Associate exam?
- Databricks does not publish one. Its certification FAQ says the passing score is set by statistical analysis and may change.
- How much does the Context Engineer Associate exam cost?
- $200 plus tax for each attempt. The certification is valid for 2 years; you renew it by passing the exam version live at the time.
- How should I prepare for the Context Engineer Associate exam?
- Build a small agent on Databricks and change its context on purpose: a Genie Agent with and without SQL expressions, an AI Search index, sessions and memory, and a compaction prompt, comparing the runs in MLflow. Databricks' guide lists self-paced Academy courses and practice tasks small enough for Databricks Free Edition.