Generative AI Engineer Associate · Domain 2: Data Preparation · 14% of the exam
Task 2.2: Filter extraneous content in source documents that degrades quality of a RAG application; Identify needed source documents that provide necessary knowledge and quality for a given RAG application
Removing boilerplate, headers and footers, choosing the documents and structured sources that actually hold the answers, and when a table lookup beats retrieval.
Study it
Cleaning source documents and choosing the sources that hold the answers
Try each one before opening the answer. Every option is explained, with the Databricks documentation page that proves it.
Question 1 · choose 1
Contracts are parsed into a Delta table with ai_parse_document. Retrieval keeps returning chunks made of repeated letterheads, confidentiality footers and page numbers. What should the pipeline do before chunking?
ARaise the chunk overlap so that body text outweighs the boilerplate in every chunk
BSwitch the index to hybrid search for exact matches
CTell the model in the system prompt to ignore letterheads, footers and page numbers
DDrop elements whose type is page_header, page_footer or page_number
Show the answer and why
ARaise the chunk overlap so that body text outweighs the boilerplate in every chunk
Incorrect
Overlap duplicates neighboring text; the repeated headers and footers stay in every chunk.
BSwitch the index to hybrid search for exact matches
Incorrect
Keyword search matches repeated letterhead terms even more readily, so the noise does not go away.
CTell the model in the system prompt to ignore letterheads, footers and page numbers
Incorrect
The instruction acts after retrieval; the boilerplate chunks still fill the retrieved context and push out the useful ones.
DDrop elements whose type is page_header, page_footer or page_number
Correct
ai_parse_document labels each element by type, including page headers, footers and page numbers, so the boilerplate can be removed before chunking.
Removing headers, footers and other noise during parsing reduces irrelevant content in chunks. ai_parse_document returns structured elements with types such as section_header, page_header, page_footer and page_number.
An HR assistant was loaded from three shared drives. Each holds copies of the leave policy from 2023, 2024 and 2025, some with small edits and renamed files, and answers mix rules from different years. Ingestion ran on the same day for all copies. Which source-preparation step fixes this?
ARemove exact duplicates by hashing each file and keep one copy per hash
BFilter retrieval at query time to the most recent ingestion date recorded for each document
CAdd an instruction to the prompt to prefer the newest policy it sees
DFind near-duplicates with MinHash in Spark ML and keep the newest effective version
Show the answer and why
ARemove exact duplicates by hashing each file and keep one copy per hash
Incorrect
Small edits change the hash, so edited copies of older policies survive and keep mixing rules.
BFilter retrieval at query time to the most recent ingestion date recorded for each document
Incorrect
All copies were ingested on the same day, so ingestion date cannot tell old policy versions from the current one.
CAdd an instruction to the prompt to prefer the newest policy it sees
Incorrect
Chunks rarely state their policy year, so the model cannot tell versions apart, and old text still crowds the context.
DFind near-duplicates with MinHash in Spark ML and keep the newest effective version
Correct
MinHash locality-sensitive hashing finds near-duplicate documents even with small edits, and the keeper can be chosen by authority or recency.
Duplicate and near-duplicate documents create redundant chunks that lower quality. Metadata can remove some duplicates; content-based near-duplicates need locality-sensitive hashing such as MinHash, with a rule for which version to keep.
For a customer-support RAG bot, which set of sources does Databricks list as typical candidates for the corpus?
APayroll exports and HR personnel files
BRaw web server logs from the support website
CKnowledge base articles, FAQs and manuals
DMarketing slogans and brand guidelines
Show the answer and why
APayroll exports and HR personnel files
Incorrect
These are unrelated to support questions and add sensitive data.
BRaw web server logs from the support website
Incorrect
Logs rarely answer customer questions on their own.
CKnowledge base articles, FAQs and manuals
Correct
Databricks lists knowledge base documents, FAQs, product manuals and troubleshooting guides for a customer support bot corpus.
DMarketing slogans and brand guidelines
Incorrect
Slogans hold little factual support knowledge.
The right corpus depends on the application's requirements; for support bots this usually means knowledge base documents, FAQs, product manuals and troubleshooting guides.