Databricks Certified Generative AI Engineer Associate · Difficulty

Medium Databricks GenAI Engineer Associate practice questions

Applied — put a concept to work in a realistic situation. 128 medium questions available — no sign-up, always free.

Question 1 of 25

A Generative AI Engineer is running Mosaic AI Agent Evaluation on a RAG-based customer support assistant. The evaluation dataset includes a column with expert-written reference answers for each question. The team wants to measure how factually and semantically close the agent's generated responses are to these reference answers, independent of whether the retrieved context supported them. Which built-in Agent Evaluation metric directly addresses this requirement?

Reviewed for accuracy · Report an issue
Question 2 of 25

A GenAI engineer runs Mosaic AI Agent Evaluation on a customer-support RAG agent. The built-in judges (correctness, groundedness, relevance, safety) all pass, but the compliance team insists that every response must also avoid making promises about refund timelines, a domain-specific policy not captured by any built-in judge. The engineer wants this policy checked automatically on each evaluation run alongside the existing metrics. What is the most appropriate approach?

Reviewed for accuracy · Report an issue
Question 3 of 25

A Generative AI Engineer is using Mosaic AI Agent Evaluation to assess a deployed RAG chatbot for a healthcare knowledge base. Stakeholders complain that some answers sound confident but contain claims not supported by the retrieved documents. The engineer has a golden evaluation dataset with questions but no ground-truth answers. Which built-in LLM-as-judge metric should the engineer prioritize to catch these unsupported claims?

Reviewed for accuracy · Report an issue
Question 4 of 25

A Generative AI Engineer has built a RAG-based customer support agent and wants to systematically compare two candidate prompt templates before promoting either to production. They have assembled a curated dataset of representative questions, each with a reference (ground-truth) answer and the relevant supporting documents. They want to run Mosaic AI Agent Evaluation to measure answer correctness, groundedness, and retrieval relevance for both templates, then choose the better one. Which approach correctly uses Agent Evaluation for this offline comparison?

Reviewed for accuracy · Report an issue
Question 5 of 25

A Generative AI Engineer runs Mosaic AI Agent Evaluation on a RAG chatbot. The aggregate scores show high groundedness but low answer relevance. The team wants to understand whether the problem originates in retrieval or in generation before making changes. Within the Agent Evaluation results, which artifact should they inspect FIRST to pinpoint the source of the low relevance?

Reviewed for accuracy · Report an issue
Question 6 of 25

A GenAI engineer has a customer-support RAG agent deployed with inference tables enabled. Product leadership wants a weekly quality report showing, for each request, whether the response was grounded in retrieved context and whether it correctly answered the question. The team has thousands of daily requests and only two subject-matter experts who can review a small sample manually. Which approach best scales the per-request quality assessment while keeping human effort focused where it matters most?

Reviewed for accuracy · Report an issue
Question 7 of 25

You are building a Mosaic AI agent on Databricks that answers customer questions by calling multiple tools (a product catalog lookup, an inventory checker, and a shipping estimator). During testing, some queries cause the agent to enter long reasoning loops, repeatedly invoking tools without converging on a final answer. This drives up latency and token costs. Which configuration change most directly prevents these runaway loops while still allowing legitimate multi-step reasoning?

Reviewed for accuracy · Report an issue
Question 8 of 25

You are building a Mosaic AI agent that has access to three registered Unity Catalog functions: `get_order_status`, `lookup_product_inventory`, and `search_return_policy`. During testing, you notice the LLM frequently calls `search_return_policy` even when users ask about where their package is. The tool bindings and endpoint work correctly, and each function executes without error when called directly. What is the most effective change to improve the agent's tool selection accuracy?

Reviewed for accuracy · Report an issue
Question 9 of 25

You are building a Mosaic AI agent that calls an external inventory API tool to answer customer stock-availability questions. During testing, the API intermittently returns timeouts and malformed responses, causing the agent to either crash or return the raw error text to the user. You need to make the agent robust while keeping responses helpful. Which approach best addresses this within the agent's tool-execution logic?

Reviewed for accuracy · Report an issue
Question 10 of 25

You are building a Mosaic AI agent that calls a Unity Catalog function to look up a customer's order by an order ID. During testing, the LLM occasionally passes malformed arguments — sometimes an empty string, sometimes a full sentence like 'the order from yesterday' — causing the tool to fail. You want to reduce these failures by making the tool's expected input explicit to the LLM so it produces correctly formatted arguments more reliably. Which approach most directly addresses this?

Reviewed for accuracy · Report an issue
Question 11 of 25

You are building a customer-facing shopping assistant on Databricks. Customers ask two kinds of questions: (1) explanations of the store's return and warranty policies, which are documented in a static PDF knowledge base, and (2) current stock levels and prices for specific SKUs, which change minute-to-minute and live in a transactional database exposed through a REST API. You want a single Mosaic AI agent that answers both accurately. Which design correctly handles both question types?

Reviewed for accuracy · Report an issue
Question 12 of 25

A customer support team receives tickets in multiple languages. The GenAI application must: (1) detect and translate each ticket into English, (2) classify the ticket into a support category, and (3) generate a concise English summary for the support agent. The team wants a maintainable design where each step can be tested and swapped independently, and where a failure or low-confidence result in one step can be inspected before the next step runs. Which design approach best meets these requirements?

Reviewed for accuracy · Report an issue
Question 13 of 25

You are building a multi-turn customer support agent on Databricks that uses a foundation model with an 8,192-token context window. Each turn appends the full conversation history plus a system prompt plus retrieved documents. After roughly 15 exchanges, users start receiving errors that the context length has been exceeded. The business requires that the agent still remember key facts from earlier in the conversation (like the customer's account ID and reported issue). What is the most appropriate way to manage context so the agent keeps working across long conversations?

Reviewed for accuracy · Report an issue
Question 14 of 25

A Generative AI Engineer is preparing a knowledge base of long-form product manuals for a RAG chatbot. During evaluation, users report that answers frequently seem 'cut off' or miss information that spans across paragraph boundaries. The team is using fixed-size chunking of 500 tokens with zero overlap. Which adjustment to the chunking strategy is MOST likely to resolve this issue while keeping chunk sizes manageable?

Reviewed for accuracy · Report an issue
Question 15 of 25

A Generative AI Engineer is preparing a corpus of long-form product manuals (avg 40 pages each) for a RAG application. They plan to use an embedding model with a maximum input context of 512 tokens. During testing, they notice that chunks frequently exceed this limit and are silently truncated, causing the tail of each chunk's content to be excluded from the embedding. What is the most appropriate action to ensure complete content is represented in the vector index?

Reviewed for accuracy · Report an issue
Question 16 of 25

You are building a RAG application over a customer support knowledge base composed of thousands of short FAQ entries. Each entry is a self-contained question paired with a concise answer, and entries are typically 2-4 sentences long. Retrieval accuracy is currently poor because chunks frequently split a question from its answer or merge multiple unrelated FAQs together. Which chunking strategy best fixes this?

Reviewed for accuracy · Report an issue
Question 17 of 25

You are preparing a large internal knowledge base for a RAG application. The documents are Markdown files with clear hierarchical headers (H1 for product areas, H2 for features, H3 for individual procedures). Users typically ask specific procedural questions like 'How do I reset the API key for the billing service?'. You want each retrieved chunk to be self-contained and topically coherent so the LLM has focused context. Which chunking approach best fits these documents?

Reviewed for accuracy · Report an issue
Question 18 of 25

You are building a RAG system over a corpus of customer support tickets. The tickets vary widely in length: many are short one-paragraph questions, but some are long multi-issue threads spanning several distinct problems. Users query for solutions to specific individual problems. You want each retrieved chunk to represent a coherent, self-contained unit so that retrieval returns focused answers without mixing unrelated issues. Which chunking approach best fits this requirement?

Reviewed for accuracy · Report an issue
Question 19 of 25

You are building a RAG pipeline over quarterly financial reports delivered as PDFs. Each report contains long narrative sections interspersed with large tabular data (balance sheets, income statements). During testing, users ask questions about specific line-item values, but retrieved chunks frequently return partial tables where column headers are separated from their data rows, producing wrong or unanswerable results. Which document preparation approach best addresses this problem?

Reviewed for accuracy · Report an issue
Question 20 of 25

You are building a RAG application over a large corpus of software engineering documentation that mixes prose explanations with fenced code blocks and API tables. During testing, users complain that when they ask 'show me the function that validates tokens,' the retrieved chunks return only the surrounding explanation text and cut code samples in half, making the answers useless. You are currently using a fixed-size character chunker with 500-character chunks and no overlap. Which change to your chunking strategy will most directly improve retrieval of complete, coherent code examples?

Reviewed for accuracy · Report an issue
Question 21 of 25

A Generative AI Engineer has run Mosaic AI Agent Evaluation on version 1 of a RAG chatbot and logged the results as an MLflow run. After changing the retriever's chunking strategy and re-running the evaluation on the same evaluation dataset, the engineer wants to determine whether the change improved or degraded answer quality before promoting the new version. What is the most effective way to make this decision using the evaluation results?

Reviewed for accuracy · Report an issue
Question 22 of 25

A software company wants to build a generative AI assistant that reviews pull requests. For each PR, the assistant must: (1) summarize the code changes, (2) flag potential security vulnerabilities against the company's internal secure-coding guidelines, and (3) generate a natural-language review comment that references specific findings. The security guidelines are a large, frequently updated internal document. As the GenAI engineer designing this application, what is the most appropriate high-level architecture?

Reviewed for accuracy · Report an issue
Question 23 of 25

A financial services company wants to build a customer support assistant that can answer questions about a customer's account. A single request may require the assistant to: (1) look up the customer's current account balance from an internal transactional database, (2) retrieve relevant policy explanations from an internal knowledge base of PDFs, and (3) perform a currency conversion calculation before presenting the final answer. The team wants a design where the LLM dynamically decides which capability to invoke based on the user's question. Which application design best fits these requirements?

Reviewed for accuracy · Report an issue
Question 24 of 25

A Generative AI Engineer is building a RAG application over a corpus of internal support articles that were exported from three different systems. During data profiling, they discover that roughly 30% of the articles are near-duplicates (same content with minor formatting differences) because articles were migrated multiple times. Early retrieval tests show that the top-k results are frequently filled with several copies of the same article, crowding out other relevant content. What is the most effective step to improve retrieval quality before generating embeddings?

Reviewed for accuracy · Report an issue
Question 25 of 25

You are designing a customer-support generative AI application for an e-commerce company. Business requirements state that the assistant must: (1) answer general product policy questions, (2) look up a specific customer's live order status by order ID, and (3) initiate refund requests that require writing to an internal transactional system. The company wants a single conversational entry point that decides which capability to use per turn. Which application design best satisfies these requirements?

Reviewed for accuracy · Report an issue