Courseiva

Generative AI Leader Fundamentals of Generative AI Practice Question

A developer is building a customer support chatbot using Gemini models on Vertex AI. The chatbot must respond in a consistent, professional tone and avoid generating harmful or off-topic content. Which approach should the developer take to enforce these behavioral constraints?

⚠ Common exam trap

The trap here is assuming that safety filters or low temperature can replace explicit behavioral instructions for tone and topic control.

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 system instruction to define the chatbot's role and guidelines.

System instructions are the correct mechanism to set persistent behavioral guidelines for a generative AI model. They are processed before user input and apply to the entire conversation, ensuring the chatbot maintains a professional tone and avoids harmful or off-topic content. Other parameters like temperature or top-k affect creativity, not adherence to rules.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✓

    Use a system instruction to define the chatbot's role and guidelines.

    Why this is correct

    System instructions are a feature in Vertex AI that allow developers to set the model's behavior, tone, and constraints at the start of a conversation. By providing a system instruction that specifies a professional tone and prohibits harmful content, the developer can guide the model's responses consistently across all interactions.

  • ✗

    Increase the top-k parameter to 40.

    Why it's wrong here

    Top-k controls the number of highest-probability tokens considered at each step. Increasing it introduces more diversity but does not enforce tone or safety. It might even lead to more unpredictable outputs. This parameter is not designed for behavioral constraints.

  • ✗

    Enable the model's safety filters to block all categories.

    Why it's wrong here

    Safety filters can block harmful content, but they do not enforce a specific tone or keep the chatbot on topic. Blocking all categories might also over-filter legitimate responses. Safety filters are a backstop, not a primary method for behavioral guidance.

  • ✗

    Set the temperature parameter to 0.

    Why it's wrong here

    Setting temperature to 0 makes the model more deterministic, reducing randomness, but it does not enforce a specific tone or prevent harmful content. The model could still produce inappropriate or off-topic responses if prompted. Temperature alone is insufficient for behavioral guardrails.

About these practice questions

One of 1,008 original Generative AI Leader practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.