easyMultiple ChoiceObjective-mapped
Generative AI Leader Practice Question: The primary purpose of the temperature parameter…
What is the primary purpose of the temperature parameter when generating text with an LLM?
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
✓
It controls the randomness or creativity of the output
Temperature controls the randomness of token selection. Higher temperature increases creativity, lower temperature makes outputs more deterministic.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
It sets the maximum number of tokens in the response
Why it's wrong here
Max tokens controls length, not randomness.
- ✓
It controls the randomness or creativity of the output
Why this is correct
Temperature scales the logits before sampling; higher values produce more diverse outputs.
- ✗
It determines the number of most likely tokens considered at each step
Why it's wrong here
That is the top-k parameter.
- ✗
It sets the cumulative probability threshold for token selection
Why it's wrong here
That is the top-p (nucleus sampling) parameter.
Go deeper
Related to this question
About these practice questions
One of 683 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 →
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.