AI-102 Implement generative AI solutions Practice Question
Exhibit
{
"completions": [
{
"prompt": "Generate a summary of the following text: ...",
"parameters": {
"temperature": 0.3,
"max_tokens": 150,
"top_p": 0.9,
"frequency_penalty": 0.0,
"presence_penalty": 0.0
},
"response": "..."
}
]
}Refer to the exhibit. You are configuring an Azure OpenAI Service deployment for document summarization. The current parameters produce summaries that are often too verbose. You need to make the summaries more concise while maintaining factual accuracy. Which parameter change should you make?
⚠ Common exam trap
Microsoft often tests the distinction between parameters that control output length (max_tokens) versus those that control creativity or diversity (temperature, top_p, frequency_penalty), leading candidates to mistakenly adjust the latter when the issue is simply excessive length.
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 max_tokens to 100
Decreasing max_tokens to 100 directly limits the maximum length of the generated summary, forcing the model to produce shorter output. This addresses the verbosity issue without altering the model's factual accuracy, as max_tokens controls output length, not content selection or creativity.
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 top_p to 1.0
Why it's wrong here
Increasing top_p may increase diversity but not conciseness.
- ✗
Increase frequency_penalty to 0.5
Why it's wrong here
Frequency penalty reduces repetition, not length.
- ✓
Decrease max_tokens to 100
Why this is correct
Reducing max_tokens limits output length, making summaries more concise.
- ✗
Increase temperature to 0.7
Why it's wrong here
Increasing temperature increases randomness, not conciseness.
Go deeper
Related to this question
About these practice questions
Courseiva writes every AI-102 question from scratch — 945 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 →
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.