View Full Databricks Certified Generative AI Engineer Associate Exam Dumps and Practice Test Dumps
Question 101. Which component converts text into numerical vectors for semantic retrieval?
- Reranker
2. Embedding model
3. Token limit
4. Guardrail
Correct Answer: 2. Embedding model
Explanation:
An embedding model converts text into numerical vector representations that capture semantic characteristics of the input. These vectors allow a retrieval system to compare the meaning of a user query with the meaning of stored documents rather than depending only on exact word matches. In a RAG application, documents can be embedded and stored in a vector index, while an incoming query is converted into an embedding and compared against those stored vectors. This process helps identify semantically relevant information even when the wording differs. Embedding models therefore form an important part of semantic search and retrieval workflows.
Question 102. What is the main purpose of a vector index in a RAG application?
- Store and efficiently search vector representations
2. Generate natural-language answers
3. Manage user passwords
4. Replace the language model
Correct Answer: 1. Store and efficiently search vector representations
Explanation:
A vector index is designed to store vector representations and support efficient similarity searches over them. In a RAG workflow, documents or document chunks are converted into embeddings and stored in a vector index along with useful metadata. When a user submits a question, the query can also be converted into an embedding and compared with indexed vectors to identify relevant content. The vector index does not itself generate the final natural-language answer, manage authentication credentials, or replace the language model. Its primary role is retrieval: quickly finding stored content whose vector representations are similar or otherwise relevant to the query.
Question 103. Which factor should be considered when selecting an embedding model?
- Only the application’s logo
2. The color of the user interface
3. Retrieval quality, domain suitability, and operational requirements
4. The number of browser tabs open
Correct Answer: 3. Retrieval quality, domain suitability, and operational requirements
Explanation:
Embedding model selection should consider how well the model represents the types of content and queries used by the application. Important considerations can include retrieval quality, language support, domain characteristics, vector dimensions, computational requirements, latency, and compatibility with the application’s retrieval infrastructure. An embedding model that performs well on general text may not always be optimal for specialized technical or multilingual content. Operational factors are also important because embedding generation and indexing can create significant computational workloads. The application’s visual design or unrelated user-interface characteristics do not determine embedding quality. Selection should therefore be based on measurable retrieval and deployment requirements.
Question 104. Why is document preprocessing important before creating embeddings?
- It increases the temperature of the model
2. It can remove irrelevant, duplicated, or malformed content
3. It eliminates the need for retrieval
4. It automatically guarantees factual answers
Correct Answer: 2. It can remove irrelevant, duplicated, or malformed content
Explanation:
Document preprocessing prepares source material so that it can be retrieved effectively and provide useful context to a generative model. This process may include removing unnecessary formatting, correcting extraction problems, eliminating duplicated or obsolete information, separating documents into meaningful chunks, and preserving important metadata. If poor-quality content is embedded without preprocessing, the retrieval system may return irrelevant or confusing information. Preprocessing does not guarantee factual answers and does not eliminate the need for retrieval. Instead, it improves the quality and consistency of the data entering the retrieval pipeline, which can contribute to better search results and more useful generated responses.
Question 105. What can happen if RAG chunks are excessively large?
- Retrieval may return too much irrelevant context
2. The model automatically becomes more accurate
3. Embeddings are no longer required
4. Authentication becomes unnecessary
Correct Answer: 1. Retrieval may return too much irrelevant context
Explanation:
Excessively large chunks can cause retrieval results to contain substantial amounts of information that are unrelated to the user’s specific question. Although the relevant passage may be present, surrounding material can introduce noise and consume valuable context-window capacity. Large chunks can also reduce retrieval precision because a match may be caused by a small relevant section while the entire large chunk is returned. Effective chunking seeks a practical balance between preserving enough context and keeping retrieved information focused. Chunk size should be tested against the document structure, query patterns, embedding model, and generation requirements rather than assuming that larger chunks are always better.
Question 106. What is a potential problem with chunks that are too small?
- They always increase model accuracy
2. They eliminate metadata
3. They may separate information that needs to be interpreted together
4. They prevent vector search from functioning
Correct Answer: 3. They may separate information that needs to be interpreted together
Explanation:
Chunks that are too small can lose important relationships between pieces of information. A sentence, definition, condition, or example may depend on surrounding content to be understood correctly. If those pieces are divided into separate small chunks, retrieval may return only one portion and provide the generation model with insufficient context. Very small chunks can also increase the number of indexed records and make retrieval less efficient in some systems. Good chunking should preserve meaningful semantic units while remaining small enough for focused retrieval. The ideal size depends on document structure, content type, query behavior, and the application’s retrieval and generation requirements.
Question 107. Which technique can help an assistant answer follow-up questions in a multi-turn conversation?
- Discard all previous messages
2. Use relevant conversation history when constructing the request
3. Disable the system prompt
4. Remove retrieved documents
Correct Answer: 2. Use relevant conversation history when constructing the request
Explanation:
Follow-up questions often depend on information introduced earlier in the conversation. Providing relevant conversation history allows the model to interpret references such as “that document,” “the previous option,” or “what about the second one?” without requiring the user to repeat the complete context. However, the application should manage history carefully because including every previous message can consume context-window capacity and introduce irrelevant information. Strategies such as summarizing older turns, retaining recent relevant messages, or maintaining structured conversation state can help. Conversation history should complement retrieval and system instructions rather than replacing them when external knowledge is required.
Question 108. What is one benefit of summarizing older conversation history?
- It can reduce token usage while retaining important context
2. It guarantees zero hallucinations
3. It permanently increases the model’s context window
4. It removes the need for user input
Correct Answer: 1. It can reduce token usage while retaining important context
Explanation:
Summarizing older conversation history can reduce the number of tokens that must be included in a request while preserving the most important information from earlier interactions. This is useful for long-running conversations where sending every previous message could consume a large portion of the available context window. A carefully generated summary can retain key decisions, preferences, entities, and unresolved questions while discarding repetitive details. However, summaries can introduce omissions or inaccuracies, so applications should design the summarization process carefully. Summarization does not permanently expand the model’s context window or guarantee that hallucinations will never occur.
Question 109. When is RAG generally more suitable than fine-tuning for a knowledge base that changes frequently?
- When current external information must be retrieved at query time
2. When the application never needs external data
3. When only model style needs to change
4. When the knowledge base is permanently static
Correct Answer: 1. When current external information must be retrieved at query time
Explanation:
RAG is often useful when an application needs access to information that changes frequently because updated source material can be indexed and retrieved without necessarily retraining the underlying language model. For example, an organization’s policies, product documentation, or internal procedures may change regularly. With a suitable ingestion and indexing process, the retrieval layer can provide newer information to the model during inference. Fine-tuning is generally more appropriate for changing model behavior, style, or task-specific patterns rather than serving as the primary mechanism for maintaining frequently changing factual knowledge. The choice still depends on the application’s requirements, data lifecycle, and architecture.
Question 110. What is a key purpose of authorization in an enterprise generative AI application?
- Increase token generation speed
2. Decide which authenticated users or services may access specific resources
3. Improve embedding dimensions
4. Increase model temperature
Correct Answer: 2. Decide which authenticated users or services may access specific resources
Explanation:
Authorization determines what an authenticated user, application, or service is permitted to access. In an enterprise generative AI system, authorization can control access to documents, vector indexes, model endpoints, databases, or application functions. This is especially important for RAG systems because retrieved information may contain data that should only be available to particular users or groups. Authentication establishes identity, while authorization determines permitted actions and resources. Authorization does not control generation temperature or embedding dimensions. Proper access controls should be incorporated into the retrieval and application architecture so that restricted information is not unintentionally included in prompts or generated responses.
Question 111. Why should application secrets be stored securely rather than hard-coded into source code?
- Hard-coded secrets improve retrieval quality
2. Secure storage reduces the risk of credential exposure
3. Hard-coded secrets increase model context
4. Secure storage eliminates all application errors
Correct Answer: 2. Secure storage reduces the risk of credential exposure
Explanation:
Secrets such as API keys, access tokens, database credentials, and service credentials should be managed through secure mechanisms rather than being embedded directly in source code. Hard-coded credentials can accidentally be committed to repositories, shared with unauthorized users, or exposed through logs and application artifacts. Secure secret-management approaches can provide controlled access, rotation, auditing, and separation between application code and sensitive configuration. This practice is particularly important for generative AI applications that may interact with model endpoints, vector databases, cloud services, and other protected resources. Secure secret handling reduces credential exposure risk, although it must be combined with broader authentication, authorization, and security controls.
Question 112. What does throughput measure in a model-serving system?
- The number of requests or units of work processed over a period
2. The factual correctness of every response
3. The number of prompt instructions
4. The size of the system prompt
Correct Answer: 1. The number of requests or units of work processed over a period
Explanation:
Throughput describes how much work a system can process during a specified period. Depending on the application, it may be expressed as requests per second, tokens processed per second, or another workload-specific measurement. Throughput is an important operational metric because it helps teams understand whether an endpoint can handle expected demand and how resource utilization changes under load. It differs from latency, which focuses on the time required to process an individual request. Throughput also does not measure response correctness or prompt size. Production systems commonly monitor throughput alongside latency, errors, resource utilization, and quality metrics.
Question 113. Which practice can help identify why a RAG response was incorrect?
- Remove all logs
2. Track retrieval results and relevant application traces
3. Increase temperature for every request
4. Delete evaluation datasets
Correct Answer: 2. Track retrieval results and relevant application traces
Explanation:
Tracing and logging important stages of a RAG pipeline can help developers diagnose incorrect responses. Useful information may include the user query, rewritten query, retrieved document identifiers, relevance scores, prompt construction, model version, and generated output, subject to appropriate privacy and security controls. By examining these stages, a team can determine whether the failure originated from poor retrieval, incomplete context, prompt construction, model generation, or another component. Simply increasing temperature does not identify the underlying problem, and deleting logs or evaluation datasets removes useful evidence. Effective observability makes troubleshooting more systematic and supports continuous improvement of the application.
Question 114. What is the primary purpose of guardrails in a generative AI application?
- Increase vector dimensions
2. Control model behavior and reduce undesirable outputs
3. Replace all source documents
4. Eliminate the need for monitoring
Correct Answer: 2. Control model behavior and reduce undesirable outputs
Explanation:
Guardrails are mechanisms that constrain, validate, or monitor generative AI behavior to reduce undesirable outcomes. Depending on the application, guardrails may address unsafe content, sensitive information, unsupported claims, invalid output formats, policy violations, or inappropriate tool usage. They can be implemented before generation, after generation, or at multiple stages of a workflow. Guardrails are not a replacement for source data, retrieval, or production monitoring. Instead, they provide additional controls around the model and application. A well-designed system combines guardrails with appropriate data governance, evaluation, authentication, authorization, monitoring, and other engineering practices.
Question 115. What is output schema validation useful for?
- Ensuring generated responses conform to a required structure
2. Increasing the model’s training dataset automatically
3. Creating vector embeddings
4. Increasing network bandwidth
Correct Answer: 1. Ensuring generated responses conform to a required structure
Explanation:
Output schema validation checks whether a generated response follows a predefined structure, such as required fields, data types, or formatting rules. This is particularly useful when a generative AI application passes model output to downstream software that expects structured data. For example, an application may require a response containing a specific set of fields with strings, numbers, or arrays in defined formats. Validation can detect malformed responses before they are processed further and can support retry or correction workflows. Schema validation does not create embeddings or increase network bandwidth. Its main purpose is improving reliability when integrating model output with deterministic application components.
Question 116. What is retrieval precision concerned with?
- The proportion of retrieved results that are relevant
2. The number of model parameters
3. The length of the generated response
4. The endpoint’s authentication method
Correct Answer: 1. The proportion of retrieved results that are relevant
Explanation:
Retrieval precision measures how many of the retrieved results are relevant compared with the total number of results returned. High precision means that the retrieval system is generally returning useful information rather than a large amount of unrelated content. This is important in RAG because irrelevant documents can consume context-window capacity and potentially distract the generation model. Precision is different from recall, which focuses on how much of the relevant information that exists was successfully retrieved. Evaluating both can provide a more complete understanding of retrieval quality. Retrieval precision can be influenced by embeddings, chunking, filters, search methods, reranking, and top-k configuration.
Question 117. What does retrieval recall measure?
- How much relevant information was successfully retrieved
2. How quickly the model generates tokens
3. How many users are authenticated
4. How much storage a vector database uses
Correct Answer: 1. How much relevant information was successfully retrieved
Explanation:
Retrieval recall focuses on the proportion of relevant information that the retrieval system successfully returns from the available relevant information. A system with low recall may fail to retrieve an important document even though that document exists in the knowledge base. This can prevent the generation model from receiving evidence needed to answer the user’s question. Recall should be considered alongside precision because retrieving many results can increase recall while also introducing irrelevant information. Retrieval quality can be improved through better embeddings, query rewriting, hybrid search, appropriate chunking, metadata filtering, reranking, and tuning retrieval parameters such as top-k.
Question 118. Why is evaluation data leakage a concern when testing a generative AI application?
- It can make evaluation results appear better than real-world performance
2. It always reduces model size
3. It increases database availability
4. It improves authorization automatically
Correct Answer: 1. It can make evaluation results appear better than real-world performance
Explanation:
Evaluation data leakage occurs when information from the evaluation set unintentionally becomes available during development or training in a way that compromises the independence of the test. For example, if test examples are repeatedly used to tune prompts or retrieval settings, the application may become optimized for those specific examples rather than generalizing to unseen inputs. This can make evaluation results look stronger than actual performance in production. Maintaining appropriate separation between development and evaluation data helps provide a more reliable estimate of generalization. Careful dataset management is therefore important when measuring changes to models, prompts, retrieval strategies, and application behavior.
Question 119. What is a useful reason to maintain a baseline evaluation before changing a RAG application?
- It provides a reference point for measuring later changes
2. It guarantees that future releases will succeed
3. It eliminates the need for monitoring
4. It prevents all retrieval errors
Correct Answer: 1. It provides a reference point for measuring later changes
Explanation:
A baseline evaluation establishes how an application performs before a modification is introduced. This gives developers a reference point against which new prompts, models, retrieval strategies, embedding models, or other changes can be compared. Without a baseline, it may be difficult to determine whether a new configuration actually improved quality or simply changed the behavior. Baselines can also help identify regressions when a new version performs worse on important metrics or representative examples. A baseline does not guarantee future success and cannot prevent all retrieval errors. Its primary value is enabling controlled comparison and evidence-based iteration during application development.
Question 120. Which workflow best represents a controlled improvement cycle for a RAG application?
- Change production configuration repeatedly without evaluation
2. Remove monitoring after deployment
3. Evaluate a baseline, make a controlled change, compare results, and monitor deployment
4. Replace the entire application after every error
Correct Answer: 3. Evaluate a baseline, make a controlled change, compare results, and monitor deployment
Explanation:
A controlled improvement cycle begins with a baseline so that existing performance is understood. A specific change can then be introduced, such as modifying the prompt, chunking strategy, embedding model, retrieval configuration, or generation model. The updated version should be evaluated against representative data and compared with the baseline to determine whether quality and operational characteristics changed as expected. If the change is deployed, production monitoring can identify unexpected regressions or failures. This structured process makes experimentation more reproducible and supports informed decisions. Random production changes or replacing the entire application after individual errors does not provide the same level of control or learning.