Courseiva
Prompt EngineeringhardMultiple ChoiceObjective-mapped

1Z0-1127-25 Prompt Engineering Practice Question

A prompt engineer is designing a system that must extract structured data from unstructured text. The model occasionally outputs extra text beyond the required JSON. Which parameter should be adjusted to enforce strict output format?

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 a stop sequence to the closing delimiter of the JSON (e.g., '}')

Stop sequences tell the model when to stop generating. By adding a stop sequence like '}' (end of JSON), the model will terminate after the JSON object, preventing extra text.

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 the frequency penalty

    Why it's wrong here

    Frequency penalty reduces repetition, but does not stop generation at a specific point.

  • Reduce the temperature to 0

    Why it's wrong here

    Temperature 0 makes output deterministic but does not prevent extra generation after the JSON.

  • Increase the top-p value

    Why it's wrong here

    Top-p does not control where generation ends.

  • Set a stop sequence to the closing delimiter of the JSON (e.g., '}')

    Why this is correct

    Stop sequences halt generation when the specified token or string is produced, ensuring no additional output after the JSON.

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 →

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.