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.

Leave a Reply