Databricks Generative AI Engineer Associate · 14% practice allocation

Databricks Generative AI Engineer Associate: Data preparation Practice Questions

5 free sample questions from the Data preparation domain, with answers and explanations. The full Generative AI Engineer Associate bank has 250 questions across 6 domains. Questions are scenario-based and written from the official Databricks exam guide.

1.

Which THREE of the following are valid reasons to include a chunk overlap when performing fixed-size chunking for a RAG pipeline? (Select THREE)

  • A. Overlap improves the likelihood that a query matching content near a chunk boundary will retrieve a chunk containing full context around that content✓ Correct
  • B. Overlap compensates for semantic chunking failures by providing a fallback splitting mechanism
  • C. Overlap ensures that sentences or ideas split at a chunk boundary appear in at least one complete chunk, reducing the chance of a relevant passage being missed✓ Correct
  • D. Overlap eliminates the need for a re-ranker by ensuring all retrieved chunks are equally relevant
  • E. Overlap reduces the total number of chunks stored in the Vector Search index, lowering storage costs
  • F. Overlap allows each chunk to carry some surrounding context, making individual chunks more self-contained for the LLM to interpret✓ Correct
Explanation

Option C is correct: overlap is specifically designed to prevent relevant content from being split cleanly between two chunks where neither chunk contains the full context. Option A is correct: if a key phrase straddles a boundary, the overlapping region ensures it appears in full in at least one chunk, improving recall for boundary-spanning content. Option F is correct: each chunk that carries surrounding context (from the overlap) is more self-contained and interpretable by the LLM without requiring it to infer missing context. Option E is the opposite of the truth—overlap increases the total number of chunks and therefore increases storage costs. Option D is false: overlap does not replace a re-ranker; retrieved chunks may still be irrelevant, and a re-ranker is a separate precision-improvement mechanism. Option B is false: overlap is a fixed-size chunking parameter and has no relationship to semantic chunking failures.

2.

A Databricks engineer wants to use a Delta table as the source for a Databricks Vector Search index. Which TWO of the following requirements must the source Delta table satisfy for this configuration to work correctly?

  • A. The table must use the Parquet file format exclusively, with no Delta log
  • B. The table must contain a primary key column✓ Correct
  • C. The table must be stored in Unity Catalog
  • D. The table must have Change Data Feed (CDF) enabled✓ Correct
  • E. The table must be partitioned by the embedding column
Explanation

Databricks Vector Search requires the source Delta table to have Change Data Feed (CDF) enabled so the index can track incremental changes and sync efficiently, and to have a primary key column that uniquely identifies each row so the index can correctly upsert and delete records. Unity Catalog (option C) is recommended but not strictly required for all Vector Search configurations—the index can be created on tables in the hive_metastore as well. Partitioning by the embedding column (option E) is not a requirement and does not affect Vector Search functionality. Option A is incorrect—the source must be a Delta table (which always has a Delta log); plain Parquet without a Delta log is not supported.

3.

An engineer is designing a chunking strategy for a RAG pipeline over a collection of long-form medical textbooks. Each chapter is tens of thousands of tokens and is divided into clearly delineated sections with headings such as 'Pathophysiology', 'Diagnosis', and 'Treatment'. User queries are typically narrow clinical questions that map to a single section. Which chunking approach is BEST suited for this scenario?

  • A. Fixed-size chunking with a chunk size of 512 tokens and no overlap, applied uniformly across the full text of each book.
  • B. Document-aware chunking that splits on section headings, producing one chunk per logical section of each chapter.✓ Correct
  • C. Semantic chunking that groups sentences by embedding similarity, ignoring the existing heading structure.
  • D. Fixed-size chunking with a large chunk size of 4,096 tokens to ensure each chunk contains at least one full section.
Explanation

Correct (B): Document-aware chunking leverages the existing heading structure to produce chunks that align with the logical units of the content (sections). Because user queries map to individual sections, this produces chunks with high topical coherence, maximizing the chance that a relevant section is retrieved intact. — Wrong (A): Fixed-size chunking at 512 tokens ignores section boundaries and will routinely split a single section across multiple chunks or merge parts of different sections, reducing chunk coherence and retrieval precision. — Wrong (C): Semantic chunking by sentence-embedding similarity can produce reasonable groupings, but it ignores the authoritative structure already present in the document; the heading-based structure is more reliable than learned similarity for this use case. — Wrong (D): A 4,096-token fixed-size chunk risks merging multiple short sections into one chunk, reducing retrieval specificity; narrow clinical queries will retrieve chunks containing irrelevant sections alongside the relevant one.

4.

A Databricks engineer is setting up a Delta Sync Index on a Delta table that holds product catalog chunks. The engineer wants the Vector Search index to reflect updates to the Delta table. Which TWO of the following statements correctly describe requirements or behaviors of a Delta Sync Index in Databricks Vector Search? (Select TWO)

  • A. The source Delta table must have Change Data Feed (CDF) enabled for continuous or triggered synchronization to work.✓ Correct
  • B. A Delta Sync Index can be configured to trigger synchronization either continuously (streaming) or on a manual/scheduled basis.
  • C. The source Delta table must be stored in Unity Catalog; tables in the hive_metastore are not supported as sync sources.
  • D. When rows are deleted from the source Delta table, the corresponding vectors are automatically removed from the index during the next sync.✓ Correct
  • E. A Delta Sync Index requires the source table to have a primary key column of type STRING to uniquely identify each chunk.
  • F. Delta Sync Indexes support only append operations; updates and deletes in the source table are not propagated to the index.
Explanation

Correct (A): Change Data Feed must be enabled on the source Delta table so that Databricks Vector Search can identify which rows have been inserted, updated, or deleted since the last sync cycle. Without CDF, incremental sync is not possible. — Correct (D): Delta Sync Indexes do propagate deletes; when a row is removed from the source Delta table, the next synchronization pass removes the corresponding embedding vector from the index, keeping the index consistent. — Wrong (B): While both continuous and triggered sync modes exist, the statement alone does not describe a requirement; it is partially correct but not one of the two most precise and complete true statements in context. More importantly, the key enabling requirement is CDF (option A). — Wrong (C): While Unity Catalog is the recommended governance layer, this absolute exclusion is an overstatement; the primary technical requirement is CDF enablement, not necessarily Unity Catalog. — Wrong (E): The primary key column is required but it does not need to be of type STRING; integer primary keys are also supported. — Wrong (F): This is false; Delta Sync Indexes do support updates and deletes in addition to inserts.

5.

An engineer stores product documentation chunks in a Delta table and uses Databricks Vector Search with a Delta Sync index. After running a pipeline that updates approximately 15% of the rows in the Delta table, the engineer observes that the Vector Search index is not reflecting the updates. Which of the following is the MOST likely cause?

  • A. The Delta table must be stored in Unity Catalog before Delta Sync can track row-level changes
  • B. Change Data Feed (CDF) was not enabled on the Delta table before the updates were written✓ Correct
  • C. The embedding column was not included in the Delta table's partition specification
  • D. The Vector Search index type should have been set to 'snapshot' instead of 'Delta Sync' for update-heavy workloads
Explanation

Delta Sync indexes rely on the Delta table's Change Data Feed (CDF) to identify which rows have been inserted, updated, or deleted since the last sync. If CDF was not enabled before the updates were written, those change records are not logged in the Delta log, and the Vector Search sync process has no way to detect which rows changed. As a result, the index is not updated. Option C is incorrect—partitioning has no effect on CDF or Vector Search sync behavior. Option D is incorrect—Delta Sync is the correct index type for incremental updates; snapshot indexes are less efficient for update-heavy workloads, not more. Option A is incorrect—while Unity Catalog is recommended, it is not a hard requirement for CDF to function; CDF is a Delta table feature that works in both Unity Catalog and hive_metastore contexts.

Test yourself across every Generative AI Engineer Associate domain

The free Generative AI Engineer Associate practice test mixes about 20 questions weighted like the exam. The full 250-question bank adds instant grading, flashcards and a timed mock exam.

Study this domain

Data preparation study guide (Generative AI Engineer Associate) →

Other Generative AI Engineer Associate domains

← All Databricks Generative AI Engineer Associate study resources