Databricks GenAI Engineer Data practice questions
7-day money-back guarantee — full refund within 7 days of purchase if you've completed under 20% of the questions. See pricing →
Certifications Tools Flashcards Career Paths Exam Guides Blog Pricing For Teams About

Databricks GenAI Engineer Data Preparation: 133 practice questions

Databricks GenAI Engineer 133 questions 12 shown free

12 of the 133 Data Preparation questions in the Certsqill Databricks GenAI Engineer bank, shown in full below. Each one carries an explanation for every option, not just the correct one — the wrong answers are where the marks go.

Preparing for Databricks GenAI Engineer? Take the free 5-min readiness check →

1. Retrieve child chunks and their parent sections: Which design best meets both needs?

Medium
A retail catalog contains lengthy product sections with specifications and exceptions. An assistant must find exact warranty facts while retaining enough surrounding information to interpret them. Which design best meets both needs?
  1. Copy each parent section into every child chunk before indexing.
    Copying parent text inflates indexed content and does not cleanly separate precise retrieval from contextual presentation.
  2. Index complete product sections and return matching sections.
    Complete-section retrieval preserves context but can reduce precision when a small warranty detail is buried in a long section.
  3. Retrieve child chunks and their parent sections. ✓
    Child chunks support precise matching, while parent sections provide the surrounding context needed for interpretation.
  4. Create equal-sized chunks without retaining document hierarchy.
    Equal-sized chunks can split related details and provide no way to restore the surrounding product context.
The trap
Optimizes context without precise matching Uses duplication instead of parent context Discards document hierarchy

Retrieve child chunks with their parent sections.

2. Re-parse and clean first: What is the most likely diagnosis and remedy?

Medium
A customer onboarding pipeline extracted text, embedded it, and indexed vectors. Reviewers then removed recurring boilerplate and changed section boundaries, but the team updated only the text table; search quality declined for affected passages. What is the most likely diagnosis and remedy?
  1. Re-parse and clean first, rechunk affected content, regenerate embeddings, and update the index. ✓
    The pipeline order must be restored so vectors represent the revised chunks and metadata before retrieval resumes.
  2. OCR should replace parsing for all onboarding documents before another index update.
    The evidence concerns changed cleaned chunks, not image-only pages or a demonstrated OCR requirement.
  3. The prompt needs more examples because changed text cannot affect vector search.
    Changed chunk text changes the indexed content and can make existing embeddings and vectors stale.
  4. The index needs more overlap, regardless of whether affected embeddings were regenerated.
    Overlap may influence boundary coverage, but it cannot repair vectors generated from superseded chunks.
The trap
Treating overlap as a universal freshness remedy Ignoring synchronization between transformed text and embeddings Replacing a valid parser without source-format evidence

Changed chunks require ordered reprocessing, new embeddings, and affected index updates.

3. Run OCR, then validate serial numbers and table structure: What should it do next?

Medium
A support assistant processes a scanned, image-only PDF page. `pypdf` returns no text, but the page contains serial numbers and a small table. The team must recover the content and check transcription accuracy. What should it do next?
  1. Discard the page because an empty result proves it has no content.
    An empty `pypdf` result can indicate an image-only page rather than an information-free page.
  2. Run OCR, then validate serial numbers and table structure. ✓
    Image-only pages require OCR, and serial numbers and table structure should be checked after recognition.
  3. Retry `pypdf` with a larger extraction chunk size.
    Extraction chunk size does not make `pypdf` recognize characters embedded in an image.
  4. Parse the scanned page with BeautifulSoup.
    BeautifulSoup parses HTML markup; it does not recognize text contained in scanned page images.
The trap
Confuses extraction sizing with OCR Uses an HTML parser for image recognition Mistakes parser limitation for absent content

Run OCR, then validate serial numbers and table structure.

4. Validate exceptions: What prerequisite should precede embedding and indexing?

Hard
An engineering team prepares manuals for knowledge search. Parsing, cleaning, section-aware chunking, metadata preservation, and removal of recurring footers are complete. The exhibit shows that source exceptions, units, dates, and negation were not checked. What prerequisite should precede embedding and indexing?
  1. Replace section-aware splitting with fixed token windows.
    Fixed windows can weaken logical context and do not validate whether cleaning preserved important qualifications.
  2. Validate exceptions, units, dates, and negation. ✓
    These checks prevent cleaning from changing technical meaning before chunks become searchable.
  3. Embed the cleaned chunks and inspect search results afterward.
    Post-index inspection is useful evaluation, but it comes after the required semantic-preservation checks.
  4. Increase overlap between every neighboring chunk.
    Overlap may reduce boundary loss, but it does not detect meaning corrupted during boilerplate removal.
The trap
Confuses boundary coverage with semantic preservation Defers prerequisite validation until indexing Treats a segmentation change as validation

Validate retained exceptions, units, dates, and negation before indexing cleaned content.

5. Use heading-aware semantic splitting with size limits: Which TWO changes best preserve logical units while ret

Hard
A sales enablement assistant answers questions about product contracts. Long sections contain headings, definitions, tables, and exceptions, while evaluation shows fixed windows split definitions from their headings. Which TWO changes best preserve logical units while retaining usable retrieval granularity? Select TWO.

Select two. More than one option is correct — every correct one is ticked below.

  1. Use heading-aware semantic splitting with size limits. ✓
    Heading-aware semantic splitting keeps related material together while size limits prevent oversized retrieval units.
  2. Create one chunk for each entire contract section.
    Whole sections may exceed practical context or retrieval sizes, reducing precision for focused product questions.
  3. Split primarily at sentence boundaries within sections. ✓
    Sentence boundaries reduce mid-sentence cuts and preserve readable evidence inside logically grouped sections.
  4. Remove headings before embedding to reduce repeated tokens.
    Removing headings discards useful context and makes section relationships harder for retrieval and answer generation.
  5. Increase overlap substantially across every fixed window.
    More overlap may duplicate content without reliably keeping headings, definitions, and exceptions in one logical unit.
The trap
Uses duplication instead of structural boundaries Deletes metadata that supplies semantic context Preserves context at excessive granularity

Combine heading-aware semantic boundaries with sentence-aware splitting inside sections.

6. Ingest and index the approved regional guide: Which change fixes the defect?

Medium
A document pipeline processes approved installation guides. Evaluation shows that answers omit a safety procedure found only in a newly approved regional guide. Parsing and chunking are normal, and retrieval returns every relevant indexed chunk. Which change fixes the defect?
  1. Increase overlap in the existing guide chunks.
    More overlap changes boundaries within existing documents but cannot introduce the missing regional guide.
  2. Replace the embedding model used for guide chunks.
    A different embedding model cannot retrieve a procedure from a guide that was never processed into the index.
  3. Ingest and index the approved regional guide. ✓
    Adding the authoritative guide and indexing it supplies the missing safety procedure to retrieval.
  4. Increase the reranker candidate limit.
    Reranking more candidates cannot recover content absent from the indexed source collection.
The trap
Treats missing coverage as representation failure Applies ranking to an absent source Expands existing content instead of source coverage

Ingest and index the approved regional guide.

7. Retrieve a larger candidate pool before reranking: Which architectural change addresses the defect?

Medium
A research assistant retrieves 20 candidates for each query, then applies a reranker. Evaluation shows the relevant paper is absent from the initial 20 candidates for rare terminology, although reranking improves ordering when the paper is present. Which architectural change addresses the defect?
  1. Tune reranker scores for rare terminology.
    Score tuning helps ordering among candidates but cannot recover documents absent from the candidate pool.
  2. Replace the reranker with a larger language model.
    A stronger reranker still scores only candidates already supplied by the first retrieval stage.
  3. Increase answer-generation context without changing retrieval.
    Additional context capacity cannot include a paper that initial retrieval failed to return.
  4. Retrieve a larger candidate pool before reranking. ✓
    A larger first-stage pool gives the reranker an opportunity to score the missing relevant paper.
The trap
Confuses ordering with candidate discovery Expands downstream context only Assumes reranking expands candidate coverage

Increase first-stage candidate retrieval before applying the reranker.

8. Calculate recall@k against the truth set: What should engineers validate next?

Easy
An internal policy search evaluation contains a supplied truth set listing all relevant documents for each held-out query. The team wants to determine whether retrieval is missing relevant documents before tuning answer generation. What should engineers validate next?
  1. Measure groundedness of generated answers.
    Groundedness assesses support from retrieved evidence, not whether retrieval found all relevant truth-set documents.
  2. Calculate recall@k against the truth set. ✓
    Recall@k measures the proportion of known relevant documents retrieved within the selected cutoff.
  3. Compare only average answer latency.
    Latency does not reveal how many relevant documents the retriever omitted from its results.
  4. Inspect embedding vector dimensionality.
    Vector dimensionality alone does not establish whether relevant documents were retrieved for held-out queries.
The trap
Uses an answer metric for retrieval coverage Measures performance instead of recall Treats representation shape as retrieval quality

Calculate recall@k using the supplied relevant-document truth set.

9. Use heading-aware semantic splitting: Which approach satisfies all three requirements?

Medium
A customer-onboarding pipeline handles varied policy documents. Chunks must preserve headings and definitions, avoid splitting sentences, and remain below a specified maximum size. Which approach satisfies all three requirements?
  1. Use fixed token windows with overlap.
    Fixed windows can split headings and sentences even when overlap is added.
  2. Split every document into equal character ranges regardless of headings or sentences.
    Character ranges enforce a mechanical size but can fragment headings, definitions, and sentences.
  3. Use one chunk per document.
    Whole-document chunks preserve structure but can exceed the required maximum size.
  4. Use heading-aware semantic splitting, sentence fallback, and size limits. ✓
    This combines logical boundaries, sentence integrity, and an explicit maximum size.
The trap
Preserves context without controlling size Prioritizes mechanical boundaries Ignores semantic and sentence boundaries

Use heading-aware semantic splitting with sentence fallback and size limits.

10. Derive IDs from stable source: Which TWO controls best address the observed failure?

Medium
A support assistant’s daily refresh creates duplicate chunks, and deleted source passages remain searchable. Logs show chunk text is unchanged, but generated identifiers differ after reruns because processing order changes. Which TWO controls best address the observed failure? Select TWO.

Select two. More than one option is correct — every correct one is ticked below.

  1. Derive IDs from stable source, version, and chunk position. ✓
    Deterministic identifiers let refreshes update and delete the same logical chunks despite processing-order changes.
  2. Increase chunk overlap to preserve more context.
    Overlap changes chunk content and vector volume but does not stabilize identifiers across reruns.
  3. Use embedding similarity as the deletion key.
    Similarity is not a deterministic lifecycle key for addressing, updating, and deleting logical chunks.
  4. Regenerate all identifiers whenever the pipeline runs.
    Regeneration deliberately creates identifier churn, making idempotent updates and deletion of prior chunks harder.
  5. Compare identifiers across reruns before applying updates. ✓
    A cross-run stability check detects identifier changes even when every identifier is unique within each individual run.
The trap
Preserves the observed instability Changes content rather than identity Uses semantic matching for record identity

Use deterministic chunk IDs and compare them across reruns before indexing.

11. Run OCR on rendered page images: What should be added?

Medium
An engineering knowledge pipeline uses the following illustrative pseudocode on a PDF whose pages are scanned images: `text = PdfReader(path).pages[0].extract_text()` returns an empty string. The team must obtain searchable page text. What should be added?
  1. Run OCR on rendered page images. ✓
    Image-only pages require OCR, such as a separately installed Tesseract-based workflow, before text can be indexed.
  2. Parse the PDF with BeautifulSoup.
    BeautifulSoup parses HTML markup and does not recognize text embedded in scanned PDF page images.
  3. Increase the PDF filename extension handling.
    A PDF extension identifies a container type but does not create text for image-only pages.
  4. Apply ordinary embedded-text extraction again.
    Embedded-text extraction cannot recognize characters represented only as pixels in scanned pages.
The trap
Confuses file type with text extraction Repeats the unsuitable extraction method Uses an HTML parser for image OCR

Render scanned pages and run OCR to recognize their image-based text.

12. Deduplicate matching text: What should happen before embedding?

Medium
A sales-enablement assistant has completed parsing, cleaning, section-aware chunking, metadata preservation, and stable-key validation. Two approved source files still contain identical product paragraphs, causing duplicate search results. What should happen before embedding?
  1. Add more overlap between neighboring chunks.
    More overlap repeats tokens and can create additional redundant vectors and results.
  2. Increase the retrieval candidate count.
    More candidates do not remove repeated passages and can expose additional duplicates.
  3. Change the embedding model for repeated paragraphs.
    A different model may change ranking but does not remove duplicate source passages.
  4. Deduplicate matching text; keep source provenance. ✓
    Removing equivalent text prevents redundant vectors while retaining provenance supports governance and citations.
The trap
Expands retrieval instead of cleaning the corpus. Amplifies duplication. Treats duplicate data as an embedding problem.

Deduplicate matching text while keeping provenance.

121 more Data Preparation questions

The remaining 121 questions in this domain are part of the full Databricks GenAI Engineer bank — 967 questions, every option explained. Start with the free five-minute check and see your score per domain.

Test your Databricks GenAI Engineer readiness — free

Other Databricks GenAI Engineer domains

Part of the Certsqill Databricks GenAI Engineer question bank · Data Preparation · Every answer, right and wrong, comes with its own explanation.