AI-102 Implement generative AI solutions Practice Question
You need to generate a summary of a long article using Azure OpenAI. The article is 10,000 tokens long. What should you do to fit the article within the model's context window?
⚠ Common exam trap
Many exam-takers confuse parameters that control output behavior (temperature, max_tokens) with the fundamental input token limit, leading them to incorrectly believe adjusting these parameters can bypass the context window restriction.
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
✓
Split the article into smaller sections and summarize each section separately.
The article exceeds the model's context window (typically 4096 or 8192 tokens for GPT-3.5/4). Splitting the article into smaller sections and summarizing each separately allows you to process the entire content within the token limits, then combine the summaries for a final coherent output. This is a standard chunking strategy for long documents when using Azure OpenAI.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Split the article into smaller sections and summarize each section separately.
Why this is correct
Splitting the article into smaller sections keeps each request within the model's context window, since a 10,000-token article exceeds it. Summarising each chunk separately, then optionally combining the partial summaries, avoids truncation and preserves coverage of the full content.
- ✗
Increase the temperature parameter.
Why it's wrong here
Temperature controls sampling randomness, not token count, so the 10,000-token article still exceeds the context window and the request fails. It is tempting because temperature tuning shapes summary style, and it would be the right lever when output is too repetitive or too creative, not when input length is the constraint.
- ✗
Use a model with a smaller context window.
Why it's wrong here
A smaller context window reduces capacity further, guaranteeing the 10,000-token article cannot fit at all. It is tempting because smaller models cost less and run faster, and choosing one would be correct for short prompts where latency and price matter more than handling long input.
- ✗
Set max_tokens to a lower value.
Why it's wrong here
max_tokens caps only the generated completion length; the 10,000-token prompt still exceeds the context window and is rejected. It is tempting because it limits output size and cost, and it would be correct when you need shorter responses or want to control billing, not when the input itself is too long.
Go deeper
Related to this question
About these practice questions
One of 761 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.