Courseiva
Prompt EngineeringhardMultiple SelectObjective-mapped

1Z0-1127-25 Prompt Engineering Practice Question

An OCI user is troubleshooting a prompt that sometimes produces outputs containing offensive language. The prompt uses a system prompt to set a professional tone. Which THREE steps should the user take to mitigate this issue? (Select three.)

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

Apply a frequency penalty to discourage repetition of offensive phrases

Adding explicit constraints in the system prompt, setting frequency/presence penalties to reduce undesirable patterns, and testing with adversarial inputs are effective safeguards. Using high temperature or removing the system prompt would worsen the problem.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Apply a frequency penalty to discourage repetition of offensive phrases

    Why this is correct

    Frequency penalty reduces token repetition, which can help if offensive language appears repeatedly.

  • Increase temperature to 0.9 to dilute the offending outputs

    Why it's wrong here

    Higher temperature increases randomness and may produce more unpredictable (and possibly offensive) language.

  • Test the prompt with diverse inputs including adversarial examples

    Why this is correct

    Testing with edge cases helps identify and fix vulnerabilities.

  • Add a constraint in the system prompt: 'Do not use offensive or inappropriate language.'

    Why this is correct

    Explicit constraints directly guide the model's behavior.

  • Remove the system prompt to avoid overriding model's safety training

    Why it's wrong here

    Removing the system prompt removes a layer of control and may make the problem worse.

About these practice questions

One of 768 original 1Z0-1127-25 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 →

How Courseiva writes practice questions · Editorial policy

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.