Databricks Generative AI Engineer Associate · Section 5 · 8% of the exam
Recommend an alternative for problematic text mitigation in a data source feeding a GenAI application
One of the objectives of the Databricks Certified Generative AI Engineer Associate exam, in the section “Governance”. Here is what it covers, the points to remember and a question to try.
What it covers
Governance for a GenAI application means controlling what goes into the knowledge base, what reaches the model and what comes back out. This lesson covers PII masking at ingestion, in Unity Catalog and in AI Gateway; guardrails against prompt injection and abuse; checking the licenses of data sources; and better ways to deal with toxic or sensitive text than asking the model to ignore it.
Points to remember
- Masking replaces sensitive values and lets the request continue; blocking fails the request. Choose Mask when the app must keep answering.
- To meet a latency objective, mask PII once at ingestion (
ai_mask, regex) instead of scanning retrieved context on every request. ai_mask(content, array('person','email',…))is a Public Preview AI Function that returns the text with[MASKED]placeholders.- Unity Catalog column masks (
ALTER TABLE … ALTER COLUMN … SET MASK fn) and ABAC policies mask structured data at query time for every caller, agents included. - AI Gateway (legacy) guardrails (Public Preview): a safety filter (Llama Guard 2-8b) and PII detection with Block, Mask or None, set separately for input and output. Topic moderation and keyword filtering are no longer supported.
Try a question
A public chatbot on a pay-per-token Foundation Model APIs endpoint is hit by a script that sends thousands of very long prompts an hour, driving up cost. Which AI Gateway (legacy) feature directly limits how much each caller can consume?
- APer-user rate limits in queries or tokens per minute
- BThe safety filter guardrail on the endpoint's input
- CInference tables that log every request and response payload
- DTraffic splitting between two served model versions
Show the answer
A. This is abuse, sometimes called denial of wallet. AI Gateway rate limits cap queries per minute (QPM) or tokens per minute (TPM) per endpoint, per user (the default limit) or for specific users, service principals and groups, and when both QPM and TPM apply the more restrictive one is enforced. Pair them with an input length cap and max_tokens in the application.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Governing GenAI Apps: Masking, Malicious Input, Licensing and Problematic Text teaches this objective (about 55 minutes), and 23 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.