CertSafari
    Databricks Certified Generative AI Engineer Associate· Lessons

    Domain 4 · Lesson 37/56

    Configuring Databricks AI Search for scale, freshness, latency and cost

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

    18 min read
    1.47% of exam
    6 sources
    Published 22 Oct 2026
    Docs as of 17 Oct 2026

    What you will be able to do

    • Choose between a Standard and a Storage-optimized endpoint from vector count, latency target and cost per vector
    • Estimate how vector count and embedding dimension drive vector search units and the endpoint bill
    • Match Triggered or Continuous sync, and the embedding source, to how often the source data changes
    • Decide when to set target_qps and what the client must do to actually receive that throughput
    • Tune num_results, query type, embeddings, authentication and reranking to fit a query latency budget

    Key concept

    Endpoint SKU as the first configuration lever — Every AI Search index is served by an endpoint, and the type of that endpoint (Standard or Storage-optimized) is set when you create it. That one choice fixes the capacity, the latency range, the cost per vector, and which sync modes and throughput features you can use later.

    1.Choosing a Standard or Storage-optimized endpoint

    Configuring vector search for a solution comes down to four requirements: how many embeddings the index holds, how often the source data changes, how fast a query must return, and what the team will pay. Databricks AI Search (formerly Databricks Vector Search) answers the first and the last of these mostly through one setting, the endpoint type. You set it when you create the endpoint, either as endpoint_type="STANDARD" or "STORAGE_OPTIMIZED" in create_endpoint(), or in the Type field of the UI. Plan it from the start, because nothing later in the setup changes it.

    Standard endpoints are built for low latency. They hold up to 320 million vectors at dimension 768, answer in roughly 20–50 ms, and are the only type that supports high QPS. Storage-optimized endpoints hold over a billion vectors at dimension 768 and index 10–20x faster. They are also up to 7x cheaper per vector. The price is latency: queries run at about 300–500 ms.

    Expected performance and capacity by endpoint SKU (768-dimension reference figures)
    SKULatencyQPSEndpoint capacityVector search unit sizeChoose it when
    Standard20–50 ms30–200+320M vectors2M vectorsLatency is critical and the index is well under 320M vectors
    Storage-optimized300–500 ms30–501B vectors64M vectorsYou have 10M+ vectors, can tolerate extra latency and need better cost per vector

    Two cases show how the decision falls out. A customer-support chatbot over 5 million help-article chunks, with a sub-100 ms retrieval target, belongs on Standard: it fits comfortably and needs the 20–50 ms range. An archive search over 600 million document chunks has already gone past what a Standard endpoint can hold, so it goes on Storage-optimized, and its users have to accept the extra few hundred milliseconds.

    Each type also comes with constraints that eliminate it before cost comes into it. On a Storage-optimized endpoint, precomputed embeddings must have a dimension evenly divisible by 16, so 1024 or 768 works and an odd size from a custom model does not. Storage-optimized endpoints also support only Triggered sync and cannot use high QPS. Standard endpoints require the source table to have a change data feed. Tables with row tracking enabled get one automatically.

    Checkpoint 1 of 9· Check yourself

    A team is building semantic search over 400 million document chunks (dimension 768). The budget is tight, and users have said a response of about half a second is fine. Which endpoint configuration fits these requirements?

    Checkpoint 2 of 9· Exam question

    When configuring a Self-Managed embeddings vector search index on a Storage Optimized endpoint, what constraint applies to the embedding vectors that are supplied?

    Sources123

    2.How vector count and dimension drive the bill

    AI Search bills for two things: the indexes that store vectors and the endpoints that serve queries. Endpoint capacity is counted in vector search units. On Standard, one unit covers 2 million vectors of dimension 768 or the equivalent. On Storage-optimized, one unit covers 64 million. Each endpoint has a base price and scales up automatically to the total size of the indexes it serves, with a minimum of one unit. It scales back down when an index is deleted.

    Dimension counts as much as row count. One million vectors at dimension 1536 fill a Standard unit just as 2 million at 768 do. A team that drops from a 1536- to a 768-dimension embedding model therefore halves the units a given corpus needs. The same change helps speed: halving dimension, for example from 768 to 384, typically raises QPS by about 1.5x and cuts latency by about 20%. Pick the smallest dimension that still keeps retrieval quality acceptable for your use case.

    Size also affects performance. An index performs best when it fits inside a single unit with headroom to spare. Above 2M vectors on Standard, or 64M on Storage-optimized, latency rises and throughput tapers off until it levels out at about 30 QPS for ANN queries.

    Billing starts when the first index is created on an endpoint and stops 24 hours after the last index is deleted. An endpoint can host up to 50 indexes, so several low-QPS workloads can share one endpoint and pay one base price instead of several. The reverse also holds: an endpoint whose indexes receive no queries still incurs serving costs. To track spend, query system.billing.usage filtered on billing_origin_product = 'VECTOR_SEARCH', or use the usage dashboards and usage policies.

    Checkpoint 3 of 9· Check yourself

    A pilot RAG app is shut down. Its index stays on a Standard endpoint in case the project comes back, but no one queries it anymore. What has to happen for the endpoint to stop costing money?

    Sources42

    3.Matching sync mode to update frequency

    A Delta Sync Index can stay current with its source table in one of two ways, and the right choice follows from how fresh the data must be. Triggered sync updates the index only when you call the Python SDK or REST API, which makes it the cheapest option. Continuous sync applies source changes within seconds, but it provisions a streaming cluster to do so and costs more. If seconds-level freshness is not a business requirement, choose Triggered and run it on a schedule that matches how often the data changes, for example after the nightly load.

    What a sync actually does depends on the endpoint. On Standard, both modes are incremental, so each sync processes only the rows changed since the last one. On Storage-optimized, every sync partially rebuilds the index. For managed embeddings, unchanged rows reuse their existing embeddings, which keeps the rebuild from recomputing vectors.

    Update requirement mapped to configuration
    RequirementConfigurationWhy
    Index must reflect changes within seconds; higher cost acceptedStandard endpoint, Continuous syncContinuous keeps the index in sync with seconds of latency using a provisioned streaming pipeline
    Updates hourly or daily; minimise costTriggered sync on either endpoint typeYou start each sync yourself, and on Standard only changed rows are processed
    Very large corpus, periodic refreshStorage-optimized endpoint, Triggered syncOnly Triggered is supported; each sync partially rebuilds the index
    Application writes vectors itselfDirect Vector Access IndexNo sync from a table; you update the index through the REST API or Python SDK

    The embedding source is a separate choice from the sync mode. With Databricks-managed embeddings, Databricks computes vectors from a text column using a model you specify. With self-managed embeddings, the source table already holds precomputed vectors in an array[float] column. A self-managed Delta Sync Index still syncs automatically from the table and never recomputes those vectors, which suits teams that embed with their own fine-tuned model in an external pipeline. A Direct Vector Access Index has no sync at all: the application writes every change itself. Plan this choice up front, because a self-managed index cannot later be converted to a managed one. Switching means building a new index and recomputing the embeddings.

    A Triggered Delta Sync Index over precomputed (self-managed) embeddingspython
    client = AISearchClient()
    
    index = client.create_delta_sync_index(
      endpoint_name="vector_search_demo_endpoint",
      source_table_name="vector_search_demo.vector_search.en_wiki",
      index_name="vector_search_demo.vector_search.en_wiki_index",
      pipeline_type="TRIGGERED",
      primary_key="id",
      embedding_dimension=1024,
      embedding_vector_column="text_vector"
    )

    Checkpoint 4 of 9· Fill the gap

    Your team embeds documents with its own fine-tuned model in an external pipeline and writes the vectors to an array[float] column in a Delta table. You want the index to sync from that table without recomputing the vectors. Which parameter completes this index definition?

    client = AISearchClient()
    
    index = client.create_delta_sync_index(
      endpoint_name="vector_search_demo_endpoint",
      source_table_name="vector_search_demo.vector_search.en_wiki",
      index_name="vector_search_demo.vector_search.en_wiki_index",
      pipeline_type="TRIGGERED",
      primary_key="id",
      embedding_dimension=1024,
       ? ="text_vector"
    )

    Checkpoint 5 of 9· Check yourself

    A product-catalog index sits on a Standard endpoint. Its source table changes only once a night, during a batch load. Search results just need to show that load by the next morning, and the budget is tight. Which sync setup fits?

    Checkpoint 6 of 9· Exam question

    A team is building a RAG chatbot over a product catalog that changes every few seconds. Business stakeholders require the index to reflect catalog updates within seconds and are willing to accept higher compute cost for this freshness. Which vector search configuration best meets this requirement?

    Checkpoint 7 of 9· Exam question

    A data science team already generates embeddings for their documents using a custom fine-tuned model in an external pipeline, and they store the resulting vectors alongside the source rows in a Delta table. They want the vector search index to sync automatically from that Delta table without Databricks recomputing the vectors. Which index configuration fits this requirement?

    Sources431

    4.Provisioning throughput with target_qps

    By default, a Standard endpoint handles 20–200 QPS depending on index size. Search bars, recommendation systems and entity matching often need 100–1000+ QPS. Set target_qps when any of these is true: the application needs more than 50 QPS sustained, it gets 429 (Too Many Requests) errors under normal load, or latency degrades as traffic ramps up even though average utilization looks low. The feature works on Standard endpoints only.

    Creating a Standard endpoint with a target QPSpython
    client.create_endpoint(
        name="vector_search_endpoint_name",
        endpoint_type="STANDARD",
        target_qps=500,  # target QPS for high-throughput workloads
    )

    target_qps reserves capacity up front, and you are billed for it whether or not traffic arrives. Throughput is best-effort and not guaranteed. The QPS you actually get depends on index size, dimension, query complexity and filter usage. On an existing endpoint, call update_endpoint(name=..., target_qps=500) and watch scaling_info.state move from SCALING_CHANGE_IN_PROGRESS to SCALING_CHANGE_APPLIED, then sync the indexes so the new configuration takes effect.

    The client also has to be set up to use the extra capacity. Queries must go to the index URL and authenticate with a service principal OAuth token. The Python SDK does this when you call get_index(). Personal access tokens and the workspace query URL (/api/2.0/vector-search/indexes/<index_name>/query) skip the optimized route, are capped at a few tens of QPS, and can return 429s well before the endpoint reaches its target. Workspaces that use IP access lists or private connectivity such as AWS PrivateLink also lose the optimized route for managed-embedding text queries.

    429 errors are a safety mechanism, not a fault. When an endpoint reaches 100% of its QPS capacity it returns 429s, and a client with no backoff can become unresponsive. The Python SDK has backoff and retry built in. A REST client needs exponential backoff with jitter.

    Checkpoint 8 of 9· Fill the gap

    To handle a typeahead search bar that must sustain about 500 QPS, you create a new endpoint with reserved throughput. Which endpoint type completes this call?

    client.create_endpoint(
        name="vector_search_endpoint_name",
        endpoint_type=" ? ",
        target_qps=500,  # target QPS for high-throughput workloads
    )

    Sources53

    5.Tuning the query path for latency

    After the endpoint type, latency depends on what each query asks for. Keep num_results between 10 and 100 unless the application truly needs more, and test values against realistic queries. Prefer plain ANN queries, which use the least compute. Hybrid keyword-similarity search uses about twice the resources and can sharply cut throughput, so use it only where exact terms such as SKUs make a real difference to recall. Filters are part of query complexity and also reduce achievable QPS.

    Columns are fixed when the index is built. columns_to_sync decides which source columns the index holds; leave it empty and every column is synced. Only indexed columns can be returned through columns or used in filters. So if you trim the index to the primary key, embedding and the few metadata columns the application reads or filters on, make sure every filter column is still in that list.

    How the query is embedded adds its own cost. With managed embeddings, each query's text goes to a model serving endpoint before the search runs. That adds latency, plus network time if the model is external. Self-managed embeddings pass the vector directly and give the fastest retrieval. If you stay with managed embeddings, model_endpoint_name_for_query lets you send queries to a separate low-latency endpoint serving the same model while ingestion uses a high-throughput one. Turn off scale-to-zero on that endpoint, because a cold start can delay a query by minutes or make it fail.

    Client habits cost time too. Personal access tokens add hundreds of milliseconds per query, so production should use a service principal with OAuth. Create the index object once, for example when an MLflow serving endpoint initializes, and reuse it. The exception is when the index or credentials are only known at query time, such as with on-behalf-of-user authorization.

    Initialize the index object once and reuse it for every querypython
    # Initialize once
    index = client.get_index(...)
    
    # Then use it for every query
    index.similarity_search(...)

    Reranking re-scores the retrieved documents to improve relevance (see Configuring and verifying the AI Search reranker). In a latency budget it is often the largest single cost. One sample query's debug output reports response_time 693 ms, of which ann_time was 29 ms and reranker_time 619 ms. If a requirement says "under 300 ms", Standard ANN with self-managed vectors can meet it without reranking. Adding the reranker uses up most of the budget. On a Storage-optimized endpoint, with reranking and PAT authentication, the query will go well over the limit.

    Checkpoint 9 of 9· Fill the gap

    A RAG agent served from an MLflow endpoint rebuilds its handle to an existing index on every request, which adds latency to every query. You move that work into the endpoint's initialization so it runs once. Which call completes the one-time step?

    # Initialize once
    index = client. ? (...)
    
    # Then use it for every query
    index.similarity_search(...)

    Sources236

    Sources

    (6)

    Every claim above is drawn from one of these pages, quoted as it was written on the date shown.

    1. 1.
      “You specify the endpoint type when you create the endpoint.”
      ↩︎ Choosing a Standard or Storage-optimized endpoint
      “For standard endpoints, the source table must use a change data feed.”
      ↩︎ Choosing a Standard or Storage-optimized endpoint
      “It is not possible to convert a self-managed embedding index to a Databricks-managed index.”
      ↩︎ Matching sync mode to update frequency
      “Storage-optimized endpoints have a larger capacity (over one billion vectors at dimension 768) and provide 10-20x faster indexing.”
      ↩︎ Checkpoint
    2. 2.
      “Choose standard endpoints when latency is critical and your index is well under 320M vectors.”
      ↩︎ Choosing a Standard or Storage-optimized endpoint
      “As a general rule, choose the smallest dimensionality that preserves retrieval quality for your use case.”
      ↩︎ How vector count and dimension drive the bill
      “As a best practice, keep num_results in the range of 10–100 unless your application specifically requires more.”
      ↩︎ Tuning the query path for latency
      “Hybrid search typically uses about twice as many resources as ANN and can significantly reduce throughput.”
      ↩︎ Tuning the query path for latency
      “add hundreds of milliseconds of latency”
      ↩︎ Tuning the query path for latency
      “Choosing the right SKU for your application is the first lever for tuning performance.”
      ↩︎ Key concept
      “increasing num_results by 10x can double query latency and reduce QPS capacity by 3x”
      ↩︎ Prediction
    3. 3.
      “For storage-optimized endpoints, the embedding dimension must be evenly divisible by 16.”
      ↩︎ Choosing a Standard or Storage-optimized endpoint
      “For storage-optimized endpoints, every sync partially rebuilds the index.”
      ↩︎ Matching sync mode to update frequency
      “After updating target QPS, sync your indexes to apply the new configuration.”
      ↩︎ Provisioning throughput with target_qps
      “Only indexed columns can be returned in search results or used as filters.”
      ↩︎ Tuning the query path for latency
      “The user is responsible for updating this table using the REST API or the Python SDK.”
      ↩︎ Exam trap 3
      “For storage-optimized endpoints, only Triggered sync mode is supported.”
      ↩︎ Prediction
    4. 4.
      “One vector search unit covers up to 2 million vectors of dimension 768 (or the equivalent).”
      ↩︎ How vector count and dimension drive the bill
      “AI Search endpoints are charged only after an index has been created”
      ↩︎ How vector count and dimension drive the bill
      “This costs more because a streaming cluster is provisioned to handle the sync.”
      ↩︎ Matching sync mode to update frequency
      “Endpoints with indexes that receive no query traffic still incur serving costs.”
      ↩︎ Exam trap 2
      “24 hours after the last index is deleted from the endpoint, the endpoint no longer incurs any charges.”
      ↩︎ Checkpoint
      “Triggered Sync: You call the API or Python SDK to trigger an index update. This is the most cost-effective option.”
      ↩︎ Checkpoint
    5. 5.
      “Your application requires more than 50 QPS of sustained throughput.”
      ↩︎ Provisioning throughput with target_qps
      “they do not use the optimized query route and are capped at a few tens of QPS.”
      ↩︎ Provisioning throughput with target_qps
      “High QPS is available for standard endpoints only. Storage-optimized endpoints are not supported.”
      ↩︎ Exam trap 1
      “You are charged for this additional capacity regardless of actual query traffic.”
      ↩︎ Exam trap 4
    6. 6.
      “Reranking incurs a small latency delay but can significantly improve retrieval quality and agent performance.”
      ↩︎ Tuning the query path for latency
      “'debug_info': {'response_time': 693.0, 'ann_time': 29.0, 'reranker_time': 619.0}”
      ↩︎ Tuning the query path for latency

    Spotted a mistake, or was something unclear? Tell us.