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.
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.
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?
Medium2A 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?
Medium3A 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?
Easy4A prompt engineer is refining a prompt that currently produces outputs with excessive repetition. Which TWO parameters can be adjusted to reduce repetition? (Choose two.)
Medium5Which prompt pattern is most suitable when a user needs to generate a structured report following a specific template every time?
Medium6When 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?
Hard7A 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?
Medium8A 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?
Medium9A 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?
Medium10A team wants to create a prompt library for their organization's LLM applications. Which practice is MOST important for maintaining prompt quality over time?
Medium11A 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.)
Medium12A 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?
Hard13Which prompting technique involves providing the model with a few examples of input-output pairs within the prompt to guide its behavior?
Easy14A 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?
Hard15A prompt engineer is using the self-consistency technique to improve answer reliability. Which TWO steps are essential when implementing self-consistency?
Hard16An 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?
Hard17A data scientist is iteratively refining a prompt for a text classification task. Which TWO practices are essential for systematic prompt improvement?
Medium18An 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?
Medium19A 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?
Hard20Which prompt engineering technique asks the model to explain its reasoning process step-by-step before arriving at the final answer?
Easy21A developer is using the ReAct pattern to build a reasoning agent. Which of the following best describes the two main steps in this pattern?
Medium22A 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?
Medium23A prompt engineer wants the model to adopt a formal and authoritative tone when generating financial reports. Which approach is MOST effective?
Easy24A data scientist is using self-consistency decoding to improve the accuracy of a reasoning task. Which of the following best describes the process?
Hard25A 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?
Medium26A prompt engineer wants to generate a poem in a specific rhyming scheme (ABAB). Which combination of prompt components is LEAST likely to succeed?
Medium27A 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?
Medium28Which parameter controls the randomness of the model's output by adjusting the probability distribution of the next token?
Easy29A 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?
Hard30A 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?
Medium31A prompt engineer is iteratively refining a prompt for a summarization task. Which THREE practices should she adopt to improve prompt performance systematically?
Hard32A prompt engineer notices that the model's output frequently repeats the same phrases. Which parameter adjustment is MOST likely to reduce this repetition?
Medium33A prompt engineer wants to use chain-of-thought prompting to improve arithmetic reasoning. Which TWO steps are essential for implementing this technique?
Easy34A 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?
Hard35A 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?
Hard36A 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?
Hard37A 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.)
Medium38An organization maintains a library of prompt templates for various use cases. Which three practices are essential for effective prompt management? (Choose three.)
Medium39A 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?
Hard40An 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?
Hard41A 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?
Medium42What is the PRIMARY purpose of the 'stop sequences' parameter in text generation?
Easy43A 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?
Hard44An 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?
Hard45Which of the following is an example of a prompt template?
Easy46A 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?
Easy47What is the primary goal of chain-of-thought prompting?
Easy48A developer is using tree-of-thought prompting to solve a complex planning problem. Which THREE characteristics are typical of tree-of-thought?
Hard49What is the primary purpose of setting the 'top-k' parameter in an LLM?
Easy50What is the primary purpose of setting a low temperature (e.g., 0.1) when generating text with an LLM?
Easy51What is the main advantage of using chain-of-thought (CoT) prompting over standard few-shot prompting for complex reasoning tasks?
Easy52Which THREE are common prompt failures that can degrade model performance?
Medium53A 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?
Easy54A 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?
Medium55A 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?
Hard56A developer is using Cohere Command R with document-grounded generation. Which THREE elements must be included in the prompt to enable effective document grounding?
Medium57A prompt engineer wants the LLM to adopt the persona of a 'friendly customer support agent' for all interactions. Which approach is most effective?
Medium58A 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?
Medium59A prompt engineer is testing different versions of a prompt to improve accuracy on a classification task. Which practice is most appropriate for systematic refinement?
Medium60A 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?
Hard61A 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?
Hard62In OCI Generative AI, when using the Cohere Command model, which parameter is used to discourage the model from repeating the same phrases?
Medium63A 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.)
Medium64Which prompting technique involves providing the model with a small set of input-output examples within the prompt to guide its behavior?
Easy65A 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?
Medium66A prompt engineer is designing a system that generates step-by-step recipes for users. Which TWO prompt patterns are MOST relevant for this task?
Medium67A 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?
Medium68A prompt engineer wants to ensure the model outputs a JSON object with specific keys. Which prompt component is most appropriate to specify this requirement?
Easy69A 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?
Medium70Which of the following is a common prompt injection vulnerability?
Medium71A 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?
Medium72Which scenario BEST describes a prompt injection vulnerability?
Hard73A 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?
Medium74A team is iteratively refining a prompt for a summarization task. Which THREE activities are essential for effective iterative prompt refinement?
Hard75A 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.)
Medium76Which TWO parameters directly control the randomness and diversity of generated tokens?
Medium77A 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?
Medium78Which prompting technique involves generating multiple independent reasoning paths and then selecting the most common answer?
Medium79An 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.)
Hard80What is the primary benefit of using a system prompt to set the persona and tone before the user message?
Easy81A 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?
Medium82Which parameter controls the randomness of the model's output by scaling the probability distribution before sampling?
Easy83Which prompting technique involves providing the model with a small number of input-output examples within the prompt to guide its behavior?
Easy84An 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?
Medium85An 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?
Medium86During 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?
Hard87Which parameter controls the creativity and randomness of a model's output by adjusting the probability distribution before sampling the next token?
Easy88A 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?
Medium89A 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?
Medium90A 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?
Medium91A 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?
Medium92A 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.)
Hard93Which TWO are benefits of using few-shot prompting compared to zero-shot prompting?
Easy94A prompt library manager wants to implement version control for prompt templates used across multiple applications. Which THREE practices should they adopt?
Medium95A developer wants the LLM to solve a math problem by reasoning step by step. Which prompting technique should they use?
Easy96When tuning the temperature parameter for a text generation task, which effect does setting temperature to 0.1 have compared to 0.9?
Medium97An organization wants to ensure that prompts submitted to an LLM do not contain sensitive customer data. Which practice is most effective?
Medium98Which TWO are best practices for prompt management in production environments?
Medium99During 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?
Hard100A 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?
Hard101In few-shot prompting, what is the primary purpose of including examples in the prompt?
Easy102A 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?
Medium103A user repeatedly gets the same phrase output by the model. Which parameter adjustment is MOST likely to reduce such repetitive patterns?
Medium104A 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?
Medium105An 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?
HardOther domains
All 1Z0-1127-25 exam domains
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.