Courseiva
Prompt EngineeringhardMultiple ChoiceObjective-mapped

1Z0-1127-25 Prompt Engineering Practice Question

A prompt engineer is tasked with reducing hallucinations in a document-grounded generation task using Cohere Command R. Which system prompt component is MOST effective for enforcing that the model only uses provided documents?

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

"Answer the question based solely on the provided document. If the document does not contain the answer, say 'I don't know'."

Explicit instruction to base answers solely on provided context, with a constraint to say if information is missing, directly reduces hallucinations.

Answer analysis

Option-by-option breakdown

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

  • "You are an expert in the field. Use your extensive knowledge to answer."

    Why it's wrong here

    Encourages reliance on internal knowledge, increasing hallucination risk.

  • "Provide a detailed answer with references."

    Why it's wrong here

    Vague; may cause the model to generate plausible but unsupported references.

  • "Use a temperature of 0.0 for factual answers."

    Why it's wrong here

    Reduces randomness but does not prevent hallucination from internal knowledge.

  • "Answer the question based solely on the provided document. If the document does not contain the answer, say 'I don't know'."

    Why this is correct

    Clearly constrains the model to the document and provides a fallback response, reducing hallucinations.

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 →

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.