Databricks Generative AI Engineer Associate · Section 3 · 30% of the exam
Compare the evaluation and monitoring phases of the Gen AI application life cycle
One of the objectives of the Databricks Certified Generative AI Engineer Associate exam, in the section “Application Development”. Here is what it covers, the points to remember and a question to try.
What it covers
Before you trust an LLM application you read its traces critically, name the failure, put guardrails in front of and behind the model, and keep measuring after launch. This lesson covers common quality and safety issues, the guardrail options on Databricks, and how evaluation before release differs from monitoring in production.
Points to remember
- Assess the full trace (request, retrieved context, tool calls, output), not just the answer, and name the issue before fixing it.
- Quality issues: ungrounded, irrelevant, incorrect or incomplete, poor retrieval, format violations. Safety issues: harmful content, PII leakage, prompt injection or jailbreak, bias.
- Judge mapping:
RetrievalGroundednessfor hallucination,RelevanceToQueryfor relevance,Safetyfor harmful content,Guidelinesfor your own rules. - Feedback judges the output; an expectation records ground truth and can go into an evaluation dataset.
- Legacy AI Gateway guardrails: Safety (Llama Guard 2-8b) and PII Block or Mask; not on agent or custom model endpoints; topic and keyword guardrails were removed after May 30, 2025.
Try a question
An agent written with LangGraph is deployed to a Model Serving endpoint with agents.deploy(). The team tries to enable AI Gateway safety and PII guardrails on the agent endpoint, but the options are not supported there. Which approach still adds guardrails to the agent?
- AEnable inference tables on the agent endpoint, which block unsafe responses
- BAdd guardrails in the agent's code, such as PII middleware and input and output checks
- CSet a lower rate limit on the agent endpoint so fewer unsafe responses are produced
- DGrant the agent's service principal fewer Unity Catalog privileges, which also filters toxic text
Show the answer
B. Legacy AI Gateway guardrails are supported on external model, pay-per-token and provisioned throughput endpoints, not on agent or custom model endpoints. Guardrails for an agent therefore run inside the agent (framework middleware, deterministic checks, judge calls) or on the model endpoints it calls.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Response quality, safety and guardrails across the lifecycle teaches this objective (about 50 minutes), and 15 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.
More in this section
- Select Langchain/similar tools for use in a Generative AI application
- Qualitatively assess responses to identify common issues such as quality and safety
- Select chunking strategy based on model & retrieval evaluation
- Augment a prompt with additional context from a user's input based on key fields, terms, and intents
- Create a prompt that adjusts an LLM's response from a baseline to a desired output
- Implement LLM guardrails to prevent negative outcomes
- Select the best LLM based on the attributes of the application to be developed
- Select an embedding model context length based on source documents, expected queries, and optimization strategy
- Select a model from a model hub or marketplace for a task based on model metadata/model cards
- Select the best model for a given task based on common metrics generated in experiments
- Utilize MLflow and Agent Framework for developing agentic systems
- Enable multi-agent systems to leverage Genie Spaces or conversational API to retrieve data