CertLumen

Databricks Generative AI Engineer Associate · Section 3 · 30% of the exam

Qualitatively assess responses to identify common issues such as quality and safety

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

A banking assistant's model must return exactly one of five action codes, such as FREEZE_CARD or SEND_STATEMENT, which a backend then executes. The team wants a guardrail on the model's output that adds almost no latency and behaves predictably. Which guardrail fits best?

  1. AAn LLM judge that rates each response for policy compliance before the backend receives it
  2. BA check in application code that rejects any output not on the allow-list and falls back safely
  3. CThe AI Gateway safety filter on the endpoint's output, which blocks unsafe categories of content
  4. DA system prompt sentence telling the model that it may use only the five approved action codes
Show the answer

B. When the valid outputs are a closed set, a deterministic guardrail is the right layer: an allow-list or schema check in code is fast, cheap and predictable, and an invalid output can fall back to a safe default or a human. Model-based guardrails add latency and are meant for nuanced content this check doesn't need.

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 →