Courseiva

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

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

Page 2

Page 3 of 11

Page 4
151
MCQeasy

Which LangChain memory type stores the entire conversation history as a list of messages and is best for simple, short conversations?

A.ConversationTokenBufferMemory
B.ConversationSummaryMemory
C.ConversationBufferMemory
D.ConversationBufferWindowMemory
AnswerC

BufferMemory stores the complete list of messages.

Why this answer

ConversationBufferMemory stores the full history, making it suitable for short dialogues but not for long ones due to token limits.

152
MCQeasy

A startup wants to minimize costs when using OCI Generative AI service for a chatbot application that experiences sporadic usage. Which deployment strategy is most cost-effective?

A.Use a pre-built model with a dedicated endpoint
B.Use the serverless on-demand API without dedicated endpoints
C.Provision a dedicated endpoint for low latency
D.Deploy the model on OCI Compute with autoscaling
AnswerB

Pay per request, no idle costs.

Why this answer

Serverless on-demand pricing charges only for usage, ideal for sporadic workloads. Option A is wrong because dedicated endpoints incur hourly costs regardless of usage. Option C is wrong because pre-built models may also have per-request costs but dedicated endpoints are not cost-effective.

Option D is wrong because running models on OCI Compute adds management overhead and costs.

153
MCQeasy

A company has fine-tuned a custom Llama 3 model using OCI Data Science for a chatbot. They now need a production-grade inference endpoint with auto-scaling. Which OCI service should they use?

A.OCI Functions
B.OCI Data Science Model Deployment
C.OCI Generative AI Service
D.OCI Kubernetes Engine (OKE)
AnswerC

Correct: OCI Generative AI Service offers managed endpoints for fine-tuned models with scaling.

Why this answer

OCI Generative AI Service provides a fully managed, production-grade inference endpoint with built-in auto-scaling for custom models like fine-tuned Llama 3. It abstracts infrastructure management, offers serverless deployment, and integrates with OCI Data Science for model import, making it the ideal choice for a chatbot requiring scalable inference.

Exam trap

Oracle often tests the misconception that OCI Data Science Model Deployment is the correct choice for any custom model deployment, but the trap here is that for production-grade, auto-scaling inference of a fine-tuned LLM, OCI Generative AI Service is the managed, purpose-built service that eliminates the operational complexity of manual scaling and infrastructure management.

How to eliminate wrong answers

Option A is wrong because OCI Functions is a serverless compute service for event-driven, stateless code snippets (functions) with a maximum timeout of 5 minutes, not suitable for hosting large language models like Llama 3 that require persistent GPU resources and long-running inference. Option B is wrong because OCI Data Science Model Deployment is designed for deploying custom models but requires manual configuration of auto-scaling policies and does not natively support the optimized inference infrastructure (e.g., dedicated GPU clusters) that OCI Generative AI Service provides for fine-tuned models. Option D is wrong because OCI Kubernetes Engine (OKE) is a container orchestration service that demands significant operational overhead for managing GPU nodes, scaling, and model serving infrastructure, whereas the question specifies a need for a production-grade inference endpoint with auto-scaling, which OCI Generative AI Service delivers as a managed service.

154
MCQhard

A company has deployed a generative AI endpoint using a custom fine-tuned model. They observe that the endpoint is returning 429 (Too Many Requests) errors during business hours. They need to handle this without losing requests. What should they implement?

A.Increase the endpoint's max tokens limit.
B.Implement client-side retry with exponential backoff.
C.Reduce the number of concurrent requests from the application.
D.Use a dedicated AI cluster with higher capacity.
AnswerB

Retry with backoff is the standard approach to handle 429 errors.

Why this answer

Implementing client-side retry with exponential backoff is the standard approach to handle HTTP 429 (Too Many Requests) errors without losing requests. When the OCI Generative AI endpoint returns a 429 status, the client can automatically retry the request after a delay that increases exponentially, reducing the load on the endpoint while ensuring all requests are eventually processed. This pattern is recommended by OCI and follows best practices for rate-limited APIs, as it allows the system to recover from transient capacity issues without manual intervention.

Exam trap

Oracle often tests the misconception that increasing capacity (Option D) or reducing concurrency (Option C) is the primary solution for rate limiting, when in fact the correct answer is a client-side retry mechanism that preserves request integrity.

How to eliminate wrong answers

Option A is wrong because increasing the max tokens limit does not address rate limiting; it only affects the maximum length of generated text per request, not the number of requests allowed per time window. Option C is wrong because reducing concurrent requests from the application would prevent some requests from being sent, effectively losing them rather than handling them gracefully; the goal is to avoid losing requests, not to drop them. Option D is wrong because using a dedicated AI cluster with higher capacity is a costly and potentially over-provisioned solution that does not address the immediate need to handle existing 429 errors without losing requests; it also does not provide a mechanism to retry failed requests.

155
MCQmedium

A team is deploying an LLM-based application that must adhere to strict data residency requirements. All processing must occur within a specific OCI region. Which OCI service should they use to host and serve the LLM?

A.OCI Streaming
B.OCI Functions
C.OCI Object Storage
D.OCI Data Science with a model deployment endpoint
AnswerD

OCI Data Science provides model deployment capabilities within a chosen region, ensuring data stays in that region.

Why this answer

OCI Data Science with a model deployment endpoint is the correct choice because it provides a managed infrastructure for hosting and serving LLMs within a specific OCI region, ensuring all processing and data remain within that region to meet strict data residency requirements. The model deployment endpoint runs on dedicated compute resources in the chosen region, allowing low-latency inference while adhering to regional data boundaries.

Exam trap

The 1Z0-1127 exam often tests the distinction between storage, compute, and serving services, and the trap here is that candidates may confuse OCI Object Storage (which stores model artifacts) with the actual serving infrastructure needed to run inference, or assume OCI Functions can handle LLM workloads despite its stateless, memory-constrained design.

How to eliminate wrong answers

Option A is wrong because OCI Streaming is a real-time data ingestion and processing service for streaming data (e.g., logs, events), not designed to host or serve LLMs; it lacks the compute and inference capabilities required for model serving. Option B is wrong because OCI Functions is a serverless compute service for running stateless code snippets (functions) in response to events, but it is not optimized for hosting large language models due to cold start latency, limited memory, and lack of GPU support. Option C is wrong because OCI Object Storage is a scalable storage service for unstructured data (e.g., model artifacts, datasets), but it cannot serve inference requests or run compute workloads; it is used to store model files, not to host or serve the LLM.

156
Multi-Selectmedium

A company wants to reduce costs for a high-volume, latency-tolerant text generation workload using OCI Generative AI. Which TWO strategies should they consider?

Select 2 answers
A.Use on-demand (pay-per-token) pricing instead of a dedicated AI cluster
B.Provision a dedicated AI cluster for consistent throughput
C.Increase the temperature parameter to reduce token usage
D.Use the largest available model to ensure best quality
E.Use a smaller, faster model like Cohere Command R instead of Command R+
AnswersA, E

On-demand pricing is cost-effective for variable or high-volume workloads without dedicated infrastructure commitment.

Why this answer

On-demand pricing (pay-per-token) and using a smaller/faster model (like Command R instead of R+) are cost-saving measures. Dedicated clusters increase cost; the largest model is more expensive; increasing temperature doesn't affect pricing.

157
MCQhard

During inference with OCI Generative AI, you notice that the model is generating repetitive phrases. Which combination of parameters can help reduce repetition?

A.Top_p = 0.1, frequency_penalty = 0.5
B.Top_p = 0.9, frequency_penalty = 0.5
C.Top_p = 0.9, frequency_penalty = 0.0
D.Top_p = 1.0, frequency_penalty = 0.0
AnswerB

This combination applies a gentle penalty on repeated tokens while keeping token selection diverse, effectively reducing repetition.

Why this answer

A high Top_p value (0.9) allows the model to consider a diverse set of tokens, reducing the chance of getting stuck in repetitive loops, while a positive frequency_penalty (0.5) actively penalizes tokens that have already been generated, discouraging the model from repeating the same phrases. Together, these parameters balance creativity and repetition suppression.

Exam trap

Oracle often tests the misconception that lowering Top_p (making it more restrictive) reduces repetition, when in fact it can worsen repetition by limiting the model to only the most probable tokens, which are often the same ones already used.

How to eliminate wrong answers

Option A is wrong because Top_p = 0.1 is too restrictive, forcing the model to sample from only the top 10% of probable tokens, which actually increases the likelihood of repetitive patterns by narrowing the token pool. Option C is wrong because frequency_penalty = 0.0 means no penalty is applied for repeated tokens, so even with a high Top_p, the model has no disincentive to repeat phrases. Option D is wrong because Top_p = 1.0 (no nucleus sampling) combined with frequency_penalty = 0.0 provides no mechanism to reduce repetition, effectively using raw probability sampling without any diversity-enhancing constraints.

158
MCQmedium

A security administrator needs to grant a group of data scientists the ability to use OCI Generative AI service resources in the compartment 'genai-dev'. They want to allow the group to create endpoints and run inference, but not to manage IAM policies. Which policy statement is correct?

A.Allow group DataScientists to use generative-ai-family in compartment genai-dev
B.Allow group DataScientists to manage generative-ai-family in compartment genai-dev
C.Allow group DataScientists to inspect generative-ai-family in compartment genai-dev
D.Allow group DataScientists to read generative-ai-family in compartment genai-dev
AnswerA

'use' allows creating endpoints and running inference without granting policy management.

Why this answer

The 'use' verb in OCI IAM policies grants the ability to perform operational actions on resources without allowing management or administrative changes. For the OCI Generative AI service, 'use generative-ai-family' permits data scientists to create endpoints and run inference (the core actions needed), while explicitly preventing them from managing IAM policies or altering resource configurations. This aligns with the principle of least privilege required by the security administrator.

Exam trap

The trap here is that candidates often confuse 'use' with 'manage' or 'read', assuming that creating endpoints requires 'manage' permissions, but OCI's 'use' verb is specifically designed for operational tasks like running inference and creating resources within a compartment without granting full administrative rights.

How to eliminate wrong answers

Option B is wrong because 'manage' grants full administrative control, including creating, updating, and deleting resources, as well as managing IAM policies, which exceeds the required permissions. Option C is wrong because 'inspect' only allows listing resources and reading metadata, not creating endpoints or running inference. Option D is wrong because 'read' permits viewing resource details but does not allow any write or operational actions like creating endpoints or invoking inference.

159
Multi-Selecteasy

Which TWO of the following are true about positional encoding in transformer models?

Select 2 answers
A.It is learned independently for each position in the training data
B.It provides the model with information about the order of tokens in a sequence
C.It is added to the token embeddings before passing through the transformer layers
D.It replaces the need for self-attention
E.It is only used in encoder-only architectures like BERT
AnswersB, C

Since self-attention is permutation-invariant, positional encodings are necessary to capture sequence order.

Why this answer

Positional encoding provides information about token order and is added to the input embeddings. It is used in encoder-decoder and decoder-only models. It does not replace attention, and it is not learned for each token position in the original formulation (it uses fixed sine/cosine functions).

160
MCQhard

An architect is optimizing an LLM application that processes long documents. The model has a 4096 token limit, but the documents are often 8000 tokens. They are using a chunking strategy. However, model responses sometimes miss key information that spans across chunks. Which technique most directly addresses this issue?

A.Randomly select parts of the document to include.
B.Increase the max_tokens parameter for longer outputs.
C.Use overlapping chunks to maintain context continuity.
D.Use a model with a larger context window.
AnswerC

Overlapping ensures that information at chunk boundaries is not lost.

Why this answer

Overlapping chunks ensure that tokens at the boundaries of one chunk are also present at the start of the next, preserving context continuity. This prevents the model from losing information that spans across chunk boundaries, which is a common issue when processing documents longer than the model's 4096-token context window.

Exam trap

Oracle often tests the misconception that increasing output length (max_tokens) can compensate for input context limitations, but the trap here is that max_tokens only affects the response length, not the model's ability to see the full document.

How to eliminate wrong answers

Option A is wrong because randomly selecting parts of the document discards structured information and introduces unpredictability, making it impossible to reliably capture cross-chunk dependencies. Option B is wrong because increasing the max_tokens parameter only controls the length of the generated output, not the input context size; the model still cannot process the full 8000-token document at once. Option D is wrong because while using a model with a larger context window would solve the problem, it is not a chunking strategy and may not be feasible due to cost, latency, or model availability; the question specifically asks for a technique that addresses the issue within the current chunking approach.

161
Multi-Selecthard

Which TWO factors most significantly influence the computational cost of fine-tuning a large language model?

Select 2 answers
A.Batch size
B.Number of model parameters
C.Maximum sequence length
D.Quantization bits
E.Dataset size
AnswersB, C

More parameters increase compute and memory requirements.

Why this answer

The number of model parameters directly determines the size of the weight matrices that must be updated during backpropagation. Fine-tuning requires storing gradients and optimizer states for each parameter, so the memory and compute scale linearly with parameter count. This is the primary driver of FLOPs (floating-point operations) per training step.

Exam trap

Candidates often confuse factors affecting per-step computational cost (parameters, sequence length) with those affecting total training time or memory efficiency (batch size, quantization, dataset size), leading to incorrect selections.

162
MCQmedium

A data scientist is using the OCI Generative AI service to generate text completions. The API calls are returning HTTP 400 errors with the message 'Invalid model parameters'. What is the most likely cause?

A.The API key is expired
B.The request exceeds the rate limit
C.The endpoint URL is incorrect
D.One or more model parameters (e.g., temperature, top_p) are outside the accepted range
AnswerD

Invalid parameters lead to client error 400.

Why this answer

The HTTP 400 error with 'Invalid model parameters' directly indicates that one or more of the parameters sent in the API request (such as temperature, top_p, max_tokens, or stop sequences) are outside the acceptable range defined by the OCI Generative AI service. For example, temperature must be between 0 and 1, and top_p between 0 and 1, and sending a value like 2.0 for temperature would trigger this error. The other options (expired key, rate limit, incorrect endpoint) would produce different HTTP status codes or error messages.

Exam trap

Oracle often tests the distinction between HTTP 4xx error codes and their specific meanings, so the trap here is that candidates may confuse a 400 Bad Request (parameter validation failure) with authentication (401) or rate-limiting (429) errors, especially when the error message is generic.

How to eliminate wrong answers

Option A is wrong because an expired API key would result in an HTTP 401 Unauthorized error, not a 400 Bad Request with 'Invalid model parameters'. Option B is wrong because exceeding the rate limit would return an HTTP 429 Too Many Requests error, not a 400 error. Option C is wrong because an incorrect endpoint URL would typically result in an HTTP 404 Not Found error or a connection failure, not a 400 error with a message about model parameters.

163
MCQmedium

Which authentication method should be used to securely call the OCI Generative AI API from a microservice running on OCI Compute?

A.OAuth 2.0 client credentials
B.SAML 2.0 assertion
C.Instance principal
D.OCI API signing key
AnswerD

OCI API signing key (a key pair) is the standard method for authenticating API requests.

Why this answer

The OCI API signing key method uses a pre-generated RSA key pair to sign each HTTP request cryptographically, which is the standard and most secure way to authenticate calls to OCI services, including the Generative AI API, from a microservice running on OCI Compute. This method does not rely on external identity providers or token exchanges, making it ideal for server-to-server communication within OCI.

Exam trap

A common misconception is that instance principal authentication is the default or only secure method for OCI Compute instances, but the exam trap here is that instance principal requires dynamic group configuration and is not the direct authentication method for the OCI API; the API signing key is the explicit, universally supported method for programmatic API calls from any client, including a Compute instance.

How to eliminate wrong answers

Option A is wrong because OAuth 2.0 client credentials are typically used for third-party application access to OCI resources via identity federation, not for direct API calls from an OCI Compute instance; OCI does not natively support OAuth 2.0 client credentials for its core APIs. Option B is wrong because SAML 2.0 assertions are used for federated single sign-on (SSO) with identity providers, not for programmatic API authentication from a compute instance; they require a browser-based flow and are not designed for server-to-server API calls. Option C is wrong because instance principal authentication uses a dynamic resource principal token obtained from the OCI metadata service, which is designed for services like Functions or OKE, not for direct API signing from a standard Compute instance; it requires the instance to be in a dynamic group with proper policies, but the question asks for the method to 'securely call' the API, and the API signing key is the explicit, direct method for such calls.

164
MCQeasy

Which OCI Generative AI model is best suited for generating embeddings from text that can be used for semantic search across multiple languages?

A.Cohere Command R+
B.Cohere embed-multilingual-v3.0
C.Meta Llama 3 70B
D.Cohere Rerank
AnswerB

This model is specifically built for multilingual embeddings, supporting semantic search across many languages.

Why this answer

Embed-multilingual-v3.0 is designed for multilingual embedding tasks. The other models are primarily for text generation or English-only embeddings.

165
MCQmedium

A multi-turn chatbot needs to maintain context across user queries. The context window is limited. What design should be used?

A.Use a summary of previous turns and add new input.
B.Store context in a separate database and retrieve each time.
C.Reset context after each turn.
D.Keep the entire conversation history in each request.
AnswerA

Correct: Summarization preserves context within limits.

Why this answer

Summarizing previous turns and appending the new input efficiently manages the limited context window of large language models (LLMs). This approach preserves essential conversational context without exceeding token limits, ensuring coherent multi-turn interactions.

Exam trap

Oracle often tests the misconception that storing context externally (Option B) bypasses the context window limit, but the retrieved data must still be injected into the model's input, which is constrained by the same token budget.

How to eliminate wrong answers

Option B is wrong because storing context in a separate database and retrieving it each time introduces latency and does not inherently solve the context window limitation; the retrieved context still needs to fit into the model's input. Option C is wrong because resetting context after each turn breaks conversational continuity, making the chatbot unable to reference prior exchanges. Option D is wrong because keeping the entire conversation history in each request quickly exceeds the context window's token limit, causing truncation or errors.

166
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.Use Retrieval-Augmented Generation (RAG) with the policy documents indexed in a vector store
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.Train a custom model from scratch on the policy documents each month
AnswerA

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.

167
MCQmedium

Refer to the exhibit. A developer runs the command and receives the error. What is the issue?

A.The max-tokens value exceeds the allowed range.
B.The message is too short.
C.The chat-id is invalid.
D.The endpoint is incorrect.
AnswerA

The error explicitly states the valid range.

Why this answer

The max-tokens parameter is set to 600, which exceeds the allowed range of 1 to 500.

168
MCQeasy

A company wants to use OCI Generative AI to summarize customer reviews. Which model parameter should be adjusted to control the creativity of the summary?

A.Temperature
B.Frequency penalty
C.Top-k
D.Presence penalty
AnswerA

Temperature directly controls randomness and creativity.

Why this answer

Temperature controls the randomness of token selection in the model's output distribution. A higher temperature (e.g., 0.9) makes the summary more creative and diverse, while a lower temperature (e.g., 0.1) makes it more deterministic and focused. For summarizing customer reviews, adjusting temperature directly influences how novel or conservative the generated text will be.

Exam trap

Oracle often tests the distinction between parameters that control randomness (temperature) versus those that control repetition (frequency/presence penalties) or sampling pool size (top-k), leading candidates to confuse diversity with creativity.

How to eliminate wrong answers

Option B (Frequency penalty) is wrong because it reduces the likelihood of repeating the same tokens or phrases, which controls redundancy rather than creativity. Option C (Top-k) is wrong because it limits the sampling pool to the k most likely next tokens, which affects diversity but not the overall creativity or randomness of the output. Option D (Presence penalty) is wrong because it penalizes tokens that have already appeared in the text, encouraging the model to introduce new topics, but this does not directly control the creativity of the summary.

169
Multi-Selecthard

An OCI user wants to reduce the cost of running a generative AI model while maintaining output quality. Which THREE strategies can help achieve this?

Select 3 answers
A.Use greedy decoding instead of sampling
B.Use a smaller model from the same family
C.Increase max tokens to ensure complete answers
D.Implement caching for repeated queries
E.Optimize prompts to be more concise
AnswersB, D, E

Smaller models are cheaper to run.

Why this answer

Using a smaller model from the same family (e.g., switching from Llama 3 70B to Llama 3 8B) reduces the number of parameters and computational resources required per inference, directly lowering cost. Smaller models often retain strong performance on many tasks, especially when the task complexity does not demand the full capacity of the larger model, thus maintaining output quality while reducing token processing costs.

Exam trap

The 1Z0-1127 exam often tests the misconception that greedy decoding reduces cost (it does not—it only changes the decoding strategy, not the model size or token count) and that increasing max tokens improves quality (it actually increases cost and can degrade output by encouraging rambling).

170
MCQmedium

A team wants to use OCI Generative AI Agents to build a RAG system that answers questions from documents stored in OCI Object Storage. What must they create first?

A.A knowledge base that indexes the documents from Object Storage
B.A fine-tuned model on the documents
C.A dedicated AI cluster for the agent
D.An OCI Functions endpoint to process documents
AnswerA

The knowledge base links the data source to the agent and enables retrieval.

Why this answer

The agent requires a knowledge base that is connected to the data source. Directly creating a session without a knowledge base and agent will fail.

171
MCQmedium

A manufacturing company uses OCI OpenSearch to build a RAG application that retrieves procedural documents. After deployment, queries often return outdated procedures even though the vector index was refreshed. What is the most likely cause?

A.The embedding model was fine-tuned on outdated data.
B.The full-text search index is not synchronized with the vector index after updates.
C.The BM25 scoring algorithm prioritizes older documents due to term frequency.
D.The chunk overlap percentage is too high, causing duplicate context.
AnswerB

Outdated procedures remain in the text index if not reindexed.

Why this answer

In a RAG application using OCI OpenSearch, the vector index and full-text search index are separate. When procedural documents are updated, the full-text search index may reflect changes immediately, but the vector index requires explicit re-indexing or synchronization to update embeddings. If the vector index is not refreshed after updates, queries can still retrieve outdated vector representations, leading to outdated results despite the index being refreshed.

Exam trap

The trap here is that candidates may assume 'refreshing the vector index' automatically synchronizes it with document updates, but in practice, vector indexes require explicit re-embedding and re-indexing, which is often overlooked in RAG architectures.

How to eliminate wrong answers

Option A is wrong because fine-tuning the embedding model on outdated data would affect all embeddings, not just those from refreshed documents, and the scenario specifies the vector index was refreshed, implying embeddings were regenerated. Option C is wrong because BM25 scoring is used for full-text search, not vector search; it prioritizes documents based on term frequency and inverse document frequency, not age, and would not cause outdated procedures to be returned if the vector index is correctly synchronized. Option D is wrong because chunk overlap percentage affects context continuity and duplication, not the freshness of retrieved data; high overlap might cause duplicate chunks but not outdated procedures.

172
MCQeasy

Which tokenization algorithm is commonly used by models like GPT and BERT, and works by merging frequently occurring character pairs iteratively?

A.Morpheme-based tokenization
B.Byte-Pair Encoding (BPE)
C.SentencePiece
D.WordPiece
AnswerB

BPE iteratively merges the most frequent character pairs to build a vocabulary of subword tokens.

Why this answer

Byte-Pair Encoding (BPE) starts with characters and merges the most frequent pairs to create subword units. WordPiece uses a similar likelihood-based approach. SentencePiece is a framework that can use BPE or unigram.

173
MCQmedium

A company is using OCI Generative AI service with a dedicated AI cluster for text generation. They notice that the latency is higher than expected. The cluster is in the Ashburn region, and users are distributed globally. What is the most effective way to reduce latency?

A.Enable the OCI Generative AI inference optimizer
B.Deploy dedicated AI clusters in regions closer to the users
C.Increase the number of nodes in the dedicated AI cluster
D.Use a content delivery network (CDN) to cache responses
AnswerB

Geographic proximity reduces network round-trip time.

Why this answer

Latency for globally distributed users is primarily driven by network distance and the speed of light. Deploying dedicated AI clusters in regions closer to the users reduces the physical distance data must travel, directly minimizing network round-trip time (RTT). This is the most effective architectural change because OCI's Generative AI service processes each request on the dedicated cluster and cannot bypass geographic latency through software optimizations alone.

Exam trap

The trap here is that candidates often confuse throughput improvements (scaling nodes or using an optimizer) with latency reduction, failing to recognize that geographic proximity is the only way to address network round-trip time for globally distributed users.

How to eliminate wrong answers

Option A is wrong because the OCI Generative AI inference optimizer is a software-level tuning feature that improves throughput and model efficiency, but it does not reduce network latency caused by geographic distance. Option C is wrong because increasing the number of nodes in the dedicated AI cluster improves parallel processing capacity and throughput, but does not reduce the per-request network latency for users far from the Ashburn region. Option D is wrong because a CDN caches static content (e.g., images, HTML), but Generative AI text responses are dynamic, unique per request, and cannot be cached to serve different users.

174
MCQeasy

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

A.Frequency penalty
B.Top-p
C.Temperature
D.Max tokens
AnswerC

Temperature scales the logits to control the randomness of token selection.

Why this answer

Temperature adjusts the logits before softmax, making lower values (e.g., 0.1) more deterministic and higher values (e.g., 0.9) more random.

175
MCQhard

A data scientist is evaluating a summarization model on a news article dataset. They compute ROUGE-L and BLEU scores. The ROUGE-L score is high, but the BLEU score is low. Which of the following best explains this discrepancy?

A.The BLEU score is unreliable for summarization tasks
B.The model is overfitting to the training data
C.The summaries are very short and use different vocabulary from the reference
D.The summaries are too long and contain many irrelevant n-grams
AnswerC

Short summaries that capture key content (high ROUGE-L) but with different word choices (low n-gram overlap) cause low BLEU.

Why this answer

ROUGE-L measures the longest common subsequence, emphasizing recall of key content (n-grams in order). BLEU measures n-gram precision, penalizing short or non-fluent outputs. A high ROUGE-L but low BLEU suggests the summaries capture the main ideas but use different phrasing or are too short.

176
MCQmedium

A developer is using the OCI Generative AI Agents service to build a RAG application. They have uploaded policy PDFs to an OCI Object Storage bucket. What is the next step to make the documents searchable?

A.Create a dedicated AI cluster to host the documents
B.Use the Embeddings API to embed each PDF manually
C.Fine-tune a model on the PDFs
D.Create a knowledge base from the Object Storage bucket
AnswerD

The knowledge base indexes the documents from Object Storage and enables retrieval.

Why this answer

In OCI Generative AI Agents, you create a knowledge base from data sources like Object Storage. The agent then uses this knowledge base to retrieve relevant information for answering questions. Creating a dedicated cluster or fine-tuning is not required for RAG with agents.

177
MCQeasy

In LangChain's Expression Language (LCEL), what does the pipe (|) operator do when connecting components?

A.It conditionally selects one of the two components based on a flag
B.It repeats the left component's execution until a condition is met
C.It passes the output of the left component as input to the right component
D.It runs both components in parallel and merges their outputs
AnswerC

This is the core behavior of LCEL — each component's output becomes the next component's input, enabling easy chain construction.

Why this answer

In LCEL, the | operator chains components by passing the output of the left component as input to the right component. This allows composing chains like prompt | model | output parser.

178
Multi-Selecteasy

A company is deploying a generative AI model for a real-time inference API. To ensure high availability and cost efficiency under variable load, which two configurations should they implement? (Choose two.)

Select 2 answers
A.Use a single replica with a larger GPU to handle all traffic
B.Deploy the model in a single availability domain to simplify management
C.Disable connection draining on the load balancer
D.Set the number of model deployment replicas to at least 2
E.Enable autoscaling based on average CPU utilization
AnswersD, E

Multiple replicas provide redundancy and high availability.

Why this answer

Deploying at least two replicas ensures high availability by eliminating a single point of failure; if one replica fails, the other can still serve inference requests. This is a standard best practice for production workloads on OCI, where model deployment replicas are distributed across fault domains to maintain service continuity.

Exam trap

Oracle often tests the misconception that a single, powerful GPU instance is sufficient for high availability, but the exam expects you to recognize that redundancy through multiple replicas and autoscaling are required for both availability and cost efficiency under variable load.

179
MCQhard

A LangChain application using ChatOCIGenAI is hitting rate limits from the OCI Generative AI service. The developer wants to implement retry logic with exponential backoff. Which approach is most appropriate in LangChain?

A.Reduce the number of concurrent requests by setting a semaphore in the application code
B.Use a middleware in the FastAPI application to queue requests and retry with exponential backoff
C.Set the max_retries and request_timeout parameters in ChatOCIGenAI, and use a custom callback to handle rate limit errors with exponential backoff
D.Wrap the ChatOCIGenAI instance with a RetryFromLLM callback that implements exponential backoff
AnswerC

Configuring max_retries and request_timeout on the model wrapper, combined with a callback that catches rate limit errors and implements exponential backoff, is the standard pattern in LangChain.

Why this answer

LangChain's built-in retry mechanism for LLMs can be configured via the request_timeout and max_retries parameters on the model wrapper. Additionally, using a custom callback or middleware can implement exponential backoff. The other options either do not address rate limits or are not native to LangChain.

180
Multi-Selectmedium

Which TWO factors are most important when deciding between on-demand and dedicated AI clusters for OCI GenAI?

Select 2 answers
A.Fine-tuning capability
B.Model size
C.Data residency
D.Number of concurrent requests
E.Latency requirements
AnswersD, E

Dedicated clusters are better for high concurrency due to reserved capacity.

Why this answer

The number of concurrent requests (D) is critical because dedicated AI clusters provide guaranteed throughput and predictable performance for high-volume workloads, while on-demand clusters may throttle or queue requests under heavy load. Latency requirements (E) are equally important because dedicated clusters offer consistent low-latency inference by avoiding resource contention, whereas on-demand clusters can introduce variable latency due to shared infrastructure. Together, these factors directly determine whether a workload needs the isolation and guaranteed resources of a dedicated cluster or can tolerate the elasticity and potential variability of on-demand provisioning.

Exam trap

Oracle often tests the misconception that fine-tuning capability or model size are primary differentiators between on-demand and dedicated clusters, when in fact both cluster types support these features, and the real decision hinges on concurrency and latency guarantees.

181
Multi-Selectmedium

An enterprise is deploying an LLM application on OCI and must minimize hallucinations. Which TWO strategies should they implement? (Choose two.)

Select 2 answers
A.Apply prompt engineering techniques such as asking the model to cite sources
B.Increase the temperature parameter to encourage more diverse outputs
C.Use a smaller model to reduce complexity
D.Fine-tune the model on a dataset of factual question-answer pairs
E.Implement Retrieval-Augmented Generation (RAG) with a curated knowledge base
AnswersA, E

Prompt engineering can guide the model to rely on provided context and cite sources, reducing hallucinations.

Why this answer

RAG grounds the model in retrieved documents, and prompt engineering (e.g., asking the model to cite sources) can reduce hallucinations. Fine-tuning on factual data helps but may not eliminate hallucinations entirely. Increasing temperature increases randomness, which can worsen hallucinations.

Using a smaller model typically reduces capability, making hallucinations more likely.

182
Multi-Selectmedium

A team wants to compare the semantic similarity between two sentences using embeddings. Which THREE steps are required?

Select 3 answers
A.Use a text generation model to compare the sentences
B.Normalize the resulting vectors to unit length
C.Compute the cosine similarity between the two vectors
D.Train a new neural network on the two sentences
E.Pass both sentences through an embedding model to obtain dense vector representations
AnswersB, C, E

Normalization ensures that cosine similarity is equivalent to the dot product of the normalized vectors.

Why this answer

Generate embeddings for both sentences, then compute cosine similarity. Normalizing vectors ensures cosine similarity equals the dot product. Training a new model is unnecessary, and using a generation model is not appropriate for embeddings.

183
MCQmedium

A LangChain application uses an agent with a calculator tool and a search tool. The agent is supposed to answer a question that requires both arithmetic and web lookup, but it only uses the search tool and gives an approximate answer. Which agent type is MOST likely to correctly combine the tools?

A.Zero-shot agent without ReAct (e.g., zero-shot-react-description)
B.Structured tool chat agent
C.Conversational agent with memory
D.ReAct agent (e.g., zero-shot-react-description)
AnswerD

ReAct agents reason step by step, allowing them to use multiple tools as needed.

Why this answer

The ReAct agent (zero-shot-react-description) is designed to reason step-by-step and decide which tool to use based on the task. It can combine the calculator and search tools by first performing a web lookup to get necessary data, then using the calculator tool for arithmetic, producing an exact answer. This agent type explicitly supports multi-step reasoning and tool selection, unlike simpler agents that may default to a single tool.

Exam trap

The 1Z0-1127 exam often tests the misconception that any agent with tool descriptions can automatically chain tools, but the key differentiator is the ReAct reasoning loop that enables explicit step-by-step tool selection and execution.

How to eliminate wrong answers

Option A is wrong because a zero-shot agent without ReAct lacks the reasoning loop to decide when to use multiple tools; it typically picks one tool based on the prompt and cannot chain tool calls. Option B is wrong because the structured tool chat agent is designed for structured inputs/outputs (e.g., JSON schemas) and does not inherently improve multi-tool reasoning; it still relies on the underlying agent logic, which may not chain tools effectively. Option C is wrong because a conversational agent with memory focuses on maintaining conversation history, not on multi-step tool orchestration; memory does not enable the agent to decide to use both calculator and search tools sequentially.

184
MCQeasy

A retail company uses OCI Generative AI to generate product descriptions. They observe the model occasionally produces biased content. Which technique should be applied to reduce bias in model outputs?

A.Increase the max_tokens parameter.
B.Apply prompt engineering with explicit instructions to avoid bias.
C.Reduce the model's inference temperature to 0.
D.Use a different random seed for each request.
AnswerB

Prompt engineering is the recommended approach to guide the model towards desired behavior and reduce bias.

Why this answer

Prompt engineering allows you to explicitly instruct the model to avoid biased content, such as by including directives like 'Ensure the description is neutral and unbiased' in the system or user prompt. This technique directly influences the model's output generation without altering its underlying parameters, making it a targeted and effective approach for reducing bias in OCI Generative AI models.

Exam trap

The trap here is that candidates often confuse parameter tuning (like temperature or max_tokens) with content-level controls, assuming that reducing randomness or increasing output length can mitigate bias, when in fact bias is a training data issue that requires explicit instruction via prompt engineering to override.

How to eliminate wrong answers

Option A is wrong because increasing max_tokens only extends the maximum length of the generated text, which does not address the content's bias—it may even allow more biased statements to be produced. Option C is wrong because reducing inference temperature to 0 makes the model deterministic and less creative, but it does not inherently remove bias; biased patterns in the training data can still be reproduced with high confidence. Option D is wrong because using a different random seed for each request only affects the randomness of sampling (when temperature > 0), not the underlying bias in the model's learned associations or outputs.

185
Multi-Selecthard

Which three statements about transformer architecture are correct? (Choose three.)

Select 3 answers
A.The softmax function is used in the attention mechanism to normalize attention scores.
B.The feed-forward network applies a different set of weights for each token position.
C.Positional encodings are necessary because the model is not recurrent.
D.The self-attention layer allows the model to weigh the importance of different tokens.
E.The encoder-decoder structure is used in GPT models.
AnswersA, C, D

Softmax converts attention scores into probabilities.

Why this answer

The softmax function is applied to the raw attention scores (the dot products between queries and keys) to convert them into a probability distribution that sums to 1. This normalization allows the model to assign a relative weight to each token in the sequence, ensuring that the weighted sum of values is stable and interpretable.

Exam trap

Oracle often tests the distinction between encoder-decoder and decoder-only architectures, trapping candidates who assume all transformer-based models follow the original encoder-decoder design, when in fact GPT and other autoregressive models use only the decoder stack.

186
MCQeasy

A company requires a generative AI service to automatically summarize customer support transcripts. Which OCI Generative AI model is most suitable for this task?

A.Llama 3 70B
B.Cohere Embed
C.Cohere Command
D.Fine-tuned Llama 2
AnswerC

Cohere Command is designed for text generation, including summarization, and is a direct choice for this scenario.

Why this answer

Cohere Command is a large language model specifically designed for text generation tasks such as summarization, making it the most suitable choice for automatically summarizing customer support transcripts. Unlike embedding models or base Llama variants, Command is optimized for instruction-following and generating coherent, concise summaries from conversational data.

Exam trap

Oracle often tests the distinction between embedding models (Cohere Embed) and generative models (Cohere Command), leading candidates to mistakenly choose an embedding model for a text generation task like summarization.

How to eliminate wrong answers

Option A is wrong because Llama 3 70B is a general-purpose generative model that, while capable of summarization, is not specifically optimized for the summarization task in OCI Generative AI service; Cohere Command is the designated model for text generation and summarization within OCI. Option B is wrong because Cohere Embed is a text embedding model designed for semantic search and similarity tasks, not for generating summaries or any text output. Option D is wrong because Fine-tuned Llama 2, though customizable, is not a pre-built model offered by OCI Generative AI for summarization; OCI provides Cohere Command as the primary ready-to-use model for such generative tasks.

187
MCQeasy

Which OCI service provides pre-trained models for custom text classification without requiring fine-tuning?

A.OCI Generative AI
B.OCI AI Language
C.OCI Data Science
D.OCI Vision
AnswerB

OCI AI Language provides pre-trained models for text classification without fine-tuning.

Why this answer

B is correct because OCI AI Language provides pre-trained models that can perform custom text classification out-of-the-box without requiring fine-tuning. It offers built-in models for common NLP tasks like sentiment analysis, entity extraction, and text classification, allowing users to classify text into custom categories defined by their own labels without additional training.

Exam trap

Oracle often tests the distinction between pre-trained models that require no fine-tuning versus platforms that require custom model training, leading candidates to mistakenly choose OCI Data Science or OCI Generative AI when the question specifically asks for a service that provides pre-trained models for custom text classification without fine-tuning.

How to eliminate wrong answers

Option A is wrong because OCI Generative AI focuses on generating text, images, and code using large language models, not on pre-trained models for custom text classification without fine-tuning. Option C is wrong because OCI Data Science is a platform for building, training, and deploying custom machine learning models, requiring users to fine-tune or train models from scratch rather than providing pre-trained classification models. Option D is wrong because OCI Vision is designed for image analysis tasks such as object detection and image classification, not for text classification.

188
Multi-Selectmedium

A developer is creating a fine-tuning job for a Cohere Command R model using OCI Generative AI. Which TWO of the following are required when submitting the fine-tuning job?

Select 2 answers
A.Base model name (e.g., Cohere Command R)
B.A Dedicated AI Cluster ID
C.A pre-trained embedding model
D.Training dataset in JSONL format with prompt/completion pairs
E.Hyperparameters file in YAML format
AnswersA, D

You must specify which model to fine-tune.

Why this answer

The training dataset and the base model are mandatory inputs for a fine-tuning job. The compartment is part of the resource configuration, and the hyperparameters file is optional but not required.

189
MCQhard

An organization is deploying multiple generative AI models on a shared dedicated AI cluster. They need to isolate resource usage for each model to avoid interference. Which strategy is recommended?

A.Use separate fine-tuning jobs for each model
B.Configure multiple virtual clusters within the dedicated AI cluster using compartment quotas
C.Use OCI Resource Manager to allocate resources
D.Deploy each model on its own dedicated AI cluster
AnswerD

Correct: Each cluster has dedicated hardware, ensuring no resource contention.

Why this answer

Deploying each model on its own dedicated AI cluster provides complete hardware-level isolation, ensuring that resource usage (e.g., GPU memory, compute cycles) for one model does not interfere with another. In OCI Generative AI, dedicated AI clusters are single-tenant instances, so each model gets exclusive access to its allocated infrastructure, eliminating contention. This is the recommended strategy for strict isolation in shared environments.

Exam trap

Oracle often tests the misconception that logical isolation (e.g., compartment quotas or virtual clusters) is sufficient for performance isolation, when in fact hardware-level separation is required to prevent interference in shared AI clusters.

How to eliminate wrong answers

Option A is wrong because separate fine-tuning jobs do not isolate runtime inference resources; they only isolate training workloads, and models still share the same cluster during inference. Option B is wrong because virtual clusters with compartment quotas provide logical isolation via resource limits but do not prevent resource contention at the hardware level (e.g., GPU memory oversubscription). Option C is wrong because OCI Resource Manager is an infrastructure-as-code tool for provisioning resources, not a mechanism for runtime resource isolation between models.

190
MCQmedium

A financial firm deploys a RAG application using OCI OpenSearch. They observe that the LLM sometimes generates incorrect answers that are not supported by the retrieved documents. Which technique directly addresses this issue?

A.Use a more detailed system prompt instructing the model to not make up information.
B.Increase the temperature parameter of the LLM to reduce creativity.
C.Implement a post-generation verification step that checks if the answer is grounded in the retrieved chunks.
D.Increase the number of retrieved documents to provide more context.
AnswerC

Directly verifies faithfulness.

Why this answer

It directly addresses the problem of hallucination by verifying that the LLM's output is factually supported by the retrieved documents. In a RAG pipeline, the LLM may still generate unsupported content even with good retrieval; a post-generation grounding check explicitly validates each claim against the source chunks, ensuring answer fidelity.

Exam trap

Oracle often tests the misconception that prompt engineering or parameter tuning alone can solve hallucination in RAG, when in fact a dedicated verification step is required to enforce factual grounding.

How to eliminate wrong answers

Option A is wrong because a more detailed system prompt instructing the model not to make up information is a soft constraint that LLMs can easily ignore, especially when the model is confident in its fabricated answer; it does not provide a deterministic mechanism to prevent hallucination. Option B is wrong because increasing the temperature parameter actually increases randomness and creativity, making hallucinations more likely; reducing temperature (closer to 0) would make outputs more deterministic and less creative, but it still does not guarantee grounding in retrieved documents. Option D is wrong because increasing the number of retrieved documents can introduce irrelevant or conflicting context, potentially confusing the LLM and increasing the chance of unsupported answers; it does not enforce that the final answer is actually supported by any specific chunk.

191
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.Use Retrieval-Augmented Generation (RAG) with the policy documents indexed in a vector store
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.Train a custom model from scratch on the policy documents each month
AnswerA

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.

192
MCQmedium

A developer needs to include the conversation history in a prompt for a LangChain chatbot. They want to insert previous exchanges between the user and the AI into the prompt at a specific position. Which component should they use?

A.PromptTemplate
B.MessagesPlaceholder
C.ChatPromptTemplate
D.ConversationBufferMemory
AnswerB

MessagesPlaceholder defines a variable position in the prompt where a list of messages (history) will be inserted.

Why this answer

MessagesPlaceholder is the correct component because it is specifically designed to inject a list of messages (e.g., conversation history) at a designated position within a ChatPromptTemplate. It acts as a slot that gets replaced with the actual message list at runtime, allowing the developer to control exactly where previous exchanges appear in the prompt.

Exam trap

The 1Z0-1127 exam often tests the distinction between a prompt component (MessagesPlaceholder) and a memory component (ConversationBufferMemory), leading candidates to mistakenly choose the memory class when the question asks for a prompt injection mechanism.

How to eliminate wrong answers

Option A is wrong because PromptTemplate is used for simple string templates and does not support structured message lists or the concept of a placeholder for conversation history. Option C is wrong because ChatPromptTemplate is the container that holds the sequence of messages (system, human, AI, and placeholders), but it is not the component that directly inserts the history at a specific position—that is the job of MessagesPlaceholder. Option D is wrong because ConversationBufferMemory is a memory class that stores and retrieves conversation history, but it is not a prompt component; it must be used with a MessagesPlaceholder or similar mechanism to inject the history into the prompt.

193
MCQhard

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

A.Add a system message that says 'You are a reasoning agent'
B.Use a zero-shot prompt with the instruction 'Reason step by step and then act'
C.Include a template pattern in the system prompt that explicitly defines the format for each step
D.Increase the temperature to 0.8 to allow more creative reasoning
AnswerC

A template pattern provides a clear structure for the model to follow, reducing omissions.

Why this answer

Providing a clear template that structures the reasoning and action steps (e.g., 'Thought: ... Action: ... Observation: ...') helps the model follow the ReAct pattern consistently.

Role prompting alone does not enforce the step-by-step structure.

194
MCQmedium

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

A.Increase top-k to 100
B.Decrease temperature to 0.2
C.Decrease frequency penalty to 0
D.Increase temperature to 1.0
AnswerB

Lower temperature makes outputs more focused and less random.

Why this answer

Lowering temperature (e.g., to 0.2) makes the model more deterministic and focused, reducing creativity and off-topic responses.

195
MCQeasy

Which of the following is a recognized limitation of large language models?

A.They always require internet access
B.They cannot perform translation between languages
C.They can generate factually incorrect information (hallucinations)
D.They can only process numerical data
AnswerC

Hallucinations are a key limitation where models produce confident but false statements.

Why this answer

Large language models (LLMs) are known to generate factually incorrect information, often called 'hallucinations.' This occurs because LLMs are probabilistic models that predict the next token based on training data patterns, not verified facts. They lack a grounding mechanism to validate outputs against real-world truth, making hallucinations a fundamental limitation.

Exam trap

The 1Z0-1127 exam often tests the misconception that LLMs are infallible or always correct, leading candidates to overlook the well-documented hallucination problem in favor of incorrect assumptions about connectivity or data types.

How to eliminate wrong answers

Option A is wrong because many LLMs can run locally without internet access (e.g., offline inference with models like Llama 2 or GPT-4-all), though some cloud-based APIs require connectivity. Option B is wrong because LLMs excel at translation between languages, as demonstrated by models like GPT-4 and Google's PaLM 2 supporting dozens of language pairs. Option D is wrong because LLMs process text tokens (words, subwords) via transformer architectures, not numerical data alone; they handle natural language, code, and symbolic inputs.

196
MCQeasy

A team wants to evaluate an LLM's performance on a text classification task. Which metric is most appropriate for a balanced dataset?

A.BLEU score
B.Perplexity
C.Accuracy
D.ROUGE score
AnswerC

Accuracy directly measures correct predictions, appropriate for balanced data.

Why this answer

Accuracy is the most appropriate metric for evaluating an LLM on a text classification task with a balanced dataset because it directly measures the proportion of correctly predicted labels out of total predictions. For balanced classes, accuracy provides a reliable and intuitive performance indicator without the distortion caused by class imbalance.

Exam trap

Oracle often tests the distinction between metrics for generation tasks (BLEU, ROUGE, perplexity) versus classification tasks (accuracy, F1-score), and the trap here is assuming a language model metric like perplexity applies to any NLP task, when it is specific to probabilistic language modeling.

How to eliminate wrong answers

Option A is wrong because BLEU score is designed for evaluating machine translation quality by comparing n-gram overlap between generated and reference text, not for classification tasks. Option B is wrong because perplexity measures how well a language model predicts a sequence of tokens, typically used for language modeling or generation, not for discrete label classification. Option D is wrong because ROUGE score is used for summarization evaluation by measuring recall-oriented overlap of n-grams, not for classification accuracy.

197
MCQeasy

A developer notices that an LLM's responses are too verbose. Which parameter adjustment would most effectively reduce verbosity?

A.Increase frequency_penalty
B.Increase top_p
C.Decrease max_tokens
D.Decrease temperature
AnswerC

Max_tokens directly controls the maximum output length, reducing verbosity.

Why this answer

Decreasing max_tokens directly limits the maximum length of the LLM's response, which is the most straightforward way to reduce verbosity. This parameter caps the number of tokens the model can generate, forcing it to produce shorter completions. Other parameters like frequency_penalty, top_p, and temperature influence the style, diversity, or randomness of the output but do not directly control response length.

Exam trap

The trap here is that candidates confuse parameters that affect output style (temperature, top_p, frequency_penalty) with the one that directly controls output length (max_tokens), leading them to choose a parameter that changes how the model says something rather than how much it says.

How to eliminate wrong answers

Option A is wrong because increasing frequency_penalty reduces repetition by penalizing tokens that have already appeared, which can actually make responses more varied and potentially longer as the model avoids reusing words. Option B is wrong because increasing top_p (nucleus sampling) considers a larger set of probable tokens, which can increase diversity and often leads to longer, more exploratory responses. Option D is wrong because decreasing temperature makes the model more deterministic and focused on high-probability tokens, but it does not cap the length of the response; the model can still generate verbose text if it deems it likely.

198
MCQmedium

A data scientist is fine-tuning a Llama 2 model on a custom dataset for a summarization task. After fine-tuning, the model produces summaries that are too similar to the input text, often copying sentences verbatim. Which adjustment is MOST likely to reduce copying and improve abstractive summarization?

A.Increase the temperature to 0.8 and use top-p sampling
B.Switch to greedy decoding
C.Increase the beam search width
D.Reduce the context window size
AnswerA

Higher temperature flattens the probability distribution, making the model more likely to generate novel phrases rather than copying.

Why this answer

Increasing temperature (e.g., to 0.8) adds randomness to token selection, making the model less likely to choose the most probable tokens that lead to verbatim copying from the input. Top-p sampling further restricts the sampling pool to a cumulative probability mass, balancing diversity and coherence. In contrast, greedy decoding and beam search always select high-probability tokens, which encourages copying.

Reducing context window may lose important information, not fix copying. Thus, higher temperature with top-p sampling is the best adjustment to promote abstractive summarization.

199
Multi-Selecthard

A developer is debugging a RAG pipeline where the LLM frequently ignores retrieved documents and produces hallucinations. Which THREE factors could contribute to this problem?

Select 3 answers
A.The generation temperature is set to 0
B.The prompt does not explicitly instruct the model to base its answer on the provided context
C.The retrieval top-K parameter is set too low
D.The embedding model's output dimension is too large
E.The chunking strategy uses zero overlap between consecutive chunks
AnswersB, C, E

If the prompt does not instruct the model to use the retrieved documents, it may default to its internal knowledge.

Why this answer

Low chunk overlap can cause loss of context, improper prompt instructions may lead the model to ignore retrieved content, and a small top-K retrieval may miss relevant documents. A large embedding dimension improves retrieval precision, and a high temperature increases randomness but does not cause ignoring documents.

200
MCQmedium

An enterprise is deploying a chat application using a large language model. Users report that the model sometimes generates toxic or biased responses. Which best practice should be applied to mitigate this issue?

A.Use few-shot prompting with examples of toxic responses so the model learns to avoid them.
B.Increase the max_tokens parameter to allow the model more context to correct itself.
C.Disable the temperature parameter to make outputs deterministic.
D.Implement a content filtering layer using a safety classifier to detect and block toxic outputs.
AnswerD

Safety classifiers directly filter toxic content.

Why this answer

Implementing a content filtering layer using a safety classifier is a proven best practice to detect and block toxic or biased outputs in real-time. This approach acts as a guardrail, intercepting harmful responses before they reach users, and is independent of the model's internal parameters or training data.

Exam trap

Oracle often tests the misconception that adjusting model parameters (like temperature or max_tokens) can fix safety issues, when in reality, safety requires external guardrails like content filters.

How to eliminate wrong answers

Option A is wrong because few-shot prompting with examples of toxic responses would not teach the model to avoid them; instead, it could inadvertently reinforce undesirable patterns, as the model may learn to mimic the toxic examples rather than suppress them. Option B is wrong because increasing the max_tokens parameter does not help the model correct its own toxicity; it simply allows longer outputs, which could include more harmful content. Option C is wrong because disabling the temperature parameter (setting it to 0) makes outputs deterministic but does not address the underlying issue of toxic or biased generation; the model can still produce harmful responses consistently.

201
Multi-Selecthard

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

Select 3 answers
A.Test prompt with a diverse set of input documents
B.A/B test different prompt variants on a held-out set
C.Always use the same input to ensure consistency
D.Increase max tokens to the maximum allowed
E.Establish clear evaluation criteria (e.g., accuracy, conciseness)
AnswersA, B, E

Diverse testing reveals edge cases and overfitting.

Why this answer

Testing with diverse inputs, establishing evaluation criteria, and A/B testing prompt variants are core to iterative refinement.

202
MCQeasy

You are using the OCI Generative AI Playground with a Cohere Command R model. You want the model to generate more varied and creative responses. Which parameter should you increase?

A.Temperature
B.Stop sequences
C.Max tokens
D.Frequency penalty
AnswerA

Increasing temperature (e.g., to 0.8) increases randomness and variety in the generated text, making responses more creative.

Why this answer

Temperature controls the randomness of the output. Higher temperature (e.g., 0.8) makes the model more creative and varied. Max tokens, frequency penalty, and stop sequences do not primarily affect creativity.

203
MCQmedium

In LangChain, what is the purpose of the LCEL (LangChain Expression Language) | operator?

A.To pipe the output of one component into the next component
B.To run two chains in parallel
C.To concatenate two prompt templates
D.To compare outputs of two different models
AnswerA

The | operator passes the output of the left component as input to the right component.

Why this answer

The | operator in LCEL is used to compose chains by passing the output of one component as input to the next.

204
MCQmedium

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

A.Increase max tokens
B.Decrease top-p to 0.5
C.Increase the frequency penalty
D.Increase temperature to 0.9
AnswerC

Frequency penalty penalizes tokens based on how often they have appeared, reducing repetition.

Why this answer

Frequency penalty reduces the chance of repeating tokens that have already appeared, directly mitigating repetition. Presence penalty also helps but is broader; frequency penalty is more targeted.

205
MCQeasy

A startup wants to quickly prototype a chatbot using OCI Generative AI service. They have no prior experience with OCI. They want to test different models and parameters without writing any code and within a few minutes. They also want to save prompts and compare results. Which approach should they use?

A.Create a dedicated AI cluster and use the OCI SDK.
B.Use the OCI Generative AI Playground.
C.Use OCI Data Science Notebooks with the GenAI SDK.
D.Use OCI Functions to invoke the GenAI API.
AnswerB

Playground offers immediate testing with no code and built-in history.

Why this answer

The OCI Generative AI Playground is a no-code, web-based interface that allows users to quickly test different models and parameters, save prompts, and compare results without writing any code or having prior OCI experience. It directly meets the startup's requirement for rapid prototyping within minutes.

Exam trap

The exam often tests the distinction between no-code tools (Playground) versus code-based or infrastructure-heavy approaches (SDK, Notebooks, Functions), and the trap here is assuming that any OCI service requires coding or prior cloud experience, leading candidates to overlook the Playground's purpose-built simplicity.

How to eliminate wrong answers

Option A is wrong because creating a dedicated AI cluster and using the OCI SDK requires significant infrastructure setup, coding, and OCI experience, which contradicts the 'no code' and 'few minutes' requirements. Option C is wrong because OCI Data Science Notebooks with the GenAI SDK still require writing Python code and managing a notebook environment, not a no-code solution. Option D is wrong because OCI Functions requires writing and deploying serverless functions with code to invoke the GenAI API, which is not a no-code approach and takes more time than using the Playground.

206
Multi-Selectmedium

An organization is implementing a RAG system using OCI GenAI. Which two are best practices for optimizing retrieval and generation? (Choose two.)

Select 2 answers
A.Use the same embedding model for both retrieval and generation
B.Store all documents in a single large index
C.Use semantic search (embeddings) for document retrieval
D.Implement caching for frequently asked questions
E.Disable summarization to save inference costs
AnswersC, D

Semantic search captures meaning beyond keywords, improving relevance.

Why this answer

Semantic search using embeddings retrieves documents based on meaning rather than keyword matching, which significantly improves the relevance of context provided to the LLM in a RAG system. This aligns with best practices for OCI GenAI, where embedding models convert text into vector representations for similarity search in a vector database.

Exam trap

Oracle often tests the misconception that retrieval and generation should share the same model, but in practice they are optimized separately, and candidates may confuse 'embedding model' with 'generation model' in a RAG context.

207
MCQeasy

Which OCI Generative AI model is designed to rerank and improve the relevance of documents retrieved by a search system?

A.Cohere Rerank
B.Cohere Embed
C.Cohere Command R
D.Meta Llama 3
AnswerA

Rerank is purpose-built for reranking search results.

Why this answer

Cohere Rerank is specifically designed for reranking documents to improve relevance ranking.

208
Multi-Selecteasy

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

Select 2 answers
A.Provide a few-shot example that includes step-by-step reasoning
B.Add a stop sequence after the final answer
C.Use a large max_tokens value to allow long output
D.Set temperature to 0.0 for deterministic reasoning
E.Instruct the model to think step by step before answering
AnswersA, E

Few-shot examples with reasoning demonstrate the pattern.

Why this answer

Chain-of-thought requires the model to output intermediate reasoning steps, and providing an example with reasoning helps guide the model.

209
MCQhard

A team is deploying a RAG system that uses OCI Generative AI to answer questions about internal HR policies. The system must comply with data residency requirements: all data processing must stay within a specific OCI region. The team uses OCI Data Science for orchestration. Which architecture BEST meets the data residency requirement?

A.Deploy the generative AI model endpoints within the same OCI region as the data and compute.
B.Use OCI Generative AI endpoints in a different region but store data in the required region.
C.Use an external third-party LLM endpoint that guarantees data residency.
D.Store embeddings in a different region but run inference in the required region.
AnswerA

All components remain in the specified region, ensuring compliance.

Why this answer

Deploying the generative AI model endpoints within the same OCI region as the data and compute ensures that all data processing—including inference, embedding generation, and vector search—occurs entirely within the required region, satisfying data residency requirements. OCI Generative AI endpoints are region-specific and do not automatically route requests to other regions, so co-locating all components avoids any cross-region data transfer.

Exam trap

Oracle often tests the misconception that data residency only applies to storage, not to processing—candidates may think storing data in the required region is sufficient, but the trap is that inference and embedding generation also count as data processing and must occur in the same region.

How to eliminate wrong answers

Option B is wrong because using OCI Generative AI endpoints in a different region while storing data in the required region would cause inference requests and model processing to occur outside the required region, violating data residency requirements. Option C is wrong because an external third-party LLM endpoint that guarantees data residency still requires data to leave the OCI region to reach the external service, which breaks the requirement that all data processing must stay within a specific OCI region. Option D is wrong because storing embeddings in a different region while running inference in the required region means the embedding data (derived from HR policies) resides outside the required region, failing the data residency constraint.

210
MCQeasy

A developer wants to integrate OCI GenAI into a Java application. Which SDK should they use?

A.OCI JavaScript SDK.
B.OCI Python SDK.
C.OCI Java SDK.
D.OCI CLI.
AnswerC

The Java SDK is designed for Java applications.

Why this answer

The OCI Java SDK provides native Java support for calling OCI services, including OCI Generative AI, making it the appropriate choice for a Java application. Options A and B are SDKs for other languages, and option D is a CLI tool, not an SDK.

211
Multi-Selecthard

A company is designing a generative AI solution on OCI that must comply with data privacy regulations. Which three best practices should they follow? (Choose three.)

Select 3 answers
A.Enable audit logging for all inference requests
B.Allocate a dedicated compartment for generative AI resources to apply specific IAM policies
C.Use dedicated AI clusters with private endpoints to keep data within the OCI network
D.Store all inference inputs and outputs in a public bucket for transparency
E.Use customer-managed keys (CMK) for encrypting model artifacts and inference data
AnswersA, C, E

Audit logs help demonstrate compliance with data privacy regulations.

Why this answer

Enabling audit logging for all inference requests is a fundamental data privacy best practice. It provides an immutable record of who accessed the generative AI service, what data was sent, and when, which is essential for compliance audits and detecting unauthorized access. OCI Audit service captures these events automatically when configured, ensuring traceability without storing the actual inference payloads.

Exam trap

The trap here is that candidates may confuse general resource management best practices (like compartments) with specific data privacy compliance requirements, or mistakenly think public buckets are acceptable for transparency when they actually create a severe data exposure risk.

212
Multi-Selectmedium

Which THREE are valid ways to interact with OCI Generative AI?

Select 3 answers
A.OCI Mobile App.
B.OCI Data Science Notebooks.
C.OCI REST API.
D.OCI CLI.
E.OCI Console Playground.
AnswersC, D, E

REST API is the underlying interface for all interactions.

Why this answer

OCI Generative AI exposes a comprehensive REST API that allows developers to programmatically interact with the service for tasks such as text generation, summarization, and chat. The REST API uses standard HTTP methods and JSON payloads, making it accessible from any language or tool that can send HTTP requests.

Exam trap

Candidates often confuse management tools (like OCI Mobile App or Data Science Notebooks) with direct inference interfaces. Only the REST API, CLI, and Console Playground allow direct interaction with OCI Generative AI models.

213
MCQmedium

A developer wants to compose a LangChain pipeline using the LCEL (LangChain Expression Language) to combine a prompt template, a model, and an output parser. Which operator is used for this composition?

A.>> (right shift) operator
B.-> (arrow) operator
C.| (pipe) operator
D.+ (plus) operator
AnswerC

LCEL uses the | operator to compose chains.

Why this answer

In LangChain Expression Language (LCEL), the pipe operator `|` is used to compose components like prompt templates, models, and output parsers into a single chain. This operator passes the output of one component as the input to the next, enabling a clean, declarative pipeline syntax.

Exam trap

OCI often tests the LCEL pipe operator by presenting operators from other programming paradigms (like `>>` for bit shifting or `->` for arrow functions) to confuse candidates who are not familiar with LangChain's specific syntax.

How to eliminate wrong answers

Option A is wrong because the `>>` (right shift) operator is not used in LCEL; it is commonly associated with bitwise operations or stream redirection in other languages, not LangChain composition. Option B is wrong because the `->` (arrow) operator is not part of LCEL; it is often used in lambda expressions or method references in languages like Java or C++, not for chaining LangChain components. Option D is wrong because the `+` (plus) operator is not used for composition in LCEL; it is typically used for arithmetic or string concatenation, not for defining execution pipelines.

214
Multi-Selectmedium

A data scientist is evaluating different models for a summarization task. Which two metrics are commonly used to evaluate the quality of generated summaries?

Select 2 answers
A.F1 score
B.Mean Average Precision
C.ROUGE
D.Perplexity
E.BLEU
AnswersC, E

ROUGE measures overlap of n-grams between generated and reference summaries, commonly used for summarization.

Why this answer

ROUGE (Recall-Oriented Understudy for Gisting Evaluation) is a standard metric for summarization that measures the overlap of n-grams, word sequences, or word pairs between the generated summary and reference summaries. It focuses on recall, making it well-suited for evaluating how well the generated summary captures the key content from the reference.

Exam trap

Oracle often tests the distinction between metrics used for summarization (ROUGE) versus translation (BLEU) versus language modeling (Perplexity), and candidates may confuse BLEU as a summarization metric because it also evaluates text generation, but it is primarily designed for translation tasks.

215
MCQmedium

A data scientist needs to fine-tune a model using OCI Generative AI. They have prepared a dataset in JSONL format with prompt/completion pairs. The fine-tuning job is configured with the T-Few technique. What is a key characteristic of T-Few fine-tuning?

A.It requires unlabeled data for unsupervised pre-training before fine-tuning
B.It updates all model parameters, requiring significant compute resources
C.It modifies a small subset of parameters using lightweight adapter layers
D.It only trains a new classification head on top of a frozen base model
AnswerC

T-Few uses adapter-based fine-tuning that updates a small number of parameters while keeping most of the model frozen.

Why this answer

T-Few is a parameter-efficient fine-tuning method that updates only a small fraction of model parameters, making it faster and more resource-efficient than full fine-tuning. It does not train all parameters, add new layers, or require unlabeled data.

216
MCQhard

A team has deployed a generative AI model using OCI Data Science model deployment. The endpoint is behind a load balancer. Users report that after 5 minutes of inactivity, the first request takes over 30 seconds to respond, while subsequent requests are fast. What is the most likely cause and solution?

A.The model deployment has an idle timeout that scales down to zero; configure a minimum number of instances or use a warm-up request
B.The load balancer is scaling based on CPU utilization; increase the CPU threshold
C.The VCN has a network latency issue; use a different availability domain
D.The inference code has a lazy initialization; pre-load the model in the deployment script
AnswerA

Idle timeout causes cold start; setting min replicas or health check warm-up solves it.

Why this answer

The described behavior—first request after 5 minutes of inactivity taking over 30 seconds, with subsequent requests fast—is a classic symptom of an idle timeout that scales the model deployment to zero instances. OCI Data Science model deployments support auto-scaling with an idle timeout (default 5 minutes) that can reduce the number of instances to zero when no requests are received. When a new request arrives, it must wait for a new instance to spin up, causing the delay.

The solution is to configure a minimum number of instances (e.g., 1) to keep the model warm, or use a warm-up request to prevent the idle timeout from triggering.

Exam trap

Oracle often tests the distinction between infrastructure-level idle timeouts (which cause cold starts after inactivity) and application-level lazy initialization (which causes a one-time delay after deployment), and candidates may confuse the 5-minute inactivity pattern with a code initialization issue rather than a scaling policy.

How to eliminate wrong answers

Option B is wrong because the load balancer scaling based on CPU utilization would cause performance degradation under high load, not a cold-start delay after inactivity; increasing the CPU threshold would not address the idle timeout issue. Option C is wrong because a VCN network latency issue would cause consistently slow responses, not a pattern where only the first request after inactivity is slow. Option D is wrong because lazy initialization in the inference code would cause a delay on the first request after deployment or code reload, not specifically after 5 minutes of inactivity; the 5-minute window matches the default idle timeout of the model deployment, not a code-level initialization.

217
MCQhard

Refer to the exhibit. The output is very short and cuts off mid-sentence. Which parameter is most likely the cause?

A.Max-tokens is too low
B.Temperature is too high
C.Model ID incorrect
D.Top-p is too high
AnswerA

If the output exceeds max-tokens, it gets truncated, causing the cut-off.

Why this answer

The 'max-tokens' parameter controls the maximum number of tokens (words or subwords) the model can generate in a single response. When set too low, the model is forced to stop generating output before completing its thought, resulting in a truncated or cut-off sentence. This is the most direct cause of an output that ends abruptly mid-sentence.

Exam trap

Oracle often tests the distinction between parameters that control output length (max-tokens) versus those that control output diversity (temperature, top-p), leading candidates to confuse the effect of randomness with truncation.

How to eliminate wrong answers

Option B is wrong because a high temperature increases randomness in token selection, leading to more creative or divergent responses, but it does not cause premature truncation. Option C is wrong because an incorrect model ID would typically result in a model not found error or unexpected behavior, not a clean but short output. Option D is wrong because a high top-p value allows the model to consider a larger pool of probable tokens, which can make output more varied but does not limit the length of the response.

218
MCQmedium

A developer notices that a text generation model produces repetitive phrases when using greedy decoding. Which sampling strategy would best introduce controlled randomness to reduce repetition while maintaining coherence?

A.Use greedy decoding but with a repetition penalty
B.Apply temperature sampling with temperature > 1
C.Increase the beam width in beam search
D.Disable top-k sampling
AnswerB

Higher temperature flattens the probability distribution, making less likely tokens more probable, reducing repetition while maintaining coherence.

Why this answer

Temperature sampling scales the logits before applying softmax, controlling the randomness of token selection. A temperature > 1 increases diversity, reducing repetition, while still allowing the model to generate coherent text.

219
MCQeasy

A developer wants to integrate generative AI capabilities into an application using REST API calls. Which OCI Generative AI service endpoint should they use for text generation?

A./completions
B./models
C./inference
D./chat
AnswerA

/completions is the endpoint for generating text completions.

Why this answer

The OCI Generative AI service exposes a REST API endpoint at `/completions` specifically for text generation tasks. This endpoint accepts a prompt and returns a generated text completion, aligning directly with the developer's requirement to integrate generative AI capabilities via REST API calls.

Exam trap

The trap here is that candidates confuse the `/chat` endpoint (designed for conversational AI) with the `/completions` endpoint (designed for single-turn text generation), or assume `/inference` is a generic catch-all endpoint for all AI tasks.

How to eliminate wrong answers

Option B is wrong because `/models` is used to list or retrieve metadata about available generative AI models, not to perform text generation. Option C is wrong because `/inference` is not a valid endpoint in the OCI Generative AI REST API; the correct endpoint for inference-based text generation is `/completions`. Option D is wrong because `/chat` is an endpoint designed for conversational AI interactions (multi-turn chat), not for single-turn text generation tasks.

220
MCQmedium

A team deploys a generative AI model endpoint and notices intermittent 429 Too Many Requests errors. The endpoint is configured with auto-scaling using a dedicated AI cluster. What is the most likely cause?

A.The model's context window exceeded
B.Insufficient storage on the cluster
C.The auto-scaling policy is not aggressive enough
D.Rate limiting at the OCI API Gateway
AnswerC

Auto-scaling may not be scaling up quickly enough to handle traffic spikes, leading to throttling.

Why this answer

The 429 Too Many Requests error indicates that the endpoint is receiving more requests than it can handle. With auto-scaling enabled on a dedicated AI cluster, the most likely cause is that the auto-scaling policy is not aggressive enough to keep up with the request rate, meaning it scales up too slowly or has insufficient maximum instance limits to handle the traffic spike.

Exam trap

The trap here is that candidates often confuse client-side rate limiting (API Gateway) with server-side capacity issues (auto-scaling lag), but the dedicated AI cluster configuration points directly to insufficient scaling policy aggressiveness.

How to eliminate wrong answers

Option A is wrong because exceeding the model's context window would result in a 400 Bad Request or an input length error, not a 429 rate-limiting error. Option B is wrong because insufficient storage on the cluster would manifest as disk-full errors or model loading failures, not HTTP 429 responses which are specifically about request throttling. Option D is wrong because the question states the endpoint is configured with auto-scaling using a dedicated AI cluster, implying the endpoint is directly exposed without an OCI API Gateway in front; rate limiting at the API Gateway would be a separate layer and is not mentioned in the configuration.

221
MCQmedium

A company uses OCI Generative AI service to power a chatbot. After deployment, the chatbot starts generating inappropriate responses. Which action should be taken first?

A.Increase the temperature parameter.
B.Fine-tune the model on customer-specific data.
C.Switch to a larger model.
D.Adjust the prompt template to include safety instructions.
AnswerD

Adding safety instructions in the prompt is a quick and effective safeguard.

Why this answer

Adjusting the prompt template to include safety instructions is the fastest and most direct way to mitigate inappropriate responses without retraining or changing model parameters. In OCI Generative AI, prompt engineering—including explicit safety guidelines—can immediately constrain the model's output behavior by providing clear guardrails in the context window.

Exam trap

Oracle often tests the misconception that safety issues require model retraining or parameter tuning, when in fact prompt engineering is the first-line, low-cost intervention recommended in OCI documentation.

How to eliminate wrong answers

Option A is wrong because increasing the temperature parameter would make the model's output more random and creative, likely worsening inappropriate responses rather than fixing them. Option B is wrong because fine-tuning on customer-specific data requires significant time, cost, and labeled data, and does not directly address safety issues—it is an over-engineered solution for a problem that can be solved with prompt adjustments. Option C is wrong because switching to a larger model does not inherently improve safety; larger models may even generate more complex or unexpected inappropriate content without proper guardrails.

222
MCQhard

A team uses OCI Generative AI's summarization feature to condense legal documents. The summaries sometimes omit critical clauses. Which parameter adjustment is most likely to improve completeness?

A.Adjust frequencyPenalty.
B.Increase temperature.
C.Decrease topP.
D.Increase maxTokens.
AnswerD

A larger token limit enables longer summaries, helping to include critical clauses.

Why this answer

Increasing maxTokens (option D) is the most direct way to improve completeness because it extends the maximum length of the generated summary, allowing the model to include more content from the source legal document. Critical clauses are often omitted when the token limit truncates the output before the model can cover all essential sections. This parameter controls the output length, not the style or randomness of the generation.

Exam trap

Oracle often tests the misconception that randomness parameters (temperature, topP) or repetition penalties control output length, when in fact only maxTokens directly determines how much text the model can produce.

How to eliminate wrong answers

Option A is wrong because frequencyPenalty reduces repetition by penalizing tokens that have already appeared, which does not address the omission of critical clauses—it only discourages the model from repeating itself. Option B is wrong because increasing temperature adds randomness to token selection, which can make the summary less coherent and more likely to skip important details, not improve completeness. Option C is wrong because decreasing topP narrows the set of candidate tokens to only the most probable ones, which can make the output more conservative and even more likely to omit less common but critical clauses.

223
MCQmedium

A company uses OCI Generative AI Agents to build a RAG application that answers questions from documents stored in OCI Object Storage. The knowledge base is updated daily. Which step is necessary to ensure the agent incorporates the latest documents?

A.Re-sync the knowledge base after updating the documents in Object Storage
B.Use the Embedding API to manually index each new document
C.Set the session API to refresh automatically
D.Recreate the agent each time documents change
AnswerA

Re-syncing the knowledge base indexes the new or updated documents, making them available for retrieval by the agent.

Why this answer

The knowledge base indexes the data sources. To reflect changes in the source documents, you must re-sync or re-index the knowledge base. The agent endpoint or session API does not automatically refresh content.

224
MCQmedium

A financial firm wants to use OCI Generative AI for contract analysis. They need to reduce costs by using a smaller, specialized model. Which approach should they take?

A.Use a large base model (e.g., Cohere Command) on a serverless endpoint
B.Use a large base model on a dedicated AI cluster
C.Use a third-party LLM
D.Fine-tune a smaller base model on a dedicated AI cluster
AnswerD

Smaller fine-tuned model reduces cost while meeting specialization needs.

Why this answer

Fine-tuning a smaller base model on a dedicated AI cluster allows the financial firm to tailor the model specifically for contract analysis tasks, reducing computational overhead and cost compared to using a large general-purpose model. OCI Generative AI supports fine-tuning of smaller models like Cohere Command Light on dedicated AI clusters, enabling domain-specific optimization without the expense of running a large model for every inference.

Exam trap

Oracle often tests the misconception that larger models are always better for specialized tasks, but the trap here is that fine-tuning a smaller model on a dedicated AI cluster provides both cost efficiency and domain accuracy, which candidates overlook in favor of familiar large-model options.

How to eliminate wrong answers

Option A is wrong because using a large base model (e.g., Cohere Command) on a serverless endpoint incurs higher per-token costs and lacks the specialization needed for contract analysis, contradicting the requirement to reduce costs with a smaller model. Option B is wrong because deploying a large base model on a dedicated AI cluster increases infrastructure costs and still does not provide the targeted performance of a fine-tuned smaller model for contract-specific tasks. Option C is wrong because using a third-party LLM introduces data sovereignty, latency, and integration concerns, and does not leverage OCI's native fine-tuning capabilities for cost-effective specialization.

225
MCQmedium

A company needs to generate embeddings for a large corpus of legal documents to enable semantic search. Which type of model should they use?

A.An encoder-only embedding model like Cohere Embed
B.A decoder-only generation model like GPT
C.A text-to-speech model
D.A machine translation model
AnswerA

Embedding models are specifically trained to output high-quality embeddings for similarity.

Why this answer

An encoder-only embedding model like Cohere Embed is designed to convert text into dense vector representations (embeddings) that capture semantic meaning, which is exactly what is needed for semantic search over a large corpus of legal documents. These models use a bidirectional transformer architecture to encode context from both directions, producing fixed-size embeddings that can be efficiently compared using cosine similarity or other distance metrics.

Exam trap

The 1Z0-1127 exam often tests the misconception that any large language model (LLM) can generate embeddings, but the trap here is that decoder-only models (like GPT) are fundamentally designed for generation, not for producing fixed-size, bidirectional embeddings suitable for semantic search.

How to eliminate wrong answers

Option B is wrong because decoder-only generation models like GPT are optimized for autoregressive text generation, not for producing fixed-size embeddings; they lack the bidirectional context needed for high-quality semantic representations. Option C is wrong because text-to-speech models convert text into audio waveforms, which is irrelevant for generating text embeddings for semantic search. Option D is wrong because machine translation models are designed to map text from one language to another, not to produce general-purpose embeddings for similarity search.

Page 2

Page 3 of 11

Page 4

All pages