Generative AI Leader Practice Question: Techniques to Improve Generative AI Model Output
A travel company fine-tuned a language model on customer chat logs to provide travel recommendations. After deployment, they receive complaints that the model sometimes generates inappropriate or offensive content. What is the most effective approach to improve output safety while preserving overall performance?
⚠ Common exam trap
Google often tests the misconception that prompt engineering or hyperparameter tuning alone can reliably fix safety issues, when in fact they are insufficient against learned toxic patterns in the model's weights, and a dedicated safety classifier is the standard industry practice for robust output filtering.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Add a post-processing safety classifier that filters or rewrites unsafe outputs
A post-processing safety classifier acts as a guardrail that can detect and filter or rewrite unsafe outputs without altering the underlying model's weights or training data. This approach preserves the model's overall performance on safe, relevant recommendations while adding a dedicated safety layer that can be independently tuned and updated as new safety requirements emerge. Unlike prompt engineering or hyperparameter adjustments, a classifier provides a robust, policy-enforced mechanism to catch edge cases that the model might otherwise generate.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Modify the system instruction to request polite responses only
Why it's wrong here
System instructions are not reliably followed for safety-sensitive content.
- ✗
Retrain the model on a larger dataset of chat logs
Why it's wrong here
More data may include similar issues and not specifically filter offensive content.
- ✗
Reduce the temperature to 0.0
Why it's wrong here
Lowering temperature makes outputs deterministic but does not eliminate offensive patterns learned during fine-tuning.
- ✓
Add a post-processing safety classifier that filters or rewrites unsafe outputs
Why this is correct
A safety classifier directly catches and mitigates harmful content without modifying the base model.
Go deeper
Related to this question
About these practice questions
This Generative AI Leader question is part of Courseiva's 683-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This Generative AI Leader practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the Generative AI Leader exam.