Generative AI Leader Practice Question: Techniques to Improve Generative AI Model Output
A global bank uses a Gemini model on Vertex AI to generate personalized investment summaries for clients in multiple regions. Compliance requires that the model never recommend products prohibited in a given region. The team wants a control that enforces these rules regardless of how the prompt is phrased. Which approach should they use?
⚠ Common exam trap
The trap here is assuming that a strongly worded system instruction or safety filter is a compliance guarantee, when prompt-level guidance and safety categories cannot deterministically enforce region-specific product rules.
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
✓
Use a pre-call or post-call validation layer that checks the region against an allowed-product list and blocks violations.
Absolute compliance rules need deterministic enforcement rather than probabilistic guidance. A validation layer that evaluates the region against an allowed-product list before or after the model call blocks prohibited recommendations no matter how the request is phrased, and it produces an auditable record. System instructions, safety filters, and fine-tuning all influence behavior but cannot guarantee that a disallowed product is never surfaced.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Configure safety filters and content moderation thresholds on the model endpoint.
Why it's wrong here
Safety filters target harmful categories such as harassment, hate, and dangerous content. A region-specific product prohibition is a business compliance rule, not a safety category, so the default filters will not recognize or block it. Raising or lowering thresholds changes sensitivity to harmful content and does not encode product restrictions, leaving the compliance gap unresolved.
- ✓
Use a pre-call or post-call validation layer that checks the region against an allowed-product list and blocks violations.
Why this is correct
A validation layer applies deterministic logic: before or after generation, it checks the client's region against an authoritative allowed-product list and rejects any response that violates it. Because the rule lives in code and data rather than in the prompt, it holds regardless of phrasing and can be updated as regulations change. This gives the auditable enforcement compliance demands.
- ✗
Fine-tune the model on examples of compliant and non-compliant recommendations.
Why it's wrong here
Fine-tuning can shift behavior toward compliant patterns, but it is probabilistic and cannot guarantee that no prohibited product is ever recommended. Regional rules also change over time, forcing repeated tuning cycles. Because the requirement is absolute enforcement, a learned behavioral tendency is insufficient; the bank needs a deterministic gate that evaluates and blocks disallowed outputs.
- ✗
Add a system instruction listing prohibited products for each region.
Why it's wrong here
A system instruction can guide tone and general behavior, but it is still prompt-level guidance that a cleverly phrased user request or an edge case can override. It does not provide deterministic enforcement, so it cannot guarantee compliance across every phrasing. For a hard regional prohibition, the bank needs a control outside the prompt that blocks disallowed recommendations regardless of input wording.
Go deeper
Related to this question
About these practice questions
Courseiva writes every Generative AI Leader question from scratch — 1,008 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Google Cloud exam blueprint
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.