1Z0-1127-25 Prompt Engineering Practice Question
A company is building a chatbot that must maintain a professional tone and avoid discussing off-topic subjects. Which TWO prompt engineering approaches should they combine to enforce these requirements?
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
✓
Use a system prompt that defines the chatbot's role (e.g., 'You are a professional customer support agent') and includes constraints (e.g., 'Do not discuss topics outside of product support.')
A system prompt with role and constraints sets the overall behavior, and a template pattern for responses provides a consistent structure. The other options are less suitable.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use a few-shot prompt with examples of off-topic conversations to teach the model what to avoid
Why it's wrong here
Examples of what to avoid are less effective than explicit constraints.
- ✓
Use a system prompt that defines the chatbot's role (e.g., 'You are a professional customer support agent') and includes constraints (e.g., 'Do not discuss topics outside of product support.')
Why this is correct
This directly sets the tone and limits the scope.
- ✓
Include a template pattern in the system prompt that specifies the response format (e.g., 'Greeting, Answer, Closing')
Why this is correct
A template ensures responses are structured and professional.
- ✗
Set frequency penalty to 2.0 to reduce repetition of any words
Why it's wrong here
Penalty does not enforce topic adherence.
- ✗
Set temperature to 1.0 to ensure creative responses
Why it's wrong here
High temperature may lead to unpredictable, off-topic responses.
Go deeper
Related to this question
About these practice questions
This 1Z0-1127-25 question is part of Courseiva's 768-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 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.