Courseiva

Generative AI Leader Google Cloud's Generative AI Offerings Practice Question

A fintech startup is building a generative AI application that generates personalized investment advice based on user profiles and market data. They are using Vertex AI Agent Builder to create an agent that retrieves information from a BigQuery table containing user data and from a real-time market data API. The agent needs to ensure that responses comply with financial regulations, meaning the model must not give specific stock recommendations unless the user explicitly requests them after disclaimers. The team has implemented grounding with both sources. During testing, the agent sometimes spontaneously suggests buying a particular stock without being asked, which could lead to regulatory issues. The team wants to enforce strict control over the agent's behavior. What should the team do?

⚠ Common exam trap

A common mix-up: candidates confuse grounding (data retrieval) with behavioral control (system instructions), assuming that better data or safety filters can enforce compliance, when in fact only explicit instructions in the agent's configuration can enforce such nuanced policies.

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

✓

Implement a custom system instruction that explicitly prohibits unsolicited stock recommendations and requires a disclaimer before any advice

System instructions in Vertex AI Agent Builder allow you to define strict behavioral rules that the agent must follow, such as prohibiting unsolicited stock recommendations and requiring a disclaimer before any advice. This directly addresses the regulatory compliance issue by enforcing a policy at the agent's instruction layer, which overrides any learned or grounded behavior. Unlike other options, this approach provides explicit, enforceable control without altering data sources or model training.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Increase the safety filter sensitivity to block any financial recommendations

    Why it's wrong here

    Safety filters block categories of harmful content, not conditional business logic; they cannot permit recommendations only after an explicit request and disclaimer. Raising sensitivity would also suppress legitimate advice. Filters suit broad toxicity screening, whereas this scenario needs an orchestration guardrail enforcing request-gated behaviour.

  • ✗

    Add more historical data to the BigQuery table to improve grounding accuracy

    Why it's wrong here

    Adding historical rows addresses retrieval coverage, not the agent's decision to volunteer recommendations; the unwanted behaviour originates in generation, not missing grounding data. Expanding datasets suits improving factual accuracy or coverage, whereas this scenario needs a guardrail that blocks recommendation output until an explicit user request.

  • ✓

    Implement a custom system instruction that explicitly prohibits unsolicited stock recommendations and requires a disclaimer before any advice

    Why this is correct

    A custom system instruction directly constrains the model's generative behaviour, prohibiting unsolicited stock recommendations and mandating a disclaimer before advice. This satisfies the stem's regulatory constraint by enforcing deterministic policy at inference time, unlike grounding, which only supplies factual context and cannot govern what the agent chooses to say.

  • ✗

    Fine-tune the model on a dataset of compliant conversations

    Why it's wrong here

    Fine-tuning adjusts model weights statistically; it cannot guarantee deterministic suppression of unrequested recommendations, and retraining is slow to update as regulations change. Fine-tuning suits adapting tone or domain style, not enforcing hard conditional rules, which require a runtime guardrail intercepting responses.

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 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.