Databricks Certified Generative AI Engineer Associate · Difficulty

Hard Databricks GenAI Engineer Associate practice questions

Challenge — multi-step scenarios, trade-offs, and subtle distinctions. 17 hard questions available — no sign-up, always free.

Question 1 of 17

A team runs Mosaic AI Agent Evaluation nightly on a golden dataset of 500 questions for their production RAG assistant. After a recent change that swapped the generation model to a larger foundation model, the evaluation report shows the average correctness and groundedness scores each improved by about 3%, but the total_input_token_count and total_output_token_count metrics roughly tripled, and mean response latency rose from 1.2s to 3.8s. The product owner requires sub-2s p90 latency and a fixed monthly serving budget. What is the most appropriate way to use these evaluation results to decide next steps?

Reviewed for accuracy · Report an issue
Question 2 of 17

A Generative AI Engineer wants to run Mosaic AI Agent Evaluation on a deployed RAG chatbot using an offline evaluation dataset. The team has collected 200 representative user questions and expected reference answers, but no retrieval traces. They want to compute both answer correctness (comparing to the expected answers) and groundedness (whether responses are supported by retrieved context). Which approach correctly structures the evaluation so both metric types can be computed?

Reviewed for accuracy · Report an issue
Question 3 of 17

A Generative AI Engineer runs Mosaic AI Agent Evaluation on a deployed RAG chatbot. The overall answer-correctness score is low. The evaluation report shows that the retrieval metrics (context precision and context recall) are strong, but the answer-groundedness metric is poor. Which conclusion best explains this pattern, and what should the engineer prioritize fixing?

Reviewed for accuracy · Report an issue
Question 4 of 17

You are building a multi-step agent that answers customer questions about their orders. The workflow requires the agent to (1) look up a customer's order ID from their email, (2) retrieve the shipment status using that order ID, and (3) generate a natural-language summary. During testing, the agent frequently fails at step 2 because it invokes the shipment-status tool with the customer's email instead of the order ID returned by step 1. What is the most effective way to fix this behavior?

Reviewed for accuracy · Report an issue
Question 5 of 17

You are building a Mosaic AI agent for a retail customer-support app. The agent has access to a tool `issue_refund(order_id, amount)` that calls an internal API to process a monetary refund. During testing, you notice that when the LLM's reasoning loop occasionally re-invokes the same tool call after a transient response parsing error, customers are sometimes refunded twice for the same order. Which design change most directly prevents duplicate side effects from repeated tool invocations?

Reviewed for accuracy · Report an issue
Question 6 of 17

You are building a Mosaic AI agent that answers customer queries like 'Compare the shipping cost and estimated delivery date for my order to the standard rate.' The agent has three tools: get_order_details (returns order ID metadata), get_shipping_cost (requires the order's weight and destination from get_order_details), and get_standard_rate (returns a fixed published rate with no inputs). You want to minimize end-to-end latency without producing incorrect tool inputs. How should you structure the agent's tool execution?

Reviewed for accuracy · Report an issue
Question 7 of 17

A financial services firm wants to build a system that answers analyst questions like 'Summarize the risk factors from the three latest 10-K filings for Company X and compare them to sector peers.' The number of documents to retrieve and the comparison steps vary per query, and the system sometimes needs to call a live market-data API mid-workflow depending on what the question asks. The team must decide how to structure the application. Which design approach best fits these requirements?

Reviewed for accuracy · Report an issue
Question 8 of 17

A Generative AI Engineer is designing a customer-support RAG assistant for a mid-size retailer. Business requirements state that roughly 80% of incoming questions are simple FAQ-style lookups (store hours, return policy) that must be answered in under 1 second at low cost, while the remaining 20% are complex, multi-part troubleshooting questions where answer quality matters most and slightly higher latency is acceptable. The team has both a small, fast, inexpensive LLM and a large, high-quality, more expensive LLM available as Model Serving endpoints. Which application design best satisfies these requirements?

Reviewed for accuracy · Report an issue
Question 9 of 17

A GenAI engineer built a RAG chain in a Databricks notebook using LangChain. The chain references a custom Python helper module (retrieval_utils.py) that lives alongside the notebook. When logging the chain with MLflow using mlflow.langchain.log_model() by passing the in-memory chain object directly, the model deploys successfully but fails at serving time with a ModuleNotFoundError for retrieval_utils. What is the recommended way to log the model so it serves correctly?

Reviewed for accuracy · Report an issue
Question 10 of 17

A Generative AI Engineer builds a RAG chain locally using LangChain 0.2.x and a specific version of the databricks-vectorsearch SDK. After logging the chain with MLflow and deploying it to a Model Serving endpoint, the endpoint fails to start with import errors that never appeared during local development. The engineer confirms the code is identical. What is the most likely cause and correct fix?

Reviewed for accuracy · Report an issue
Question 11 of 17

A Generative AI Engineer has built a RAG chain that queries a Databricks Vector Search index and calls a Foundation Model API endpoint. When they log the chain with MLflow using the models-from-code approach and deploy it to a Model Serving endpoint, the endpoint starts but every inference request fails with authentication errors when the chain tries to reach the Vector Search index and the LLM endpoint. What should the engineer do to fix this before re-logging the model?

Reviewed for accuracy · Report an issue
Question 12 of 17

A Generative AI Engineer is logging a RAG chain with MLflow before deploying it to a Model Serving endpoint. They pass an input_example when calling mlflow.langchain.log_model() but do not explicitly define a ModelSignature. When they later query the deployed endpoint, some client requests are rejected due to schema mismatch, while the engineer expected MLflow to have captured a signature automatically. What is the most accurate explanation of MLflow's behavior here and how to make the endpoint's input contract reliable?

Reviewed for accuracy · Report an issue
Question 13 of 17

A GenAI engineer deploys a custom PyFunc RAG chain to a Databricks Model Serving endpoint. During a product launch, the endpoint receives sustained traffic of roughly 200 concurrent requests, but users report frequent HTTP 429 (Too Many Requests) errors even though CPU utilization on the compute is low. The endpoint is configured with a fixed compute size and a maximum concurrency well below the incoming load. What is the most appropriate action to eliminate the 429 errors while handling the sustained traffic?

Reviewed for accuracy · Report an issue
Question 14 of 17

A GenAI engineer deploys a fine-tuned 13B-parameter LLM to a Databricks Model Serving endpoint using a GPU compute type. The endpoint deployment repeatedly fails with a container initialization timeout during the model loading phase, even though the same model loads successfully in an interactive notebook on a comparable GPU cluster. The MLflow model was logged with the correct signature and all pip dependencies pinned. What is the MOST likely cause and appropriate remediation?

Reviewed for accuracy · Report an issue
Question 15 of 17

A GenAI engineer has deployed a custom RAG chain to a Databricks Model Serving endpoint that fronts a customer-facing chatbot. During load testing, the team observes that at high request volumes the endpoint adds noticeable per-request latency from the serving proxy layer, and they need to sustain thousands of concurrent queries with the lowest possible routing overhead. Which endpoint configuration change should the engineer make to address this?

Reviewed for accuracy · Report an issue
Question 16 of 17

A GenAI engineer deployed a customer-support RAG chatbot three months ago. Initial Mosaic AI Agent Evaluation runs on a golden dataset showed strong groundedness and correctness scores. Recently, users report increasingly stale or incorrect answers, though the chatbot code and prompts have not changed. The underlying knowledge-base Delta table (synced to the Vector Search index) is updated weekly by another team. The engineer wants an ongoing process to catch this kind of quality regression automatically rather than relying on user complaints. What is the most effective approach?

Reviewed for accuracy · Report an issue
Question 17 of 17

A GenAI engineer deploys a RAG chatbot as a Model Serving endpoint. The endpoint queries a Vector Search index and reads a Delta table that contains sales records restricted by row-level filters. The compliance team requires that each end user only sees rows they are individually entitled to, rather than every user seeing the same data through the service principal that owns the endpoint. Which approach best satisfies this requirement while using Unity Catalog governance?

Reviewed for accuracy · Report an issue