Question 830 of 1,020

Quick Answer

The correct answer is that the frequency penalty parameter in Azure OpenAI API calls reduces repetition of words already present in the response. This works by applying a penalty proportional to how often a token has already appeared in the generated text, so the more frequently a word is used, the more the model is discouraged from using it again, promoting lexical diversity. On the Microsoft Azure AI Fundamentals AI-900 exam, this concept tests your understanding of how to control output variety in generative AI models, often appearing in questions that contrast it with the presence penalty, which penalizes any token that has appeared at all regardless of frequency. A common trap is confusing the two: remember that frequency penalty targets how often a word repeats, while presence penalty targets whether it appears at all. For a quick memory tip, think “frequency = frequency of repetition,” and picture a penalty that increases with each repeat use.

AI-900 Practice Question: Describe features of generative AI workloads on Azure

This AI-900 practice question tests your understanding of describe features of generative ai workloads on azure. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

What is the 'frequency penalty' parameter in Azure OpenAI API calls?

Question 1mediummultiple choice
Full question →

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 parameter that reduces repetition of words already present in the response

The 'frequency penalty' parameter in Azure OpenAI API calls is designed to reduce the likelihood of the model repeating words or phrases that have already appeared in the generated response. It works by applying a penalty proportional to the frequency of tokens already used, encouraging more diverse and less repetitive text output. This is distinct from the 'presence penalty', which penalizes tokens based on whether they have appeared at all, regardless of frequency.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

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 cost multiplier based on how often you call the API

    Why it's wrong here

    API pricing is based on token consumption — frequency penalty is a response diversity parameter.

  • A parameter that reduces repetition of words already present in the response

    Why this is correct

    Frequency penalty penalizes tokens based on how often they've appeared so far — reducing repetitive, looping text generation.

    Related concept

    Read the scenario before looking for a memorised answer.

  • A rate limiting parameter controlling maximum API calls per minute

    Why it's wrong here

    Rate limits are API management controls — frequency penalty controls response content diversity.

  • A filter that removes profanity based on how frequently it appears

    Why it's wrong here

    Profanity filtering uses content safety — frequency penalty is a generation diversity control parameter.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse 'frequency penalty' with rate limiting or cost controls, because the word 'penalty' suggests a punitive mechanism, but it is purely a sampling parameter for output diversity.

Detailed technical explanation

How to think about this question

Under the hood, the frequency penalty modifies the logits (raw scores) of candidate tokens during sampling by subtracting a value proportional to the number of times each token has already appeared in the sequence, scaled by the penalty parameter (range -2.0 to 2.0). A positive value reduces the probability of frequent tokens, while a negative value increases it. In real-world scenarios, this is critical for tasks like summarization or creative writing where repetitive output can degrade quality, and it works alongside temperature and top_p to control generation diversity.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A startup's cloud architect reviews their monthly bill and notices costs are higher than expected for a long-running batch job. Switching from on-demand instances to Reserved Instances — or using Spot/Preemptible VMs — can reduce compute costs by up to 72 %. Questions like this test whether you understand the tradeoffs between commitment, flexibility, and cost across cloud pricing models.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related AI-900 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free AI-900 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AI-900 question test?

Describe features of generative AI workloads on Azure — This question tests Describe features of generative AI workloads on Azure — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: A parameter that reduces repetition of words already present in the response — The 'frequency penalty' parameter in Azure OpenAI API calls is designed to reduce the likelihood of the model repeating words or phrases that have already appeared in the generated response. It works by applying a penalty proportional to the frequency of tokens already used, encouraging more diverse and less repetitive text output. This is distinct from the 'presence penalty', which penalizes tokens based on whether they have appeared at all, regardless of frequency.

What should I do if I get this AI-900 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.