Courseiva

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

A data scientist is using a large language model to generate product descriptions. The descriptions are often too verbose. Which parameter adjustment is most appropriate?

⚠ Common exam trap

Google Cloud often tests the distinction between parameters that control randomness (temperature, top-k) versus those that control repetition (frequency penalty, presence penalty), and the trap here is that candidates confuse 'less verbose' with 'less random' and incorrectly choose temperature or top-k adjustments.

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

✓

Increase the frequency penalty.

Increasing the frequency penalty reduces the likelihood of the model repeating the same phrases or ideas, which directly addresses verbosity by discouraging repetitive or overly detailed descriptions. This parameter penalizes tokens that have already appeared in the generated text, promoting more concise and varied output. Other adjustments like temperature or top-k affect randomness and diversity but do not specifically target repetition or 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.

  • ✗

    Decrease the top-k value.

    Why it's wrong here

    Top-k affects vocabulary diversity, not output length.

  • ✗

    Increase the max output tokens.

    Why it's wrong here

    This would allow even longer descriptions, opposite of desired.

  • ✗

    Decrease the temperature.

    Why it's wrong here

    Lower temperature reduces creativity but doesn't directly reduce verbosity.

  • ✓

    Increase the frequency penalty.

    Why this is correct

    Frequency penalty reduces repetitive phrases, encouraging conciseness.

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