Courseiva

Oracle Cloud Infrastructure Generative AI Professional 1Z0-1127-25 (1Z0-1127-25) — Questions 76150

768 questions total · 11pages · All types, answers revealed

Page 1

Page 2 of 11

Page 3
76
MCQhard

An enterprise is using OCI Generative AI with a RAG architecture. They observe that the LLM sometimes produces hallucinated answers that are not supported by the retrieved documents. Which strategy is most effective in reducing these hallucinations?

A.Increase the temperature parameter to make outputs more focused.
B.Provide clear instructions in the system prompt to answer only based on the provided context.
C.Use a smaller LLM to reduce model capacity.
D.Retrieve more chunks (increase top-k) to provide more context.
AnswerB

Explicit grounding instructions guide the model to stick to retrieved documents, reducing unsupported claims.

Why this answer

Explicitly instructing the LLM to answer only based on the provided context directly addresses the root cause of hallucinations in a RAG pipeline: the model's tendency to rely on its parametric knowledge rather than the retrieved documents. This system prompt acts as a behavioral constraint, forcing the model to ground its responses in the supplied context, which is the most effective and widely recommended mitigation strategy.

Exam trap

Oracle often tests the misconception that increasing context quantity (top-k) or adjusting model parameters like temperature will solve hallucinations, when in fact the most reliable solution is explicit behavioral instruction through system prompts.

How to eliminate wrong answers

Option A is wrong because increasing the temperature parameter actually increases randomness and creativity in the output, making hallucinations more likely, not less; lower temperature values (closer to 0) produce more focused and deterministic outputs. Option C is wrong because using a smaller LLM reduces model capacity and may actually increase hallucination rates due to poorer reasoning and comprehension abilities, not decrease them. Option D is wrong because retrieving more chunks (increasing top-k) can introduce irrelevant or conflicting information that confuses the model, potentially increasing hallucinations rather than reducing them; the quality and relevance of retrieved chunks matter more than quantity.

77
MCQhard

A company wants to deploy a custom generative AI model for generating synthetic data for training other models. The model requires approximately 20GB of memory and must be accessible via a REST API with authentication. Additionally, the team needs to monitor for data drift over time. Which combination of OCI services best meets these requirements with minimal operational overhead?

A.OCI Compute with custom Docker container and Prometheus monitoring
B.OCI Data Science Model Deployment with OCI Monitoring and OCI Logging
C.OCI Functions with API Gateway for authentication
D.OCI Data Flow with OCI Data Catalog for model registry
AnswerB

Model Deployment supports large models, authentication, and integrates with Monitoring and Logging for drift detection.

Why this answer

OCI Data Science Model Deployment provides a managed environment for hosting custom generative AI models with REST API endpoints and built-in authentication via OCI IAM. It integrates natively with OCI Monitoring and OCI Logging to track data drift and operational metrics without requiring additional infrastructure setup, minimizing operational overhead.

Exam trap

The trap here is that candidates may confuse OCI Functions (serverless) as suitable for long-running model inference, but its memory and timeout limits make it impractical for a 20GB model, while OCI Data Science Model Deployment is purpose-built for this scenario.

How to eliminate wrong answers

Option A is wrong because OCI Compute with a custom Docker container requires manual management of the host, scaling, and authentication, and Prometheus monitoring adds operational overhead for setup and maintenance, which contradicts the 'minimal operational overhead' requirement. Option C is wrong because OCI Functions is a serverless compute service designed for short-lived, stateless functions (max 5-minute execution and limited memory, typically up to 10GB), not for hosting a persistent 20GB generative AI model with a REST API. Option D is wrong because OCI Data Flow is a managed Apache Spark service for batch data processing, not for hosting real-time model inference endpoints, and OCI Data Catalog is for metadata management, not model registry or monitoring data drift.

78
MCQeasy

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

A.Zero-shot prompting
B.Few-shot prompting
C.Self-consistency prompting
D.Chain-of-thought prompting
AnswerB

Few-shot provides a handful of examples to guide the model.

Why this answer

Few-shot prompting includes several demonstrations of the desired task, helping the model understand the expected output format and reasoning.

79
MCQhard

A research team is experimenting with few-shot prompting to improve a model's performance on a complex reasoning task. They find that the model's performance degrades when the few-shot examples are too similar to each other. What is the likely cause and best remedy?

A.The model has not seen enough examples. Increase the number of few-shot examples.
B.The examples are presented in a confusing order. Reorder them by difficulty.
C.The examples lack diversity, causing the model to overfit to a narrow pattern. Use more diverse examples.
D.The temperature is too low, making the model too deterministic. Increase temperature slightly.
AnswerC

Diverse examples reduce bias and improve generalization.

Why this answer

When few-shot examples are too similar, the model overfits to a narrow pattern, reducing its ability to generalize to the diverse reasoning paths required by the task. This is a known limitation of in-context learning: the model treats the examples as a template rather than as diverse demonstrations. Using more diverse examples exposes the model to a wider range of reasoning patterns, improving robustness.

Exam trap

Oracle often tests the misconception that more examples always improve performance, when in fact diversity is critical to prevent overfitting in few-shot prompting.

How to eliminate wrong answers

Option A is wrong because the issue is not the quantity of examples but their lack of diversity; adding more similar examples would worsen overfitting. Option B is wrong because the order of examples (by difficulty) does not address the core problem of pattern overfitting; confusing order may affect performance but is not the likely cause here. Option D is wrong because temperature controls randomness in token sampling, not the model's sensitivity to example diversity; a low temperature would make outputs more deterministic but does not cause or fix overfitting to narrow patterns.

80
MCQmedium

A developer uses the OCI Generative AI Chat API to build a multi-turn conversational agent. They notice the model starts to lose context after several exchanges. What is the MOST likely cause?

A.The temperature parameter is set too high, causing the model to forget
B.The model's context window is too small for the conversation length
C.The developer is not sending the conversation history with each request
D.The fine-tuning dataset did not include multi-turn examples
AnswerC

The Chat API requires the client to include previous messages; otherwise the model has no context of prior turns.

Why this answer

The Chat API does not automatically manage conversation history; the developer must provide previous messages. The model itself retains state only within the provided context.

81
MCQeasy

Which of the following is a key limitation of large language models that RAG (Retrieval-Augmented Generation) aims to address?

A.Hallucinations (factual errors)
B.Context length constraints
C.Bias in training data
D.Knowledge cutoff date
AnswerA

RAG retrieves factual documents from a knowledge base and provides them as context, significantly reducing the likelihood of the model generating incorrect facts.

Why this answer

RAG addresses hallucinations by grounding the model's output in retrieved documents that contain factual information. Knowledge cutoff, bias, and context length constraints are separate issues that RAG may partially help with, but its primary purpose is to reduce factual errors.

82
MCQhard

An organization requires low-latency inference for a custom fine-tuned model that will be used in a real-time application. They also need guaranteed availability and isolation from other tenants. Which infrastructure option should they choose?

A.Provision a Dedicated AI Cluster with model units for the fine-tuned model
B.Create an endpoint on OCI API Gateway pointing to shared inference
C.Use the OCI Generative AI Playground to host the model
D.On-demand token-based inference on shared infrastructure
AnswerA

A Dedicated AI Cluster provides isolated compute resources, ensuring low latency and dedicated capacity for custom models.

Why this answer

Dedicated AI Clusters provide isolated, low-latency inference for custom models. Shared infrastructure is multi-tenant and may have higher latency. On-demand tokens and serving endpoints without a cluster do not offer dedicated resources.

83
MCQhard

An OCI Generative AI practitioner observes that a Cohere Command model generates responses with outdated information about a recent event. The model was fine-tuned six months ago. Which technique should be applied to incorporate new knowledge without retraining the model?

A.Use a longer context window and include all new articles in the prompt
B.Fine-tune the model again with the new data
C.Implement a RAG pipeline that indexes the latest documents into a vector store and retrieves relevant passages at query time
D.Increase the temperature parameter to encourage more creative outputs
AnswerC

RAG solves knowledge staleness without retraining.

Why this answer

RAG retrieves relevant, current documents at inference time, providing up-to-date context without modifying the model parameters.

84
MCQhard

An organization needs to fine-tune a Cohere Command R model for a custom domain. They have prepared a dataset in JSONL format. Which component of the fine-tuning job specifies the base model and the training dataset location?

A.The dedicated AI cluster settings
B.The T-Few configuration file
C.The fine-tuning job creation request body
D.The model deployment endpoint configuration
AnswerC

The request body specifies base model, dataset, and other settings for the fine-tuning job.

Why this answer

The fine-tuning job creation request includes parameters such as 'baseModelId' and 'trainingDataset' (pointing to the dataset in Object Storage). The model deployment endpoint and cluster are separate steps.

85
MCQhard

A developer is using the OCI Generative AI Chat API with Cohere Command R+ to build a multi-turn conversational agent. They want the agent to always respond in a formal tone, regardless of the user's phrasing. Which parameter should they set in the API request to achieve this consistently?

A.Set the 'stop_sequences' parameter to include periods
B.Set the 'temperature' parameter to 0.1
C.Use the 'system' parameter (or preamble_override) to provide a system message like 'You are a formal assistant'
D.Set the 'max_tokens' parameter to 200
AnswerC

The system message or preamble override instructs the model on its behavior and tone, which persists across the conversation.

Why this answer

A system message or preamble override sets the overall behavior and tone of the assistant for the entire conversation. Temperature controls randomness; max tokens limits length; stop sequences end generation — none are suitable for defining a persistent tone.

86
MCQhard

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?

A.Use a preamble: 'You answer questions based only on the provided documents. If the answer is not in the documents, say you don't know.' Then pass documents via the `documents` parameter in the request
B.Set a system prompt that says 'You are a helpful assistant' and pass documents in the `documents` parameter with no further instruction
C.Place the documents in the conversation history as an assistant message before the user's question
D.Include the documents in the user message after the question
AnswerA

This matches Cohere's best practice: a clear preamble instruction plus the `documents` parameter.

Why this answer

Cohere's document-grounded generation requires the preamble to instruct the model to answer based solely on the documents, and the conversation history must include the documents in the correct format.

87
MCQhard

A DBA has created the above vector index. After running queries, they observe that recall is lower than expected for approximate searches. Which change would most likely improve recall while maintaining query performance?

A.Change the index type from IVF to HNSW.
B.Increase the TARGET ACCURACY value to 99.
C.Increase the number of neighbor partitions (NEIGHBOR PARTITIONS) to 8.
D.Reduce the number of neighbor partitions to 2.
AnswerB

A higher TARGET ACCURACY forces the approximate search to consider more vectors, increasing recall at the cost of some latency.

Why this answer

Increasing TARGET ACCURACY to 99 directly raises the recall threshold for approximate search, forcing the vector index to retrieve more candidates during the search phase. This improves recall without changing the index structure or query parallelism, so query performance (latency) is only minimally impacted compared to switching index types or drastically altering neighbor partitions.

Exam trap

Oracle often tests the misconception that changing the index type (e.g., IVF to HNSW) is the primary way to fix recall, when in fact TARGET ACCURACY is the direct parameter for recall tuning without altering the index structure.

How to eliminate wrong answers

Option A is wrong because switching from IVF to HNSW changes the underlying index algorithm, which can improve recall but often at the cost of higher memory usage and slower index build times, and it does not directly address the recall issue while maintaining existing query performance. Option C is wrong because increasing NEIGHBOR PARTITIONS to 8 expands the search scope, which improves recall but significantly degrades query performance (latency) due to scanning more partitions. Option D is wrong because reducing NEIGHBOR PARTITIONS to 2 narrows the search scope, which may improve query speed but will likely reduce recall further, opposite of the goal.

88
MCQmedium

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?

A.Train a custom model from scratch on the policy documents each month
B.Use Retrieval-Augmented Generation (RAG) with the policy documents indexed in a vector store
C.Fine-tune a base LLM on the policy documents monthly
D.Use a larger foundation model with a longer context window and paste all documents into each prompt
AnswerB

RAG retrieves relevant document chunks at query time, ensuring the chatbot always answers from the latest uploaded documents without any model retraining.

Why this answer

RAG (Retrieval-Augmented Generation) allows the LLM to retrieve relevant document sections at inference time, so knowledge stays current without retraining. The other options either require expensive retraining for each update or lack document grounding.

89
MCQhard

A company is using OCI Generative AI to generate code snippets and notices that the model sometimes produces code with security vulnerabilities. They have a small dataset of secure code examples. Which approach would be most effective to reduce vulnerabilities?

A.Use a different base model.
B.Fine-tune the model on the small secure code dataset.
C.Use prompt engineering with security constraints in the instruction.
D.Deploy a custom model hosted elsewhere.
AnswerC

Prompt engineering can enforce security rules without needing large datasets.

Why this answer

Prompt engineering allows the company to inject security constraints directly into the instruction without requiring additional training data or infrastructure. By crafting a prompt that explicitly requests secure code (e.g., 'Generate code that follows OWASP Top 10 best practices and avoids SQL injection, XSS, and buffer overflows'), the model can leverage its existing knowledge to produce safer outputs. This approach is immediate, cost-effective, and does not depend on the size or quality of the small secure code dataset.

Exam trap

The trap here is that candidates often assume fine-tuning (Option B) is always the best solution for domain-specific improvements, but they overlook the practical limitations of small datasets and the immediate effectiveness of prompt engineering for security constraints.

How to eliminate wrong answers

Option A is wrong because switching to a different base model does not guarantee reduced vulnerabilities; all general-purpose models can produce insecure code without explicit guidance, and the issue lies in the lack of security-focused constraints, not the model architecture. Option B is wrong because fine-tuning on a small dataset of secure code examples is unlikely to generalize well; the model may overfit to the limited examples and fail to address the wide variety of vulnerabilities that can appear in different contexts, and fine-tuning requires significant computational resources and expertise. Option D is wrong because deploying a custom model hosted elsewhere introduces additional complexity, cost, and latency without addressing the root cause; the problem is not about hosting location but about how the model is instructed to prioritize security.

90
MCQhard

A team is building a code generation assistant using OCI Generative AI. They notice that the model occasionally produces code with subtle security vulnerabilities. Which approach would most effectively reduce this risk without compromising the assistant's usefulness?

A.Use a larger context window to include all project files in every prompt
B.Switch to a model with more parameters
C.Use greedy decoding to reduce randomness in code generation
D.Fine-tune the model on a dataset of secure code examples and security best practices
AnswerD

Fine-tuning on secure examples helps the model learn to generate safer code by adjusting its weights.

Why this answer

Fine-tuning on a curated dataset of secure code examples can teach the model to avoid common vulnerability patterns while retaining its general coding ability. RAG with security docs could also help, but fine-tuning directly addresses the model's behavior more comprehensively.

91
Multi-Selecthard

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

Select 2 answers
A.Use tree-of-thought to explore all possible reasoning branches
B.Use a chain-of-thought prompt to guide the generation of reasoning paths.
C.Set temperature to 0 for reproducible outputs
D.Aggregate the outputs (e.g., by majority voting or marginalizing over reasoning steps) to select the most consistent answer
E.Generate multiple independent reasoning paths by running the prompt several times with a non-zero temperature
AnswersD, E

Correct. Aggregating outputs (e.g., majority voting) is the final step in self-consistency.

Why this answer

Self-consistency involves two essential steps. First, generate multiple independent reasoning paths by running the prompt several times with a non-zero temperature to ensure diversity (option E). Second, aggregate the outputs (e.g., by majority voting or marginalizing over reasoning steps) to select the most consistent answer (option D).

Options D and E are correct. Option B is not essential because chain-of-thought prompting is a separate technique that can be used with self-consistency but is not required for the method.

Exam trap

Candidates often think temperature must be zero for reproducibility, but self-consistency requires non-zero temperature to generate diverse reasoning paths.

92
MCQhard

A machine learning engineer is fine-tuning a Cohere Command R model using T-Few. They have prepared a JSONL dataset with 500 prompt-completion pairs. After submitting the fine-tuning job, they notice the model's performance on validation data is poor. Which action is MOST likely to improve performance?

A.Adding more high-quality training examples to the dataset
B.Increasing the number of training epochs
C.Setting the temperature to 0 in the fine-tuning configuration
D.Switching to a larger base model like Llama 3 70B
AnswerA

More data can improve T-Few fine-tuning performance.

Why this answer

T-Few is parameter-efficient and may require more data. Increasing dataset size or using data augmentation is a likely improvement.

93
MCQhard

A researcher is comparing BLEU and ROUGE scores for a machine translation model. They notice that the BLEU score is high but the ROUGE score is low. Which scenario is MOST consistent with this observation?

A.The model outputs very long and verbose translations
B.The model outputs concise translations that capture key words but miss some reference phrases
C.The model is overfitting to the training data
D.The reference translations are of poor quality
AnswerB

Concise translations achieve high precision (high BLEU) but low recall (low ROUGE) because they miss some n-grams from the reference.

Why this answer

High BLEU and low ROUGE indicate that the generated text has high precision (many n-grams match reference) but low recall (missing many reference n-grams). This often occurs when the output is short or overly cautious.

94
MCQmedium

A company's RAG application ingests news articles that are updated frequently. The vector store in OCI OpenSearch contains embeddings of the articles. The team notices that outdated information is still retrieved even after updating the source documents. What is the most effective way to ensure the vector store reflects the latest content?

A.Increase the TTL for vector indices
B.Rely on the LLM to ignore outdated information
C.Re-index the entire vector store daily
D.Use the OCI OpenSearch document update API to replace embeddings for changed documents
AnswerD

Targeted updates minimize cost and ensure real-time accuracy.

Why this answer

Using the OCI OpenSearch document update API to replace embeddings for changed documents is efficient and targeted, ensuring immediate consistency.

95
Multi-Selectmedium

Which THREE of the following are known limitations of LLMs that practitioners must account for?

Select 3 answers
A.Knowledge cutoff: the model only knows information up to its training data date
B.Bias: training data may contain societal biases that the model can amplify
C.Hallucination: generating plausible-sounding but factually incorrect information
D.Inability to produce creative text
E.Complete lack of understanding of language syntax
AnswersA, B, C

LLMs have no inherent knowledge of events after their training cutoff.

Why this answer

LLMs can produce hallucinations (factual errors), have a knowledge cutoff date, and can exhibit bias from training data. They do not inherently lack creativity, and context length is a limitation but not a 'lack of understanding'.

96
Multi-Selectmedium

Which TWO factors most directly impact the consistency of text generated by an LLM when the same prompt is used multiple times?

Select 2 answers
A.Top_p
B.Batch size
C.Max_tokens
D.Temperature
E.Seed
AnswersA, D

Top_p controls the nucleus of tokens considered; lower values make output more focused.

Why this answer

Top_p (nucleus sampling) directly impacts consistency by controlling the cumulative probability threshold for token selection. A lower Top_p (e.g., 0.1) restricts the model to only the most probable tokens, reducing randomness and making outputs more deterministic across repeated prompts. This parameter, along with Temperature, is a primary lever for managing output variability in LLMs.

Exam trap

Oracle often tests the distinction between inference-time parameters (Temperature, Top_p) and training/hardware parameters (Batch size), or between parameters that control randomness (Temperature, Top_p) versus those that control output length (Max_tokens), leading candidates to mistakenly select Seed as a primary consistency factor.

97
MCQmedium

Which of the following sampling strategies is most likely to produce the most diverse and creative text?

A.Beam search with width 5
B.Greedy decoding
C.Top-p sampling with p=0.1
D.Temperature sampling with temperature=1.2
AnswerD

High temperature flattens the distribution, increasing diversity.

Why this answer

Temperature sampling with a higher temperature (>1) increases the probability of less likely tokens, promoting creativity and diversity.

98
MCQeasy

Which LangChain document loader should be used to load text from a web page given its URL?

A.WebBaseLoader
B.CSVLoader
C.PDFLoader
D.TextLoader
AnswerA

WebBaseLoader loads content from a web page URL.

Why this answer

WebBaseLoader is a LangChain document loader that fetches a web page from a URL and extracts its text content. PDFLoader loads PDFs, TextLoader loads local text files, and CSVLoader loads CSV files.

99
MCQhard

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?

A.Self-consistency prompting
B.Zero-shot prompting with a direct instruction
C.Tree-of-thought prompting
D.Few-shot prompting with worked examples
AnswerA

Self-consistency runs chain-of-thought multiple times and aggregates results for improved accuracy.

Why this answer

Self-consistency generates multiple reasoning paths (e.g., using chain-of-thought) and then takes a majority vote or averages results, which directly matches the need for multiple paths and aggregation.

100
Multi-Selectmedium

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

Select 2 answers
A.Establishing clear evaluation criteria such as accuracy, F1, or human ratings
B.Using the same prompt on all inputs without variation
C.Randomly changing words in the prompt without tracking changes
D.A/B testing different prompt variants on a held-out evaluation set
E.Increasing temperature to generate more diverse outputs for the same prompt
AnswersA, D

Criteria are needed to measure success.

Why this answer

A/B testing helps compare prompt variants, and establishing evaluation criteria ensures objective measurement of improvements. The other options are either irrelevant or counterproductive.

101
MCQeasy

A company wants to use OCI Generative AI to summarize customer feedback. They need low latency and high throughput. Which configuration should they choose?

A.Serverless endpoint with fine-tuned model
B.Dedicated AI cluster with base model
C.Dedicated AI cluster with fine-tuned model
D.Serverless endpoint with base model
AnswerB

Correct: Dedicated resources ensure low latency and high throughput.

Why this answer

Dedicated AI clusters provide guaranteed compute resources (GPUs) with no multi-tenant contention, ensuring low latency and high throughput for inference workloads. Using a base model avoids the additional overhead of fine-tuning inference, which can introduce latency due to custom weight loading and optimization steps. This combination is optimal for real-time summarization of customer feedback where response time and volume are critical.

Exam trap

Oracle often tests the misconception that fine-tuned models always outperform base models for latency, when in fact fine-tuning adds inference overhead that can degrade performance for high-throughput, low-latency use cases.

How to eliminate wrong answers

Option A is wrong because serverless endpoints share resources across tenants, leading to variable latency and potential throttling under high throughput demands, which contradicts the low-latency requirement. Option C is wrong because a fine-tuned model on a dedicated cluster adds inference overhead from custom weights and may require additional pre/post-processing, increasing latency compared to a base model. Option D is wrong because serverless endpoints with a base model still suffer from multi-tenant resource contention, making them unsuitable for guaranteed low latency and high throughput.

102
MCQmedium

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?

A."You have access to an API. For each step, output 'Thought:', then 'Action:', then 'Observation:' before the final answer."
B."You are a helpful assistant. Answer the user's question based on your knowledge."
C."First, call the API. Then, output the result."
D."Think step by step, then provide the final answer."
AnswerA

This matches the ReAct pattern: Thought, Action, Observation, then final answer.

Why this answer

ReAct explicitly interleaves reasoning (Thought) and actions (Action) before final output.

103
MCQhard

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?

A."You are an expert in the field. Use your extensive knowledge to answer."
B."Provide a detailed answer with references."
C."Use a temperature of 0.0 for factual answers."
D."Answer the question based solely on the provided document. If the document does not contain the answer, say 'I don't know'."
AnswerD

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

Why this answer

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

104
MCQeasy

A startup needs to deploy a large language model for a customer support chatbot that requires low latency and cost efficiency. They are evaluating OCI Generative AI models. Which model type is most appropriate?

A.Embedding model (e.g., cohere.embed)
B.Instruct model (e.g., cohere.command)
C.Image generation model
D.Base model (e.g., cohere.base)
AnswerB

Instruct models are fine-tuned to follow instructions, making them ideal for chatbots.

Why this answer

The startup requires low latency and cost efficiency for a customer support chatbot. Instruct models like cohere.command are specifically fine-tuned to follow conversational instructions and generate concise, task-oriented responses, making them ideal for interactive chatbot applications. They balance performance and cost better than base models, which lack instruction-following capability, and embedding models, which are designed for semantic search rather than text generation.

Exam trap

Oracle often tests the distinction between base models and instruct models, trapping candidates who assume a base model can be used directly for task-specific applications without fine-tuning or instruction alignment.

How to eliminate wrong answers

Option A is wrong because embedding models (e.g., cohere.embed) are designed to convert text into vector representations for tasks like semantic search or clustering, not for generating conversational responses. Option C is wrong because image generation models are used for creating or editing images, not for text-based customer support interactions. Option D is wrong because base models (e.g., cohere.base) are general-purpose language models that have not been fine-tuned for instruction following, leading to less relevant and less controllable outputs for a chatbot use case.

105
MCQeasy

A team wants to deploy an LLM for real-time inference with low latency. Which OCI deployment option is best?

A.OCI Data Science Model Deployment with GPU shapes
B.OCI Functions with CPU
C.OCI Events
D.OCI Streaming
AnswerA

GPU shapes provide the compute power needed for low-latency LLM inference.

Why this answer

OCI Data Science Model Deployment with GPU shapes is the best option because it provides managed, scalable, low-latency inference endpoints for LLMs. GPU shapes (e.g., VM.GPU.A10) are essential for the parallel matrix computations required by transformer-based models, and the deployment service supports auto-scaling and load balancing to maintain real-time response times.

Exam trap

The trap here is that candidates may confuse OCI Functions (a serverless compute service) with a viable inference platform, overlooking the GPU requirement for LLM workloads, or mistakenly think OCI Streaming can process inference requests because of its 'real-time' label.

How to eliminate wrong answers

Option B (OCI Functions with CPU) is wrong because OCI Functions is a serverless compute service designed for short-lived, stateless functions, and CPU-only execution cannot meet the low-latency requirements of LLM inference due to the lack of GPU acceleration for large matrix operations. Option C (OCI Events) is wrong because OCI Events is a notification and orchestration service for reacting to infrastructure changes, not a compute platform for running inference workloads. Option D (OCI Streaming) is wrong because OCI Streaming is a real-time data ingestion and messaging service (based on Apache Kafka) for handling event streams, not for executing LLM inference.

106
MCQhard

A company wants to build a multi-modal RAG system that can retrieve both text and images based on a user query. Which approach is most aligned with OCI GenAI capabilities?

A.Use OCI Document Understanding to convert images to text, then index text
B.Use separate vector stores for text and image embeddings
C.Use image captioning to generate text descriptions and index those
D.Utilize a multi-modal embedding model from OCI GenAI to embed both text and images into a common vector space
AnswerD

Multi-modal models enable direct retrieval of both types.

Why this answer

OCI GenAI supports multi-modal models like Cohere's multimodal embedding model, which can embed text and images into a shared vector space, enabling retrieval across modalities. Separate text and image models would not align the vectors. OCR-based text-only approach loses image semantics.

Using multiple vector stores complicates retrieval.

107
MCQhard

An AI application uses LangChain's LCEL with the | operator to compose a chain: prompt | model | output_parser. During testing, the developer notices that the output_parser is not receiving the expected input format from the model. What is the most likely cause?

A.The | operator requires all components to have the same input/output types
B.The prompt is not correctly formatting the input for the model
C.The output_parser is expecting a string, but the model returns an AIMessage object
D.The model's streaming mode is enabled, causing the output to be streamed as chunks
AnswerC

Many LangChain models return structured message objects; if the parser expects a raw string, it will fail unless a StrOutputParser is used.

Why this answer

In LangChain's LCEL, the `|` operator passes the output of one component as input to the next. A typical LLM model invocation returns an `AIMessage` object (or `LLMResult`), not a plain string. The `output_parser` in this chain expects a string input (e.g., `StrOutputParser`), but receives an `AIMessage`, causing a type mismatch.

This is the most common cause of the described failure.

Exam trap

The 1Z0-1127 exam often tests the misconception that the `|` operator enforces strict type consistency across all components, when in reality it only passes outputs as inputs, and type mismatches (like `AIMessage` vs. string) are the actual failure point.

How to eliminate wrong answers

Option A is wrong because the `|` operator does not require all components to have the same input/output types; it simply passes the output of one component as input to the next, and type compatibility is enforced at runtime. Option B is wrong because the prompt's formatting affects the input to the model, not the output from the model to the output_parser; the issue is downstream. Option D is wrong because streaming mode would cause the model to yield chunks (e.g., `AIMessageChunk` objects) rather than a single `AIMessage`, but the core problem remains a type mismatch, not the streaming behavior itself.

108
MCQmedium

A developer is building a code generation assistant. The model occasionally produces syntactically correct but semantically wrong code. Which technique directly addresses semantic correctness?

A.Expand the token vocabulary
B.Lower the temperature to 0
C.Apply RLHF using human-validated code examples
D.Increase beam search width
AnswerC

RLHF directly optimizes for desired outcomes like semantic correctness.

Why this answer

Reinforcement Learning from Human Feedback (RLHF) directly addresses semantic correctness by fine-tuning the model using human-validated code examples. This process teaches the model to prefer outputs that are not only syntactically valid but also logically correct and aligned with developer intent, reducing semantically wrong code generation.

Exam trap

Oracle often tests the misconception that adjusting decoding parameters (temperature, beam search) or tokenization can fix semantic errors, when in fact only training techniques like RLHF that incorporate human feedback can directly improve semantic correctness.

How to eliminate wrong answers

Option A is wrong because expanding the token vocabulary increases the range of tokens the model can generate but does not improve the model's ability to reason about code semantics or correct logical errors. Option B is wrong because lowering the temperature to 0 makes the model deterministic, reducing randomness but not fixing underlying semantic misunderstandings; it may still produce the same incorrect logic repeatedly. Option D is wrong because increasing beam search width explores more candidate sequences during decoding, which can improve syntactic fluency but does not directly address semantic correctness or logical accuracy.

109
MCQmedium

When using an LLM for code generation, a developer notices the model occasionally produces syntactically incorrect code. Which approach is most likely to reduce syntax errors while still allowing diverse output?

A.Use top-k sampling with k=100
B.Increase the context window size
C.Set temperature to 0 and use greedy decoding
D.Increase the temperature to 1.5
AnswerC

Greedy decoding (temperature=0) is deterministic and lowers syntax errors.

Why this answer

Lowering temperature reduces randomness, making outputs more deterministic and less prone to errors, while still allowing some variation.

110
Multi-Selecthard

A data scientist is using the OCI Generative AI Playground to test a model for a text generation task. They want to control the output to be more focused and avoid repeating the same phrases. Which THREE parameter adjustments should they consider?

Select 3 answers
A.Increase the presence penalty
B.Increase the temperature
C.Increase the max tokens
D.Increase the frequency penalty
E.Decrease the temperature
AnswersA, D, E

Encourages the model to talk about new topics, reducing repetition.

Why this answer

Temperature controls randomness; frequency penalty reduces repetition of words/phrases; presence penalty encourages new topics.

111
MCQmedium

A company is using OCI Generative AI service to generate product descriptions. They notice that the model sometimes generates biased content. Which approach should they take to mitigate bias while maintaining performance?

A.Fine-tune the model with a balanced, curated dataset that reduces bias
B.Use a larger model without fine-tuning
C.Post-process outputs to remove biased phrases
D.Switch to a different pre-built model from OCI
AnswerA

Fine-tuning allows adjusting model behavior.

Why this answer

Fine-tuning with a balanced, curated dataset directly addresses the root cause of bias by adjusting the model's internal weights to reduce reliance on biased patterns in the original training data. This approach preserves the model's generative performance for product descriptions because it retrains only on domain-specific, unbiased examples, unlike post-processing which merely filters outputs without correcting the underlying model behavior.

Exam trap

Oracle often tests the misconception that post-processing or model swapping is a sufficient fix for bias, when in fact only fine-tuning or retraining can address the root cause without sacrificing performance.

How to eliminate wrong answers

Option B is wrong because using a larger model without fine-tuning does not inherently reduce bias; larger models can amplify existing biases from their training data and may even introduce new biases due to increased complexity. Option C is wrong because post-processing outputs to remove biased phrases is a superficial fix that can degrade performance by altering the natural language flow and may miss subtle or context-dependent biases, while also adding latency. Option D is wrong because switching to a different pre-built model from OCI merely changes the source of bias without guaranteeing a reduction; all pre-built models inherit biases from their training corpora, and the new model may perform worse on the specific product description task.

112
MCQmedium

An application needs to generate embeddings for customer reviews to cluster them by sentiment. Which input type should be specified in the Embedding API call?

A.clustering
B.search_document
C.search_query
D.classification
AnswerA

The clustering input type tailors embeddings for clustering algorithms.

Why this answer

For clustering tasks, the 'clustering' input type optimizes the embeddings for that purpose. The other types are for different tasks.

113
MCQhard

An organization is deploying a generative AI model that requires GPU acceleration for inference. They are using OCI Data Science Model Deployment. The model is expected to handle variable traffic, with occasional spikes. Which scaling option should they configure to ensure cost-efficiency and responsiveness?

A.Use OCI Generative AI on-demand API with a serverless endpoint
B.Use CPU-only instances and rely on batching
C.Configure autoscaling with a minimum of 1 and maximum of 10 GPU instances
D.Deploy with a fixed number of 1 GPU instance
AnswerC

Autoscaling matches capacity to load.

Why this answer

Autoscaling with a minimum of 1 and maximum of 10 GPU instances allows the deployment to dynamically adjust capacity in response to variable traffic and spikes, ensuring cost-efficiency by scaling down during low demand and responsiveness by scaling up during peaks. OCI Data Science Model Deployment supports autoscaling policies that can be configured with GPU shapes, making it the optimal choice for a generative AI model requiring GPU acceleration.

Exam trap

Oracle often tests the misconception that serverless endpoints (Option A) are always the best for variable traffic, but candidates must recognize that OCI Generative AI on-demand API is a pre-built model service, not a custom model deployment, and thus does not support custom GPU scaling policies.

How to eliminate wrong answers

Option A is wrong because OCI Generative AI on-demand API with a serverless endpoint is a managed service for accessing pre-built models, not a custom model deployment, and it does not provide the granular control over GPU instances needed for the organization's own model. Option B is wrong because CPU-only instances lack the GPU acceleration required for inference of generative AI models, leading to unacceptable latency and throughput, even with batching. Option D is wrong because a fixed number of 1 GPU instance cannot handle variable traffic with occasional spikes, resulting in either over-provisioning during low traffic (wasting cost) or under-provisioning during spikes (causing performance degradation or failures).

114
MCQmedium

A developer receives the above error when querying a RAG application. What is the most likely cause and recommended action?

A.The API rate limit has been exceeded; wait for the retry period and implement exponential backoff.
B.The model is deprecated; update to the latest model.
C.The endpoint URL is incorrect; verify the OCI region endpoint.
D.The request payload is malformed; check the input format.
AnswerA

429 means rate limit.

Why this answer

The 429 (Too Many Requests) error indicates the API rate limit has been exceeded. In OCI Generative AI services, rate limits are enforced per tenancy and per region; the recommended action is to wait for the retry-after period and implement exponential backoff to avoid overwhelming the service.

Exam trap

Oracle often tests the distinction between HTTP status codes (429 vs 400 vs 404 vs 410) to see if candidates can map the exact error to the correct cause rather than guessing based on general troubleshooting.

How to eliminate wrong answers

Option B is wrong because a model deprecation would return a 404 or 410 error, not a 429. Option C is wrong because an incorrect endpoint URL would result in a 404 or connection timeout, not a rate-limit error. Option D is wrong because a malformed payload would produce a 400 Bad Request error, not a 429.

115
Multi-Selecthard

Which THREE steps are required to deploy a custom generative AI model using OCI Data Science Model Deployment?

Select 3 answers
A.Fine-tune the model using OCI Generative AI service
B.Create a model artifact (e.g., pickle, ONNX) with inference code
C.Register the model in OCI Generative AI service
D.Upload the model artifact to an OCI Object Storage bucket
E.Create a model deployment using the OCI Data Science Model Deployment service
AnswersB, D, E

Model must be packaged with dependencies for serving.

Why this answer

Deploying a custom generative AI model via OCI Data Science Model Deployment requires packaging the model and its inference code into a standardized artifact format (e.g., pickle, ONNX). This artifact is the core input that the deployment runtime loads to serve predictions, making it an essential step in the workflow.

Exam trap

The trap here is confusing the OCI Generative AI service's managed model lifecycle (fine-tuning and registration) with the custom model deployment workflow in OCI Data Science, leading candidates to incorrectly select steps that belong to the managed service rather than the custom deployment pipeline.

116
Multi-Selecthard

You need to build a RAG pipeline using LangChain and OCI Generative AI. The pipeline must load PDF documents, split them into chunks, embed them, store in a vector store, and retrieve relevant chunks at query time. Which THREE components are essential? (Choose THREE.)

Select 3 answers
A.RecursiveCharacterTextSplitter
B.PDFLoader
C.OCIGenAIEmbeddings
D.CSVLoader
E.Chroma
AnswersA, B, C

Text splitter is needed to split large documents into manageable chunks.

Why this answer

A is correct because RecursiveCharacterTextSplitter is the standard text splitter in LangChain for splitting documents into chunks while preserving semantic boundaries (e.g., paragraphs, sentences). It recursively splits on different separators (like newlines, spaces) to maintain context, which is critical for effective retrieval in a RAG pipeline.

Exam trap

The 1Z0-1127 exam often tests the distinction between essential components and optional implementations — candidates mistakenly select Chroma (a specific vector store) as essential, when the core requirement is only that embeddings are stored and retrieved, not that a particular store like Chroma must be used.

117
MCQmedium

A machine learning engineer is preparing a dataset for fine-tuning a model in OCI Generative AI. The dataset consists of customer support conversations with questions and desired answers. What is the required format for the training data?

A.CSV file with columns 'input' and 'output'
B.Parquet file with 'text' and 'label' columns
C.Plain text file with examples separated by blank lines
D.JSONL file with 'prompt' and 'completion' fields per line
AnswerD

JSONL is the supported format with prompt/completion pairs.

Why this answer

OCI Generative AI expects a JSONL file where each line is a JSON object with 'prompt' and 'completion' fields. CSV, Parquet, and text files are not supported for fine-tuning.

118
Multi-Selecteasy

Which TWO of the following are sources of training data for fine-tuning a model in OCI Generative AI?

Select 2 answers
A.OCI Object Storage bucket
B.OCI File Storage
C.OCI Database
D.Local file uploaded through the OCI Console
E.OCI Streaming
AnswersA, D

Object Storage is a common source for large datasets.

Why this answer

OCI Object Storage is a supported source for training data when fine-tuning models in OCI Generative AI. The service can directly access data stored in Object Storage buckets via service-level integrations, allowing you to reference large datasets without local uploads.

Exam trap

Oracle often tests the distinction between storage services that are directly integrated with AI fine-tuning (Object Storage) versus general-purpose storage or data services (File Storage, Database, Streaming) that require additional middleware or are not supported at all.

119
MCQmedium

A company is building a RAG application using OCI Generative AI and OCI Search with OpenSearch. Users report that the responses from the LLM are not relevant to the queries, even though the document chunks seem appropriate. What is the most likely cause?

A.The embedding model is not suited for the domain.
B.Reranking is not enabled in the OpenSearch query.
C.The top K value is set too high.
D.The chunk size is too small, causing loss of context.
AnswerB

Reranking reorders search results for better relevance, significantly impacting quality.

Why this answer

Enabling reranking improves the relevance of retrieved documents by reordering them based on semantic match with the query. Without reranking, the initial vector search results may not be optimally ordered.

120
MCQeasy

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

A.Chain-of-thought prompting
B.Tree-of-thought prompting
C.Self-consistency
D.Zero-shot prompting
AnswerA

Chain-of-thought prompts the model to produce intermediate reasoning steps.

Why this answer

Chain-of-thought prompting explicitly instructs the model to think step by step, improving reasoning accuracy.

121
MCQmedium

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?

A.Retrieve and Generate
B.Reason and Act
C.Refine and Aggregate
D.Generate and Evaluate
AnswerB

ReAct interleaves reasoning traces with actions (tool use) to solve tasks.

Why this answer

ReAct stands for Reason + Act. The model first reasons about the question, then decides on an action (e.g., a tool call) to gather information, iterating until a final answer is reached.

122
MCQhard

A company is deploying OCI Generative AI for a chatbot that must answer customer queries within 500ms. They choose a dedicated AI cluster but observe 2-second latency. What is the most likely cause?

A.The endpoint is not cached
B.The cluster is configured for batch inference
C.The request includes too many tokens
D.The model is too large for the cluster
AnswerB

Batch inference mode processes requests in batches, increasing latency significantly.

Why this answer

A dedicated AI cluster in OCI Generative AI is designed for real-time inference with low latency. When the cluster is configured for batch inference, it processes requests in batches rather than individually, which introduces queuing and processing delays that can easily exceed the 500ms target. This explains the observed 2-second latency, as batch mode prioritizes throughput over per-request response time.

Exam trap

The trap here is that candidates may assume any latency issue is due to model size or token limits, but Oracle often tests the distinction between real-time and batch inference configurations in dedicated clusters.

How to eliminate wrong answers

Option A is wrong because caching is not a feature of OCI Generative AI endpoints; the latency issue stems from inference processing, not from cache misses. Option C is wrong because while excessive tokens can increase latency, the 2-second delay is more consistent with batch processing overhead than with token count alone, and the cluster should handle typical token limits within the 500ms target. Option D is wrong because the model size is fixed when the dedicated cluster is provisioned; if the model were too large, the cluster would fail to deploy or would show errors, not simply exhibit high latency.

123
MCQmedium

A company wants to build a RAG-based assistant that answers queries using documents stored in OCI Object Storage. Which OCI Generative AI service should they use?

A.OCI Generative AI Playground
B.OCI Generative AI Agents
C.OCI Generative AI Embedding API
D.OCI Generative AI Chat API
AnswerB

Agents is a managed RAG service that integrates with Object Storage and provides a question-answering interface.

Why this answer

OCI Generative AI Agents provides a managed RAG service that can ingest documents from Object Storage and answer questions based on the ingested knowledge base.

124
Multi-Selecteasy

Which TWO are best practices for building a RAG application on OCI? (Choose two.)

Select 2 answers
A.Use a vector database such as OCI OpenSearch with ANN indexes for storing embeddings.
B.Generate embeddings for documents at query time to ensure freshness.
C.Pre-index the documents and update the index periodically to reflect new content.
D.Store the source documents only in OCI Object Storage and retrieve them at query time using full-text search.
E.Use a different embedding model for documents and queries to capture distinct semantics.
AnswersA, C

ANN indexes enable fast similarity search.

Why this answer

OCI OpenSearch with Approximate Nearest Neighbor (ANN) indexes is a best practice for vector storage and retrieval in RAG applications. ANN indexes enable efficient similarity search over high-dimensional embeddings, which is essential for retrieving relevant context from large document collections at low latency.

Exam trap

Oracle often tests the misconception that real-time embedding generation or full-text search can substitute for precomputed vector indexes in RAG, when in practice latency and semantic alignment requirements make pre-indexing and ANN search mandatory.

125
Multi-Selectmedium

Which TWO of the following are valid ways to consume OCI Generative AI models?

Select 2 answers
A.Using the OCI Console chat interface
B.Using the OCI CLI
C.Using the OCI Generative AI REST API
D.Using OCI SDK for Python
E.Using OCI Data Flow
AnswersA, C

The console provides a chat UI to interact with models.

Why this answer

A is correct because the OCI Console provides a built-in chat interface that allows users to interact directly with Generative AI models without writing any code. This interface is part of the OCI Generative AI service's web-based console, enabling prompt testing and model evaluation through a graphical user interface.

Exam trap

Oracle often tests the distinction between direct consumption methods (like the console and REST API) versus indirect tools (like SDKs and CLI) that require additional layers of abstraction or are not designed for model inference.

126
Multi-Selecthard

An enterprise needs to deploy a custom fine-tuned model for real-time inference with strict latency requirements. They also need to manage costs by paying only for usage. Which three steps are required to achieve this? (Select THREE)

Select 3 answers
A.Use the on-demand token-based inference on shared infrastructure
B.Create an endpoint using InferenceClient to point to the dedicated cluster
C.Delete the fine-tuning job after deployment to save costs
D.Provision a Dedicated AI Cluster with sufficient model units
E.Host the fine-tuned model on the Dedicated AI Cluster
AnswersB, D, E

An endpoint enables API calls to the model hosted on the cluster.

Why this answer

To deploy a custom model for dedicated low-latency inference, you need a Dedicated AI Cluster, host the model on it, and create an endpoint to access it. Using shared infrastructure does not guarantee low latency. Deletion of cluster is not needed.

On-demand tokens are for pay-as-you-go, not dedicated clusters.

127
Multi-Selecthard

A team is fine-tuning a generative AI model on OCI using a custom dataset. The training job fails with an out-of-memory error. Which THREE actions should they take to resolve this issue?

Select 3 answers
A.Use gradient accumulation to simulate larger batch sizes.
B.Increase the learning rate to speed up training.
C.Use a larger GPU shape with more memory.
D.Reduce the batch size.
E.Increase the number of training epochs.
AnswersA, C, D

Gradient accumulation allows effective large batches with less memory.

Why this answer

Gradient accumulation allows the model to simulate the effect of a larger batch size without increasing memory usage. Instead of computing gradients over a single large batch, the optimizer accumulates gradients over several smaller batches before performing a weight update. This technique effectively decouples the batch size from memory consumption, enabling training on large models or high-resolution inputs that would otherwise cause an out-of-memory error.

Exam trap

Oracle often tests the misconception that increasing the learning rate or epochs can resolve memory errors, when in fact only actions that directly reduce per-step memory footprint (like reducing batch size, using gradient accumulation, or upgrading to a larger GPU) are effective.

128
Multi-Selectmedium

A data scientist is evaluating an LLM for a summarization task. They have a set of human-written reference summaries. Which THREE metrics are commonly used to evaluate summarization quality? (Choose three.)

Select 3 answers
A.BLEU
B.Cosine similarity
C.Perplexity
D.BERTScore
E.ROUGE
AnswersA, D, E

BLEU is precision-oriented and often used alongside ROUGE.

Why this answer

ROUGE, BLEU, and BERTScore are all used for summarization evaluation. Perplexity measures model confidence, and cosine similarity is for embedding comparison.

129
MCQeasy

A developer wants to integrate OCI Generative AI into a web application. Which API authentication method is recommended for programmatic access?

A.Pre-authenticated request
B.API key-based signing
C.OAuth 2.0 client credentials
D.Username and password in the header
AnswerB

OCI uses API signing (based on RSA keys) for all REST API calls.

Why this answer

OCI APIs require request signing using an API signing key (an RSA key pair) for programmatic access. The developer must generate a key pair, upload the public key to the OCI console, and then use the private key to sign each HTTP request using the OCI Signature Version 1 algorithm (based on RFC 2104 HMAC-SHA256). This ensures authentication without transmitting secrets over the wire.

Exam trap

The trap here is that candidates may confuse OAuth 2.0 (common in other cloud providers like AWS or Azure) with OCI's requirement for API key-based signing, leading them to select OAuth 2.0 client credentials.

How to eliminate wrong answers

Option A is wrong because pre-authenticated requests (PARs) are used for temporary access to specific OCI Object Storage buckets or objects, not for authenticating API calls to OCI Generative AI services. Option C is wrong because OCI does not support OAuth 2.0 client credentials for direct API authentication; OCI uses IAM-based API signing keys or instance principals for programmatic access. Option D is wrong because sending username and password in the header is a basic authentication scheme that is insecure and not supported by OCI APIs; OCI requires cryptographic request signing.

130
Multi-Selectmedium

A developer is building a text generation application using OCI Generative AI and wants to control the creativity of the output. Which THREE sampling parameters can they adjust? (Choose three.)

Select 3 answers
A.Top-k
B.Top-p
C.Max tokens
D.Temperature
E.Beam search width
AnswersA, B, D

Top-k limits the sampling pool to the k most likely tokens, controlling diversity.

Why this answer

Temperature scales the logits before softmax. Top-k limits the sampling pool to the k most likely tokens. Top-p (nucleus) sampling selects from tokens whose cumulative probability exceeds p.

Beam search is a decoding strategy (not a sampling parameter), max tokens controls output length, and frequency penalty reduces repetition.

131
MCQmedium

A data scientist is fine-tuning a model using T-Few in OCI Generative AI. They have prepared a dataset with prompt/completion pairs. Which file format is required for the training data upload?

A.Plain text file with one prompt-completion pair per line separated by a tab
B.Parquet file with a 'text' column containing concatenated prompt and completion
C.CSV with columns 'input' and 'output'
D.JSONL with each line containing 'prompt' and 'completion' keys
AnswerD

The training dataset must be a JSONL file where each line is a JSON object with 'prompt' and 'completion' fields.

Why this answer

OCI Generative AI fine-tuning expects training data in JSONL format with specific fields.

132
Multi-Selecteasy

A developer is troubleshooting an OCI Generative AI inference request that returns a 400 Bad Request error. Which three common causes could result in this error? (Choose three.)

Select 3 answers
A.Incorrect endpoint URL
B.Invalid API key in the request header
C.Missing required parameters in the request body
D.Exceeding the model's maximum token limit
E.Network connectivity issues
AnswersA, C, D

A wrong URL may cause the request to be malformed or routed incorrectly, resulting in a 400.

Why this answer

A 400 Bad Request error indicates the server cannot process the request due to client-side issues. An incorrect endpoint URL (A) is a common cause because the request is sent to the wrong OCI Generative AI service endpoint (e.g., using a chat endpoint for a text generation model), leading to a malformed request that the server rejects. Missing required parameters (C) in the request body, such as 'compartmentId' or 'modelId', also triggers a 400 error as the API cannot validate or process the inference without them.

Exceeding the model's maximum token limit (D) results in a 400 error because the input or output exceeds the model's configured token capacity, which the API validates before processing.

Exam trap

Oracle often tests the distinction between HTTP 4xx status codes, where candidates confuse 400 Bad Request (client-side malformed request) with 401 Unauthorized (invalid credentials) or 403 Forbidden (insufficient permissions), leading them to incorrectly select invalid API key as a cause for a 400 error.

133
MCQmedium

A financial services firm needs to ensure that only members of the 'DataScientists' group can use OCI Generative AI resources in the 'prod' compartment. Which IAM policy statement should be applied?

A.Allow group DataScientists to manage genai-family in tenancy
B.Allow group DataScientists to use ai-services in compartment prod
C.Allow group DataScientists to manage genai-family in compartment prod
D.Allow group DataScientists to read genai-family in compartment prod
AnswerC

This policy grants the group access to all GenAI resources in the prod compartment.

Why this answer

The 'manage' verb on the 'genai-family' resource type grants full access (including use) to OCI Generative AI resources, and scoping the policy to 'compartment prod' restricts the permission to only that compartment. The requirement is to allow the 'DataScientists' group to use (which implies manage-level access for creating and running inference jobs) Generative AI resources specifically in the 'prod' compartment, not the entire tenancy.

Exam trap

The trap here is that candidates often confuse the generic 'ai-services' resource type (which exists for other AI services like OCI AI Vision or OCI Language) with the specific 'genai-family' resource type required for OCI Generative AI, leading them to select Option B.

How to eliminate wrong answers

Option A is wrong because it grants access to 'genai-family in tenancy', which would allow the group to manage Generative AI resources across all compartments, violating the requirement to restrict access to only the 'prod' compartment. Option B is wrong because 'ai-services' is not a valid resource type for OCI Generative AI; the correct resource type is 'genai-family', and using 'ai-services' would match no resources, effectively granting no access. Option D is wrong because the 'read' verb only allows viewing metadata and listing resources, but does not permit using (creating, updating, or invoking) Generative AI models, which is required for the DataScientists to actually work with the AI services.

134
MCQeasy

A user wants to quickly test different prompts and parameters (temperature, max tokens) with various OCI Generative AI models without writing any code. Which tool should they use?

A.The InferenceClient SDK in Python
B.OCI CLI with generative-ai commands
C.The OCI Generative AI Playground
D.OCI Cloud Shell
AnswerC

The Playground is the no-code interface for experimenting with models.

Why this answer

The OCI Generative AI Playground provides an interactive web UI to test models and adjust parameters.

135
MCQmedium

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?

A.Increase temperature to get varied outputs and choose the most common one
B.Use a different model for each prompt version
C.Run both prompts on a single example and pick the better-looking output
D.Conduct an A/B test with a diverse set of inputs and compare outputs against established evaluation criteria
AnswerD

A/B testing with diverse inputs and clear criteria yields robust results.

Why this answer

A/B testing involves running both prompt variants on the same inputs and comparing outputs against human-annotated ground truth. This provides quantitative evidence of which prompt performs better.

136
MCQeasy

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

A.Set the temperature to 0 to ensure deterministic output
B.Set the system prompt to 'You are a financial expert. Always respond with a formal, authoritative tone.'
C.Use few-shot examples of formal responses in the user message
D.Include the instruction 'Be formal' in the user message
AnswerB

The system prompt is designed to set the overall behavior, persona, and tone for the entire conversation.

Why this answer

Setting a system prompt (or preamble) instructs the model on its role, tone, and constraints before the user message. This is the standard way to enforce persona and tone consistently.

137
MCQhard

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

A.Generate one chain-of-thought reasoning path and use it as the final answer
B.Generate multiple independent reasoning paths and aggregate the final answers by majority voting
C.Use a single forward pass with a low temperature setting
D.Branch into multiple reasoning trees and prune less promising branches
AnswerB

Correct: self-consistency uses multiple paths and voting.

Why this answer

Self-consistency generates multiple reasoning paths (e.g., with higher temperature) and selects the most consistent answer by majority vote, improving reliability.

138
MCQmedium

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?

A.Train a custom model from scratch on the policy documents each month
B.Fine-tune a base LLM on the policy documents monthly
C.Use a larger foundation model with a longer context window and paste all documents into each prompt
D.Use Retrieval-Augmented Generation (RAG) with the policy documents indexed in a vector store
AnswerD

RAG retrieves relevant document chunks at query time, ensuring the chatbot always answers from the latest uploaded documents without any model retraining.

Why this answer

RAG (Retrieval-Augmented Generation) allows the LLM to retrieve relevant document sections at inference time, so knowledge stays current without retraining. The other options either require expensive retraining for each update or lack document grounding.

139
MCQhard

Your organization has deployed a generative AI model for a multilingual translation service on OCI Model Deployment. The model is a 13B parameter transformer hosted on a single VM.GPU.A100.1 shape with 2 replicas. Recently, the service experiences intermittent timeouts when a burst of requests arrives. You have enabled autoscaling based on CPU utilization, but the scaling is too slow. After investigation, you find that the model inference time is highly variable due to different sequence lengths. You need to ensure the service can handle sudden spikes without timeouts. Which solution should you implement?

A.Implement a request queue (e.g., OCI Queue) to buffer requests and process them asynchronously
B.Increase the maximum number of replicas and prewarm additional replicas before expected traffic
C.Reduce the model size to a 7B parameter model to decrease inference time
D.Use autoscaling based on the number of messages in the request queue
AnswerA

Queuing decouples traffic spikes from the model, preventing timeouts.

Why this answer

Implementing a request queue (e.g., OCI Queue) decouples request ingestion from processing, allowing the service to buffer bursts of requests and process them asynchronously. This prevents timeouts by smoothing out the variable inference times caused by differing sequence lengths, as the queue absorbs spikes and the model processes at its own pace. Autoscaling based on CPU utilization is too slow for sudden spikes, but a queue provides immediate relief by not dropping requests.

Exam trap

The trap here is that candidates often assume autoscaling (option B or D) is sufficient for burst handling, but they overlook that autoscaling has inherent latency (minutes to provision new replicas), whereas a request queue provides immediate buffering to absorb spikes without dropping requests.

How to eliminate wrong answers

Option B is wrong because increasing the maximum number of replicas and prewarming them only helps if the scaling mechanism is fast enough to react; it does not address the root cause of variable inference times and still relies on autoscaling, which is too slow for sudden bursts. Option C is wrong because reducing the model size to a 7B parameter model would degrade translation quality and does not solve the intermittent timeout issue caused by variable sequence lengths; it might reduce average inference time but not eliminate spikes. Option D is wrong because autoscaling based on the number of messages in the request queue would still be reactive and subject to latency in provisioning new replicas, and it does not prevent timeouts during the scaling delay; the queue itself is the primary solution to buffer requests.

140
Multi-Selectmedium

A data scientist is evaluating an LLM's performance on a summarization task. Which TWO metrics are most suitable for this evaluation?

Select 2 answers
A.Perplexity
B.Human evaluation
C.BLEU
D.ROUGE
E.BERTScore
AnswersD, E

ROUGE is specifically designed for summarization evaluation, measuring n-gram overlap and recall.

Why this answer

ROUGE measures recall-oriented overlap between generated and reference summaries, suitable for summarization. BERTScore uses semantic similarity via embeddings. BLEU is for translation, perplexity for language modeling, and human evaluation is qualitative.

141
MCQeasy

Refer to the exhibit. A user in group GenAIUsers reports that they cannot call the OCI Generative AI API. What is the most likely issue?

A.The policy statement is missing the 'inspect' verb.
B.The policy is in INACTIVE state.
C.The compartment ID in the policy does not match the user's compartment.
D.The user is not in the group GenAIUsers.
AnswerC

The policy applies to 'ExampleCompartment' by name, but the user may be in a different compartment. The compartment OCID in the policy header does not match the compartment name in the statement, indicating a mismatch.

Why this answer

The policy is scoped to a specific compartment ID, but the user's compartment does not match that ID. For OCI IAM policies to grant access to resources like the Generative AI API, the policy must be written for the compartment where the resource resides or where the user operates. Since the user is in a different compartment, the policy does not apply, causing the API call to fail.

Exam trap

Oracle often tests the misconception that a user's group membership is the sole factor for policy applicability, ignoring that the compartment scope in the policy statement must match the user's compartment or resource compartment for the policy to take effect.

How to eliminate wrong answers

Option A is wrong because the 'inspect' verb is not required for calling the Generative AI API; the policy uses 'allow group GenAIUsers to manage generative-ai-family in compartment ...', which includes all verbs (inspect, read, use, manage) and is sufficient. Option B is wrong because the exhibit shows the policy is in ACTIVE state, not INACTIVE; an INACTIVE policy would be explicitly marked and would not enforce any rules. Option D is wrong because the user reports being in group GenAIUsers, and the policy targets that group; if the user were not in the group, the error would be an authorization failure, but the issue here is compartment mismatch.

142
Multi-Selectmedium

Which THREE factors should be considered when designing a chunking strategy for a RAG application?

Select 3 answers
A.Desired granularity of retrieval
B.Number of GPUs available
C.Database indexing method
D.Document structure
E.Embedding model's maximum input tokens
AnswersA, D, E

Smaller chunks allow more precise retrieval; larger chunks provide more context.

Why this answer

The desired granularity of retrieval determines how much context is returned per chunk. Fine-grained chunks (e.g., sentences) improve precision for specific answers, while coarse chunks (e.g., paragraphs) provide broader context. This directly impacts the relevance and completeness of the retrieved passages in a RAG pipeline.

Exam trap

A common misconception is that hardware resources like GPUs influence data preprocessing decisions, but chunking is purely a data design choice independent of compute capacity.

143
MCQmedium

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?

A.Top-k
B.Frequency penalty
C.Stop sequences
D.Presence penalty
AnswerB

Correct: frequency penalty directly reduces repetition of the same tokens.

Why this answer

Frequency penalty reduces the model's tendency to repeat tokens or phrases by penalizing tokens that have already appeared in the generated text.

144
Multi-Selectmedium

A team is planning to use OCI Generative AI to summarize large documents. They need to choose between on-demand (pay-as-you-go) and dedicated cluster pricing. Which THREE factors should they consider when deciding? (Choose three.)

Select 3 answers
A.Throughput requirements and consistency
B.Latency sensitivity of the application
C.Model accuracy on summarization tasks
D.Data residency requirements
E.Cost predictability and budget constraints
AnswersA, B, E

Dedicated clusters guarantee throughput; on-demand is shared and may throttle.

Why this answer

Latency sensitivity, throughput consistency, and cost predictability are key factors. On-demand is variable cost with potential contention; dedicated offers fixed cost with reserved capacity. Model accuracy does not differ based on pricing model, and data residency is a compliance factor but not directly tied to pricing model choice.

145
MCQmedium

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

A.Only task instruction: 'Write a poem'
B.Task instruction: 'Write a poem' and output format specification: 'Use ABAB rhyme scheme'
C.Task instruction: 'Write a poem in ABAB rhyme scheme' and an example stanza
D.Task instruction: 'Write a poem' with a few-shot example of an ABAB poem
AnswerA

Without specifying the rhyme scheme or providing examples, the model will likely default to free verse or a common pattern, not ABAB.

Why this answer

Providing only a task instruction ('Write a poem') without specifying the rhyme scheme or giving examples leaves the model to choose its own structure. The other options give explicit formatting or examples.

146
Multi-Selectmedium

Which TWO actions should be taken to monitor model drift in a deployed generative AI model? (Select TWO)

Select 2 answers
A.Compare inference statistics over time
B.Retrain the model weekly
C.Use OCI Data Labeling for new data
D.Set up alerts on accuracy metrics
E.Deploy multiple model versions
AnswersA, D

Tracking statistics like output length or sentiment can indicate drift.

Why this answer

Comparing inference statistics over time (Option A) is correct because model drift in generative AI is detected by monitoring changes in output distributions, token probabilities, or response patterns relative to baseline metrics. This allows you to identify when the model's behavior deviates from expected performance due to shifts in input data or underlying patterns.

Exam trap

Oracle often tests the distinction between monitoring actions (detecting drift) and remediation actions (retraining, labeling, deploying versions), so candidates mistakenly select retraining or labeling as monitoring steps.

147
Multi-Selecteasy

Which TWO of the following are valid approaches to serve a RAG application in OCI with low latency?

Select 2 answers
A.Pre-compute embeddings and answers for all possible questions.
B.Deploy the vector store on multiple regions to reduce network latency.
C.Increase the chunk size to reduce the number of retrievals.
D.Implement a caching layer for frequently asked questions.
E.Use an LLM that supports streaming response for faster user feedback.
AnswersD, E

Caching avoids redundant retrieval and generation, reducing latency for common queries.

Why this answer

Implementing a caching layer for frequently asked questions reduces redundant LLM invocations and vector store queries, directly lowering latency for repeated queries. This approach leverages in-memory caches like Redis or Memcached to serve precomputed responses, bypassing the retrieval and generation pipeline for cached items.

Exam trap

Oracle often tests the misconception that increasing chunk size or pre-computing all answers are viable latency solutions, when in fact they introduce precision loss or impracticality, while caching and streaming are the architecturally sound approaches for low-latency RAG serving.

148
MCQhard

A generative AI model deployed on OCI Model Deployment is experiencing high tail latency. The model is a large language model that processes variable-length input sequences. Profiling shows that inference time varies significantly: short inputs (100 tokens) take 100ms, while long inputs (2000 tokens) take 2 seconds. The application requires consistent low latency (<500ms) for most requests. You want to reduce the variance in inference time without major changes to the model architecture. Which technique should you apply?

A.Implement dynamic batching that groups requests of similar lengths together before inference
B.Increase the number of replicas to distribute the load evenly
C.Reduce the model size by removing layers or using a smaller version
D.Deploy multiple model endpoints for different length ranges and route requests accordingly
AnswerA

Grouping by length reduces the overhead from padding and stabilizes inference time.

Why this answer

Dynamic batching groups requests of similar input lengths together, which reduces the variance in inference time by ensuring that each batch processes tokens of comparable size. This minimizes the padding overhead and keeps the per-request latency more predictable, directly addressing the high tail latency caused by variable-length sequences without altering the model architecture.

Exam trap

The trap here is that candidates often confuse horizontal scaling (Option B) with latency variance reduction, but scaling replicas does not address the root cause of variable inference time due to sequence length differences.

How to eliminate wrong answers

Option B is wrong because increasing the number of replicas distributes load but does not reduce the variance in inference time for individual requests; it may even increase tail latency due to additional network hops and synchronization overhead. Option C is wrong because reducing model size (e.g., removing layers or using a smaller version) constitutes a major architectural change, which the question explicitly prohibits, and it would degrade model quality. Option D is wrong because deploying multiple endpoints for different length ranges adds operational complexity and does not inherently reduce variance; it merely separates traffic, but each endpoint still processes variable-length inputs with high tail latency unless combined with dynamic batching.

149
MCQeasy

A developer receives the above error when trying to send a request to a model endpoint. What is the most likely reason?

A.The endpoint was deleted by an administrator
B.The network connection to OCI is down
C.The API key is invalid
D.The model is still being deployed
AnswerA

The specific error indicates the endpoint is deleted.

Why this answer

The error message indicates that the model endpoint is not found. In OCI Generative AI, when an administrator deletes an endpoint, subsequent requests to that endpoint's URL return a 404 Not Found error. This is the most likely reason because the endpoint resource no longer exists in the tenancy, and the request cannot be routed to any model.

Exam trap

The trap here is that candidates often confuse a 404 Not Found with network or authentication issues, but the specific error code directly points to the resource (endpoint) not existing, which is most commonly caused by deletion.

How to eliminate wrong answers

Option B is wrong because a network connection issue to OCI would typically result in a timeout or connection refused error, not a 404 Not Found. Option C is wrong because an invalid API key would cause a 401 Unauthorized or 403 Forbidden error, not a 404. Option D is wrong because if the model is still being deployed, the endpoint would return a 503 Service Unavailable or a provisioning status error, not a 404.

150
MCQmedium

A data scientist is using the OCI Generative AI Playground to test a summarization model. They want to generate shorter summaries and avoid repetitive phrasing. Which parameter adjustments should they make?

A.Decrease temperature and increase frequency penalty
B.Increase temperature and increase presence penalty
C.Set stop sequences and disable frequency penalty
D.Increase temperature and decrease frequency penalty
AnswerA

Lower temperature makes output more deterministic (focused summaries), and higher frequency penalty discourages repetition, achieving the goal.

Why this answer

Lowering temperature reduces randomness, increasing frequency penalty penalizes repeated tokens, and setting appropriate max tokens controls output length. Stop sequences define when generation stops, and presence penalty penalizes token presence overall.

Page 1

Page 2 of 11

Page 3

All pages