databricks Generative AI Engineer Associate · Practice questions

Section 2: Data Preparation Practice Questions

Review 10 sample questions with their correct answers and explanations. Sign up free to continue with the full topic quiz.

Sign up free for the full quiz

Question 1

A chunking strategy must be chosen for a new corpus. What is the best way to decide between chunk sizes of 256, 512 and 1,024 tokens?

  1. Use whichever size the embedding model was released with, without testing
  2. Evaluate retrieval and answer quality for each size on a labeled question set — Correct
  3. Pick the smallest size, because it always reduces cost with no quality impact
  4. Pick the largest size, because longer chunks always produce better answers

Correct answer

Evaluate retrieval and answer quality for each size on a labeled question set

Explanation

Chunking choices should be validated with evaluation metrics such as retrieval recall and answer correctness.

Question 2

A team needs to know which documents went into a specific version of a chunk table. Which Delta feature helps?

  1. Auto Loader's rescue column, which stores the document names that were indexed
  2. Delta time travel and the table history of the chunk table — Correct
  3. Liquid clustering, which keeps a list of every document in the table's metadata
  4. Photon vectorized execution, which records each source file read during the pipeline

Correct answer

Delta time travel and the table history of the chunk table

Explanation

Delta history and versions let teams reproduce the exact chunk set used.

Question 3

A team updates the source Delta table by deleting outdated chunks. With a Delta Sync index, what happens to those chunks?

  1. They are removed at the next sync — Correct
  2. They remain forever
  3. The index fails
  4. They are moved to a quarantine index

Correct answer

They are removed at the next sync

Explanation

Delta Sync propagates inserts, updates and deletes from the source table.

Question 4

Which statement about choosing an embedding model is correct?

  1. Queries and chunks must use the same model, within its input limit — Correct
  2. Embedding models have no maximum input length
  3. The largest chat model should be used as the embedding model
  4. Any embedding model can be used for queries regardless of the model used to index chunks

Correct answer

Queries and chunks must use the same model, within its input limit

Explanation

Queries and documents must share the same vector space, and chunks longer than the embedding model's limit are truncated.

Question 5

Which two factors matter when deciding chunk size? (Choose TWO.)

  1. The embedding model's maximum input length — Correct
  2. The color scheme of the application's user interface
  3. The number of workspaces in the Databricks account
  4. The number of users who will query the index each day
  5. How much context a typical answer needs — Correct

Correct answer

The embedding model's maximum input length; How much context a typical answer needs

Explanation

Chunks must fit the embedding model and hold enough context for answers.

Question 6

A team wants to fine-tune a model to follow a specific JSON output format reliably. Which data is needed?

  1. Only the JSON schema definition, without any examples of inputs or outputs
  2. Examples of task inputs paired with the correct JSON outputs — Correct
  3. A random sample of public web pages unrelated to the task
  4. The vector index used by the RAG application

Correct answer

Examples of task inputs paired with the correct JSON outputs

Explanation

Supervised fine-tuning needs input-output pairs demonstrating the target behavior.

Question 7

Which column type stores precomputed embeddings in a Delta table for a self-managed Delta Sync index?

  1. A MAP from token to weight, as used by keyword search engines
  2. An array of floats (ARRAY<FLOAT>) with a fixed dimension — Correct
  3. A BINARY column with a pickled NumPy array produced by the client library
  4. A STRING containing comma-separated numbers that the index parses at query time

Correct answer

An array of floats (ARRAY<FLOAT>) with a fixed dimension

Explanation

Self-managed embeddings are stored as ARRAY<FLOAT> columns with a fixed dimension.

Question 8

A knowledge base contains marketing brochures, internal wikis with outdated pages, and approved policy documents. Answers must reflect only approved policies. What should be done during data preparation?

  1. Include only the marketing brochures, because they are the best written
  2. Index only approved policies, or filter on approval metadata — Correct
  3. Include everything, because more documents always improve RAG quality
  4. Randomly sample 10% of all documents to reduce cost

Correct answer

Index only approved policies, or filter on approval metadata

Explanation

Curating sources and using metadata filters prevents irrelevant or outdated content from reaching the model.

Question 9

A document set is mostly in Polish, and users ask questions in Polish and English. What should be considered when choosing the embedding model?

  1. Image support
  2. Multilingual support — Correct
  3. Only the model's release date
  4. Whether the model supports image generation

Correct answer

Multilingual support

Explanation

Embedding quality depends on language coverage; multilingual models support cross-lingual retrieval.

Question 10

Which two practices improve retrieval quality in a RAG application? (Choose TWO.)

  1. Use hybrid search that combines keyword and vector similarity — Correct
  2. Re-rank the top retrieved chunks with a reranking model before generation — Correct
  3. Use a different embedding model for queries than for documents
  4. Always retrieve exactly one chunk to minimize context
  5. Remove all metadata from chunks before indexing

Correct answer

Use hybrid search that combines keyword and vector similarity; Re-rank the top retrieved chunks with a reranking model before generation

Explanation

Hybrid search improves recall for exact terms such as product codes; reranking improves the ordering of candidates.

Ready for the full quiz?

Create a free QuizAnalyst account to practice the complete question set and save your progress.

Sign up free for the full quiz