1Z0-1127-25 Prompt Engineering Practice Question
An LLM application generates product descriptions. The output is sometimes repetitive (e.g., 'innovative' appears multiple times). Which parameter adjustment is MOST likely to reduce this repetition without harming creativity?
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
✓
Set frequency penalty to a positive value, e.g., 0.3
The frequency penalty reduces the likelihood of repeating tokens that have already appeared. A moderate penalty (e.g., 0.3) discourages repetition while allowing creative word choices. Temperature and top-k affect randomness, not repetition.
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 from 0.7 to 1.0
Why it's wrong here
Increasing temperature increases randomness but may actually increase repetition of common words.
- ✓
Set frequency penalty to a positive value, e.g., 0.3
Why this is correct
Frequency penalty directly penalizes tokens that have already been used, reducing repetition.
- ✗
Decrease max tokens from 200 to 100
Why it's wrong here
Max tokens limits length but does not address repetition within the output.
- ✗
Increase top-k from 40 to 80
Why it's wrong here
Top-k controls vocabulary breadth, not repetition frequency.
Go deeper
Related to this question
About these practice questions
Courseiva writes every 1Z0-1127-25 question from scratch — 768 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 1Z0-1127-25 practice question is part of Courseiva's free Oracle 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 1Z0-1127-25 exam.