Databricks Generative AI Engineer Associate · Section 2 · 14% of the exam
Define operations and sequence to write given chunked text into Delta Lake tables in Unity Catalog
One of the objectives of the Databricks Certified Generative AI Engineer Associate exam, in the section “Data Preparation”. Here is what it covers, the points to remember and a question to try.
What it covers
Choose chunk size, overlap and splitting method from the document's structure and the embedding and LLM limits, then write the chunks to a Unity Catalog Delta table with stable IDs and Change Data Feed so an AI Search index can sync from it.
Points to remember
- Chunk size is bounded by the embedding model's input limit (bge-large-en 512, gte-large-en 8,192 tokens), the LLM context budget (k × chunk size) and index capacity.
- Text beyond the embedding model's limit is truncated silently.
- Fewer records: larger chunks and less overlap. More precision: smaller chunks. Fewer split facts: more overlap.
- Fixed-size (CharacterTextSplitter) is rarely production-grade; prefer recursive, format-specific (Markdown/HTML header splitters) or semantic chunking.
- Short self-contained records are one chunk each; tables stay intact; code uses language-aware splitting.
Try a question
A nightly job re-chunks all 50,000 documents, sets chunk_id = uuid() and writes the result with mode("overwrite") to the CDF-enabled source table of a Delta Sync index. Only about 1% of documents change each day, yet every sync re-embeds the whole corpus and embedding costs are high. What should the engineer change?
- ADisable Change Data Feed on the table so the index stops tracking row-level changes
- BSwitch the index pipeline from TRIGGERED to CONTINUOUS so syncs run in smaller pieces
- CBuild
chunk_idfrom document path and position, and MERGE only changed documents - DMove the index to a storage-optimized endpoint, which re-embeds rows more cheaply
Show the answer
C. Random IDs plus a full overwrite make every row look deleted and re-inserted, so the change feed reports the entire table as changed. Deterministic IDs and a MERGE limited to documents that actually changed keep the change feed, and therefore the re-embedding, proportional to real changes.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Chunking Strategies and Writing Chunks to Delta teaches this objective (about 45 minutes), and 10 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
- Apply a chunking strategy for a given document structure and model constraints
- Filter extraneous content in source documents that degrades quality of a RAG application
- Choose the appropriate Python package to extract document content from provided source data and format
- Identify needed source documents that provide necessary knowledge and quality for a given RAG application
- Use tools and metrics to evaluate retrieval performance
- Design retrieval systems using advanced chunking strategies
- Explain the role of re-ranking in the information retrieval process