Courseiva

1Z0-1127-25 · domain

Prompt Engineering

Practise Oracle Cloud Infrastructure Generative AI Professional 1Z0-1127-25 Prompt Engineering practice questions — original exam-style scenarios with answer choices, explanations, and analysis of common mistakes.

105 questions23 easy54 medium28 hard

Focused practice

Practice Prompt Engineering questions

Scored sessions drawing only from this domain — pick a length below.

Start 20-question practice test →

What this domain covers

What to know about Prompt Engineering

Prompt Engineering questions test whether you can apply the concept in context, not just recognise a definition.

How the topic appears in realistic exam-style scenarios.

Which detail in the question changes the correct answer.

How to eliminate plausible but wrong options.

How to connect the question back to the wider exam objective.

Watch out for

Common Prompt Engineering exam traps

  • Answering from memory before reading the full scenario.
  • Missing a constraint such as cost, availability, security, scope or command context.
  • Choosing a broad answer when the question asks for the most specific fix.
  • Ignoring why the wrong options are tempting.

Question index

All Prompt Engineering questions (105)

Click any question to see the full explanation, or start a practice session above.

1

A prompt engineer is designing a system prompt for a customer support agent. The goal is to ensure the agent always responds in a polite, professional tone and never provides medical advice. Which approach best achieves this?

Medium
2

A developer needs to extract structured data from news articles in JSON format, but the model occasionally outputs extra fields or omits required fields. Which prompt engineering approach would MOST reliably enforce the exact schema?

Medium
3

A prompt engineering team is designing a system prompt for a chatbot that should adopt a professional and concise tone. Which prompt pattern is BEST suited for this requirement?

Easy
4

A prompt engineer is refining a prompt that currently produces outputs with excessive repetition. Which TWO parameters can be adjusted to reduce repetition? (Choose two.)

Medium
5

Which prompt pattern is most suitable when a user needs to generate a structured report following a specific template every time?

Medium
6

When using Cohere Command models on OCI Generative AI, a developer wants to ground a response based on a provided document. Which syntax should be used to embed document content in the prompt?

Hard
7

A team wants to use a prompt pattern that combines reasoning with acting, where the model alternates between thinking and taking actions (e.g., tool calls). Which pattern fits this requirement?

Medium
8

A data scientist wants to generate a response that lists top-3 product features in a bulleted format with no introductory text. Which prompt engineering technique should be used?

Medium
9

A team is prompting a model to translate English to French. They notice the model occasionally mixes French with other Romance languages. Which prompt refinement strategy would MOST likely improve language consistency?

Medium
10

A team wants to create a prompt library for their organization's LLM applications. Which practice is MOST important for maintaining prompt quality over time?

Medium
11

A prompt engineer is designing a system to answer customer queries using OCI Generative AI. They want to ensure the model's responses are concise, accurate, and consistent. Which TWO prompt engineering practices should they implement? (Select two.)

Medium
12

A developer uses a Cohere Command model with a preamble: 'You are a helpful assistant that answers questions based on the provided document.' They also include a user message with a query and a relevant document excerpt. However, the model often ignores the document and uses its own knowledge. Which improvement is MOST effective?

Hard
13

Which prompting technique involves providing the model with a few examples of input-output pairs within the prompt to guide its behavior?

Easy
14

A developer is using Cohere Command R+ via OCI Generative AI and wants to ground answers in a provided set of documents using the `documents` parameter. Which prompt structure ensures the model correctly adheres to the documents?

Hard
15

A prompt engineer is using the self-consistency technique to improve answer reliability. Which TWO steps are essential when implementing self-consistency?

Hard
16

An AI engineer is designing a prompt that requires the model to solve a complex math problem. They want the model to explore multiple reasoning paths and then aggregate the final answer. Which prompting technique BEST fits this requirement?

Hard
17

A data scientist is iteratively refining a prompt for a text classification task. Which TWO practices are essential for systematic prompt improvement?

Medium
18

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?

Medium
19

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?

Hard
20

Which prompt engineering technique asks the model to explain its reasoning process step-by-step before arriving at the final answer?

Easy
21

A developer is using the ReAct pattern to build a reasoning agent. Which of the following best describes the two main steps in this pattern?

Medium
22

A prompt engineer is iteratively refining a prompt for a product review summarizer. They want to test which prompt version yields the most accurate summaries. Which approach should they use?

Medium
23

A prompt engineer wants the model to adopt a formal and authoritative tone when generating financial reports. Which approach is MOST effective?

Easy
24

A data scientist is using self-consistency decoding to improve the accuracy of a reasoning task. Which of the following best describes the process?

Hard
25

A developer is tuning parameters for a text-generation model and wants to reduce the likelihood of the same phrase appearing repeatedly. Which parameter should be adjusted?

Medium
26

A prompt engineer wants to generate a poem in a specific rhyming scheme (ABAB). Which combination of prompt components is LEAST likely to succeed?

Medium
27

A company wants to build a customer service chatbot that answers questions about their internal policy documents. The documents are updated monthly, and the team cannot afford to retrain a model each time. Which approach is MOST appropriate?

Medium
28

Which parameter controls the randomness of the model's output by adjusting the probability distribution of the next token?

Easy
29

A prompt engineer is developing a multi-step reasoning application using the ReAct pattern. The model sometimes outputs incomplete reasoning or forgets to perform an action. Which improvement to the prompt is MOST likely to address this issue?

Hard
30

A prompt engineer wants to reduce the model's tendency to generate overly creative or off-topic responses when summarizing financial reports. Which parameter adjustment is MOST appropriate?

Medium
31

A prompt engineer is iteratively refining a prompt for a summarization task. Which THREE practices should she adopt to improve prompt performance systematically?

Hard
32

A prompt engineer notices that the model's output frequently repeats the same phrases. Which parameter adjustment is MOST likely to reduce this repetition?

Medium
33

A prompt engineer wants to use chain-of-thought prompting to improve arithmetic reasoning. Which TWO steps are essential for implementing this technique?

Easy
34

A developer is using the Cohere Command model via OCI Generative AI and wants to ground responses in a specific uploaded document. Which syntax should be used in the preamble to enable document-grounded generation?

Hard
35

A prompt engineer is designing a system that generates SQL queries from natural language. The model sometimes produces unsafe queries (e.g., DROP TABLE). Which constraint in the system prompt would BEST mitigate this risk?

Hard
36

A prompt engineer is using the ReAct pattern to enable the model to reason and act (e.g., call tools). Which THREE components are essential in the prompt to implement ReAct correctly?

Hard
37

A prompt engineer is testing a new prompt for a Q&A system. The prompt includes ambiguous wording that causes the model to answer inconsistently. Which TWO steps should the engineer take to resolve this? (Choose two.)

Medium
38

An organization maintains a library of prompt templates for various use cases. Which three practices are essential for effective prompt management? (Choose three.)

Medium
39

A prompt engineer is designing a ReAct pattern prompt to enable an LLM to use external tools. Which of the following is a key characteristic of the ReAct pattern?

Hard
40

An LLM application generates product descriptions. The output is sometimes repetitive (e.g., 'innovative' appears multiple times). Which parameter adjustment is MOST likely to reduce this repetition without harming creativity?

Hard
41

A data scientist is designing a prompt to generate a structured report with sections for Summary, Findings, and Recommendations. Which output format specification in the prompt would be MOST effective?

Medium
42

What is the PRIMARY purpose of the 'stop sequences' parameter in text generation?

Easy
43

A team is troubleshooting a chatbot that sometimes outputs harmful content despite having a system prompt with safety instructions. Which THREE measures should they implement to reduce the risk?

Hard
44

An AI application uses chain-of-thought prompting to solve math problems. The team observes that the model sometimes arrives at correct answers but with flawed reasoning. Which technique can specifically help by aggregating multiple reasoning paths?

Hard
45

Which of the following is an example of a prompt template?

Easy
46

A developer wants the model to generate a bullet list of steps to troubleshoot a network issue. Which output format specification should be included in the prompt?

Easy
47

What is the primary goal of chain-of-thought prompting?

Easy
48

A developer is using tree-of-thought prompting to solve a complex planning problem. Which THREE characteristics are typical of tree-of-thought?

Hard
49

What is the primary purpose of setting the 'top-k' parameter in an LLM?

Easy
50

What is the primary purpose of setting a low temperature (e.g., 0.1) when generating text with an LLM?

Easy
51

What is the main advantage of using chain-of-thought (CoT) prompting over standard few-shot prompting for complex reasoning tasks?

Easy
52

Which THREE are common prompt failures that can degrade model performance?

Medium
53

A prompt engineer wants to generate a JSON object from an LLM response. Which prompt component is MOST critical to ensure the output is valid JSON?

Easy
54

A prompt engineer is designing a prompt for legal document analysis. The model should output JSON with a specific structure. Which TWO practices are essential to include in the prompt?

Medium
55

A developer is using the Cohere Command R model with a preamble set to "You are a helpful assistant." The user message contains a question. The model's response is factual but lacks detail. To encourage more comprehensive answers, which modification should be made?

Hard
56

A developer is using Cohere Command R with document-grounded generation. Which THREE elements must be included in the prompt to enable effective document grounding?

Medium
57

A prompt engineer wants the LLM to adopt the persona of a 'friendly customer support agent' for all interactions. Which approach is most effective?

Medium
58

A company wants to use Cohere Command for a customer support chatbot that references a knowledge base. The chatbot must maintain conversational context across multiple turns. Which TWO Cohere-specific features should they use?

Medium
59

A prompt engineer is testing different versions of a prompt to improve accuracy on a classification task. Which practice is most appropriate for systematic refinement?

Medium
60

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?

Hard
61

A developer is using a Cohere Command model via OCI Generative AI. They want the model to generate responses strictly in JSON format for a specific task, but the model sometimes outputs additional explanatory text. Which prompt engineering technique is MOST effective?

Hard
62

In OCI Generative AI, when using the Cohere Command model, which parameter is used to discourage the model from repeating the same phrases?

Medium
63

A data scientist is designing a prompt for code generation and needs to reduce the likelihood of the model generating incorrect or hallucinated code. Which two parameter adjustments are most effective? (Choose two.)

Medium
64

Which prompting technique involves providing the model with a small set of input-output examples within the prompt to guide its behavior?

Easy
65

A developer is using a prompt template that includes placeholders like {context} and {question}. They want to version these templates for A/B testing. Which practice is BEST for managing prompt templates?

Medium
66

A prompt engineer is designing a system that generates step-by-step recipes for users. Which TWO prompt patterns are MOST relevant for this task?

Medium
67

A developer is using chain-of-thought prompting to solve a multi-step math problem. The model produces an incorrect final answer, but the intermediate reasoning steps appear logical. Which technique should be applied to improve accuracy?

Medium
68

A prompt engineer wants to ensure the model outputs a JSON object with specific keys. Which prompt component is most appropriate to specify this requirement?

Easy
69

A developer notices that an LLM occasionally generates harmful or biased responses despite a system prompt instructing it to be safe. Which technique can help mitigate this at inference time without retraining?

Medium
70

Which of the following is a common prompt injection vulnerability?

Medium
71

A company wants to build a customer service chatbot that answers questions about their internal policy documents. The documents are updated monthly, and the team cannot afford to retrain a model each time. Which approach is MOST appropriate?

Medium
72

Which scenario BEST describes a prompt injection vulnerability?

Hard
73

A data scientist wants to generate a concise summary of a long legal document. The model should output a bullet list of key points. Which prompt component is LEAST important for this task?

Medium
74

A team is iteratively refining a prompt for a summarization task. Which THREE activities are essential for effective iterative prompt refinement?

Hard
75

A company uses OCI Generative AI to generate product descriptions in XML format. The engineer wants to improve adherence to the XML schema. Which THREE prompt components are most critical? (Select three.)

Medium
76

Which TWO parameters directly control the randomness and diversity of generated tokens?

Medium
77

A developer is using Cohere Command to answer questions grounded in internal technical manuals. They want to ensure the model only answers based on the provided documents and does not use its pre-trained knowledge. Which Cohere-specific technique should be applied?

Medium
78

Which prompting technique involves generating multiple independent reasoning paths and then selecting the most common answer?

Medium
79

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.)

Hard
80

What is the primary benefit of using a system prompt to set the persona and tone before the user message?

Easy
81

A company wants to build a customer service chatbot that answers questions about their internal policy documents. The documents are updated monthly, and the team cannot afford to retrain a model each time. Which approach is MOST appropriate?

Medium
82

Which parameter controls the randomness of the model's output by scaling the probability distribution before sampling?

Easy
83

Which prompting technique involves providing the model with a small number of input-output examples within the prompt to guide its behavior?

Easy
84

An application uses an LLM to summarize legal documents. The summaries sometimes include hallucinations (details not in the original text). Which prompt engineering technique is MOST effective at reducing hallucinations?

Medium
85

An AI engineer is designing a prompt to generate a report summary. The prompt currently says: 'Summarize the following text.' The output is often too verbose. Which modification would best enforce a concise, bullet-list format?

Medium
86

During iterative refinement, a prompt engineer tests two prompt variants on the same 100 inputs and measures accuracy. Variant A yields 85% accuracy, Variant B yields 82%. However, Variant B's outputs are more concise and preferred by users. What should the engineer do NEXT?

Hard
87

Which parameter controls the creativity and randomness of a model's output by adjusting the probability distribution before sampling the next token?

Easy
88

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?

Medium
89

A data scientist is using OCI Generative AI to generate synthetic data for training. They observe that the model's outputs lack diversity and often repeat the same phrases. Which combination of parameter adjustments would BEST increase output diversity?

Medium
90

A company wants to build a customer service chatbot that answers questions about their internal policy documents. The documents are updated monthly, and the team cannot afford to retrain a model each time. Which approach is MOST appropriate?

Medium
91

A practitioner is developing a legal document summarization system and needs to reduce hallucinations. Which prompting technique is most effective for improving factual accuracy by exploring multiple reasoning paths?

Medium
92

A prompt engineer is troubleshooting a chatbot that consistently fails to follow instructions when the user includes adversarial input. Which two strategies can mitigate prompt injection attacks? (Choose two.)

Hard
93

Which TWO are benefits of using few-shot prompting compared to zero-shot prompting?

Easy
94

A prompt library manager wants to implement version control for prompt templates used across multiple applications. Which THREE practices should they adopt?

Medium
95

A developer wants the LLM to solve a math problem by reasoning step by step. Which prompting technique should they use?

Easy
96

When tuning the temperature parameter for a text generation task, which effect does setting temperature to 0.1 have compared to 0.9?

Medium
97

An organization wants to ensure that prompts submitted to an LLM do not contain sensitive customer data. Which practice is most effective?

Medium
98

Which TWO are best practices for prompt management in production environments?

Medium
99

During iterative prompt refinement, a team evaluates two prompt variants on 100 test queries. Variant A scores 85% accuracy but occasionally generates offensive content. Variant B scores 80% accuracy with no safety issues. Which evaluation criterion should take priority for a customer-facing application?

Hard
100

A prompt engineer notices that the model sometimes generates outputs that include parts of the system prompt or user message verbatim. This is likely a symptom of which common prompt failure?

Hard
101

In few-shot prompting, what is the primary purpose of including examples in the prompt?

Easy
102

A prompt engineer is testing two versions of a prompt for a content generation task. They want to measure which version produces more factual and concise outputs. Which evaluation approach is BEST?

Medium
103

A user repeatedly gets the same phrase output by the model. Which parameter adjustment is MOST likely to reduce such repetitive patterns?

Medium
104

A company wants to build a customer service chatbot that answers questions about their internal policy documents. The documents are updated monthly, and the team cannot afford to retrain a model each time. Which approach is MOST appropriate?

Medium
105

An OCI Generative AI user notices that a model generates repetitive phrases when summarizing technical articles. Which parameter adjustment is MOST likely to reduce this repetition?

Hard

Frequently asked questions

What does the Prompt Engineering domain cover on the 1Z0-1127-25 exam?
Prompt Engineering questions test whether you can apply the concept in context, not just recognise a definition.
How many questions are in this domain?
This page lists all 105 Prompt Engineering questions in the 1Z0-1127-25 question bank. The actual exam draws from this domain proportionally to its weighting in the official exam blueprint.
What is the best way to practise this domain?
Start with a short focused session (10 questions) to identify gaps, then work through explanations. Repeat with a longer session once the weak areas feel solid.
Can I practise only Prompt Engineering questions?
Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.
oracle-oci-genai ORACLE-OCI-GENAI oci genai prompt engineering Practice Questions