View Full Databricks Certified Generative AI Engineer Associate Exam Dumps and Practice Test Dumps
Question 221. Which component is primarily responsible for finding relevant information from a knowledge base in a RAG system?
- Retriever
- Tokenizer
- Output validator
- Guardrail
Correct Answer: 1. Retriever
Explanation:
The retriever is the component responsible for finding information that is relevant to a user’s query from an available knowledge source. In a RAG architecture, the user’s question is typically transformed into a representation suitable for searching, and the retrieval system identifies relevant document chunks or records. These results are then supplied to the language model as context for generating the response. Retrieval can use semantic vector search, keyword search, hybrid search, metadata filtering, or reranking. The retriever does not normally generate the final natural-language answer. Its primary role is to provide useful evidence so the generation model has access to information relevant to the user’s request.
Question 222. What is the main purpose of tokenization before text is processed by a language model?
- To authenticate the user
- To split text into units that the model can process
- To retrieve documents from a vector index
- To enforce access permissions
Correct Answer: 2. To split text into units that the model can process
Explanation:
Tokenization converts text into smaller units called tokens that can be processed by a language model. Depending on the tokenizer, a token may represent a complete word, part of a word, punctuation, or another textual unit. Tokenization is important because language models operate within token-based context limits rather than simply counting characters or words. The number of tokens in a prompt, retrieved context, and conversation history can therefore affect whether the request fits within the model’s context window. Understanding tokenization also helps teams manage prompt size, estimate usage, and design chunking and conversation-history strategies for generative AI applications.
Question 223. A RAG application retrieves relevant documents but still produces unsupported claims. What should the team investigate?
- Whether the generation instructions require the model to stay grounded in the retrieved context
- Whether the browser uses dark mode
- Whether the vector database contains more storage
- Whether the application has enough user accounts
Correct Answer: 1. Whether the generation instructions require the model to stay grounded in the retrieved context
Explanation:
If retrieval is producing relevant evidence but the final answer contains unsupported claims, the problem may be occurring during the generation stage. The prompt should clearly instruct the model to use the supplied context and avoid making claims that are not supported by it. The team should also evaluate whether the retrieved context is being inserted correctly, whether conflicting instructions exist, and whether output guardrails or groundedness checks are functioning as intended. A useful evaluation process should distinguish retrieval quality from generation quality. This makes it easier to determine whether the issue is caused by missing evidence or by the model failing to use available evidence appropriately.
Question 224. Which technique can improve retrieval when users use terminology different from that found in source documents?
- Increasing output length
- Query rewriting or expansion
- Removing embeddings
- Increasing model temperature
Correct Answer: 2. Query rewriting or expansion
Explanation:
Query rewriting or expansion can help bridge differences between the language used by users and the terminology present in the knowledge base. A user might use a common abbreviation, informal phrase, or synonym while the source documents use a formal technical term. A rewriting process can transform the original query into one or more retrieval-friendly queries that better represent the user’s information need. This can improve the likelihood of finding relevant documents without requiring the user to know the exact terminology used by the organization. Teams should evaluate query rewriting carefully because poorly generated rewrites can introduce incorrect assumptions or cause retrieval to move away from the user’s original intent.
Question 225. Why can hybrid search be useful for enterprise knowledge retrieval?
- It combines complementary retrieval signals
- It removes the need for source documents
- It automatically trains the language model
- It guarantees every retrieved document is relevant
Correct Answer: 1. It combines complementary retrieval signals
Explanation:
Hybrid search combines different retrieval methods, commonly semantic vector search and lexical keyword search. These methods have complementary strengths. Semantic search can identify conceptually related information even when the wording differs, while keyword search can be particularly effective for exact product names, error codes, identifiers, acronyms, and specialized terminology. Enterprise knowledge bases often contain a mixture of natural-language explanations and precise technical terms, making a single retrieval strategy insufficient for every query. Hybrid search can combine these signals and, when appropriate, use ranking or reranking to select the strongest results. Its effectiveness should still be measured with representative evaluation queries rather than assumed automatically.
Question 226. What is the purpose of a reranker after an initial retrieval step?
- To authenticate the language model
- To generate embeddings for every user
- To reorder candidate results according to their relevance to the query
- To delete the knowledge base
Correct Answer: 3. To reorder candidate results according to their relevance to the query
Explanation:
A reranker takes an initial set of retrieved candidates and evaluates them more closely against the user’s query. The first retrieval stage is often optimized for speed and broad candidate selection, so it may return documents that are generally similar but vary considerably in actual relevance. A reranker can apply a more detailed relevance assessment and place the strongest candidates first. This can improve the quality of the context ultimately provided to the language model. Reranking is especially useful when a knowledge base contains many similar documents or when semantic similarity alone does not sufficiently distinguish between closely related passages.
Question 227. What is a potential consequence of retrieving too much context for an LLM?
- The model may become distracted by irrelevant information
- The model automatically becomes more accurate
- The source documents disappear
- Authentication becomes stronger
Correct Answer: 1. The model may become distracted by irrelevant information
Explanation:
Providing excessive context can reduce answer quality because the language model must process a larger amount of information, some of which may not be relevant to the user’s question. Irrelevant or conflicting passages can compete with the most useful evidence and consume valuable context-window capacity. Large amounts of context can also increase latency and cost. RAG systems should therefore aim to retrieve context that is both sufficient and relevant rather than simply maximizing the number of documents. Techniques such as metadata filtering, appropriate top-k settings, similarity thresholds, chunk optimization, and reranking can help control the amount and quality of information passed to the generation model.
Question 228. What is one reason to store document version information as metadata?
- To increase tokenization speed
- To identify which version of a source was retrieved
- To increase the model’s parameter count
- To eliminate all evaluation
Correct Answer: 2. To identify which version of a source was retrieved
Explanation:
Document version metadata helps a RAG application distinguish between different versions of the same source. This is valuable when policies, procedures, product documentation, or other knowledge change over time. By recording version identifiers, effective dates, or source-system references, the application can apply appropriate retrieval rules and provide better traceability. Version metadata can also help developers investigate unexpected answers by showing which source version was used. Without such information, an application may retrieve an obsolete document without an easy way to determine why. Version-aware ingestion and retrieval are therefore important for maintaining reliable knowledge bases where information changes regularly.
Question 229. Which practice helps prevent obsolete documents from competing with current documents during retrieval?
- Increasing temperature
- Using document lifecycle and version metadata
- Removing all metadata
- Increasing response length
Correct Answer: 2. Using document lifecycle and version metadata
Explanation:
Document lifecycle and version metadata can help a retrieval system distinguish active information from obsolete material. During ingestion, documents can be tagged with attributes such as publication date, effective date, expiration date, version number, or active status. Retrieval logic can then prioritize or filter documents according to the application’s requirements. This is especially important for policies and procedures where an older version may still contain highly relevant terminology but no longer represent the organization’s current rules. Maintaining accurate metadata and ensuring that updates are reflected in the index are both necessary. Metadata alone cannot solve the problem if the underlying document lifecycle information is incomplete or incorrect.
Question 230. Why should an AI application validate structured model output?
- To ensure the generated response conforms to expected structural requirements
- To increase the context window
- To eliminate the need for prompts
- To automatically update source documents
Correct Answer: 1. To ensure the generated response conforms to expected structural requirements
Explanation:
Structured output validation checks whether a model-generated response follows the expected schema and format. For example, an application may require a response containing specific fields with particular data types. Even when a model is instructed to follow a schema, generated output can occasionally be incomplete, malformed, or inconsistent. Validation allows application logic to detect these conditions before passing the result to downstream systems. Depending on the use case, invalid output can be rejected, corrected, regenerated, or routed for further handling. Schema validation therefore improves the reliability of integrations between language models and software components without claiming that the underlying generated information is automatically factually correct.
Question 231. What does throughput measure in a generative AI service?
- The number of requests or tokens processed over a given period
- The number of documents stored in a knowledge base
- The number of prompt instructions
- The number of user permissions
Correct Answer: 1. The number of requests or tokens processed over a given period
Explanation:
Throughput describes how much work a system can process during a specified period. In generative AI services, it may be measured using requests per second, tokens per second, or another workload-specific unit. Throughput is different from latency, which measures how long an individual request takes to complete. Both metrics matter for production capacity planning. A system may have acceptable latency for one request but still struggle when many users submit requests simultaneously. Monitoring throughput helps teams understand whether infrastructure and model-serving resources can support expected workloads. Capacity limits, concurrency, model size, request complexity, and retrieval operations can all influence throughput.
Question 232. What is a common purpose of caching embeddings in a RAG pipeline?
- To avoid repeatedly generating embeddings for unchanged content
- To replace authorization
- To increase model temperature
- To remove document versions
Correct Answer: 1. To avoid repeatedly generating embeddings for unchanged content
Explanation:
Generating embeddings for large amounts of text can consume computational resources, particularly when the same documents are processed repeatedly. Caching embeddings allows an application to reuse an existing vector representation when the underlying text has not changed. This can reduce unnecessary computation during ingestion or repeated processing and may improve pipeline efficiency. A reliable caching strategy should associate cached embeddings with the appropriate document content and embedding-model version. If the source text changes or the embedding model changes, the cached representation may need to be regenerated. Proper cache invalidation is therefore important to ensure that retrieval continues using valid and consistent vector representations.
Question 233. What should happen when a source document is materially changed in a RAG knowledge base?
- The corresponding indexed representation should be updated or re-indexed
- The old vector should always remain active
- The generation model must always be retrained
- All user accounts should be deleted
Correct Answer: 1. The corresponding indexed representation should be updated or re-indexed
Explanation:
When source content changes, the retrieval index should reflect the updated information. Depending on the architecture, the changed document may need to be reprocessed, split into chunks, embedded again, and updated in the vector or search index. Relevant metadata should also be updated so that version and lifecycle information remain accurate. Keeping an obsolete indexed representation active can cause the RAG system to retrieve outdated information even though the source repository has been corrected. A source-document update does not automatically require retraining the language model because RAG is designed to provide changing knowledge through the retrieval layer. Updating the knowledge pipeline is usually the relevant operation.
Question 234. What is a useful role for user feedback in generative AI evaluation?
- It can reveal real-world failure cases and areas for improvement
- It guarantees all future answers are correct
- It replaces automated evaluation entirely
- It increases vector dimensions
Correct Answer: 1. It can reveal real-world failure cases and areas for improvement
Explanation:
User feedback provides information about how an application behaves in real usage and can reveal cases that were not represented in the original evaluation dataset. Users may identify irrelevant retrieval results, incomplete answers, confusing responses, missing information, or incorrect interpretations. Teams can analyze this feedback and convert useful examples into evaluation cases for future testing. Feedback should be handled carefully because individual reports may be subjective or incomplete. It is most valuable when combined with automated metrics, human review, tracing, and representative test datasets. This creates a feedback loop in which real-world observations contribute to systematic improvements rather than being treated as isolated incidents.
Question 235. Which practice supports responsible handling of confidential information in a RAG application?
- Allowing unrestricted retrieval for every user
- Applying access controls to documents and retrieval results
- Storing credentials directly in prompts
- Disabling all security monitoring
Correct Answer: 2. Applying access controls to documents and retrieval results
Explanation:
Access controls help ensure that users can retrieve only information they are authorized to access. In a RAG application, this may require integrating user identity with document-level or record-level permissions and applying those permissions during retrieval. This is particularly important when a knowledge base contains confidential business information, personal information, or department-specific material. Prompt instructions alone should not be relied upon as the primary authorization mechanism because retrieved content may already have been exposed to the model. Strong access controls should be supported by appropriate authentication, authorization, metadata, auditing, logging practices, and regular testing of permission boundaries.
Question 236. Why is it useful to keep a documented baseline before changing a RAG application?
- It provides a reference for measuring later improvements or regressions
- It prevents all production incidents
- It eliminates the need for evaluation data
- It automatically optimizes the model
Correct Answer: 1. It provides a reference for measuring later improvements or regressions
Explanation:
A documented baseline establishes how the existing system performs before a change is introduced. Teams can record relevant quality and operational metrics, such as retrieval precision, retrieval recall, groundedness, response relevance, latency, cost, and error rates. After making a change, the same evaluation process can be applied to determine whether the new version improved or degraded performance. Without a baseline, developers may rely on subjective impressions or isolated examples when judging changes. A baseline also makes regressions easier to detect and supports controlled experimentation. It should be maintained alongside information about model, prompt, retrieval, data, and application versions so results remain reproducible.
Question 237. What is the purpose of monitoring a deployed generative AI application?
- To observe system behavior and detect operational or quality issues
- To replace application testing
- To guarantee perfect answers
- To eliminate the need for version control
Correct Answer: 1. To observe system behavior and detect operational or quality issues
Explanation:
Production monitoring provides visibility into how an AI application behaves after deployment. Teams can monitor operational indicators such as latency, throughput, errors, resource usage, and request volume, as well as application-specific quality signals where appropriate. For RAG systems, monitoring can also help identify changes in retrieval behavior, source freshness, or other components of the workflow. Monitoring is not a replacement for pre-production evaluation because it detects issues after the system is operating in its intended environment. Instead, it complements testing and evaluation by providing ongoing evidence about system behavior and helping teams respond when performance changes.
Question 238. What is one benefit of keeping prompts, models, and retrieval configurations versioned together?
- It improves reproducibility when investigating or comparing system behavior
- It guarantees that every answer is factual
- It removes the need for monitoring
- It prevents all security vulnerabilities
Correct Answer: 1. It improves reproducibility when investigating or comparing system behavior
Explanation:
A generative AI application’s behavior can depend on several interacting components, including the language model, system prompt, embedding model, retrieval settings, reranking configuration, chunking strategy, and source-data version. If these components are not tracked, it can be difficult to determine which configuration produced a particular result. Versioning them together provides a reproducible record of the system state used during an evaluation or deployment. This helps teams compare experiments, investigate regressions, and reproduce previous behavior when necessary. Version control does not guarantee quality or security, but it provides essential traceability for disciplined development and operational management of complex AI applications.
Question 239. A RAG application has excellent retrieval recall but poor precision. What change could help?
- Increase the number of irrelevant documents retrieved
- Apply stronger relevance filtering or reranking
- Remove all evaluation data
- Increase response randomness
Correct Answer: 2. Apply stronger relevance filtering or reranking
Explanation:
High retrieval recall with poor precision means the system is finding many relevant items but is also returning a substantial amount of irrelevant material. Stronger relevance filtering can reduce weak matches, while reranking can reorder candidate results so that the most useful documents appear first. Other possible improvements include adjusting top-k values, applying metadata filters, refining chunk boundaries, improving query formulation, or using a similarity threshold. The appropriate solution depends on the cause of the low precision. Evaluation should therefore be performed after changes to determine whether improved precision also maintains sufficient recall and leads to better downstream groundedness and answer quality.
Question 240. Which workflow best represents a controlled approach to improving a production RAG application?
- Change the model randomly and deploy immediately
- Remove monitoring after deployment
- Modify the system, evaluate against a baseline, deploy in a controlled manner, and monitor results
- Ignore user feedback and source-data changes
Correct Answer: 3. Modify the system, evaluate against a baseline, deploy in a controlled manner, and monitor results
Explanation:
A controlled improvement workflow reduces the risk of introducing unexpected regressions into a production RAG application. Teams can first identify a specific improvement opportunity, make a targeted change, and evaluate the new configuration against a documented baseline using representative data. If the results meet the required quality and operational criteria, the change can be deployed using appropriate release controls. Production monitoring and tracing can then provide evidence about how the new version behaves under real workloads. User feedback and ongoing evaluation can identify additional improvement opportunities. Versioning each significant component also makes it easier to investigate issues and restore a previously validated configuration when necessary.