Databricks Certified Generative AI Engineer Associate Practice Test Questions and Exam Dumps Part13 Q241-260

View Full Databricks Certified Generative AI Engineer Associate Exam Dumps and Practice Test Dumps

 

Question 241. Which component generates a vector representation of a user query for semantic search?

  1. Reranker
  2. Embedding model
  3. Output parser
  4. Guardrail

Correct Answer: 2. Embedding model

Explanation:

An embedding model converts a text query into a numerical vector representation that captures semantic characteristics of the query. In a RAG workflow, the resulting query embedding can be compared with embeddings stored for document chunks in a vector index. This allows the retrieval system to identify content that is semantically related even when the wording of the query and document differs. Query embeddings are therefore an important part of semantic retrieval. The quality of the embedding model can affect retrieval performance, especially for specialized terminology, multilingual content, abbreviations, and domain-specific concepts. Teams should evaluate embedding models using representative queries and relevant retrieval metrics.

Question 242. What is a primary benefit of using a similarity threshold during vector retrieval?

  1. It limits results to items meeting a minimum relevance criterion
  2. It increases the model’s temperature
  3. It replaces the language model
  4. It removes all document metadata

Correct Answer: 1. It limits results to items meeting a minimum relevance criterion

Explanation:

A similarity threshold allows a retrieval system to reject results whose similarity to the query is below a defined level. Without such a threshold, a system may return a fixed number of documents even when none of them is sufficiently relevant. Filtering weak matches can reduce irrelevant context and lower the risk that the language model generates an answer based on poorly related evidence. The appropriate threshold depends on the embedding model, similarity metric, data distribution, and application requirements. It should be determined through evaluation rather than selected arbitrarily. Thresholding can also be combined with top-k retrieval and reranking for stronger retrieval control.

Question 243. Which technique is particularly useful when a user asks a follow-up question containing terms such as “it” or “that document”?

  1. Query rewriting using conversation context
  2. Increasing vector dimensions
  3. Removing conversation history
  4. Increasing output temperature

Correct Answer: 1. Query rewriting using conversation context

Explanation:

Follow-up questions often depend on information from earlier turns and may contain references that are unclear when considered independently. Query rewriting can use the conversation history to transform such a question into a standalone retrieval query. For example, if a user previously discussed a specific policy and then asks, “When does it expire?”, the rewriting process can identify the relevant subject before sending the query to the retrieval system. This improves retrieval because the search operation receives explicit terms rather than relying on the retriever to understand conversational references. The rewritten query should preserve the user’s intent without introducing assumptions that were not supported by the conversation.

Question 244. What is a key advantage of using metadata filters together with semantic search?

  1. They allow semantic retrieval to operate within a constrained set of documents
  2. They eliminate the need for embeddings
  3. They automatically retrain the model
  4. They guarantee factual correctness

Correct Answer: 1. They allow semantic retrieval to operate within a constrained set of documents

Explanation:

Combining metadata filtering with semantic search can improve both relevance and access control. Metadata can restrict the candidate documents according to attributes such as department, product, document type, date, language, or authorization level. Semantic search can then identify the most relevant items within that constrained collection. This reduces the chance that unrelated or unauthorized content becomes part of the retrieval candidates. Metadata filters are especially useful in enterprise environments where a large knowledge base contains information serving different teams or business functions. They should be implemented consistently and tested to ensure that filtering rules do not accidentally exclude information that users are legitimately permitted to access.

Question 245. Which metric is most directly related to whether a generated answer addresses the user’s question?

  1. Response relevance
  2. Retrieval recall
  3. Vector dimension
  4. Request throughput

Correct Answer: 1. Response relevance

Explanation:

Response relevance evaluates whether the generated answer appropriately addresses the user’s question or information need. A response can be factually grounded in retrieved documents but still fail to answer what the user actually asked. For example, a model may cite relevant company documentation but discuss a related topic rather than the specific issue in the query. Response relevance is therefore a distinct evaluation dimension from retrieval precision, retrieval recall, and groundedness. A comprehensive evaluation process can measure these aspects separately to determine where improvements are needed. If retrieval is strong but relevance is poor, the team may need to examine prompting, query interpretation, answer generation, or response formatting.

Question 246. What is one reason to use a representative set of difficult queries in evaluation?

  1. To expose weaknesses that simple queries may not reveal
  2. To increase model parameters
  3. To eliminate the need for monitoring
  4. To prevent document ingestion

Correct Answer: 1. To expose weaknesses that simple queries may not reveal

Explanation:

Difficult queries can reveal failure modes that are hidden when evaluation consists only of straightforward examples. Challenging cases may include ambiguous questions, multi-step information needs, uncommon terminology, conflicting documents, incomplete context, or questions requiring precise source selection. Including such cases helps teams understand how the application behaves under conditions closer to real-world complexity. Difficult examples should be balanced with common production queries so that evaluation remains representative rather than focusing only on edge cases. When combined with a documented baseline, challenging evaluation cases can help developers determine whether changes improve robustness without causing regressions in normal user scenarios.

Question 247. What can a reranker improve when the initial retriever returns several semantically similar documents?

  1. The ordering of candidates according to query-specific relevance
  2. User authentication
  3. Document storage capacity
  4. Model training duration

Correct Answer: 1. The ordering of candidates according to query-specific relevance

Explanation:

A reranker provides an additional relevance assessment after the initial retrieval stage. When several documents are broadly similar to a query, simple vector similarity may not be sufficient to identify which passages best answer the user’s specific question. A reranker can examine each candidate in greater detail and reorder the results according to query-document relevance. This allows the application to place stronger evidence near the top of the final context or select only the best candidates. Reranking can therefore improve retrieval quality without requiring changes to the underlying source documents. Its impact should be measured through retrieval and downstream answer-quality evaluations.

Question 248. What is an important consideration when selecting the top-k value for retrieval?

  1. The trade-off between retrieving enough evidence and adding irrelevant context
  2. The color of the application
  3. The user’s screen resolution
  4. The number of prompt instructions

Correct Answer: 1. The trade-off between retrieving enough evidence and adding irrelevant context

Explanation:

The top-k parameter determines how many retrieval candidates are returned. A low value may cause the system to miss useful evidence, reducing recall, while an excessively high value can introduce irrelevant information, increase token usage, and distract the language model. The appropriate value depends on the document collection, query patterns, embedding model, reranking strategy, and context-window capacity. Teams should test multiple configurations using representative evaluation data and examine both retrieval metrics and final response quality. A larger top-k is not automatically better. In many architectures, retrieving a broader candidate set followed by reranking can provide a useful balance between recall and final-context relevance.

Question 249. Why can document structure influence chunking strategy?

  1. Headings, sections, and logical boundaries can provide meaningful context
  2. Document structure determines user authentication
  3. Document structure automatically changes model parameters
  4. Structure has no effect on retrieval

Correct Answer: 1. Headings, sections, and logical boundaries can provide meaningful context

Explanation:

Document structure can provide valuable signals for creating useful retrieval chunks. A technical document may contain headings, subsections, tables, procedures, or definitions that naturally group related information. Splitting content according to these logical boundaries can produce chunks that are more coherent than simply dividing the document after a fixed number of characters or tokens. Good chunking helps embeddings represent focused concepts and allows retrieval to return complete pieces of relevant information. However, structure-based chunking may need to be combined with size limits because some sections can still be excessively large. Teams should evaluate chunking strategies against representative queries to determine which approach produces useful retrieval results.

Question 250. What should an application do when a retrieved document conflicts with another authoritative source?

  1. Ignore the conflict and generate a confident answer
  2. Use source authority, version, and metadata rules to determine which evidence applies
  3. Increase temperature
  4. Delete both documents automatically

Correct Answer: 2. Use source authority, version, and metadata rules to determine which evidence applies

Explanation:

Conflicting information in a knowledge base should be handled through explicit source and document-management rules rather than leaving the language model to guess which statement is correct. Metadata such as source authority, effective date, document status, and version can help determine which document should be considered authoritative. The ingestion process can also identify superseded material and prevent obsolete versions from competing with current sources. When a conflict cannot be resolved automatically, the application may need to communicate uncertainty or route the issue for review. Clear source governance is therefore important for reliable RAG systems, particularly when multiple repositories contain overlapping or historically different versions of information.

Question 251. What is the main purpose of an ingestion pipeline in a RAG architecture?

  1. To prepare source data for efficient retrieval
  2. To generate every final answer
  3. To authenticate every user manually
  4. To increase model temperature

Correct Answer: 1. To prepare source data for efficient retrieval

Explanation:

An ingestion pipeline prepares source information so that it can be used effectively by the retrieval system. Typical steps may include collecting documents, extracting text, cleaning content, removing duplicates, splitting documents into chunks, generating embeddings, attaching metadata, and updating an index. The exact workflow depends on the source systems and retrieval architecture. A reliable ingestion pipeline is important because problems introduced during ingestion can directly affect downstream retrieval and answer quality. For example, missing text, incorrect metadata, obsolete versions, or poor chunk boundaries can cause relevant information to be unavailable or incorrectly retrieved. Ingestion should therefore be monitored and tested as an important part of the overall RAG lifecycle.

Question 252. Which approach can help a RAG system answer questions about frequently changing information?

  1. Regularly update and re-index the knowledge source
  2. Permanently freeze the knowledge base
  3. Remove document metadata
  4. Increase temperature

Correct Answer: 1. Regularly update and re-index the knowledge source

Explanation:

RAG systems can incorporate frequently changing information by updating the underlying knowledge source and retrieval index rather than requiring the language model to be retrained whenever source information changes. An ingestion pipeline can detect new or modified documents, process them, generate updated embeddings when needed, and refresh the search index. Metadata can help identify effective dates and document versions so obsolete content is not unnecessarily retrieved. This architecture is useful for policies, product information, internal procedures, and other sources that change regularly. The update process should be reliable and observable because delays or failures in ingestion can cause the application to continue returning outdated information.

Question 253. Why is access control important before retrieved context is passed to a language model?

  1. Unauthorized information should not become part of the model’s processing context
  2. It increases the model’s context window
  3. It improves tokenization automatically
  4. It guarantees groundedness

Correct Answer: 1. Unauthorized information should not become part of the model’s processing context

Explanation:

Access control should be applied before sensitive or restricted information becomes available to the generation workflow. If a retrieval system returns a confidential document to a user who is not authorized to access it, simply instructing the language model not to reveal the document is not an adequate security boundary. Authorization-aware retrieval can filter candidates based on the user’s permissions before the information is included in the prompt. This reduces the chance of unauthorized data exposure and supports stronger security architecture. Access controls should be integrated with identity, document metadata, auditing, and testing so that permissions remain consistent as the knowledge base and application evolve.

Question 254. What is a useful purpose of logging model and retrieval versions for each request?

  1. To support debugging and reproducibility
  2. To increase model accuracy automatically
  3. To eliminate evaluation datasets
  4. To disable monitoring

Correct Answer: 1. To support debugging and reproducibility

Explanation:

Recording the versions of important components associated with a request makes it easier to reproduce and investigate application behavior. A RAG response may depend on the language model, prompt version, embedding model, retrieval configuration, reranker, and knowledge-base version. If these details are not recorded, developers may struggle to explain why two seemingly identical requests produced different results. Version information allows teams to connect an observed response with the exact system configuration that generated it. This is valuable when analyzing regressions, comparing experiments, auditing behavior, or reproducing an issue. Logging should still follow appropriate privacy, security, retention, and data-minimization requirements.

Question 255. Which strategy can reduce hallucinations when the knowledge base lacks an answer?

  1. Instruct the model to acknowledge insufficient evidence
  2. Force the model to answer every question
  3. Increase randomness
  4. Remove retrieval thresholds

Correct Answer: 1. Instruct the model to acknowledge insufficient evidence

Explanation:

When the knowledge base does not contain enough information, forcing a language model to provide an answer can encourage unsupported generation. A better strategy is to instruct the model to recognize when available evidence is insufficient and communicate that limitation. Retrieval thresholds can also help identify situations where no candidate meets the required relevance level. Depending on the application, the system may ask the user for clarification, suggest an appropriate source, or route the question for human assistance. This approach does not eliminate hallucinations completely, but it establishes a safer behavior for situations where retrieval cannot provide adequate evidence for a reliable response.

Question 256. What is the purpose of evaluating latency separately from answer quality?

  1. A system can have good answers but still be too slow for its intended use
  2. Latency determines document accuracy
  3. Latency replaces groundedness evaluation
  4. Latency automatically improves retrieval

Correct Answer: 1. A system can have good answers but still be too slow for its intended use

Explanation:

Answer quality and latency measure different aspects of an application’s performance. A system may produce highly relevant and well-grounded responses but take too long to return them, making it unsuitable for an interactive workflow. Conversely, a very fast system may provide poor or unsupported answers. RAG latency can be influenced by query processing, embedding generation, vector search, reranking, prompt construction, model generation, and network operations. Measuring these components separately can help identify optimization opportunities. Evaluating latency alongside quality metrics gives teams a more complete understanding of whether a system meets its functional and operational requirements.

Question 257. Which technique can help reduce the cost of repeatedly processing unchanged source documents?

  1. Incremental ingestion
  2. Increasing top-k indefinitely
  3. Reprocessing the entire knowledge base for every request
  4. Increasing response length

Correct Answer: 1. Incremental ingestion

Explanation:

Incremental ingestion processes only documents or records that are new, changed, or otherwise require updating instead of repeatedly processing the entire knowledge base. This can reduce embedding computation, indexing work, and overall ingestion cost when a large collection changes only partially between updates. The pipeline needs a reliable way to identify changed content, such as timestamps, document identifiers, hashes, or source-system change tracking. When a document changes, its affected chunks and embeddings can be updated accordingly. Incremental ingestion is especially useful for enterprise knowledge bases that contain large amounts of relatively stable content with a smaller portion changing regularly.

Question 258. What is one reason to use human evaluation alongside automated metrics?

  1. Humans can assess nuanced qualities that automated measures may miss
  2. Humans eliminate the need for any test dataset
  3. Human review guarantees factual correctness
  4. Human evaluation increases vector dimensions

Correct Answer: 1. Humans can assess nuanced qualities that automated measures may miss

Explanation:

Automated evaluation provides scalable and repeatable measurements, but some qualities of generated responses can be difficult to capture with a single automated metric. Human reviewers can assess factors such as usefulness, clarity, completeness, tone, nuanced relevance, and whether a response appropriately handles ambiguity. Human evaluation can also help identify failure modes that later become candidates for automated testing. It should not be viewed as a replacement for automated evaluation because manual review can be slower, more expensive, and subject to reviewer variation. Combining human judgment with automated metrics and representative datasets provides a broader understanding of application quality.

Question 259. What is a potential problem with using an outdated embedding model after changing the indexing pipeline?

  1. Query and document representations may become inconsistent
  2. User authentication becomes impossible
  3. The context window automatically doubles
  4. Source documents are deleted

Correct Answer: 1. Query and document representations may become inconsistent

Explanation:

Semantic retrieval depends on meaningful comparisons between query and document embeddings. If documents are indexed using one embedding model while queries are generated using an incompatible model or representation space, similarity comparisons may become unreliable. When changing an embedding model, teams generally need to consider re-embedding the affected documents and rebuilding or updating the relevant index so that queries and indexed content use compatible representations. The change should then be evaluated against a baseline because retrieval quality can improve or regress depending on the data and model characteristics. Embedding-model versioning is therefore an important part of maintaining reproducible and reliable RAG retrieval.

Question 260. Which practice best supports safe iteration on a production RAG application?

  1. Make undocumented changes directly in production
  2. Test changes against representative data and retain a rollback option
  3. Disable monitoring during deployment
  4. Remove the previous configuration immediately

Correct Answer: 2. Test changes against representative data and retain a rollback option

Explanation:

Safe iteration requires controlled changes, evaluation, observability, and the ability to recover from unexpected results. Before deploying a significant RAG change, teams should evaluate it using representative data and compare important metrics with a documented baseline. Relevant components such as prompts, models, retrieval settings, and data versions should be tracked so the new configuration can be reproduced. Deployment should include appropriate monitoring so quality and operational behavior can be observed after release. Retaining a previously validated configuration provides a rollback path if the new version causes regressions. This disciplined lifecycle helps teams improve the application while reducing unnecessary production risk.