Chapter 5 of 6 · Databricks Generative AI Engineer Associate

Governance

Masking as a guardrail, defenses against malicious input, source licensing and problem text fixes.

  • 1topics
  • 5 minfast track
  • 8%of the exam

Topics in this chapter

Take them in order, or jump to the one you need.

  1. 1Masking, Input Guardrails, Licensing and Source MitigationDatabricks GenAI Engineer: mask PII as a guardrail, defend against prompt injection, check source licenses and fix problematic…5 min

About this chapter

What this chapter covers

Governance is 8% of the Databricks Generative AI Engineer Associate exam, the smallest chapter. It covers how you keep a generative AI application safe, legal and compliant while it still performs well.

The chapter has one topic: masking sensitive data as a guardrail, guardrail techniques against malicious user input such as prompt injection, the legal and licensing rules for data sources, and better alternatives when a data source contains problematic text.

Questions are mostly short scenarios in which the stated requirement (latency, cost, freshness, who may access what, quality signal) decides the answer. They are single-answer and some multiple-answer multiple choice, and short Python or SQL is shown as text. There are no exhibits.

How the topics fit together

Licensed sourcesClean and mask at ingestionai_mask, filteringIndex and modelInput guardrailsinjection, safetyOutput guardrailsPII mask, safetyUser

Governance starts with the data: only sources you may legally use, cleaned and masked before they are indexed. At run time, guardrails on the serving endpoint check what users send and what the model returns.

  • Masking questions ask how to hide sensitive values without blocking useful answers.
  • Malicious input questions ask which defense stops prompt injection or jailbreak attempts.
  • Licensing questions ask whether a source or model may be used for the stated purpose.
  • Mitigation questions ask for the better fix when a source contains toxic, biased or private text.
Exam tip

Ask where the problem lives. A problem in the source data is fixed in the data pipeline; a problem in what users type or what the model says is handled by guardrails at the endpoint.

How to use these pages

Each topic page has the same shape, so you can skim for what you need.

  • What it is: the idea in plain words.
  • How it works: the mechanism, with tables and examples.
  • What to remember for the exam: the facts to memorize and how questions are phrased.
  • Common mistakes: the classic traps.
  • Check yourself: three questions to test your understanding.

Ready for more practice?

The full Databricks Generative AI Engineer Associate question bank has 600 questions, with timed practice exams and an explanation for every answer.

This study guide is independent and is not affiliated with, endorsed by, or sponsored by Databricks. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.