AI-900 Practice Question: Describe features of generative AI workloads on Azure
What is the 'presence penalty' parameter in Azure OpenAI API calls?
⚠ Common exam trap
Microsoft often tests the distinction between 'presence penalty' and 'frequency penalty' — the trap here is that candidates confuse the presence penalty with a requirement for AI disclosure or a simple repetition penalty, missing that it specifically penalizes any token that has already appeared at least once, regardless of how many times.
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
✓
A flat penalty discouraging repetition of any token already present in the response
The 'presence penalty' parameter in Azure OpenAI API calls applies a flat penalty to any token that has already appeared in the response so far, reducing the model's likelihood of repeating that token. This helps generate more diverse and less repetitive text by discouraging the reuse of tokens already present in the output sequence.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
A parameter requiring AI systems to acknowledge their presence as AI to users
Why it's wrong here
This option incorrectly ties presence penalty to the ethical or regulatory requirement for AI systems to disclose their non-human nature. In reality, presence penalty is a technical knob that influences token selection during autoregressive decoding, not a transparency feature. AI disclosure is about user trust and compliance, while presence penalty is about mitigating repetitive text patterns in generated responses.
- ✓
A flat penalty discouraging repetition of any token already present in the response
Why this is correct
The presence penalty is correctly defined as a flat penalty applied to every token that has already been generated, encouraging the model to explore a wider vocabulary. Unlike frequency penalties that scale with repetition count, this penalty treats any repeated token equally, thereby promoting diversity without harshly suppressing legitimate re-use. This mechanism directly reduces repetitive loops and makes responses more varied and natural.
- ✗
A parameter indicating whether the AI is present online or offline
Why it's wrong here
The presence penalty has nothing to do with a system's online or offline status. It is a purely algorithmic parameter that modifies the probability distribution over the vocabulary by applying a fixed penalty to tokens that have already appeared, regardless of network connectivity or service availability. Operational status is monitored via health checks or infrastructure metrics, not through generation parameters like this one.
- ✗
The minimum number of characters that must be present in a response
Why it's wrong here
The presence penalty does not impose any constraint on response length. It operates as a sampling parameter that adjusts the likelihood of tokens based on their prior occurrence, whereas minimum character requirements are a formatting or post-processing rule. Confusing the two conflates output structure with lexical diversity, which is a fundamentally different concern in language model generation.
Go deeper
Related to this question
Learn chapter
Azure Machine Learning Studio
Key term
Model
In IT and AI, a model is a trained mathematical representation that learns patterns from data to make predictions or decisions.
Key term
Token
A token is a digital or physical object that represents a set of permissions or access rights, used to verify identity or grant access in computer systems.
About these practice questions
This AI-900 question is part of Courseiva's 985-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 AI-900 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-900 exam.