Courseiva

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

A marketing team is using an LLM on Vertex AI to generate product descriptions. They want to consistently control the creativity and randomness of the output. Which parameter should they adjust?

⚠ Common exam trap

It's easy for candidates to confuse sampling parameters like Top-K and Top-P with temperature, which directly governs creativity.

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

✓

Temperature

Temperature is the primary parameter for controlling the randomness and creativity of generative AI output. Lower temperatures yield more predictable, focused responses, while higher temperatures yield more diverse and creative ones. For a marketing team seeking consistent control over creativity, temperature is the correct choice.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Top-P

    Why it's wrong here

    Top-P (nucleus sampling) selects the smallest set of tokens whose cumulative probability exceeds a threshold. It affects randomness but is typically used in conjunction with temperature. Temperature is the primary parameter for controlling creativity, making it the more direct answer here.

  • ✓

    Temperature

    Why this is correct

    Temperature controls the randomness of the model's output. Lower values make the output more deterministic and focused, while higher values increase creativity and diversity. In this scenario, adjusting temperature allows the team to consistently control the creativity of the generated product descriptions, aligning with their goal.

  • ✗

    Max output tokens

    Why it's wrong here

    Max output tokens sets the maximum length of the generated response. It does not influence the creativity or randomness of the content. In this scenario, the team wants to control creativity, not length, so this parameter is not the right choice.

  • ✗

    Top-K

    Why it's wrong here

    Top-K limits the next token selection to the K most likely tokens. While it affects randomness, it is a sampling parameter that works alongside temperature. However, the primary parameter for directly controlling creativity and randomness is temperature, not Top-K. Adjusting Top-K alone would not provide the consistent control the team desires.

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 →

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.