An agent occasionally produces toxic or biased replies when users provoke it. What is an effective layered mitigation?
- Exam domain
- Safety, Ethics, and Compliance5% of the exam
- Difficulty
- Medium
- In this mock
- 4 questions on this domainPractise this domain
Why the exam asks this
Safety, Ethics, and Compliance.
Objective in the exam guide: Mitigate bias and toxicity in outputs.
Safety needs more than prompts.
Why C is the answer
Add input and output content safety checks, for example with NeMo Guardrails, and evaluate outputs for bias across groups
Content safety rails check inputs and outputs, and bias evaluation finds systematic issues.
How it works
Content safety guardrails check both user inputs and model outputs.
Checks can use the LLM itself or dedicated safety models.
Bias evaluation across groups finds systematic problems.
Clues in the question
The words that point to the answer, and what each one tells you.
- Toxic or biased replies
- Content safety and bias checks.
In detail
- Escalate repeated abuse to human moderators.
- Re-test after each mitigation.
Side by side with look-alikes
| Mitigation | Effective? |
|---|---|
| Content safety rails plus bias evaluation | Yes |
| Higher temperature | No |
| Remove logs | No |
| Prompt only | Weak |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Remove logging so offensive replies are not storedWrong
Removing logs hides the problem.
B. Rely only on the system prompt saying "be nice"WrongMost tempting
Prompts alone are easily bypassed.
Why it tempts: Prompts guide behavior. But provoked models can ignore them.
C. Add input and output content safety checks, for example with NeMo Guardrails, and evaluate outputs for bias across groupsRight
Content safety rails check inputs and outputs, and bias evaluation finds systematic issues.
D. Raise the temperature so replies varyWrong
Variety does not reduce toxicity.
In practice
- Track rail triggers by category to tune thresholds.