Courses · The Ambush Method

Pick your exam.

Every guide follows the same method: short daily sessions, the traps each topic sets, and exam-style questions with an explanation for every option.

  • 100% free · no paywalls, subscriptions or ads
  • 30–60 min a day
  • Exam-style questions
  • Taught in English

Category: Databricks

  • Databricks Model Serving vs ai_query: Batch vs Real-Time Inference

    Databricks Model Serving vs ai_query: Batch vs Real-Time Inference

    Picture two requests landing on the same team in the same week. One is a support assistant: a person types a question and waits for the answer. The other is a backfill: millions of old tickets in a Delta table that need a summary and a category by Monday. Both use the same LLM, and that’s exactly why people reach for the same tool for both. On the Generative AI Engineer Associate exam, that reflex is the trap. Databricks Model Serving is the right home for the first job, and a single ai_query query is the right home for the second. This post is about telling them apart from the wording of a scenario, before any product name enters your head.

    If you’re new here, my Databricks Generative AI Engineer Associate study guide has the full exam map. This post zooms into two lines of it that sit in the deployment section, and they’re two of the most reliably tested details in that section.

    What the exam actually asks

    The official exam guide puts both objectives in Section 4, Assembling and Deploying Applications, which carries 22% of the exam. Word for word, they are: “Identify how to serve an LLM application that leverages Foundation Model APIs” and “Identify batch inference workloads and apply ai_query() appropriately.”

    Look at the verbs: “identify.” Neither objective asks you to remember a menu path. Both ask you to read a situation and recognize its shape, then pick the instrument that fits.

    Databricks Model Serving in one picture

    Model Serving is the infrastructure. It hosts models and exposes each one as a REST endpoint that an application can call. The Model Serving docs describe it as a unified interface to deploy, govern and query models for both real-time and batch inference, running on serverless compute that scales up and down with demand.

    Three kinds of things can sit behind an endpoint:

    • Custom models: anything you logged with MLflow and registered, including agents. Your RAG chain from the RAG post ends up here.
    • Databricks-hosted foundation models: open and partner models that Databricks already runs for you, reached through Foundation Model APIs.
    • External models: third-party providers such as OpenAI or Anthropic, routed through the same interface so they’re governed in one place.

    The way I picture it: Model Serving is the kitchen, and Foundation Model APIs is a drive-through window bolted to the front of it. The window is a curated menu of models that are already cooking. You order by name, you never touch the stove.

    The trap: Foundation Model APIs vs Model Serving

    This is the first ambush on this objective. A scenario asks how to serve an LLM app that uses Foundation Model APIs, and one option treats Foundation Model APIs and Model Serving as two rival products you choose between. They aren’t rivals. One is the interface and the other is the infrastructure it runs on. The giveaway is right there in the code: when you call a hosted model with the OpenAI client, the base URL ends in /serving-endpoints.

    from openai import OpenAI
    import os
    
    # The standard OpenAI client, pointed at your workspace's serving endpoints.
    client = OpenAI(
        api_key=os.environ["DATABRICKS_TOKEN"],
        base_url=f"{os.environ['DATABRICKS_HOST']}/serving-endpoints",
    )
    
    reply = client.chat.completions.create(
        model="databricks-meta-llama-3-3-70b-instruct",  # a pay-per-token endpoint name
        messages=[{"role": "user", "content": "Classify this ticket: 'I was charged twice.'"}],
        max_tokens=100,
    )
    print(reply.choices[0].message.content)

    That’s the whole first call. No GPU to provision, no weights to download. The model string is a serving endpoint name, and the response gives you three things worth reading every time: the answer, the token usage (your bill), and the time it took (your latency).

    The practical split the exam leans on: when the thing you call is a prebuilt foundation model, you reach it through Foundation Model APIs. When the thing you serve is a model your team built and registered, you deploy it as its own Model Serving endpoint. Same kitchen, different jobs.

    Pay-per-token vs provisioned throughput

    Foundation Model APIs has more than one way to bill you, and the exam tests whether you can match the mode to the traffic. Here’s how the Foundation Model APIs page lays them out today:

    • Pay-per-token: preconfigured endpoints, nothing to reserve, billed by tokens in and out. The easiest way to start, and the right fit for prototyping, evaluation runs, and light or bursty traffic. It’s best effort, so it doesn’t promise sustained throughput.
    • Provisioned throughput: you reserve serving capacity for a workload. You get performance guarantees, and it’s the mode for fine-tuned or custom models and stricter security or compliance needs. Databricks recommends it for production workloads.
    • AI Functions optimized models: the mode recommended for batch inference, reached from SQL through AI Functions such as ai_query.

    The rule I keep in my head: pay-per-token for trying things and for bursts, provisioned throughput for steady production load that needs guarantees, AI Functions for piles of rows. Match the mode to the shape of the traffic, not to how serious the project feels.

    What changed in the docs recently

    When I checked in early November 2026, the docs had moved a little past the exam’s wording, so don’t let a current screenshot throw you. Three things stood out. Pay-per-token now has an opt-in priority mode (priority pay-per-token) for latency-sensitive traffic, billed at a higher rate per token. Provisioned throughput now comes in two options, on-demand with no term commitment and reserved for a fixed term. And each hosted model now also has a system-provided model service name in Unity AI Gateway, like system.ai.meta-llama-3-3-70b-instruct, next to its classic databricks- endpoint name. The supported models list shows both, and you can query with either; custom model services add routing and fallbacks on top. For the exam, the three modes above are still the mental model to bring.

    The real question: is anyone waiting?

    Now the second objective, and the one with the more expensive mistake. The reflex goes like this: an endpoint is simply how you run a model, so scoring eleven million rows means calling the endpoint eleven million times. Experienced engineers add a worker pool, backoff and more provisioned concurrency. That’s a professional answer to the wrong question.

    A drive-through window serves one car at a time, and it’s judged by one number: how long each car waits. Bring it a banquet of ten thousand meals needed by tomorrow morning and widening the window doesn’t help. You still asked for ten thousand separate transactions, each one paying the full cost of being a transaction. What you actually have is one big order that should be cooked in one run.

    So before you name any tool, ask three questions:

    • Is anyone waiting on this particular answer? A person, a page, a synchronous call from another service: that’s real time. A report, an enrichment job, a backfill, a nightly refresh: nobody is waiting.
    • How does the work arrive? One request at a time, unpredictably, means serving. Rows that already exist in a table means batch.
    • What does “done” mean? Milliseconds for one answer, or the whole set finished before a deadline? Those are opposite kinds of success, and they’re optimized by opposite means.

    Words about time per request (latency, response time, queries per second, uptime) are telling you somebody is standing at the window. Words about work completed (large dataset, throughput, nightly schedule, refresh, job finishing) are telling you there’s a pile. When both show up in one paragraph, the one attached to a person usually wins, because a human waiting is a hard constraint.

    Why scaling the endpoint doesn’t fix a batch job

    This is the trap I’d circle twice, because every wrong option here is written in the language of competence. Raise the concurrency. Stand up a provisioned throughput endpoint for the nightly window. Split the job into a hundred smaller batches. They all sound like responsible capacity planning.

    Here’s why they fail. Endpoints have ceilings per endpoint and per workspace, documented on the Model Serving limits page. Hosted foundation models also enforce rate limits on input tokens per minute, output tokens per minute and queries per hour, and the Foundation Model APIs limits page is explicit that the most restrictive one applies at any given time. Cross one and you get an HTTP 429, too many requests. A retry loop that answers a 429 by trying again shortly has misunderstood the message. And even past all of that, you’re still paying per-request overhead once per row.

    Capacity fixes a size problem. It can’t touch a shape problem. When a workload is slow, ask whether it’s the wrong shape before you ask whether it’s the wrong size.

    The trap also runs the other way, and the exam knows it. Send a waiting user’s question to a scheduled batch job and the answer isn’t a bit slower. It arrives on the next run, which might be tomorrow.

    ai_query: bring the model to the data

    Batch inference on Databricks wears the most ordinary disguise possible: a SQL function. ai_query is a scalar expression in a SELECT list, sitting next to a column, over a governed table. No client, no loop, no worker pool. The model goes to the data, not the other way around.

    SELECT
      ticket_id,
      ai_query(
        endpoint    => 'databricks-meta-llama-3-3-70b-instruct',  -- an endpoint name, not a model path
        request     => 'Classify this ticket as billing, technical or other: ' || body,
        failOnError => false                                      -- bad rows return an error, not a dead job
      ) AS result
    FROM main.support.tickets;

    If you’re preparing for the exam and want this kind of shape reading drilled every day, that’s exactly what my free course is built around: a short lesson, the trap it hides, and practice that makes you name the shape first. More on that at the end.

    The first argument is an endpoint, not a model

    Read the first argument again, because it’s the detail I’d bet on seeing. It’s the name of a serving endpoint, as a string literal. Not the name of a model you logged with MLflow, and not the three-part Unity Catalog path of a registered model version. The docs say it plainly: the endpoint must be a foundation model, external model or custom model endpoint in the same workspace, and the definer needs CAN QUERY on it. If you fine-tuned a model, you deploy it behind an endpoint first and then name that endpoint. The newer docs also accept a system-provided model service name such as system.ai.meta-llama-3-3-70b-instruct, which is still something that is already serving, never a registered model sitting in the catalog.

    So yes, there is still an endpoint involved in batch. What changes is who does the calling. You place one order, and AI Functions work through it in a single run, parallelizing and retrying on their own, while your live endpoint stays free for the person waiting at the window.

    The settings that matter on a real run

    • failOnError: defaults to true, which means one bad row from the endpoint fails the whole statement. Set it to false and the function returns a struct with the response and an error message for each row, so a few failures stay a few rows you inspect and retry.
    • responseFormat: for chat foundation models, this is how you ask for structured output (a JSON schema or a DDL-style struct) so results land as something you can query instead of free text. returnType is the argument for custom model endpoints.
    • modelParameters: constant settings such as max_tokens and temperature. Worth knowing that ai_query defaults temperature to 0.0.

    Three batch rules straight from the docs

    The AI Functions page lists best practices for production, and each one maps to a tempting wrong answer:

    • Submit the full dataset in a single query. AI Functions manage parallelization, retries and scaling themselves. Splitting the work into small batches by hand is the instinct that serves you well elsewhere and hurts you here.
    • Use Databricks-hosted foundation models, not provisioned throughput. The docs recommend the databricks- prefixed, provisionless endpoints for batch. So “provision a throughput endpoint for the nightly window” isn’t a defensible trade-off. It’s the direction the documentation steers you away from.
    • Mind the compute. The current docs say AI Functions are not available on Classic SQL warehouses. Older material, including my own notes, put it more strictly as serverless only, so treat a scenario that names a Classic warehouse as a red flag and serverless as the safe answer.

    In practice, the real version of that nightly backfill is a scheduled query, not a service. You write the ai_query statement over the source table, write results back to Delta, and schedule it with Databricks workflows or a Lakeflow pipeline. The batch inference pipelines page shows both, plus a Structured Streaming option for data that keeps arriving. The live assistant keeps its endpoint, the pile goes through a query, and the two workloads stop competing.

    A quick way to sort any scenario

    When you hit a serving question, run this in order:

    • Who is waiting? Nobody means batch with ai_query. A person or a synchronous caller means a serving endpoint.
    • If it’s an endpoint, what’s being served? A hosted foundation model goes through Foundation Model APIs. Your own registered model or agent gets its own Model Serving endpoint.
    • If it’s a foundation model, what’s the traffic? Prototype or bursts means pay-per-token. Sustained production load with guarantees, or a fine-tuned model, means provisioned throughput.
    • If it’s batch, check the details: endpoint name as the first argument, one query over the whole table, failOnError set to false, a hosted databricks- endpoint, and no Classic warehouse.

    One last reminder: if a served RAG chain suddenly can’t read its index, that’s an access question about the endpoint’s identity, not a capacity one. I covered the index side in Databricks Vector Search explained, and if you’re deciding whether to build that agent at all, see Agent Bricks: when to rent and when to build.

    FAQ

    Is ai_query part of Databricks Model Serving?

    They work together. ai_query is a SQL function that invokes an existing Model Serving endpoint. Model Serving hosts the model; ai_query is the batch-friendly way to apply it across a table from SQL.

    What is the first argument to ai_query?

    The name of a serving endpoint in the same workspace, as a string, and you need CAN QUERY on it. Never the Unity Catalog path of a registered model. Newer docs also accept a system-provided model service name such as system.ai.<model>.

    When should I use pay-per-token instead of provisioned throughput?

    Pay-per-token for prototyping, evaluation and light or bursty traffic. Provisioned throughput for sustained production workloads that need performance guarantees, and for fine-tuned or custom models.

    Can I use provisioned throughput for batch inference with ai_query?

    You can point ai_query at one, but Databricks recommends the hosted, provisionless databricks- endpoints for batch. On the exam, provisioning throughput for a nightly job is the tempting wrong answer.

    Should I split a large batch job into smaller chunks?

    No. Submit the full dataset in a single query and let AI Functions handle parallelization, retries and scaling.

    Keep studying, 30-60 minutes at a time

    None of this needs a marathon. Take one evening to read the scenario shapes, one to make a first Foundation Model APIs call, and one to run ai_query over a small table with failOnError set to false. That’s the ambush idea: learn where the traps sit, in short daily sessions, instead of memorizing dumps.

    If you want that path laid out for you, my free Databricks Generative AI Engineer Associate course walks through every exam section the same way, trap by trap. And if you’re still planning your approach, read how to pass without dumps first. See you in the next one.

  • Databricks Agent Bricks: When to Rent and When to Build

    Databricks Agent Bricks: When to Rent and When to Build

    Most people meet Databricks Agent Bricks through a demo: you describe a goal, point at some data, and a working agent appears behind an endpoint. It looks like an easy button, so the natural reflex is to press it whenever it’s on the table. That reflex is exactly what the Generative AI Engineer Associate exam is waiting for. The objective isn’t “know that Agent Bricks exists.” It’s “look at a plain business requirement and say which prebuilt agent it’s asking for, or see that it’s asking for none of them.” This post is about that judgment, the rent-or-build call, and the traps built around it.

    If you’re new here, my Databricks Generative AI Engineer Associate study guide has the full exam map. This post zooms into one line of it, and it happens to be the line that closes the Design Applications section.

    What the exam actually asks about Databricks Agent Bricks

    The official exam guide lists this objective under Section 1, Design Applications: determine how and when to use Agent Bricks (Knowledge Assistant, Multiagent Supervisor, Information Extraction) to solve problems. On the certification page, Design Applications carries 14% of the exam.

    Notice the verbs: “how and when.” Nobody is going to ask you to recite which menu holds the Create Agent button. The questions hand you a scenario, usually a team with a need and a constraint like “as little maintenance as possible,” and ask which approach fits. So the skill is a translation, from the shape of a requirement to the tool built for that shape.

    Two neighbouring objectives lean on this one. Application Development asks you to let multi-agent systems use Genie Spaces or the conversational API to retrieve data, and Assembling and Deploying asks you to pick between managed, external and custom MCP servers. All three are the same question at different sizes: how much do you rent, and how much do you build yourself?

    A quick note on names before you open the docs

    This part matters, because a current screenshot can throw you. When I checked the Databricks docs in late October 2026, the platform had moved on from the exam’s wording. “Agent Bricks” is now the name of Databricks’ whole agent developer platform, including the code-first path (the Agent Bricks CLI, Agent Runtime and so on). The docs now mark Knowledge Assistant and Supervisor Agent as legacy offerings and point new low-code work to Genie Agents. The older Information Extraction page also says a newer version exists.

    None of that changes what you need for the exam. The exam guide still names the three builders, so learn those three cold, and learn the reasoning behind them, because the reasoning is what transfers to whatever the products are called next year. The exam’s “Multiagent Supervisor” and the docs’ “Supervisor Agent” are the same thing; don’t let the rename make you second-guess an answer. If you want the current product map, the legacy agent offerings page lists each old builder next to its replacement.

    A Brick is still an agent

    Before the three builders, one idea the exam likes to test sideways. A managed Brick does not stop being an agent. Underneath, it still runs the same loop a hand-built agent runs: it reasons about the request, acts through a tool, looks at what came back, and decides whether it’s done. What Agent Bricks takes off your plate is the authoring of that loop: the code, the wiring of tools and retrievers, the serving container, the tracing setup. It doesn’t remove the loop.

    I find a ladder helps here. At the bottom you write everything yourself. One rung up, a managed MCP server rents you a tool. Another rung, a Genie space rents you a capability (answering questions over tables in SQL). At the top, an Agent Brick rents you a whole agent for one line of work. Same kind of thing at every rung; you’re just choosing how much of it someone else maintains. If an answer option treats the Brick as a lesser, non-agent species, be suspicious.

    The three builders, and what each one refuses

    Here’s the part I want you to memorize, and I mean the second half of each paragraph as much as the first. Each builder is designed for one requirement shape and refuses the others. Most wrong answers on this objective come from handing a builder a job it wasn’t made for.

    Knowledge Assistant: questions over documents, with citations

    A Knowledge Assistant is managed question answering over your documents. You point it at files in a Unity Catalog volume, a table with a file column, or an existing vector index (Databricks now calls this AI Search), add a short instruction, and it handles parsing, chunking, retrieval and serving. Answers come back with citations to the source. In other words, it’s the RAG application from RAG on Databricks, assembled and hosted for you instead of wired by hand.

    What it refuses: it doesn’t orchestrate other agents, it doesn’t take actions in the world, and it doesn’t answer “how many” questions over your tables. Ask a document assistant for a count and you’re asking a librarian to do an analyst’s job.

    Multiagent Supervisor (Supervisor Agent): one front door over many members

    The supervisor is the orchestrator. It reads each request, delegates to whichever member can answer, and puts the result together. The members can be other agents, Genie spaces, Knowledge Assistant endpoints, Unity Catalog functions, MCP servers, and even custom agents you built yourself. The docs also say the supervisor has built-in access controls, so a user only reaches the members and data they already have permission to use.

    What it refuses: it’s not a worker. It doesn’t ingest documents or extract fields on its own; it delegates. A supervisor with only one member to route to isn’t a simpler assistant, it’s the same assistant with an extra hop in front of it.

    Information Extraction: fields out of text, into a table

    Information Extraction turns a pile of unstructured documents into a structured table. You give it the documents and a sample JSON output (the fields you want, like counterparty, effective date and total), and it pulls those fields from every document at scale. The docs show it running from SQL with ai_query or inside a scheduled pipeline.

    What it refuses: it’s not a chatbot. It doesn’t hold a conversation and it doesn’t answer open questions; it reads documents and returns columns. It’s also different from a fixed-category labeler. “Put each ticket in one of five buckets” is classification; “pull these three values out of each ticket” is extraction.

    Match the verb, not the size of the tool

    The fastest way I know to answer these questions is to read the requirement for its verb.

    • “Answer questions from these documents, with a source for each answer” is a Knowledge Assistant.
    • “Coordinate or route across several existing agents or tools” is a Multiagent Supervisor.
    • “Extract these fields from these documents into a table” is Information Extraction.
    • “Needs a workflow, tool or model no Brick offers” is a custom agent you build.

    Try it on three requests that could easily land in the same week. HR wants an assistant that answers benefits questions from the handbook and cites the policy version. Finance wants counterparty, date and total pulled out of thousands of contract PDFs into a sortable table. The platform team wants one entry point for the half-dozen assistants the company already has. Read each one for its verb and the answer falls out: Knowledge Assistant, Information Extraction, Supervisor. You don’t need to remember a feature matrix, just the shape.

    If you’d rather drill this with flashcards and spaced review than read about it, that’s how my free Databricks Generative AI Engineer Associate course is built: one objective at a time, with the traps called out as you go.

    When you build instead of rent

    Here’s the part that separates a pass from a strong pass. Knowing the three builders is the easy half. The harder half is knowing where the menu ends.

    A Brick wins when the requirement matches its stock pattern and you want the speed and the managed lifecycle. You drop back to a custom agent, the code-first path with the Agent Framework, when you need control a Brick won’t give you:

    • orchestration that’s more than “send this to the right member,”
    • a bespoke tool or a fine-tuned model at the core of the agent,
    • an interaction pattern the managed builder doesn’t allow,
    • or a task shape that none of the builders was designed for.

    The trap runs in both directions. Beginners over-rent: they grab whichever Brick is closest because managed sounds safer. Experienced engineers over-build: they’re proud of the loop they can write, so they hand-code a document Q&A that a Knowledge Assistant would have delivered and maintained for them. When a scenario says “minimal maintenance” and the requirement is a clean match for one builder, building it yourself is the over-build, no matter how much control it gives you.

    And it isn’t either/or. A supervisor can take Bricks and custom agents as members. So the mature answer to a hard requirement is usually a mix: rent the pieces that fit, build the one piece that really needs building, and let a supervisor compose them.

    The ambush: right Brick vs any Brick

    This is the trap I’d bet on seeing in some form. The scenario describes one clean requirement, say one assistant answering from one set of documents. One option offers something more impressive: wrap it in a supervisor, or stand up a whole multi-agent system “so it can scale.”

    It’s wrong, and not by a little. A supervisor wrapped around a single document Q&A job has nothing to route. You get the same answers, slower, with more moving parts to debug. The tell is an option whose appeal is generality or headroom while the requirement itself is narrow and specific. The fix is always the same: pick the builder whose purpose matches the requirement, never the most powerful one on the menu.

    Why splitting into more agents isn’t free

    The same logic applies to multi-agent designs in general. The book calls the cost a coordination tax, and it comes in three parts. Latency, because each routed request makes a round trip through the supervisor. Cost, because each hop is at least one more model call. And failure surface, because a team of agents is harder to trace and debug than one agent, with new ways to fail, like two agents passing a task back and forth because neither was built to end it.

    The book’s rule, and mine, is to start with one agent and split only when the work actually divides. Three reasons justify a split: distinct toolsets (one agent would hold so many tools that their descriptions blur), distinct domains that need their own instructions and context, or distinct ownership and governance across teams. If none of those holds, keep the single agent. On the exam, when the task hasn’t changed and the proposal is “make it multi-agent to look scalable,” the restrained answer is almost always the right one.

    The honest multi-agent system is small

    When a split is justified, it’s usually modest. A common shape: a supervisor with two members, a Genie space for “how many” questions over governed tables and a Knowledge Assistant for “what does the policy say” questions over documents. The supervisor reads each request and sends it to the analyst or the librarian. You add a third member only when a third, genuinely different kind of work shows up. If you want the retrieval side of that librarian in more depth, my posts on Databricks Vector Search and chunking strategy cover what’s happening under the managed surface.

    How I’d study this in 30-60 minutes

    This objective is mostly judgment, so it rewards short, frequent practice more than long reading sessions. Here’s how I’d spend one focused session:

    • 10 minutes: read the Knowledge Assistant, Supervisor Agent and Information Extraction pages in the docs, only the “what is it” and “use cases” sections. Write one line for what each does and one line for what it refuses.
    • 15 minutes: write ten one-sentence requirements from your own work or imagination. For each, name the builder, or write “custom agent” and the reason.
    • 10 minutes: for three of those, write the over-built and the over-rented answer next to the right one. Being able to say why the wrong options are wrong is what holds up under exam pressure.
    • 5 minutes: say the coordination tax out loud (latency, cost, failure surface) and the three reasons to split (tools, domains, ownership).

    If you’re still building your overall plan, my post on how to pass the Databricks Generative AI Engineer Associate without dumps explains how I structure the weeks around objectives like this one.

    FAQ

    Is Agent Bricks on the Databricks Generative AI Engineer Associate exam?

    Yes. The current exam guide lists it in Design Applications: determine how and when to use Agent Bricks (Knowledge Assistant, Multiagent Supervisor, Information Extraction) to solve problems.

    Knowledge Assistant and Supervisor Agent are marked legacy in the docs. Do I still need them?

    For the exam, yes, because the exam guide names them. The docs now recommend Genie Agents for new low-code agents and the Agent Bricks CLI for code-first agents, but the decision the exam tests (matching a requirement to the right kind of agent, or choosing to build) is the same either way.

    What’s the difference between Multiagent Supervisor and Supervisor Agent?

    They’re the same builder. The exam guide uses the older name, Multiagent Supervisor; the docs use Supervisor Agent.

    When should I build a custom agent instead of using a Brick?

    When the requirement needs control no builder offers: custom orchestration beyond routing, a bespoke tool or fine-tuned model, an unusual interaction pattern, or a task shape none of the builders fits. If one builder matches cleanly and the scenario stresses low maintenance, rent it.

    Is a multi-agent system always better for complex apps?

    No. Every split adds latency, cost and failure surface. Split only for distinct toolsets, distinct domains, or distinct ownership, and keep one agent otherwise.

    Keep going with the free course

    Agent Bricks is one of those objectives that looks like product trivia and turns out to be pure judgment. Read the requirement for its verb, know what each builder refuses, and keep “build a custom agent” ready for when nothing fits. That’s the whole ambush, and it’s learnable in a few short sessions.

    If you want the rest of the exam laid out the same way, objective by objective with the traps marked, my free Databricks Generative AI Engineer Associate course is where I put all of it. No dumps, no shortcuts, just 30-60 minutes a day on the things the exam actually checks.

  • RAG on Databricks: The Pieces the Exam Actually Tests

    RAG on Databricks: The Pieces the Exam Actually Tests

    Most people study RAG on Databricks as a list of products: a vector index here, an embedding model there, a model endpoint at the end. Then the Generative AI Engineer Associate exam hands them a chain that already works and asks what’s missing, or a retrieval score that looks great next to answers that are wrong, and the product list doesn’t help. The exam doesn’t test whether you can name the pieces. It tests the wiring between them, how the chain ships, and how you prove it answers well. That’s what this post is about.

    If you’re starting from zero, my Databricks Generative AI Engineer Associate study guide has the full exam map. Here I’m zooming into the build itself: the part where the index, the chunks and the model finally become one application.

    Why RAG on Databricks shows up in four exam sections

    On the official exam page, Databricks lists six sections. The RAG build touches four of them: Design Applications (14%), Data Preparation (14%), Application Development (30%) and Assembling and Deploying Apps (22%). That’s most of the paper, from one topic.

    The objectives behind this post sound like separate chores when you read them in the exam guide:

    • Translate business goals into the inputs and outputs of the pipeline.
    • Select chain components for a desired input and output.
    • Select LangChain or similar tools for an application.
    • Code a simple chain, then code one inside a pyfunc model with pre- and post-processing.
    • Choose the basic elements needed to create a RAG application.
    • Use tools and metrics to evaluate retrieval, and explain the role of re-ranking.

    In my book I collapse them into two pictures, because two pictures are easier to carry into the exam room than eight objectives. The first is an assembly line: how the pieces connect and ship. The second is a retrieval funnel: how you prove the retrieval part actually works. Everything below hangs on one of those two.

    Picture one: the chain is an assembly line

    Think of a chain as an assembly line. Each component is a station that takes one shape of input and turns out the next shape. You don’t design the line from the first machine forward. You design it backward, from the product it has to ship.

    Start with the shape, not the tool

    Here’s the first trap. A scenario gives you a business goal, something like “summarize each support ticket and route it to the right team,” and asks what to do first. The tempting answers name a tool: set up a LangChain pipeline, pick a bigger model. The right first move is boring: write down what goes in, what comes out, and every shape that passes between stages.

    Do that with the ticket example and it stops being one task. It’s two transformations with a handoff: ticket text becomes a summary, and the summary becomes a routing label. That handoff is a shape you either specify or a failure you ship. When the exam asks what comes first with a requirement, the answer is the spec, never a product.

    Read the pair, name the station

    Once you have shapes, picking components becomes a lookup instead of a guess, because each kind of component does exactly one transformation:

    • A question in, ranked passages out: that’s a retriever.
    • A prompt in, text out: that’s the model.
    • Raw model text in, a structured record out: that’s an output parser.

    So when a question gives you a desired input and output and asks which component belongs between them, read the pair. Notice what’s not on that list: “use LangChain.” A framework hosts stations, but it performs no transformation of its own. An answer that names the framework fits every question equally, which means it answers none of them.

    LangChain is the conveyor belt, not a station

    That doesn’t make LangChain a wrong answer. It means you judge it by fit. What a framework like LangChain really buys you is composition (connecting stations) and integrations (ready-made connectors to retrievers, models and tools). It earns its place by the number of handoffs it spans.

    A pipeline with several stations and real integrations wants the belt. A single model call has nothing to convey, and a plain call to a Foundation Model API is simpler and clearer. The exam sets this trap in both directions: wrapping one call in a framework, and refusing a framework for a real multi-station chain. Count the stations, not the ideology.

    The chain is the machines; the pyfunc envelope is what ships

    A chain that runs in your notebook is just the machines. What Databricks logs, registers and serves is the chain wrapped in an envelope. For custom Python, that envelope is an MLflow pyfunc model, and it adds two stations of its own: preprocessing at the front, which validates the input before any machine sees it, and postprocessing at the back, which enforces the shape of what goes out.

    This is where one of my favorite traps lives. An answer says “tell the model in the prompt to always return JSON.” That narrows the odds, but it guarantees nothing, because a model can ignore a request. The guarantee lives after the model, in postprocessing code that parses the output and either coerces it into the promised structure or rejects it. Anything you only ask for in the prompt is a probability. Anything you check in code after the model is a certainty.

    The RAG bill of materials: six parts, six failures

    This is the objective I see people underestimate most. A retrieval chain that answers in a notebook and one that registers and serves are separated by a short list of declarations. I call it the bill of materials, because like a shipping manifest, it names every part the crate must contain, and a crate missing a part either gets turned back or fails in the field.

    The exam names six elements. Memorize them with the failure attached, because the questions almost never say “list the six.” They describe a symptom and ask which part is missing.

    • Model flavor. Tells MLflow how to save, load and call the artifact: the LangChain flavor for a LangChain chain, pyfunc for custom Python. Wrong flavor: the artifact doesn’t reconstruct into something Model Serving can call.
    • Embedding model. Turns the incoming question into a vector. It must be the same model that embedded the documents when the index was built. Mismatch: no error at all, just confidently retrieved passages that mean nothing. That’s the silent one.
    • Retriever. Carries the query vector to the index and brings passages back. Declared as a resource, together with the embedding endpoint, so the served model can authenticate. Undeclared: the model logs and registers fine, then fails in production with an authentication error.
    • Dependencies. The libraries the serving container installs. Pin the full mlflow package, not mlflow-skinny, the trimmed package that ships with Databricks Runtime ML. Get this wrong and the container doesn’t build, so the model never deploys.
    • Input example. One sample request. MLflow runs it through the model to infer the signature.
    • Model signature. The schema of what goes in and what comes out. Unity Catalog requires it, so without one, registration is refused outright.

    The authentication part is worth a sentence of its own. In the notebook, your own credentials ride along with every call, which is why everything just works. A served model runs with no person signed in. Databricks calls the fix automatic authentication passthrough: you declare every resource the chain touches when you log it, and at deployment Databricks provisions short-lived credentials for exactly those resources. A deployed model can only open the doors its manifest listed.

    In practice the six collapse into one logging call. Here’s a sketch of what that looks like (names and the version are placeholders):

    import mlflow
    from mlflow.models.resources import (
        DatabricksServingEndpoint,
        DatabricksVectorSearchIndex,
    )
    
    mlflow.set_registry_uri("databricks-uc")
    
    with mlflow.start_run():
        mlflow.langchain.log_model(                  # 1. flavor: which log_model you call
            lc_model="rag_chain.py",                 # the chain, logged from code
            name="rag_chain",
            input_example={"messages": [             # 5. example, used to infer 6. the signature
                {"role": "user", "content": "What is the return window?"}
            ]},
            pip_requirements=[                       # 4. dependencies: full mlflow, pinned
                "mlflow==<your version>",
                "databricks-langchain",
            ],
            resources=[                              # 2 and 3. what the chain calls when served
                DatabricksServingEndpoint(endpoint_name="databricks-bge-large-en"),
                DatabricksVectorSearchIndex(index_name="main.support.docs_index"),
            ],
            registered_model_name="main.support.rag_chain",
        )

    Every element is one argument. The flavor is which log_model you call. The embedding model and the retriever are the two resources. The dependencies are pip_requirements. The input example is input_example, and the signature is the one element you don’t see, because MLflow infers it from the example. A good habit before registering anything: load the logged model back and call it on your input example, so the whole manifest gets exercised once while a mistake is still cheap.

    If you want to drill these symptom-to-part matches with practice questions written in the exam’s style, that’s exactly what my free Generative AI Engineer Associate course is built for. No dumps, just the traps explained.

    Picture two: retrieval is a funnel

    Now the chain registers and serves. The next question is the one the exam really cares about: is it any good? And you can’t answer that by reading a few answers and deciding they look fine.

    I picture retrieval as a funnel with two stages. The first stage casts wide and cheap, catching every passage that might matter. The second stage judges narrow and expensive, lifting the best of those to the top. Most retrieval failures are one stage missing or weak, which turns every bad answer into a question with two suspects: was the right passage never caught, or caught and buried?

    The metrics, and what each one catches

    You measure the funnel against an evaluation set: questions paired with the passages that should come back. Then four metrics do different jobs:

    • Recall at k is completeness. Of all the relevant passages that exist, how many made it into your top k? It catches what you missed.
    • Precision at k is purity. Of the k passages you returned, how many are relevant? It catches the noise you let in.
    • NDCG scores the whole ranking, rewarding relevant passages more the higher they sit.
    • MRR (mean reciprocal rank) scores how high the first relevant passage lands.

    Recall and precision use the same top-k set with different denominators, so they catch opposite failures. “We can’t find it” is a recall problem. “Too much junk in the context” is a precision problem. And MRR is the wrong instrument when an answer needs more than one passage, because it only cares about the first hit.

    The trap: a retrieval score never scores the answer

    This is the one that ships confidently wrong systems. Every metric above certifies what came back, not whether the model did right by it. High recall sitting next to wrong answers is not a paradox. It’s a retrieval score being asked to vouch for a stage it never measured. Whether the answer is faithful and correct is generation evaluation, a separate set of tools. Watch out for groundedness in particular: it sounds like a retrieval measure, but it judges the answer, not the retrieval.

    Re-ranking: it sorts the catch, it can’t fill the net

    Re-ranking is the funnel’s second stage, and the exam tests it as a cost-benefit decision more than a feature.

    The first stage runs on a bi-encoder: the embedding model embeds the query and each document separately. Because documents are embedded on their own, they can be embedded once, ahead of time, which is what lets search scale to millions of passages. The second stage runs on a cross-encoder, which reads the query and one document together and scores how well that document answers that query. Reading the pair together makes it more accurate. It also means nothing can be computed ahead of time, so it only ever runs on a shortlist. They’re not the same model used twice; they’re two machines built for opposite jobs.

    On Databricks, the reranker is built in, and you turn it on in the query itself, as the query documentation shows. Set num_results to the final number you want back; the number of candidates the reranker scores is separate from it:

    from databricks.ai_search.reranker import DatabricksReranker
    
    results = index.similarity_search(
        query_text="Can a damaged item be returned after 30 days?",
        columns=["id", "text", "doc_uri"],
        query_type="hybrid",          # stage one: vector + keyword, fused
        num_results=10,               # the shortlist the model finally sees
        reranker=DatabricksReranker(  # stage two: the built-in cross-encoder reranker
            columns_to_rerank=["text"]
        ),
    )

    Quick naming note: Databricks now brands Vector Search as AI Search, so newer docs use that name. The mechanics are the same, and I covered the endpoint, index and sync side in Databricks Vector Search explained.

    When re-ranking earns its latency

    The retrieval quality guide is refreshingly direct about the trade. The built-in reranker suits RAG agents, where latency is already dominated by the model’s generation, and quality-first apps at low to moderate traffic (about 5 queries per second out of the box). It’s not suited to high-throughput apps or real-time search bars that need answers in under 100 milliseconds, since reranking 50 results takes up to a second (under 1 second in typical workloads, per the guide).

    So on the exam: if the scenario stresses quality and the answer is generated by an LLM anyway, re-ranking is worth it. If it stresses a live search box or hundreds of queries a second, leave it off.

    The ambush: buried versus missing

    Here’s the differentiator. A reranker only reorders what the first stage retrieved. It never sees a passage that wasn’t caught. So it fixes exactly one failure: the right passage is in the candidate set but ranked too low. In the metrics, that looks like recall that’s poor at the top and healthy deeper down (low at 10, high at 50).

    If recall stays low even at a deep cutoff, the right passage isn’t in the candidates at all, and a reranker just reshuffles wrong answers. That’s a first-stage problem, and the fix lives there: hybrid search (vector plus keyword), metadata filtering, a stronger embedding model, or a better chunking. Databricks lays these out as a ladder: improve the net first, then add the reranker on top. Before you improve a stage, prove it’s the stage that’s failing.

    Closing the loop: let evaluation choose your chunking

    One last connection, because it ties the whole build together. In my post on chunking strategies for Databricks RAG, I explained how document structure and the embedding model’s limits narrow down where to cut. What they can’t tell you is which of the remaining options wins. That’s settled by the same instruments from this post: index the chunking candidates, score each one on the same evaluation set, and keep the winner.

    The exam objective literally says “based on model and retrieval evaluation.” An answer that reasons its way to a chunk size without running an eval has solved a different problem. Design proposes the chunking; evaluation picks it.

    How I’d study this part in 30-60 minutes a day

    This is a lot of surface, so I’d split it across a few short sessions instead of one long one:

    • Day 1: The assembly line. Take three business goals and write their input and output shapes before naming any component. Then name the station between each pair.
    • Day 2: The bill of materials. Write the six elements from memory, each with its failure. Then do it backward: from a symptom (auth error, container won’t build, registration refused, meaningless passages) to the missing part.
    • Day 3: The funnel. Define recall, precision, NDCG and MRR in one sentence each, and practice reading a pair of recall numbers (at 10 and at 50) to decide between “re-rank” and “fix the first stage.”

    If you’re planning your whole prep, my post on how to pass the Databricks Generative AI Engineer Associate exam covers the full routine.

    FAQ

    What does the exam mean by the “basic elements” of a RAG application?

    Six things you declare when logging the chain: the model flavor, the embedding model, the retriever, the dependencies, an input example, and the model signature. Each one has its own failure when it’s missing, and that’s how the exam asks about them.

    Why does my RAG chain fail with an authentication error only after deployment?

    Most likely the vector index or the embedding endpoint wasn’t declared in the resources list when the model was logged. In the notebook your own credentials are used; a served model can only reach the resources it declared.

    Do I need LangChain to build RAG on Databricks?

    No. LangChain helps when you’re composing several stations with integrations. For a single model call, a plain Foundation Model API call is simpler. The exam rewards matching the tool to the number of handoffs, not loyalty to a framework.

    Does re-ranking always improve retrieval?

    Only when the right passage was retrieved but ranked too low. If it was never retrieved, re-ranking can’t help, and the fix belongs in the first stage. It also adds latency, so it’s a poor fit for high-throughput or sub-100-millisecond search.

    Is a high recall score proof that my RAG app gives good answers?

    No. Recall measures what the retriever returned, not what the model did with it. Answer quality is measured separately with generation evaluation.

    Keep going

    RAG on Databricks gets easier the moment you stop seeing it as a pile of products and start seeing two pictures: an assembly line that has to ship, and a funnel you have to measure. Learn the traps in each, and most of these questions answer themselves.

    If you want to practice exactly these traps with scenario questions and clear explanations, take my free Databricks Generative AI Engineer Associate course. It’s free, it’s built around the ambush idea, and it fits in 30-60 minutes a day.

  • Chunking Strategies for Databricks RAG (and the Silent Truncation Trap)

    Chunking Strategies for Databricks RAG (and the Silent Truncation Trap)

    Picking a chunking strategy for RAG on Databricks looks like a settings question. Choose a number, 500 tokens maybe, and move on. That’s exactly how the Generative AI Engineer Associate exam catches people. The chunking questions don’t reward a favorite number. They reward knowing which of three separate decisions the scenario is really about, and one of those decisions hides a failure that never throws an error: text that gets embedded as if it were never written. I call it the silent truncation trap, and by the end of this post you’ll see it coming.

    If you’re new here, my Databricks Generative AI Engineer Associate study guide has the full map of the exam. This post zooms into the chunking part of it, which touches more of the exam than most people expect.

    Why chunking shows up all over the exam

    On the official exam page, Data Preparation carries 14% and Application Development carries 30%. Chunking lives in both. Data Preparation asks you to apply a chunking strategy for a given document structure and model constraints, and to design retrieval with advanced chunking strategies. Application Development asks you to select a chunking strategy based on model and retrieval evaluation.

    Read those three objectives again and notice the different verbs: apply, design, select. They’re not three ways of saying the same thing. They’re three different steps, and the exam writes wrong answers that do the right work at the wrong step. That’s the ambush.

    The model I use: chunking is three decisions, not one number

    In my book I call this the chunking cascade. Where you cut a document is decided at three levels, stacked top to bottom, and each level narrows the one below it:

    • Document structure decides where a clean cut can fall.
    • Model constraints decide how large a piece is allowed to be.
    • Retrieval granularity decides how the pieces get used: what you match on and what you hand the model.

    This is why there’s no universal chunk size. A contract, a chat log and a product manual can’t share one number, because they disagree at the very first level. Anyone who gives you a single value has quietly squashed three decisions into one.

    Level 1: let the document’s shape pick the splitter

    Most documents already tell you where they want to come apart. Markdown has headings. HTML has tags. Contracts have numbered clauses. Cut along those lines and each chunk still reads as a complete section. Cut across them at a blind character count and you get pieces that end mid-clause and start mid-thought, with their heading stranded somewhere behind them.

    Here’s how I run the menu as one decision:

    • Explicit structure (Markdown, HTML, clearly sectioned docs): a header-based splitter. It cuts at the headings and keeps them as metadata, so each chunk knows which section it came from.
    • Ordinary prose (articles, transcripts, flowing policies): a recursive character splitter. It tries paragraphs first, then sentences, then words, only falling back to a hard cut when nothing better fits. It’s the sensible default when you’re unsure.
    • Prose with hidden topic shifts: semantic chunking. It embeds sentences and cuts where the meaning changes. It’s the most expensive option, so it earns its place only when the structure is real but unmarked.
    • Fixed-size: the baseline the others improve on. Fine when the text has no structure worth keeping and speed matters more than precision.

    Trap: fixed-size on a structured document

    When a scenario takes the time to describe a document’s structure (“Markdown docs with clear headings”, “an HTML knowledge base”), that description is the answer. The fixed-size option sounds neutral and safe, but it throws away the boundaries the scenario just handed you. If the question names the structure, cut along it.

    Trap: “semantic” chunking is not semantic search

    Same tool, different job, different moment. Semantic chunking uses embeddings at prep time to decide where to split. Semantic search uses embeddings at query time to find a chunk. If the question is about how to divide a document, an answer about retrieval is off target, and the other way around.

    Structure picks the primary boundaries, but it doesn’t replace the size limit. A long section can still be too big for the embedding model, so in practice a header splitter is usually followed by a size-capped splitter for anything oversized. In LangChain that’s a few lines:

    from langchain_text_splitters import (
        MarkdownHeaderTextSplitter,
        RecursiveCharacterTextSplitter,
    )
    
    # Level 1: cut along the structure the author already drew
    header_splitter = MarkdownHeaderTextSplitter(
        headers_to_split_on=[("#", "h1"), ("##", "h2"), ("###", "h3")]
    )
    sections = header_splitter.split_text(markdown_doc)  # headings kept as metadata
    
    # Level 2: any section that is still too long gets sub-divided to fit
    sizer = RecursiveCharacterTextSplitter(chunk_size=2000, chunk_overlap=200)
    chunks = sizer.split_documents(sections)

    The sizes in that snippet are placeholders, not a recommendation. Which brings us to the level where the trap lives.

    Level 2: model constraints and the silent truncation trap

    Two limits force you to chunk at all, and the exam likes candidates who think they’re the same limit.

    The first is the LLM’s context window: how many tokens the model can read in one call. It’s the reason you retrieve a few passages instead of whole documents. The second is quieter: the embedding model’s own input limit. Every chunk has to be embedded before it can be indexed, and the embedding model has a much smaller window than the LLM that reads the answer.

    On Databricks this is very concrete. The supported models page lists databricks-gte-large-en with an embedding window of 8,192 tokens and databricks-bge-large-en with a window of just 512 tokens. Both produce 1024-dimension vectors. Same output size, wildly different input limits.

    Here’s the trap. If a chunk is longer than the embedding window, the part past the limit doesn’t make it into the vector. It’s cut off before embedding, and depending on how your pipeline is set up, nothing fails loudly. The chunk sits in your table looking complete, the index syncs fine, and the tail of every long chunk is unsearchable. Pair 2,000-token chunks with a 512-token embedding model and roughly three quarters of each chunk never influences retrieval.

    So the rule I keep in my head is: the context window is why you cut; the embedding window is how large you may cut. Size chunks only for the LLM and you can lose text at the index without a single error message.

    The record count arithmetic (and the other trap at this level)

    The second model-and-index constraint is capacity. A Vector Search endpoint holds a limited number of vectors (I covered endpoint sizing in my post on Databricks Vector Search), and your chunking decides how many vectors you produce.

    The math is simple. The number of chunks is roughly your corpus length divided by (chunk size minus overlap). Take a 10 million token corpus:

    • 1,000-token chunks, no overlap: about 10,000 chunks.
    • 1,000-token chunks, 200 tokens of overlap: about 12,500 chunks.
    • 500-token chunks, no overlap: about 20,000 chunks.

    Bigger chunks mean fewer records. More overlap means more records. Overlap isn’t waste, though: it’s insurance that a sentence sitting on a boundary survives whole in at least one chunk. Just don’t overdo it, or your retriever starts returning near-duplicates of the same passage.

    Trap: record count vs record size

    When a scenario says the index is over capacity, one option will be to switch to a smaller embedding model with fewer dimensions. It sounds technical and smart. It’s wrong for this problem. Fewer dimensions make each vector lighter, which helps memory and cost, but you still have exactly the same number of vectors. Only two dials change the count: larger chunks and less overlap. Change the cut, not the model.

    Level 3: retrieve small, serve big

    This is the level that separates a RAG app that finds text from one that answers questions. Most people assume the chunk you retrieve and the chunk you give the model must be the same piece of text. They don’t have to be.

    Small chunks match precisely but often arrive without enough context to be useful. A sentence like “set the timeout to 30 seconds” can be the perfect match and still useless, because the sentence that says which service it applies to sits right above it. Big chunks carry context but blur the match. With one chunk doing both jobs, every size is a compromise.

    The advanced strategies remove the compromise:

    • Parent-document (small-to-big) retrieval: index small child chunks for matching, keep the larger parent passages they came from, and return the parent when a child matches.
    • Sentence-window retrieval: index single sentences, and when one matches, widen it to the sentences around it before passing it to the model.
    • Metadata-enriched chunks: store heading, section, date and source with each chunk. The model gets context, and the retriever gets filters (for example, only the latest version of a policy).
    • Contextual chunks: prepend a short generated line that situates the chunk in its document before embedding it, so a bare instruction embeds near the topic it actually belongs to. It costs a generation call per chunk, so save it for corpora that need it.

    Trap: “increase the chunk size” to fix missing context

    When a scenario says retrieval finds the right text but answers come out incomplete, the tempting answer is bigger chunks. It does give the model more context, and in the same move it makes the match fuzzier. You’ve just slid along the one dial you were stuck on. The answer that fixes the complaint without paying in precision keeps two units: retrieve small, serve big.

    By the way, this is exactly the kind of judgment I train in my free Databricks Generative AI Engineer Associate course: not memorizing splitter names, but learning to spot which level a question is really testing.

    How to choose a chunking strategy for RAG on Databricks: measure it

    The first two levels you can settle by reading and arithmetic. The third you can’t, because the best granularity depends on how your real questions land on your real passages through your specific embedding model. Nobody can reason their way to that. You measure it.

    The loop looks like this:

    • Start from the cut that structure and the embedding window already suggest.
    • Create a few candidate variants around it: different size, overlap or strategy, changing one variable at a time.
    • Build an index for each candidate and run the same retrieval evaluation set against all of them.
    • Compare retrieval metrics such as recall at k, and ship the variant that scores best.

    There’s no button that sweeps chunking configurations for you. It’s a loop you run, one index per candidate, all scored on the same evaluation set so the comparison is fair. Log each variant’s numbers next to its configuration, so the decision is something you can defend and rerun later.

    Trap: design vs evaluate

    When the scenario says “based on evaluation”, an answer that reasons from document structure and token limits without running anything is wrong, even though the reasoning is sound. It’s doing the design step when the question asked for the selection step. And if the scenario has no evaluation set, the right first move is to build one.

    Trap: re-chunking as a reflex

    Chunking is one lever among several. When recall is poor, hybrid search or metadata filters can help more than a new chunk size, and when the right passage comes back but ranked low, re-ranking is the fix. Re-chunk when the evaluation points at the cut, not every time a number disappoints.

    FAQ

    What is the best chunk size for RAG on Databricks?

    There isn’t one. The document’s structure sets where you can cut, the embedding model’s input window sets the maximum size, and retrieval evaluation picks the final size among the candidates that fit. Any single number offered as “the best” skips those steps.

    Does Databricks truncate chunks that are longer than the embedding model’s limit?

    Each embedding model has a fixed input window (8,192 tokens for databricks-gte-large-en, 512 for databricks-bge-large-en). Text beyond that window can’t be represented in the vector, so the safe habit is to size chunks under the window of the model you actually use instead of counting on an error to warn you.

    How do I reduce the number of vectors in my index?

    Use larger chunks, less overlap, or both. Switching to a smaller embedding model makes each vector smaller but doesn’t reduce how many there are.

    When should I use parent-document retrieval?

    When retrieval finds relevant text but the model lacks the surrounding context to answer well. Match on small chunks, return their larger parents, and you keep precision while feeding the model enough context.

    Is semantic chunking the same as semantic search?

    No. Semantic chunking decides where to split documents during data prep. Semantic search finds relevant chunks at query time. Both use embeddings, but for different jobs.

    Study it the ambush way

    Give chunking one focused 30 to 60 minute session. Say the three levels out loud (structure, model constraints, retrieval granularity), then for every practice scenario ask one question before you read the options: which level is this testing? Most chunking traps fall apart once you know the level. The wrong answers are usually correct ideas parked at the wrong step.

    If you want the whole exam broken down this way, my guide on how to pass the Databricks Generative AI Engineer Associate exam without dumps walks through the daily routine I use, and my free Databricks Generative AI Engineer Associate course covers every topic with the traps called out before exam day finds them for you. No dumps, no leaked questions, just the material and the patterns.

  • Databricks Vector Search Explained: Endpoint, Index, Sync, and Sizing Traps

    Databricks Vector Search Explained: Endpoint, Index, Sync, and Sizing Traps

    Databricks Vector Search is the part of the Generative AI Engineer Associate exam where vague answers go to die. The questions rarely ask you to define an embedding. They ask you to pick an endpoint, an index type, a sync mode and a set of query features for a specific scenario, and three of the four options are things a reasonable engineer might actually do. This post is how I learned to read those questions: what the pieces are, how they connect, and where the exam hides its traps.

    One naming note before we start. Databricks has renamed the product: the docs now call it Databricks AI Search (formerly Databricks Vector Search), and the official exam page uses the new name too. A lot of study material, including older versions of the exam guide, still says Mosaic AI Vector Search. Same product, same concepts. I’ll use “Vector Search” here because that’s still what most people search for.

    If you’re just starting, read my Databricks Generative AI Engineer Associate study guide first for the full map of the exam. This post zooms into one chapter of it.

    Why Databricks Vector Search matters so much on this exam

    Vector Search sits in two of the exam’s heaviest sections. The official page lists Application Development at 30% and Assembling and Deploying Apps at 22%. Choosing an embedding model lives in the first. Explaining the components of Vector Search, creating and querying an index, and configuring it for a given workload live in the second.

    That last objective is the one I’d circle in red. It asks you to configure vector search based on the number of embeddings, update frequency, latency and cost. Four constraints in one question. It’s where two people with the same knowledge walk out with different answers, because only one of them read which constraint actually mattered.

    The mental model: an index is alive, not a file

    A Vector Search index is not something you build once and forget. It’s a living projection of a Delta table. The table is the source of truth, and the index is a copy of its vectors, arranged so you can search by nearness instead of by key.

    Why a separate object at all? Because a Delta table stores vectors as rows, and rows are searchable by key, not by similarity. To find the closest points to a query quickly, the vectors have to be reorganized into an approximate nearest neighbor (ANN) structure. Building that structure is what “building an index” means. You can’t point a similarity query at the raw table and get results back.

    And because the index is a copy, it can drift. The mechanism that keeps it current is the sync. While the sync runs, the index holds what the table holds. If the sync stops, the index keeps answering, confidently, with old data. Nothing errors. From the outside, a stale index looks exactly like a working one. Keep that picture in mind, because half the traps below are about it.

    Endpoint vs index: two things, two problems

    The exam loves this distinction, and it’s easy to blur in your head.

    • The endpoint is the serving compute. Queries go in, results come out, and it’s what you provision and pay for.
    • The index is the synced vector data that lives on the endpoint. It has its own three-part name in Unity Catalog and is governed there.

    One endpoint can host many indexes (the docs list a limit of 50 indexes per endpoint), so a team with several search applications usually shares one endpoint. This also means “the endpoint is slow” and “the index is stale” are different problems with different fixes. If a scenario describes outdated results, the answer is almost never “make the endpoint bigger”.

    Delta Sync vs Direct Vector Access: who runs the sync?

    If the index is a projection that has to stay in sync, the first real question is who does the syncing. Vector Search gives two answers.

    Delta Sync index

    You point it at a source table, and Databricks keeps the index in step with it automatically, updating it incrementally as rows change. This is the managed path, and it’s the default you should reach for when your data already lives in a governed Delta table.

    Direct Vector Access index

    There’s no source table being watched. You write vectors and metadata into the index yourself through the REST API or the Python SDK, and you own every update. It’s the right tool when your vectors come from a system Databricks doesn’t manage.

    Managed vs self-managed embeddings

    Inside a Delta Sync index there’s a second fork: who computes the vectors. With managed embeddings, you hand the index a text column and an embedding model endpoint, and Databricks embeds every row (and re-embeds the ones that change). With self-managed embeddings, you compute the vectors upstream, store them in a column, and the index just syncs those numbers.

    One direction is closed, and it’s exactly the kind of detail the exam likes: per the Databricks docs, you can’t convert a self-managed embedding index into a managed one. If you change your mind, you create a new index and recompute the embeddings. So choosing self-managed “to keep options open” actually closes one.

    Trap: “more control” is not a feature

    A scenario describes a governed Delta table of chunked text and offers Direct Vector Access as an option, usually framed as the more hands-on, more flexible choice. It’s tempting because manual sounds serious.

    It’s backwards. When the source is a Delta table Databricks can see, a Delta Sync index keeps it current for you. Choosing Direct Vector Access means volunteering to hand-feed an index that would restock itself, and adopting every future staleness bug along with it. My rule: when one option is automatic and the other is manual, the manual one isn’t the professional choice by default. Match the mechanism to where the data lives.

    Create, sync, query: the three moves

    Standing up an index has a prerequisite people forget: the endpoint. You either create one or reuse an existing one. Then creating the index is really three decisions disguised as a function call. Here’s a sketch based on the current docs (the Python package is now databricks-ai-search; older tutorials use VectorSearchClient from databricks-vectorsearch, with the same ideas). The table and endpoint names are just examples.

    from databricks.ai_search.client import AISearchClient
    
    client = AISearchClient()
    
    index = client.create_delta_sync_index(
        endpoint_name="search_endpoint",                    # the serving compute
        source_table_name="main.support.document_chunks",  # governed Delta table
        index_name="main.support.document_chunks_index",   # its own UC name
        primary_key="chunk_id",
        pipeline_type="TRIGGERED",                          # or "CONTINUOUS"
        embedding_source_column="content",                 # managed embeddings
        embedding_model_endpoint_name="databricks-qwen3-embedding-0-6b",
    )

    Read what the call is deciding. The source table is your chunk table. The index gets its own Unity Catalog name. The embedding column and model endpoint make it managed embeddings. And pipeline_type is the sync rhythm, which is the decision that matters most.

    The Change Data Feed requirement

    When a Delta Sync index syncs, it doesn’t re-embed the whole table. It reads the table’s change feed, the log of rows inserted, updated or deleted since the last sync, and processes only those. That’s why the docs say that for standard endpoints the source table must use a change data feed (tables with row tracking get one automatically). On the exam, a Delta Sync index built on a table without Change Data Feed is a planted error you’re meant to catch.

    Also remember that creating an index isn’t the same as filling it. The first sync is a full load, and you can’t usefully query until it finishes. Create, sync, then query. In that order.

    Querying with filters

    Querying uses the same embedding model to place your question as a point in the same space, then returns the nearest chunks.

    results = index.similarity_search(
        query_text="do final-sale items qualify for a refund",
        columns=["chunk_id", "content", "title"],
        num_results=5,
        filters={"source": "returns_policy"},  # standard endpoint syntax
    )

    The filters argument is worth slowing down for. It narrows the search using metadata that rode along with each chunk (source, section, date), so similarity only ranks rows that qualify. A question about the returns policy never even considers a chunk of the shipping policy. One practical detail from the docs: standard endpoints take a dictionary like the one above, while storage-optimized endpoints use a SQL-like filter string such as "source = 'returns_policy'".

    If you’d rather learn this with a structured path instead of piecing it together from docs, my free Databricks Generative AI Engineer Associate course walks through Vector Search alongside the rest of the exam, with the traps called out as you go.

    Continuous vs triggered sync: the freshness trap

    Delta Sync automates how the index updates. It doesn’t decide when. That’s the sync mode, and it has two values:

    • Continuous: a streaming pipeline keeps the index within seconds of the table. The docs are explicit that it costs more, because a compute cluster is provisioned to run that pipeline.
    • Triggered: the index refreshes only when you start a sync, through the UI, the SDK or the REST API, often from a scheduled job. Nothing runs between syncs, so it’s cheaper, but the index can lag the table by as long as the gap between runs.

    The trap runs in both directions. The obvious one: picking continuous by reflex because “always fresh” sounds responsible, for a policy corpus that changes once a month. You’d pay for a cluster every single day nothing changed. The sneaky one: picking triggered for data that must be live, then never firing the sync often enough. A triggered index that was synced once and never again is the stalest index there is, and it still answers every query.

    Neither mode is the safe default. Read the scenario for how fast changes must show up and what the budget is, then pick the cheapest mode that meets the freshness requirement. A nightly triggered sync isn’t stale if the requirement is “updated daily”.

    Standard vs storage-optimized endpoints

    The endpoint type is a decision, not a default. Here’s how the current docs describe the two:

    • Standard endpoints: the low-latency option, with a capacity of about 320 million vectors at dimension 768 (lower at higher dimensions, roughly 160 million at 1536). High QPS for heavy sustained throughput is available on standard endpoints only.
    • Storage-optimized endpoints: over one billion vectors at dimension 768, faster indexing, and pricing optimized for large vector counts, in exchange for about 250 ms of extra query latency. They also support triggered sync only, not continuous.

    That last point is easy to miss and quietly decides some questions: if a scenario needs seconds-level freshness through continuous sync, storage-optimized is off the table.

    Sizing Databricks Vector Search: read the constraint words

    This is the differentiator. Sizing is a trade between four forces that pull against each other:

    • Volume: how many vectors. It pulls on the endpoint type.
    • Freshness: how far behind the source the index may fall. It pulls on the sync mode.
    • Latency: how fast it must answer. It pulls on the endpoint type and on query-time features like hybrid search and reranking.
    • Cost: what you’ll pay. It pulls against all of the above.

    No configuration wins all four corners. So the method isn’t “match the big number to the big tier”. It’s this:

    • Find the constraint the scenario marks as critical, most important, or non-negotiable. Treat it as the eliminator and cross off every option that hurts it.
    • Check the dramatic number against the real threshold. A big vector count only matters if it actually exceeds what a standard endpoint holds at that dimension. Under the cap, it’s decoration.
    • Separate the two kinds of accuracy. Hybrid search and reranking improve results at query time, so they add latency (the docs describe the reranker as a quality gain that adds latency). A better or fine-tuned embedding model improves accuracy up front, at embedding time, and adds no query latency.

    Trap: the biggest number is usually the decoy

    Sizing questions love to open with an impressive count of documents or vectors, then offer storage-optimized as the answer that number seems to demand. Before you take the bait, check it against the standard endpoint’s capacity. If it fits and latency is what the scenario protects, standard is the answer, and the big number changed nothing.

    Flip the scenario and the answer flips with it. If the corpus genuinely exceeds standard capacity, latency isn’t a concern, and cost is what the team cares about, storage-optimized is exactly right. The skill isn’t memorizing that one tier is good. It’s reading which corner the requirement defends, every time.

    Trap: accuracy features that spend the latency budget

    When a scenario asks for better accuracy and protects latency in the same breath, it’s pointing at the embedding model, not at query-time features. Turning on reranking under a strict latency requirement spends exactly the thing you were told to protect. Sort every accuracy lever by when its bill comes due: query time costs latency, build time costs effort.

    What sizing can’t tell you

    Everything above makes the index fast, fresh, affordable and big enough. None of it proves the index returns the right passages. That’s retrieval evaluation and reranking strategy, which belong with RAG evaluation, and I’ll cover them in later posts in this series. If you want the bigger picture of how I study around those gaps, my post on how to pass the Databricks Generative AI Engineer Associate exam without dumps covers the daily 30 to 60 minute routine I use.

    FAQ

    Is Databricks Vector Search the same as Databricks AI Search?

    Yes. Databricks renamed Vector Search to AI Search, and the docs describe it as “formerly Databricks Vector Search”. The exam page now uses the new name, but the concepts tested (endpoints, index types, sync modes, sizing) are the same.

    Does a Delta Sync index need Change Data Feed?

    For standard endpoints, yes: the docs say the source table must use a change data feed, which the sync reads to update only changed rows. Tables with row tracking enabled get one automatically.

    When should I use a Direct Vector Access index?

    When your vectors come from outside Databricks and there’s no Delta table for the index to watch. If your data already lives in a governed Delta table, a Delta Sync index is almost always the better answer.

    Continuous or triggered sync?

    Pick by the freshness the data needs. Continuous keeps the index within seconds of the table but runs a cluster all the time. Triggered is cheaper and fine for data that changes slowly or on a schedule. Storage-optimized endpoints only support triggered.

    When is a storage-optimized endpoint the right choice?

    When the index is genuinely large (beyond what a standard endpoint holds at your embedding dimension, or close to it), latency isn’t the critical metric, and you care about cost per vector. If latency is critical and the data fits on standard, choose standard.

    Study it the ambush way

    Vector Search questions aren’t hard because the concepts are deep. They’re hard because every wrong option is something a real engineer might do. Spend one 30 to 60 minute session on this topic: say the four forks out loud (endpoint vs index, Delta Sync vs Direct Vector Access, managed vs self-managed, continuous vs triggered), then practice reading sizing scenarios for the critical constraint before you look at the options.

    That’s the whole approach behind my free Databricks Generative AI Engineer Associate course: learn where each topic sets its traps, so you see them coming on exam day. No dumps, no leaked questions, just the material and the patterns. If this post helped, the course is the next step.

  • How to Pass Databricks Generative AI Engineer Associate: A No-Dumps Strategy

    How to Pass Databricks Generative AI Engineer Associate: A No-Dumps Strategy

    If you want to know how to pass Databricks Generative AI Engineer Associate without touching a single leaked question, this post is my honest answer. Not a list of facts to memorize. A way of reading the exam, a way of studying 30 to 60 minutes a day, and a plan for the 90 minutes themselves. Dumps promise a shortcut. What actually works is learning where the exam sets its traps, so you see them coming.

    I build every course on this site the same way: I study the official exam guide, I sit the real exam myself, and only then do I teach it. I’m always the first student. What follows is the strategy part of that work, adapted from the opening and the closing chapters of the book behind my free course. If you want the full map of domains and topics first, start with my Databricks Generative AI Engineer Associate study guide and come back here for the “how”.

    Why dumps are the wrong way to pass this exam

    I get the temptation. One attempt costs USD 200, and for a lot of people, me included, that is real money. A file that claims to hold “the real questions” feels like insurance.

    It isn’t. Leaked questions go stale when Databricks updates the exam, they train you to recognize wording instead of making decisions, and using them breaks the rules you accept when you register. Databricks’ certification terms allow it to revoke certifications when someone violates its policies. That is a lot of risk for a shortcut that doesn’t even fit an exam built on decisions, not vocabulary.

    How to pass Databricks Generative AI Engineer Associate: treat it like a design interview

    Read the official description of the exam and look at the verbs. Databricks says it assesses your ability to “design and implement LLM-enabled solutions”, including “problem decomposition to break down complex requirements into manageable tasks” and “choosing appropriate models, tools and approaches”. None of those verbs is “define” or “list”.

    That is the first mindset shift. A trivia quiz asks you to recite a term. A design interview hands you a situation with constraints and watches how you decide. This exam works like the second one. It rarely cares whether you know a service exists. It cares whether you can tell when that service is the right choice, and when it is the wrong one, given the details in front of you.

    The hardest questions are usually not hard because the concept is obscure. They are hard because one paragraph hides two or three decisions, and the question only becomes answerable once you pull them apart: what the application must output, what that requires as input, and which piece of the platform handles which part.

    The exam facts that shape your strategy

    These come from the official certification page and the exam guide. Check them again the week you book, because Databricks updates them.

    • 45 scored questions in 90 minutes. The exam guide describes them as multiple-choice and multiple-selection.
    • Unscored items may appear. They are not identified, they don’t affect your score, and extra time is already built in for them.
    • Six weighted sections: Design Applications 14%, Data Preparation 14%, Application Development 30%, Assembling and Deploying Apps 22%, Governance 8%, Evaluation and Monitoring 12%.
    • No test aids allowed, delivered online or at a test center, in English, Japanese, Brazilian Portuguese, or Korean.
    • No prerequisites, but Databricks recommends 6+ months of hands-on experience with the tasks in the exam guide.
    • USD 200 per attempt, with the certification valid for two years.

    Two of those facts matter more than they look. First, the weights. Application Development alone is 30% of the score, more than double Data Preparation and almost four times Governance. Plan your hours by the published weight, not by how many bullet points a section has in the guide. Second, the unscored items. You never know your real number of questions, which changes how you should manage the clock. More on that below.

    Read every question like a brief, not a puzzle

    This is the part I wish someone had told me earlier. Most candidates read a scenario question as a puzzle to solve: weigh the four options, pick the best engineering. That feels careful. It is also slow, and it often picks the wrong answer.

    Think about helping a friend choose an apartment. Five options, all decent. You could spend an evening comparing light and layout. Then their brief says: “the dog comes with me.” Four apartments don’t accept pets. That line doesn’t break a tie. It removes them before any comparison starts.

    Scenario questions on this exam are built the same way. The stem contains short clauses that act on the options before you judge any of them on merit. Things like a team that wants the least ongoing maintenance, a strict latency requirement, a rule that data can’t leave a certain boundary or a request to keep the build as simple as possible. Some clauses eliminate options. A few do the opposite: they switch off an objection you would normally raise, like a team that says budget is not a concern for this project. Either way, the clause decides the question before there is a tie to break.

    Read the last sentence before the question first

    When I went through the ten sample questions Databricks publishes in the exam guide, seven of them carried an explicit constraint clause, and in each of those seven the constraint is what selects the answer. In five of the ten, the deciding clause was the very last sentence before the question itself. That is exactly where a reader in a hurry treats the text as filler.

    So flip your reading order. Read the sentence right above the question first, then read the scenario. When the clause is there, you just read the question in the order it was built. When it isn’t, you lost three seconds.

    Eliminate on the constraint, not on plausibility

    Here is the uncomfortable part: the wrong answers on this exam are usually not silly. They describe things competent teams actually do every week. That is what makes them good distractors. If you eliminate options by asking “is this good practice?”, you will keep three of them alive, because the answer is often yes.

    Ask a different question: “does this option satisfy the clause?” It is faster, and it is the question the exam is actually asking. You are not looking for the best answer in general. You are looking for the answer the constraint leaves standing.

    When there is no constraint clause

    Not every stem has a neat preference sentence. When it doesn’t, something else in the stem is doing the same job. I look for three things:

    • A number that doesn’t fit. A volume, a limit, or a size that some option breaks. The arithmetic eliminates options for you.
    • A failure described precisely. If the scenario tells you exactly what the app gets wrong, the shape of the missing piece tells you what kind of fix belongs there.
    • A task named exactly. When the stem describes one specific task, the specific label beats the broader category that is also technically true.

    There is almost always something in the stem doing the eliminating. Your job is to find it before you read the options.

    Multiple-selection: choose exactly what it asks

    Some items ask you to pick more than one option, and the stem tells you how many. Databricks doesn’t publish how partial answers are scored, so the safe discipline is simple: select exactly the number requested. Don’t add a third “just in case”, and don’t stop at one because you’re only sure of one.

    Study for confusions, not gaps

    While writing the course, I collected every trap I warned students about into one list. Most of them turned out to be the same kind of thing: two concepts that look alike, where the exam rewards knowing the difference. Of the 63 traps in the book, 41 are exactly that kind of look-alike pair.

    That changed how I think about preparation. Past a certain point, knowing more stops helping. Knowing the difference keeps helping. So when you study a topic, don’t stop at “what is it?”. Ask “what is it usually confused with, and what detail in a scenario would tell them apart?”. That is the ambush idea behind everything on this site: learn where the look-alikes show up, and they stop surprising you.

    If you’d like that work already done for you, my free Databricks Generative AI Engineer Associate course is organized around exactly these traps, with quizzes and flashcards for each lesson.

    The method: study slow, 30 to 60 minutes a day

    The most common mistake I see is the weekend cram. You are behind, you have a free Saturday, so you spend all of it. It feels like more preparation. It usually produces someone who has read the material rather than someone who has it.

    Memory consolidates between sessions, not during them. Short, paced sessions with real gaps in between beat the same hours poured into one weekend. This is the routine I follow and recommend:

    • One topic, one session. Study one block for 30 to 45 minutes, then stop, even if you have another free hour. Start fresh tomorrow.
    • Flashcards every day, about five minutes, before new material. Spaced repetition only works if you show up on the scheduled day. Skip three days and the pile grows big enough that you start avoiding it. That is how most people quit.
    • Answer out loud before you flip. Recognition is not recall. If you read a card, feel “yes, I know this”, and flip, nothing happened. Pulling the answer out of your own head is the exercise.
    • Treat failed cards as a map. The card you can’t answer tells you exactly which topic to revisit. The one card you miss is worth more than the ten you get right.
    • Go deeper when something pulls at you. When a “why this and not that” doesn’t click, open the Databricks documentation or try it hands-on in a workspace. Answers to questions you asked yourself stick better.
    • Practice the reading habit on every practice question, so it is a reflex on exam day.

    Your clock plan for the 90 minutes

    Forty-five questions in ninety minutes looks like two minutes each. Hold that number loosely. Because unscored items are mixed in and not identified, you will see more than 45 questions, and you will never know the real total. Two minutes per question is a starting budget, not a rule.

    What you can manage is pace and reserve:

    • Pace: once you find the deciding clause, most questions collapse quickly, well under two minutes.
    • Reserve: some questions really do need three or four minutes, usually when two constraints pull against each other. You pay for those with the time saved on the quick ones.
    • The cut-off: if a question hasn’t yielded after about three minutes, pick the option the constraint most plausibly leaves standing, commit, and move on.

    What eats a paper is rarely the hard questions. It is the medium ones you keep re-examining after you already found the answer.

    Sit one full, timed practice exam before you book

    Databricks does not publish a passing score. Its certification FAQ says passing scores are set through statistical analysis and can change, so they aren’t published. You will find numbers on forums. Don’t aim at a number nobody official published. Aim to find the deciding clause reliably.

    Also, don’t count on the official result to tell you exactly where you lost points. Databricks’ support knowledge base says it can’t provide more granular results than what is automatically provided. That makes your own practice the best diagnosis you will get.

    So once, under real conditions, sit a full 45-question practice paper in 90 minutes, with no notes and no pausing. Then sort every mistake into one of two piles:

    • I didn’t know the material. That is a study problem. The fix is going back to the topic.
    • I knew it but read past the clause. That is a reading habit problem. The fix is the brief-reading technique above.

    Count the two piles separately. They need different fixes, and the second pile is the one people underestimate.

    Exam day starts when you book

    A lot can go wrong before the first question appears, and none of it is about generative AI. A few things worth doing:

    • Run the system check when you book, not the night before. Databricks lists reviewing the technical requirements and running a system check as a step in getting ready. If something fails, you want days to fix it, not minutes.
    • Know the reschedule window. Databricks’ terms say rescheduling or cancelling with less than 72 hours notice may require an additional fee. Read the current policy when you book.
    • Prepare your space like it is part of the exam. No test aids are allowed, so plan for a clear desk and a quiet room, and read the proctoring requirements in advance.
    • Know the retake rules, then try not to need them. If you don’t pass, you can retake after 14 days, with no limit on attempts, and every attempt is paid.

    The certification is valid for two years, and recertifying means taking the current version of the exam. On a subject moving this fast, studying for understanding instead of memorizing will pay off twice.

    FAQ

    Can I pass the Databricks Generative AI Engineer Associate exam without dumps?

    Yes. The exam tests decisions under constraints, which is exactly what dumps don’t teach. Use the official exam guide, the Databricks documentation, hands-on practice, and practice questions that explain why each wrong option is wrong.

    How long should I study?

    There is no honest fixed number of weeks, because it depends on your hands-on experience. Pace yourself against the material instead of the calendar: book the exam when you can finish a full timed practice paper with time left for one review round, not when you hope you are ready.

    What is the passing score?

    Databricks doesn’t publish it, and says it can change as exams are updated. Prepare until you are consistently strong across all six sections, especially the heavier ones.

    Is your course really free?

    Yes. You create a free account so your progress, quizzes, and flashcards can be saved. You still pay Databricks for the exam attempt itself.

    Ready to practice the traps?

    Reading strategy is the easy part. Making it a reflex takes practice on real scenarios, every day, for a few weeks. That is what I built the Databricks Generative AI Engineer Associate Guide for: free lessons mapped to the exam’s sections, the traps each topic sets, and flashcards to keep it all fresh. I sat the exam as the first student, then opened the course for anyone who can’t afford to waste a USD 200 attempt.

    Start with one lesson today. Thirty minutes. Then come back tomorrow. That is how this exam gets passed.

    Sources: Databricks Certified Generative AI Engineer Associate; Exam Guide (August 2026 PDF); Databricks Certification FAQ; Databricks Certification Terms and Conditions; Databricks KB on exam results; original book and course material for lucasdaudt.com (adapted, not copied).

  • Databricks Generative AI Engineer Associate Study Guide (2026)

    Databricks Generative AI Engineer Associate Study Guide (2026)

    If you are looking for a practical Databricks Generative AI Engineer Associate study guide, this is the map I wish I had before I booked the exam. Not a pile of definitions. Not a dump of “real questions.” A clear picture of how the exam thinks, where the graded weight sits, and how to study 30 to 60 minutes a day without burning out around a full-time job.

    I’m Lucas Daudt. I’ve worked in data analysis for six years, five of them at Blip. For a Brazilian, a Databricks certification attempt is real money, so I built a method around learning the traps each topic sets, then sat the real exam myself before I published anything. I’m always the first student. Below is the study guide version of that method for the Generative AI Engineer Associate exam.

    What the Databricks Generative AI Engineer Associate exam actually is

    According to the official Databricks certification page, this exam checks whether you can design and implement LLM-enabled solutions on Databricks: break requirements into pieces, choose models and tools, and use platform pieces such as Vector Search (listed there as AI Search), Model Serving, MLflow, and Unity Catalog. People who pass are expected to build and deploy solid RAG applications and LLM chains on the platform.

    The same page publishes the assessment details. Verify them before you book, because Databricks updates guides when the live exam changes:

    • 45 scored multiple-choice questions (some items may be multiple-selection)
    • 90 minutes (extra time is already built in if unscored items appear)
    • Registration fee: USD 200 (plus local taxes where they apply)
    • Delivery: online proctored or test center
    • Languages: English, Japanese, Brazilian Portuguese (pt-BR), Korean
    • Test aids: none
    • Prerequisite: none required; related training is highly recommended
    • Recommended experience: about six months of hands-on work with the outline topics
    • Validity: 2 years; recertify by taking the current live exam

    The companion exam guide (August 2026 PDF) adds an important clock detail: you may also see unscored items mixed in (up to 10). They are not labeled, they do not count, and the time limit already accounts for them. Treat every question you see as if it counts, at roughly two minutes each, and move on when a hard stem starts eating the rest of your paper.

    One more thing the page makes clear: ML code on this exam is in Python. Non-ML data steps may show up in SQL.

    Domain weights (study hours follow these, not objective counts)

    Domain Weight
    Design Applications 14%
    Data Preparation 14%
    Application Development 30%
    Assembling and Deploying Apps 22%
    Governance 8%
    Evaluation and Monitoring 12%
    Domain weights from the Databricks Generative AI Engineer Associate certification page.

    Application Development alone is almost a third of the score. Assembling and Deploying is next. If your calendar only has room for one deep week, put it on building, wiring, and shipping, not on memorizing every Governance bullet in isolation.

    Domain-by-domain map (concepts and traps)

    What follows is a reconnaissance map, not a dump. The “traps” are the look-alike mistakes this exam loves: options that sound right until you read the constraint. I adapted them from how the official outline and my own course material teach the topics. I do not reproduce real exam items or practice-bank questions here.

    1. Design Applications (14%)

    What it covers: prompts that force a specific format; mapping a business need to an NLP task; choosing chain components from desired inputs and outputs; turning a use case into an I/O description; ordering tools for multi-stage reasoning; deciding when Agent Bricks (Knowledge Assistant, Multiagent Supervisor, Information Extraction) fit.

    Typical traps:

    • Picking the broadest, most “capable-sounding” task (for example, open-ended generation) when the requirement is really summarization, classification, or extraction.
    • Reaching for Agent Bricks to rebuild an agent that already works, or picking the impressive brick when a narrower one matches the output you need (cited RAG answers vs structured fields vs routing).

    2. Data Preparation (14%)

    What it covers: chunking under document structure and model limits; filtering junk that pollutes retrieval; choosing the right extraction package for the source format; writing chunks to Delta tables in Unity Catalog; picking sources that can actually answer the questions; measuring retrieval; advanced chunking patterns; the role of re-ranking.

    Typical traps:

    • Feeding a vector index a question that needs a keyed lookup (order status, expected delivery for a transaction ID). Policies in a vector store will not invent a per-order date.
    • Ignoring the embedding model’s token ceiling. Oversized chunks can be truncated silently (no error, just a weaker vector), and then you wonder why retrieval “looks fine” but answers miss the cut-off clause.

    3. Application Development (30%)

    What it covers: when LangChain-like tools earn their place; spotting quality and safety issues in responses; choosing chunking from evaluation, not vibes; augmenting prompts with fields and intent from user input; steering from a baseline output; guardrails; selecting LLMs and embedding context lengths from constraints and metrics; model cards and hubs; MLflow and Agent Framework for agents; eval vs monitoring in the lifecycle; using Genie Spaces or conversational APIs inside multi-agent setups.

    Typical traps:

    • Buying the biggest embedding model on the board when your chunks are already capped at a smaller context length: you pay latency and cost for capacity you never fill.
    • Treating “the model looks good on a public leaderboard” as a license-and-privacy decision. Model cards are contracts: context length, license, and cutoff bind; marketing copy does not.

    If you want the full walkthrough with quizzes and flashcards for this heaviest domain, my free Generative AI Engineer Associate course is built around the same ambush method.

    4. Assembling and Deploying Apps (22%)

    What it covers: coding chains (including pyfunc pre/post-processing); endpoint access to governed resources; RAG bill of materials (flavor, embedding model, retriever, dependencies, input examples, signature); registering models to Unity Catalog with MLflow; creating and querying Vector Search indexes; Foundation Model APIs; Vector Search concepts and sizing (count, freshness, latency, cost); persistent memory stores; CI/CD for indexes and prompts; MCP servers (managed, external, custom); prompt version control; user-facing surfaces (Apps, Slack, Teams, and similar).

    Typical traps:

    • Confusing a registered @Champion alias with a live endpoint. A registry entry is an address and a history. An endpoint has a URL, an identity, a scaling policy, and a bill.
    • Turning on hybrid search and re-ranking because they “improve quality” in a scenario where latency is the binding constraint, and the stem already told you that.

    5. Governance (8%)

    What it covers: masking as a guardrail; protecting against malicious user inputs; respecting data licenses; mitigating problematic source text when you cannot simply ignore it.

    Typical traps:

    • Assuming “we have the files” means “we are allowed to embed and serve them” under that license for that use.
    • Putting all of Governance in one mental bucket. On a real build, half of it is data decisions (sources and licenses) and half is runtime (masking and prompt attacks). Study both sides.

    6. Evaluation and Monitoring (12%)

    What it covers: choosing an LLM from quantitative metrics; picking monitoring metrics for a deployment scenario; MLflow scoring and tracing for agents; inference logging for live RAG; cost controls; inference tables and Agent Monitoring; which judges need ground truth; AI Gateway (inference tables, usage tables, rate limits); custom scorers; incorporating SME feedback.

    Typical traps:

    • Confusing retrieval metrics (recall, NDCG, and friends) with answer quality. A pipeline can retrieve the right chunk and still write a wrong reply.
    • Treating evaluation and monitoring as the same activity at two times. Evaluation is the judgment you run before you trust a change. Monitoring is what you learn once real traffic arrives.

    A realistic study plan at 30-60 minutes a day

    I passed Databricks associate exams studying around a full-time job. The plan below is the same shape: small daily sessions, heavy review, and attention weighted by the table above, not by how long a documentation page feels.

    Weekly shape

    • Most weekdays: 30-45 minutes. One focused topic block. Stop even if you have another free hour.
    • One longer weekday or Saturday: up to 60 minutes for a hands-on lab (chunk a sample corpus, create a Vector Search index, wrap a tiny chain, register a model, call a Foundation Model API).
    • Every day before new material: 5 minutes of flashcards or self-quizzing out loud. Recognition is not recall. Answer before you peek.

    Suggested sequence (about 6-10 weeks, depending on your background)

    1. Week 1: Orientation + design: exam mechanics from the official page and guide; prompts; task selection; Agent Bricks judgment calls.
    2. Week 2: Platform spine: workspace orientation, Unity Catalog naming, MLflow register/aliases, first Foundation Model API call.
    3. Weeks 3-4: Data + retrieval: sources and cleaning; chunking; embeddings; Vector Search create/sync/query/sizing; retrieval metrics and re-ranking.
    4. Week 5: Build the app: I/O specs, chain components, LangChain vs a plain call, pyfunc wrap, RAG bill of materials.
    5. Week 6: Agents: tools and ordering; Agent Framework; memory that survives a turn; MCP and Genie; when to rent with Agent Bricks.
    6. Week 7: Harden and ship: guardrails and masking; evaluation judges; Model Serving vs batch ai_query; endpoint permissions; prompt versioning and promotion.
    7. Week 8: Monitor + dry run: inference tables, AI Gateway, cost; timed practice on scenario stems you write yourself or take from reputable free materials, never from “real exam” dumps. Book the exam when your weak domains are gone, not when you hope they are.

    If six months of Databricks GenAI experience is new to you, stretch the same sequence. The method relies on repetition you can keep, not on heroic weekends.

    How to pass: learn the traps, not the dumps

    Leaked “real questions” feel like safety when one attempt costs USD 200. They are a bad bet for three reasons.

    1. They go stale. Databricks updates the live exam. Memorized stems from an old pool do not teach the new wording.
    2. They train recognition, not judgment. This exam is a design interview with a clock. Stems bury constraints. Dumps teach you to match phrasing, not to decompose a paragraph.
    3. They can cost the credential. Using leaked exam content breaks the rules you agree to. Results can be cancelled and certifications revoked. I will not help anyone walk that path, and I do not publish dumps on this site.

    What works instead: official outline + documentation + hands-on Free Edition practice + questions that explain every wrong option. That is the ambush idea: know where the look-alikes will show up, and it is how I build every course.

    FAQ

    Is there a free Databricks Generative AI Engineer Associate study guide?

    Yes. This article is the free hub guide. For the full lesson path with quizzes and progress tracking, use the free course on this site. Pair both with the official certification page and exam guide linked above.

    How many questions are on the exam, and what is the time limit?

    45 scored questions in 90 minutes, per Databricks. You may also see unlabeled unscored items; they do not affect your score, and time is already adjusted for them.

    What is the passing score?

    Databricks does not publish a simple public “pass at X%” number on the certification page the way some vendors do. Prepare until you are consistently strong across the weighted domains (especially Application Development and Assembling and Deploying) rather than chasing an unofficial percentage from a forum.

    Do I need six months of experience?

    It is recommended, not required. If you are newer, slow the plan down and do more hands-on labs. The exam still assumes you can read a scenario and choose under constraints.

    Are the courses on this site really free?

    Yes. You create a free account so progress, quizzes, and flashcards can save. There is no paywall on the Generative AI Engineer Associate course content itself. You still pay Databricks for the exam attempt.

    Start the free course when you are ready to drill

    A study guide can show you the terrain. Drills are where the traps stop surprising you. When you want guided lessons mapped to these domains, open the Databricks Generative AI Engineer Associate Guide, the free course I sat as the first student, then opened for anyone who cannot afford to fail a USD 200 attempt for lack of honest material.

    Study the official page again the week you book. Then study the traps, not the dumps. See you on the other side of the clock.

    Sources: Databricks Certified Generative AI Engineer Associate; Exam Guide (August 2026 PDF); original course and book material for lucasdaudt.com (adapted, not copied).