CertLumen

Databricks Generative AI Engineer Associate · Section 4 · 22% of the exam

Configure vector search for a particular solution based on number of embeddings, update frequency, latency, and cost requirements

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 legacy databricks-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 upsert and delete).
  • 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. HYBRID adds 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?

  1. Adelta.enableDeletionVectors = false
  2. Bdelta.autoOptimize.optimizeWrite = true
  3. Cdelta.enableChangeDataFeed = true
  4. Ddelta.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

← Previous objective · All 56 objectives · Next objective →