Databricks Generative AI Engineer Associate · Section 4 · 22% of the exam
Create and query a Vector Search index
One of the objectives of the Databricks Certified Generative AI Engineer Associate exam, in the section “Assembling and Deploying Applications”. Here is what it covers, the points to remember and a question to try.
What it covers
Mosaic AI Vector Search, now called Databricks AI Search, stores embeddings in an index that is governed by Unity Catalog and served from an endpoint. This lesson explains the components and the three index types, shows how to create and query an index in Python and SQL, and gives decision rules for choosing the endpoint type and sync mode from scale, freshness, latency and cost requirements.
Points to remember
- Mosaic AI Vector Search is now Databricks AI Search. Package
databricks-ai-search(AISearchClient). The legacydatabricks-vectorsearch(VectorSearchClient) still works. - Components: source Delta table, sync pipeline, index (a Unity Catalog object), endpoint (serverless compute), embedding model endpoint.
- Index types: Delta Sync with managed embeddings, Delta Sync with self-managed embeddings, and Direct Vector Access (API
upsertanddelete). - Delta Sync needs a primary key, and on standard endpoints Change Data Feed on the source table.
- HNSW approximate nearest neighbour search with L2 distance. Normalize vectors for cosine similarity.
HYBRIDadds BM25 keyword scoring with RRF.
Try a question
Creating a Delta Sync index on a standard endpoint fails for the table main.kb.chunks, which already has a primary key column. Which table property must be enabled on the source table?
- A
delta.enableDeletionVectors = false - B
delta.autoOptimize.optimizeWrite = true - C
delta.enableChangeDataFeed = true - D
delta.appendOnly = true
Show the answer
C. Delta Sync indexes on standard endpoints need Change Data Feed on the source table so that the sync pipeline can process only changed rows. Managed tables with row tracking enable it automatically. You also need a primary key column and CREATE TABLE on the schema that holds the index.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Mosaic AI Vector Search: concepts, indexes and configuration teaches this objective (about 50 minutes), and 13 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.
More in this section
- Code a chain using a pyfunc model with pre- and post-processing
- Control access to resources from model serving endpoints
- Code a simple chain according to requirements
- Choose the basic elements needed to create a RAG application: model flavor, embedding model, retriever, dependencies, input examples, model signature
- Register the model to Unity Catalog using MLflow
- Identify how to serve an LLM application that leverages Foundation Model APIs
- Explain the key concepts and components of Mosaic AI Vector Search
- Identify batch inference workloads and apply ai_query() appropriately
- Configure vector search for a particular solution based on number of embeddings, update frequency, latency, and cost requirements
- Configure a persistent datastore to store and retrieve intermediate memory or structured information
- Apply CI/CD best practices such as updating a Vector Search index, promoting prompts across environments, and testing individual components of an agent
- Integrate managed, external, and custom MCP servers based on a given application requirements