Databricks Certified Generative AI Engineer Associate (Generative-AI-Engineer-Associate)
Get full access to the updated question bank and confidently prepare for your exam.
Vendor
Databricks
Certification
Generative AI
Content
107 Qs
Status
Verified
Updated
1 day ago
Test the Practice Engine
Experience our interactive testing environment with free demo questions
Premium Bundle
Complete Success Suite
Save $34 Instantly
-
✓Full PDF + Interactive Engine Everything you need to pass
-
✓All Advanced Question Types Drag & Drop, Hotspots, Case Studies
-
✓Priority 24/7 Expert Support Direct line to certification leads
-
✓90 Days Free Priority Updates Stay current as exams change
Success Metric
98.4% Pass Rate
Standard Simulation
Practice Engine
One-Time Payment
-
Web-Based (Zero Install)
-
Real Testing Environment Virtual & Practice Modes
-
Interactive Engine Drag & Drop, Hotspots
-
60 Days Free Updates
Compatible with All Devices
Basic Tier
PDF Study Guide
Digital Access
- ✓ Exam Questions (PDF)
- ✓ Mobile Friendly
- ✓ 60 Days Updates
Verified 22-Question Preview (Generative-AI-Engineer-Associate)
Verified Community
The CertoMetrics Standard.
Recommend the #1 platform for verified Databricks certification resources.
Success Network
Help a Colleague Succeed.
Invite a peer to get their own updated Generative-AI-Engineer-Associate prep kit.
Exam Overview
The Databricks Certified Generative AI Engineer Associate certification validates an individual's practical expertise in building, deploying, and managing generative AI applications on the Databricks Lakehouse Platform. This credential signifies a professional's ability to leverage large language models (LLMs), implement prompt engineering techniques, and utilize Databricks MLOps tools to create robust AI solutions. Achieving this certification demonstrates a strong understanding of the generative AI lifecycle, from data preparation and model fine-tuning to scalable deployment and monitoring. It enhances career prospects by showcasing a highly sought-after skill set, positioning certified individuals as key contributors in the rapidly evolving field of artificial intelligence and machine learning.
Questions
60
Passing Score
700/1000
Duration
100 Minutes
Difficulty
Intermediate
Level
Associate
Skills Measured
Career Path
Target Roles
Common Questions
Is the material up to date?
Yes. We update our question bank weekly to match the latest Databricks standards. You get free updates for 90 days.
What format do I get?
You get instant access to both the **PDF** (for reading) and our **Premium Test Engine** (for exam simulation).
Is there a guarantee?
Absolutely. If you fail the Generative-AI-Engineer-Associate exam using our materials, we offer a full money-back guarantee.
When do I get the download?
Instantly. The download link is available in your dashboard immediately after payment is confirmed.
Free Study Guide Samples
Previewing updated Generative-AI-Engineer-Associate bank (22 Questions).
A Generative AI Engineer is using LangChain to assist a museum in classifying documents and using this code:
Their code results in an error.
What do they need to change in order to fix this template?
Correct Option: D
✅ Option D (Correct)
The PromptTemplate class in LangChain requires a template argument, which is the actual string containing the prompt text and placeholders for variables. In the provided code, the template_text is defined but not passed to the PromptTemplate constructor. The constructor only receives the input_variables. To fix the error, the template_text must be provided as the template argument to PromptTemplate(), like this: PromptTemplate(input_variables=["document_input"], template=template_text).
❌ Why the other choices are incorrect:
- Option A is incorrect: The
PromptTemplateclass is used to create and manage prompts; it does not directly interact with an LLM. An LLM is typically integrated later, often as part of a LangChain Chain, after the prompt has been formatted. - Option B is incorrect: While the
templateargument is indeed needed, theLLMargument is not part of thePromptTemplateconstructor. - Option C is incorrect:
PromptTemplateis a core component of LangChain for defining prompts, whether they are simple or complex (multi-part). Omitting it would prevent the creation and formatting of the prompt altogether.
Reference: https://python.langchain.com/docs/modules/model_io/prompts/quickstart
A Generative AI Engineer has been reviewing issues with their company's LLM based question-answering assistant and has determined that a technique called prompt chaining could help alleviate some performance concerns. However, to suggest this to their team, they have to clearly explain how it works and how it can benefit their question-answering assistant.
Which explanation do they communicate to the team?
Correct Option: A
✅ Option A (Correct)
Reasoning: Prompt chaining is a technique where the output of one Large Language Model (LLM) call is used as the input for a subsequent LLM call. This allows for the decomposition of complex tasks into smaller, more manageable subtasks. By addressing each subtask independently or sequentially, the system can process information more granularly, leading to more comprehensive, accurate, and relevant responses. For a question-answering assistant, this means the LLM can first identify entities, then retrieve information, then synthesize, and finally format, improving overall performance and quality. This directly addresses the goal of alleviating performance concerns, especially those related to response quality and accuracy.
❌ Why the other choices are incorrect:
* Option B is incorrect: Prompt chaining typically increases latency rather than reducing it. Each step in the chain requires an independent API call to the LLM, adding to the total processing time. It does not increase the rate at which the response is generated; in fact, it often slows down the end-to-end response time.
* Option C is incorrect: While some prompt components might be reused, the primary benefit of prompt chaining is not to decrease the effort in crafting a prompt. It often requires more upfront design and orchestration effort to define the sequence and individual prompts for each step. The goal is to improve the quality and structure of responses, not primarily to simplify prompt engineering.
* Option D is incorrect: Prompt chaining generally increases the average cost of a typical request. Since multiple LLM calls are made, and each call incurs token usage, the total number of tokens processed (input and output) across all steps in a chain is usually higher than a single, monolithic prompt, leading to increased cost.
Reference: https://www.databricks.com/blog/2023/12/21/multi-turn-prompt-techniques-and-best-practices.html, https://www.databricks.com/blog/2023/11/02/diving-langchain-advanced-prompt-engineering-techniques
An AI developer team wants to fine tune an open-weight model to have exceptional performance on a code generation use case. They are trying to choose the best model to start with. They want to minimize model hosting costs, and are using Huggingface model cards and spaces to explore models.
Which TWO model attributes and metrics should the team focus on to make their selection? (Choose two.)
Correct Option: A,B
✅ Option A (Correct)
Reasoning: The Big Code Models Leaderboard directly evaluates models on various code-related tasks, making it the most relevant metric for assessing a model's inherent capability for "code generation." This helps ensure exceptional performance.
✅ Option B (Correct)
Reasoning: The number of model parameters directly impacts the computational resources required for hosting (memory, CPU/GPU, and network bandwidth). To "minimize model hosting costs," the team should consider models with fewer parameters that still achieve the desired performance levels, as larger models incur higher operational expenses.
❌ Why the other choices are incorrect:
- Option C is incorrect: The MTEB Leaderboard focuses on text embedding models and their performance across various general NLP tasks like retrieval and classification, not specifically code generation.
- Option D is incorrect: The Chatbot Arena Leaderboard evaluates conversational AI models based on human preferences, which is not relevant for a code generation use case.
- Option E is incorrect: The number of model downloads indicates popularity but does not directly reflect performance on a specific task like code generation, nor does it provide a direct measure of hosting costs. A popular model could still be very large and expensive to host.
Reference: https://huggingface.co/docs/hub/leaderboards
A Generative AI Engineer at an automotive company would like to build a question-answering chatbot to help customers answer specific questions about their vehicles. They have:
• A catalog with hundreds of thousands of cars manufactured since the 1960s
• Historical searches, with user queries and successful matches
• Descriptions of their own cars in multiple languages
They have already selected an open source LLM and created a test set of user queries. They need to discard techniques that will not help them build the chatbot.
Which do they discard?
Correct Option: A
The technique to discard is A: Setting chunk size to match the model's context window to maximize coverage.
While it is crucial to stay within the model's context window, setting each chunk size to precisely match the entire context window is generally not an optimal strategy. This approach can be detrimental because:
- It limits the number of retrieved documents that can be passed to the LLM, as a single document would consume the entire context. Often, multiple smaller, highly relevant chunks are more effective.
- It may include too much irrelevant information within a single large chunk, diluting the signal for the LLM.
- It leaves little to no room for the prompt, instructions, or few-shot examples that also need to fit within the context window.
Optimal chunking involves balancing semantic coherence, size, and overlap to ensure relevant information is captured without overwhelming the model or exceeding its limits, while also allowing for multiple relevant retrievals.
Why the other choices are helpful:
- B: Implementing metadata filtering based on car models and years is a crucial technique for RAG. Given a catalog of hundreds of thousands of cars, metadata filtering allows for pre-filtering documents based on specific attributes (e.g., year, make, model) before performing a vector search, significantly improving retrieval relevance and efficiency.
- C: Fine-tuning an embedding model on automotive terminology is highly effective for domain-specific RAG. Training an embedding model on the company's specific car descriptions and historical searches will make it better at understanding and matching automotive-related queries with relevant documents, leading to more accurate retrievals.
- D: Adding few-shot examples for response generation is a standard prompt engineering technique to guide the LLM's output. Providing examples of desired question-answer pairs helps the LLM generate responses that are more accurate, relevant, and in the desired format and tone for automotive customer support.
Reference: https://www.databricks.com/glossary/retrieval-augmented-generation-rag
A Generative AI Engineer at a legal firm is designing a RAG system to analyze historical legal case precedents. The system needs to process millions of court opinions and legal documents, already organized by time and topic, to track how interpretations of specific laws have evolved over time. All of these documents are in plain-text. The engineer needs to choose a chunking method that would most effectively preserve continuity and the temporal nature of the cases.
Which method do they choose?
Correct Option: A
✅ Option A (Correct)Reasoning:The core requirements are to 'preserve continuity' and 'the temporal nature' of legal cases that are 'already organized by time and topic'.
- Overlapping chunks are crucial for preserving continuity. By ensuring that consecutive chunks share some text, they provide essential context across chunk boundaries, allowing the RAG system to understand the flow and development of legal arguments.
- Windowed summarization can be applied to these overlapping chunks to create more concise yet context-rich representations. This helps in understanding complex legal documents without losing the vital interconnections.
- Since the documents are already organized by time, maintaining continuity through overlapping chunks allows the system to naturally track the evolution of legal interpretations over time. The LLM can then process these chronologically ordered, contextually rich chunks to infer and understand the temporal progression of legal precedents.
- Option B is incorrect: Implementing a hierarchical tree structure like RAPTOR focuses on grouping similar concepts and generating high-level summaries. While useful for semantic understanding, it may abstract away the fine-grained temporal progression and specific wording needed to track the evolution of interpretations over time.
- Option C is incorrect: Implementing paragraph-level embeddings is a standard chunking approach that preserves semantic coherence within paragraphs. However, it does not explicitly address the need for overlapping to maintain continuity across paragraph boundaries, which is crucial for tracking evolution.
- Option D is incorrect: Implementing sentence-level embeddings with time tagging, while excellent for enabling precise temporal filtering during retrieval, often results in very small chunks that can break continuity and lose critical context, especially in complex legal documents where a single sentence might not provide sufficient meaning. The primary goal is to preserve continuity and understand evolving interpretations, which requires more context than a single sentence usually provides.
Reference: https://www.databricks.com/blog/2023/09/12/llm-chunking-best-practices-rag-applications.html (Databricks often recommends overlapping chunks for maintaining context in RAG systems, and this is a general industry best practice.)
A Generative AI Engineer is developing an agent system using a popular agent-authoring library. The agent comprises multiple parallel and sequential chains. The engineer encounters challenges as the agent fails at one of the steps, making it difficult to debug the root cause. They need to find an appropriate approach to research this issue and discover the cause of failure.
Which approach do they choose?
Correct Option: A
Enable MLflow Tracing to gain visibility into each agent's behavior and execution steps. MLflow Tracing is specifically designed for observing and debugging AI applications, including agents and complex chains. It captures detailed execution traces, spans, and logs for each component and step within the agent's workflow. This allows the engineer to pinpoint the exact step where the failure occurs, examine inputs and outputs, and understand the internal state, which is crucial for diagnosing issues in systems with parallel and sequential components. This provides a comprehensive and structured way to understand the agent's runtime behavior without altering its core logic significantly.
Reference: https://mlflow.org/docs/latest/llms/llm-evaluate/tracing.html
A Generative AI Engineer is using LangGraph to define multiple tools in a single agentic application. They want to enable the main orchestrator LLM to decide on its own which tools are most appropriate to call for a given prompt. To do this, they must determine the general flow of the code.
Which sequence will do this?
Correct Option: B
A Generative AI Engineer utilizing LangGraph for an agentic application with multiple tools needs to follow a specific sequence to enable the orchestrator LLM to select appropriate tools. The most logical and common sequence aligns with standard agent construction patterns in frameworks like LangChain and LangGraph.
- Define or import the tools: Before an agent can use tools, the tools themselves must be defined and made available. These could be custom functions or pre-built utilities.
- Define the agent: This step involves determining the agent's reasoning framework (e.g., ReAct for reasoning and acting) and the overall structure or 'type' of the agent that will orchestrate the LLM and tools.
- Initialize the agent with ReAct, the LLM, and the tools: Finally, the agent instance is created by combining the chosen LLM with the defined tools and configuring it to use the ReAct reasoning paradigm. This initialization step binds the LLM and tools to the agent's decision-making process.
Reference: https://python.langchain.com/docs/modules/agents/how_to/custom_react_agent
All of the following are python APIs used to query Databricks foundation models. When running in an interactive notebook, which of the following libraries does not automatically use the current session credentials?
Correct Option: B
The question asks which Python API, when running in an interactive Databricks notebook, does not automatically use the current session credentials to query Databricks foundation models.
- MLflow Deployments SDK (C) and Databricks Python SDK (D) are both designed to integrate seamlessly with the Databricks environment. When running within a Databricks notebook, these SDKs typically detect the environment and automatically leverage the current session's credentials (e.g., the implicit Databricks token) for authentication without requiring explicit token passing. Therefore, options C and D automatically use current session credentials.
- The OpenAI client (A) is a generic client for OpenAI-compatible APIs. While it can be used to query Databricks foundation models (by pointing its
base_urlto the Databricks endpoint and passing a Databricks token as theapi_key), the client itself does not automatically fetch or infer the current Databricks session credentials (e.g., viadbutils). The token must be explicitly retrieved by the user's code and passed to the client. - The REST API via requests library (B) is a low-level HTTP client. It has no inherent mechanism to automatically discover or use Databricks session credentials. When making calls using
requests, the user must explicitly obtain the Databricks token (e.g., usingdbutils.notebook.getContext().apiToken().get()) and manually construct theAuthorization: Bearer <token>header in the HTTP request. This is the most manual approach among the options.
requests library does not automatically use the current session credentials, requiring full manual handling of authentication.
Reference: https://docs.databricks.com/en/machine-learning/llm/foundation-models/index.html
A Generative AI Engineer is deploying a customer-facing, fine-tuned LLM on their public website. Given the large investment the company put into fine tuning this model, and the proprietary nature of the tuning data, they are concerned about model inversion attacks.
Which of the following Databricks AI Security Framework (DASF) risk mitigation strategies are most relevant to this use case?
Correct Option: A
Model inversion attacks seek to reconstruct proprietary training data from a deployed model's outputs. AI guardrails on Databricks are mechanisms to control and constrain model behavior and outputs, ensuring compliance and preventing undesirable responses. By defining strict rules on what the LLM can generate, its level of detail, or specific response patterns, guardrails can significantly limit the exploitable information leakage, making it harder for an attacker to infer sensitive training data. This directly addresses the risk from the public-facing model's interaction.
Reference: https://docs.databricks.com/en/llm/guardrails.html
A team uses Mosaic AI Vector Search to retrieve documents for their Retrieval-Augmented Generation (RAG) pipeline. The search query returns five relevant documents, and the first three are added to the prompt as context. Performance evaluation with Agent Evaluation shows that some lower-ranked retrieved documents have higher context relevancy scores than higher-ranked documents.
Which option should the team consider to optimize this workflow?
Correct Option: A
The scenario describes a situation where initial vector search retrieval yields relevant documents, but their ranking does not align with their true context relevancy, as evidenced by lower-ranked documents having higher context relevancy scores. A reranker is a specialized component in a Retrieval-Augmented Generation (RAG) pipeline designed precisely to address this issue. It takes the initially retrieved set of documents and re-scores them, typically using a more sophisticated model (e.g., a cross-encoder), to produce a more accurate ranking based on the query's relevance. By applying a reranker, the team can ensure that the most contextually relevant documents are prioritized and passed to the LLM, thereby optimizing the RAG pipeline's performance and improving the quality of generated responses. This directly resolves the problem of mismatched search rank and context relevance.
Reference: https://www.databricks.com/blog/llm-auto-evaluation-and-advanced-rag-techniques
A generative AI engineer is deploying an AI agent authored with MLflow's ChatAgent interface for a retail company's customer support system on Databricks. The agent must handle thousands of inquiries daily, and the engineer needs to track its performance and quality in real-time to ensure it meets service-level agreements.
Which metrics are automatically captured by default and made available for monitoring when the agent is deployed using the Mosaic AI Agent Framework?
Premium Solution Locked
Unlock all 107 answers & explanations
A Generative AI Engineer at a financial services company has designed a RAG system, which digests quarterly reports, compliance documents, and customer information. These documents are quite long. Currently, the system chunks each document using a fixed-size approach and embeds these chunks directly. The system performs well on specific, isolated facts but struggles with questions that require understanding relationships between different sections of the documents or maintaining context across related information. The engineer needs to attempt to improve this by implementing a change to their chunking method.
Which change do they choose?
Premium Solution Locked
Unlock all 107 answers & explanations
A Generative AI Engineer maintains a RAG agent that answers technical questions for internal engineering teams. Three SMEs have been evaluating agent responses weekly using criteria including correctness, completeness, and relevance. The engineer has collected 150 evaluation records in MLflow with SME judgments. However, SMEs frequently don't align when evaluating response quality. The engineer needs to address this inconsistency while building a robust evaluation framework for iterative agent improvements.
Which evaluation strategy should the engineer implement?
Premium Solution Locked
Unlock all 107 answers & explanations
Databricks offers a number of built in AI judges that provide metrics and rationale for different types of quality issues a Gen AI application may have.
Which of the following pairs of judges both require a ground Truth label in the evaluation dataset field expected_response to execute?
Premium Solution Locked
Unlock all 107 answers & explanations
A Generative AI Engineer is deploying an IT helpdesk agent for a company with 200 employees. The entire company uses Slack as their primary communication platform for all internal communications, and employees are accustomed to using Slack for submitting support tickets and receiving updates. The agent needs to handle password resets, answer IT policy questions, and create tickets in the existing Jira system. The startup wants minimal deployment overhead, no additional authentication systems, and employees should be able to interact with the agent using their existing Slack workspace without installing new applications or accessing external websites.
Which interface should the engineer implement for this agent?
Premium Solution Locked
Unlock all 107 answers & explanations
A Generative AI Engineer processes PDF files by parsing the text, dividing it into chunks, and storing the computed embeddings in a Delta table designated as the source table. However, when attempting to create a Mosaic AI Vector Index based on this source table, the index creation fails. They need to consider the most likely cause for the failure.
Which is the most likely cause?
Premium Solution Locked
Unlock all 107 answers & explanations
A Generative AI Engineer manages a chatbot across development, staging, and production. The team uses MLflow to version prompt templates and chain configurations. A new prompt version has been validated in staging, and the engineer must promote it to production in a way that preserves version history, supports approval-based release, and allows quick rollback if problems are discovered.
How should the engineer promote the prompt template to production?
Premium Solution Locked
Unlock all 107 answers & explanations
A Generative Al Engineer is building a multi-agent system where a Multiagent Supervisor must answer business questions by querying structured sales data stored in Unity Catalog. The engineer wants to avoid writing custom SQL generation logic and instead leverage an existing Genie Space that business analysts already use for self-service analytics. The solution must allow the supervisor agent to retrieve query results programmatically.
Which approach enables the Multiagent Supervisor to retrieve data from the Genie Space?
Premium Solution Locked
Unlock all 107 answers & explanations
A Generative AI Engineer needs to build an agent that processes financial transactions. The requirements include querying Unity Catalog tables for transaction history, executing Python code to calculate risk scores using proprietary algorithms, and sending alerts through Slack. The engineer has identified that Databricks provides a managed MCP server for Unity Catalog access, an external MCP server is available for Slack integration, and the risk calculation logic is unique to the organization.
Which combination of MCP servers will meet these requirements?
Premium Solution Locked
Unlock all 107 answers & explanations
A Generative AI Engineer is building a customer support agent on Databricks and needs to evaluate whether the agent’s responses adhere to a strict company tone policy. The engineer wants to define a custom scorer using MLflow 3.x that programmatically checks if a response contains any prohibited phrases from a predefined list and returns a binary score. The scorer must be registered and reusable across multiple evaluation runs.
Which approach correctly implements this custom scorer in MLflow v3.x?
Premium Solution Locked
Unlock all 107 answers & explanations
A company has about one million IT tickets in plain-text saved to a table in Unity Catalog. They want to both analyze the resolution and root cause analysis of the issue as well as extract various components from the text such as the ticket subject, time to resolution, and assigned engineer, using Llama 3.3 70B or a similar sized model, and then they want to save those extracted fields to their own columns in the same SQL table for further downstream analytics.
Which of the following strategies will be the most cost and time effective assuming about 250 tokens per ticket?
Premium Solution Locked
Unlock all 107 answers & explanations
A Generative Al Engineer is working on the search functionality for an online marketplace to help users find the best options quickly. There are currently half a billion listings and that figure is changing infrequently. The product team is committed to using an embedding dim no smaller than 768. Also, the users want to be able to preset certain filters in addition to finding matches based on their search query.
How should the engineer set up their search product?
Premium Solution Locked
Unlock all 107 answers & explanations
Full Question Bank Locked
You have reached the end of the free study guide preview. Upgrade now to unlock all 107 questions and the full simulation engine.
Certification Path
Related Certifications
Customer Reviews
Global Community Feedback
David M.
"The practice engine is incredible. It feels exactly like the real testing environment and helped me build so much confidence."
Sarah J.
"The PDF is very well organized and the explanations for the answers are actually helpful, not just random text."
Michael C.
"I was skeptical, but the content is high quality and definitely worth the price. I passed on my first try!"