Courseiva

Generative AI Leader Practice Question: Techniques to Improve Generative AI Model Output

A product team uses Gemini via the Vertex AI API to draft customer emails. The drafts are accurate but often too long and include unnecessary background. The team wants shorter, more direct outputs while keeping the same model. Which approach should they take?

⚠ Common exam trap

The trap here is reaching for parameter changes like max output tokens or top-p when the real issue is that the prompt never asked for brevity.

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

✓

Revise the prompt to explicitly instruct concise, direct language and specify a target length or format.

The most direct and efficient fix for verbose outputs is to change the prompt to request concise, direct language with a specified length or format. Prompt engineering shapes style immediately without retraining or infrastructure changes. Token limits truncate rather than summarize, fine-tuning is overkill for a style tweak, and top-p affects randomness rather than length.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Fine-tune the model on a dataset of short emails to permanently change its verbosity.

    Why it's wrong here

    Fine-tuning could influence style, but it is expensive, slower to iterate, and unnecessary when a prompt instruction can achieve the same result. For a simple verbosity adjustment, prompt engineering is the appropriate first step. Fine-tuning risks overfitting to the sample emails and requires labeled data.

  • ✗

    Set the max output tokens parameter to a very low value and leave the prompt unchanged.

    Why it's wrong here

    Max output tokens caps the total length but does not instruct the model to prioritize the most important content. The response may be cut off mid-sentence or omit critical details. It is a blunt truncation control, not a style instruction. The prompt should specify the desired brevity and format.

  • ✓

    Revise the prompt to explicitly instruct concise, direct language and specify a target length or format.

    Why this is correct

    Prompt instructions are the primary control for output style. Telling the model to be concise, avoid background, and follow a target length or bullet format directly shapes the response. This preserves completeness of key information while meeting the brevity requirement. It works without changing model parameters or retraining.

  • ✗

    Increase the top-p value so the model selects from a narrower set of likely tokens.

    Why it's wrong here

    Top-p controls nucleus sampling and influences randomness, not length or conciseness. Raising or lowering it will not reliably shorten outputs or remove unnecessary background. This parameter is unrelated to the verbosity problem described. Prompt instructions and length constraints are the correct tools here.

About these practice questions

This Generative AI Leader question is part of Courseiva's 1,008-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 →

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.