5 Questions to Test Your Data Preparation Knowledge (DBX-GAI)
This set covers Data Preparation, one of the domains of the Databricks Generative AI Engineer Associate (DBX-GAI) exam. About 14% of the exam comes from this domain. Try each question first, then open the answer to see why every option is right or wrong.

Databricks Generative AI Engineer Associate (DBX-GAI) · Data Preparation · 5 questions with answers and explanations
🧠How Data Preparation is tested
Data preparation questions are about chunking, parsing and judging retrieval for RAG. Look at the document structure and the metric asked for. Strong options keep meaning together in a chunk and compute precision and recall from the right counts; weaker ones split by characters regardless of structure.
Watch for these while you work
• Precision is relevant retrieved over retrieved; recall is relevant retrieved over all relevant in the index.
• Tables and sections should be parsed as units, not cut by a fixed character count.
• Overlap or small-to-big retrieval keeps the neighbouring sentences that explain an exception.
📊 This set at a glance
Exam: DBX-GAI · 45 questions · 90 minutes
This set: 4 applied, 1 advanced · 2 scenario, 1 comparison, 1 concept check, 1 troubleshooting · 1 with more than one answer
Topics: Unity Catalog, AI Search, ai_parse_document
Question 1 of 5
A team is choosing documents for a customer-support assistant. Which TWO checks show that a candidate document set belongs in the corpus? (Select TWO)
Show answer
✅ Answer: B, E
Difficulty: applied · Topic: Unity Catalog
Source selection criteria
The pipeline article says the right corpus depends on the application's requirements: knowledge-base documents, FAQs, manuals and troubleshooting guides for a support bot. It recommends that domain experts and stakeholders help to identify and curate content, because they know the likely queries. Documents that are irrelevant, too old or unreliable should be filtered out.
Two checks therefore matter most: relevance to the real questions (coverage) and reliability (currency and ownership).
Why each option works or fails
• ✗ A. Product name in title: a title mention does not guarantee that the content answers any question or is current.
• ✓ B. Answers real questions (correct): coverage of actual customer questions is the main reason a document belongs in the corpus.
• ✗ C. Already PDF: format affects which parser is used, not whether the content is useful.
• ✗ D. Largest collection: more text adds noise, duplicates and outdated content, which the article lists as quality problems.
• ✓ E. Current and reliable (correct): a document with a clear owner and up-to-date content can be trusted, so answers stay correct.
Question 2 of 5
A RAG application answers questions about long insurance policies. Small chunks of about 150 tokens match the user's question precisely, but the generator then lacks the surrounding clauses and gives incomplete answers. Larger chunks of about 1,500 tokens give complete context but make retrieval noisy. Which chunking design addresses both problems?
Show answer
✅ Answer: D
Difficulty: advanced · Topic: AI Search
Small-to-big (parent-child) retrieval
A chunk size is a compromise: small chunks give precise embeddings and precise matches, large chunks give the generator enough context. Parent-child chunking (also called small-to-big retrieval) removes the compromise by separating what is searched from what is sent to the LLM.
• Split each document into larger parent sections (for example a policy section), then split each parent into small child chunks.
• Embed and index only the children, and store a parent_id (or the parent text) as metadata next to each child in the Delta table that backs the index.
• At query time, search the children, then look up the parents of the best matches and pass those parents to the prompt, removing duplicates when two children share a parent.
Databricks documents chunking as an iterative, use-case dependent choice with metadata stored beside the chunks. Parent-child retrieval itself is a generic RAG pattern, not a Databricks feature: the exam guide lists "advanced chunking strategies" without naming a product, and you implement the pattern in your own pipeline with an AI Search index (formerly Vector Search).
Why each option works or fails
• ✗ A. More small results: returning more fragments only adds sibling pieces by chance, in similarity order rather than document order, so the clauses are still not guaranteed to be contiguous and the prompt grows with unrelated text.
• ✗ B. Large chunks with 50% overlap: overlap protects against a fact being cut at a boundary but does not make embeddings more specific. It also doubles stored text and returns near-duplicate passages, which makes noise worse.
• ✗ C. One embedding per policy: a single vector for a long policy blurs many topics, so similarity to a narrow question is weak, and the policy can exceed the embedding model's maximum token limit, in which case it is truncated and part of the text is lost.
• ✓ D. Child chunks for search, parent for context (correct): the small child embeddings keep matching precise, and returning the parent section gives the LLM the clauses around the match, so answers are complete without making the index noisy.
Question 3 of 5
Parsed PDF manuals still include the running page header ("Acme Router Guide - Confidential"), the footer and the page number on every page. Retrieval for many different questions returns chunks dominated by that repeated text. What should the engineer do before chunking?
Show answer
✅ Answer: A
Difficulty: applied · Topic: ai_parse_document
Layout noise degrades retrieval
Documents carry content that is not knowledge: running headers and footers, page numbers, navigation. The Databricks pipeline article recommends data cleaning in the parsing step: remove headers, footers and special characters to reduce the unnecessary or malformed information the chain must process.
Using typed elements
ai_parse_document labels each element with a type: page_header, page_footer and page_number are among them. Filtering those types before chunking removes the noise at the source, so no chunk is dominated by it.
Why each option works or fails
• ✓ A. Dropping layout element types (correct): removing page headers, footers and page numbers before chunking keeps the repeated text out of every chunk.
• ✗ B. Removing common words: the header contains rare words such as the product name, and the semantic meaning would be damaged for the useful text as well.
• ✗ C. Lowercasing: the header would still match the same way after lowercasing, since case does not remove the repeated text.
• ✗ D. More results: the noisy chunks would still be in the index and would take up the extra slots as well.
Question 4 of 5
A RAG pipeline retrieves 50 candidate passages by vector similarity and passes the top 5 to the LLM. Answer quality improves when a second model re-scores the 50 candidates against the query first. What is the role of that re-ranking step?
Show answer
✅ Answer: C
Difficulty: applied · Topic: AI Search
Two-stage retrieval
First-stage retrieval has to search millions of chunks quickly, so it compares precomputed vectors (a bi-encoder: the query and each chunk are embedded separately) or keywords. That is fast but approximate: the query and the chunk never "see" each other.
A re-ranker is the second stage. It takes a small candidate list (tens of passages) and scores each query-passage pair together, typically with a cross-encoder, which is more accurate but too slow to run on the whole corpus. The best-scoring passages go to the LLM.
• Retrieve broadly (high recall), then re-rank to keep the best few (high precision).
• Re-ranking changes the order and the selection, not the index content.
Databricks AI Search (formerly Vector Search) offers a reranker you add to a query; the docs describe it as a cross-encoder second pass on top of any retrieval strategy.
Why each option works or fails
• ✗ A. Replacing the embedding model: the re-ranker works on retrieved candidates. Documents are still embedded (or managed embeddings are used) when the index is built.
• ✗ B. Query expansion: paraphrasing the question is a pre-retrieval technique that happens before the first search; re-ranking happens after it.
• ✓ C. Re-scoring candidates (correct): a cross-encoder-style model judges the query and each passage together, so the order reflects true relevance and the prompt receives the best few passages.
• ✗ D. Summarizing: compressing passages is context compression and does not rank them; a summary of a weak passage is still a weak passage.
Question 5 of 5
A user question needs an exception that is stated in the first sentence of the next chunk. Retrieval returns the earlier chunk, so the answer omits the exception. The team keeps the chunk size but wants to lower the chance that facts at a boundary are separated. Which change fits?
Show answer
✅ Answer: D
Difficulty: applied · Topic: AI Search
Why overlap exists
When a splitter cuts text, sentences next to the cut sit in different chunks. The pipeline article lists overlap as one of the main factors: including some overlap between adjacent chunks helps ensure that important information is not lost at splits, preserves continuity and context, and can improve retrieval results.
The trade-off
Overlap duplicates text. The article gives no ratio (its example uses chunk_size=100 with chunk_overlap=20). The advice to keep it modest, for example about 10-20% of the chunk, is a generic rule of thumb, not Databricks guidance: it increases index size slightly, while very large overlaps create near-identical neighbours that can fill the top results with the same passage.
Why each option works or fails
• ✗ A. Higher embedding dimension: it changes the vector size, not the text, so the exception still sits in a different chunk.
• ✗ B. Single-sentence chunks: they separate related sentences even more and strip the context each piece needs to be understood.
• ✗ C. Remove overlap: overlap is what protects boundary facts; deduplication cannot recreate a context that the cut already separated.
• ✓ D. Modest overlap (correct): text near each boundary appears in two neighbouring chunks, so a fact and its exception are more likely to arrive together.
🎯 Quick recap
• A good RAG source answers real questions and is current and trustworthy; volume and format are not the test.
• Parent-child retrieval searches small chunks for precision and returns their larger parent for context.
• Filter page header, footer and page number elements out of parsed output before chunking.
• A re-ranker is a second-stage model that re-scores a small candidate set and keeps the most relevant passages.
• Overlap carries boundary text into both neighbours; keep it modest to avoid redundant chunks.
🔗 Related practice sets
• DBX-GAI Practice Set: Design Applications
• All DBX-GAI practice sets
• Every exam on this blog
📚 More DBX-GAI practice
More DBX-GAI questions: https://hyunhp.github.io/cert-bank/#exam=DBX-GAI
Study guide: https://hyunhp.github.io/cert-bank/study.html#exam=DBX-GAI
These are original practice questions, not real exam questions, and cert-bank is not affiliated with any certification vendor.
Original practice questions written for this blog, not exam dumps.
Comments
Post a Comment