mediumMultiple Choice
Generative AI Leader Practice Question: A team is using a generative AI model to create…
A team is using a generative AI model to create marketing copy. They want the responses to be more focused and less random. Which parameter should they adjust?
⚠ Common exam trap
Google often tests the misconception that increasing temperature or top-k makes outputs more focused, when in fact both increase randomness and diversity.
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
✓
Decrease temperature
Decreasing the temperature parameter reduces the randomness of the model's token selection by lowering the probability of sampling less likely tokens. This makes the output more focused and deterministic, which is ideal for marketing copy that needs to stay on-brand and consistent.
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 temperature
Why this is correct
Temperature scales the sampling distribution's randomness; lowering it sharpens probabilities toward high-likelihood tokens, producing more focused, deterministic marketing copy. Raising temperature increases variation, so decreasing it satisfies the stem's requirement for less random, more focused responses.
- ✗
Increase top-k
Why it's wrong here
Raising top-k widens the candidate pool the model samples from, increasing variety rather than focus. Top-k governs how many highest-probability tokens remain eligible at each step; lowering it is what constrains output, and raising it suits tasks needing creative diversity.
- ✗
Decrease context window
Why it's wrong here
Shrinking the context window only limits how much prior text the model can attend to; it does not alter sampling randomness, so outputs stay just as variable. Context length is tuned for fitting long documents or conversations within the token budget, which is the scenario where reducing it would be the right move.
- ✗
Increase temperature
Why it's wrong here
Raising temperature increases randomness by flattening the probability distribution over next tokens, producing more varied and less focused output. Temperature is correctly increased when brainstorming or generating diverse creative options, not when the goal is tighter, more deterministic marketing copy.
Go deeper
Related to this question
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 →
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.