AI-102 Plan and manage an Azure AI solution Practice Question
Exhibit
{
"completions": [
{
"role": "user",
"content": "What is the capital of France?"
},
{
"role": "assistant",
"content": "The capital of France is Paris."
}
],
"max_tokens": 50,
"temperature": 0.7,
"top_p": 0.95
}Refer to the exhibit. You are using Azure OpenAI to build a trivia bot. The bot responds correctly to simple questions but sometimes gives overly verbose or off-topic answers. Which parameter should you adjust to make responses more focused?
⚠ Common exam trap
Microsoft often tests the misconception that max_tokens controls response focus, but candidates must understand that max_tokens only limits length, not content relevance, while temperature directly influences the model's creativity and adherence to the prompt.
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 output, making it more deterministic and focused. For a trivia bot that gives overly verbose or off-topic answers, lowering temperature (e.g., from 0.7 to 0.3) forces the model to choose higher-probability tokens, which typically correspond to more concise and relevant responses.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Increase temperature
Why it's wrong here
Increasing temperature makes responses more random and less focused.
- ✗
Decrease top_p
Why it's wrong here
Decreasing top_p can reduce randomness but temperature is more straightforward.
- ✗
Increase max_tokens
Why it's wrong here
Increasing max_tokens allows longer responses but does not improve focus.
- ✗
Decrease max_tokens
Why it's wrong here
Decreasing max_tokens cuts off responses but does not improve focus on the topic.
- ✓
Decrease temperature
Why this is correct
Lower temperature makes the model more deterministic and focused.
Go deeper
Related to this question
About these practice questions
One of 945 original AI-102 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 AI-102 practice question is part of Courseiva's free Microsoft 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 AI-102 exam.