CertLumen

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: RetrievalGroundedness for hallucination, RelevanceToQuery for relevance, Safety for harmful content, Guidelines for 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?

  1. AEnable inference tables on the agent endpoint, which block unsafe responses
  2. BAdd guardrails in the agent's code, such as PII middleware and input and output checks
  3. CSet a lower rate limit on the agent endpoint so fewer unsafe responses are produced
  4. 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

← Previous objective · All 56 objectives · Next objective →