1Z0-1127-25 Prompt Engineering Practice Question
An engineer is using the ReAct pattern to build a reasoning agent. The agent should first reason about the user query, then call an external API, and finally incorporate the API result into a final answer. Which prompt structure best implements this pattern?
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
✓
"You have access to an API. For each step, output 'Thought:', then 'Action:', then 'Observation:' before the final answer."
ReAct explicitly interleaves reasoning (Thought) and actions (Action) before final output.
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 have access to an API. For each step, output 'Thought:', then 'Action:', then 'Observation:' before the final answer."
Why this is correct
This matches the ReAct pattern: Thought, Action, Observation, then final answer.
- ✗
"You are a helpful assistant. Answer the user's question based on your knowledge."
Why it's wrong here
This is a simple instruction without a structured reasoning-action loop.
- ✗
"First, call the API. Then, output the result."
Why it's wrong here
Lacks the reasoning step and structured format for iterative actions.
- ✗
"Think step by step, then provide the final answer."
Why it's wrong here
Encourages reasoning but does not specify an explicit action step.
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.