Courseiva

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

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

Page 5

Page 6 of 11

Page 7
376
MCQmedium

A data scientist is using OCI Data Science with the Generative AI service to fine-tune a Cohere Command model on a custom dataset of customer support tickets. After training, the model produces poor, irrelevant responses. What is the most likely cause?

A.Incorrect tokenizer configuration
B.Insufficient training data quality or quantity
C.Too many epochs causing overfitting
D.Model architecture mismatch between fine-tuned and base model
AnswerB

Cohere models need clean, diverse, and task-relevant data; poor data leads to poor fine-tuning.

Why this answer

Insufficient training data quality or quantity is the most likely cause because fine-tuning a Cohere Command model on a custom dataset of customer support tickets requires a sufficiently large and representative dataset to teach the model domain-specific patterns. If the dataset is too small, noisy, or lacks diversity, the model will fail to generalize and produce irrelevant responses, even with correct tokenization and training hyperparameters.

Exam trap

Oracle often tests the misconception that overfitting (Option C) is the primary cause of poor model output after fine-tuning, but in this scenario the irrelevance points to data insufficiency rather than memorization of training examples.

How to eliminate wrong answers

Option A is wrong because incorrect tokenizer configuration would typically cause tokenization errors or mismatched vocabulary, not poor semantic relevance; the Cohere Command model uses a fixed tokenizer that is automatically applied during fine-tuning in OCI Data Science. Option C is wrong because too many epochs causing overfitting would result in the model memorizing training examples and producing overly specific or repetitive responses, not generally irrelevant ones; overfitting typically degrades performance on unseen data but does not cause broad irrelevance. Option D is wrong because model architecture mismatch between fine-tuned and base model is not possible in OCI Data Science's Generative AI service, as the fine-tuning process uses the same architecture as the base model; the service enforces compatibility.

377
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.Fine-tune a base LLM on the policy documents monthly
B.Use Retrieval-Augmented Generation (RAG) with the policy documents indexed in a vector store
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
AnswerB

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

Why this answer

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

378
Multi-Selectmedium

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

Select 3 answers
A.Preamble that instructs the model to use provided documents
B.A stop sequence to end generation
C.Conversation history in the expected format
D.Documents wrapped in the document-grounded generation syntax
E.A temperature of 0.0
AnswersA, C, D

Preamble is a system-level instruction for the task.

Why this answer

The preamble sets the task, conversation history maintains context, and the document syntax provides source material.

379
Multi-Selecteasy

Which THREE of the following are core LangChain components?

Select 3 answers
A.Memory
B.Embeddings
C.Prompts
D.Tokens
E.Models
AnswersA, C, E

Why this answer

LangChain core components include Models, Prompts, Memory, Agents, Retrievers, Document Loaders, Chains, etc.

380
MCQmedium

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

A.Include the persona instruction in every user message
B.Use a high temperature to encourage friendly language
C.Fine-tune the model on customer support dialogues
D.Set the persona in the system prompt (or preamble) before the conversation begins
AnswerD

The system prompt/preamble influences all subsequent messages.

Why this answer

Oracle's generative AI services support a system prompt (or preamble in Cohere) that sets the assistant's persona, which applies to the entire conversation.

381
MCQeasy

You want to test different prompts and parameters (temperature, max tokens) for a summarization task using a foundation model without writing any code. Which OCI tool should you use?

A.OCI Console -> Generative AI -> Models
B.OCI Generative AI Playground
C.OCI CLI with the 'oci generative-ai' commands
D.Python SDK with InferenceClient
AnswerB

The Playground is a web-based interface that allows you to select models, adjust parameters, and see outputs instantly.

Why this answer

The OCI Generative AI Playground provides an interactive UI to experiment with models and parameters. CLI, SDK, and console navigation are not for interactive experimentation.

382
Multi-Selectmedium

Which TWO of the following are best practices when implementing a RAG application using OCI OpenSearch as a vector store?

Select 2 answers
A.Use a large embedding dimension (e.g., 1536) to improve accuracy.
B.Set index.number_of_replicas to 0 to speed up indexing.
C.Enable approximate nearest neighbor (ANN) search for large datasets.
D.Store the embedding vectors in the _source field to simplify retrieval.
E.Use cosine similarity as the distance metric for vector comparison.
AnswersC, E

ANN search significantly reduces query latency for large vector collections.

Why this answer

For large datasets, exact nearest neighbor (k-NN) search becomes computationally expensive and slow. OCI OpenSearch supports approximate nearest neighbor (ANN) search using algorithms like HNSW, which dramatically reduce latency while maintaining high recall, making it essential for production RAG applications with millions of vectors.

Exam trap

A common trap is the misconception that larger embedding dimensions always improve accuracy, when in fact the dimension should match the model's output (e.g., 768 for all-MiniLM-L6-v2) and larger dimensions increase cost without proportional benefit.

383
Multi-Selectmedium

A team is building a LangChain agent that needs to answer questions using both a company-internal knowledge base (stored in Oracle AI Vector Search) and live web search. Which THREE components should they include in the agent setup?

Select 3 answers
A.AgentExecutor to manage the ReAct loop
B.A tool wrapping the vector store retriever
C.ConversationBufferMemory for storing chat history
D.A custom tool for logging agent steps
E.A tool wrapping a web search engine (e.g., Tavily, SerpAPI)
AnswersA, B, E

AgentExecutor runs the agent's reasoning and tool execution loop.

Why this answer

A LangChain agent requires a set of tools (vector store retriever as a tool, web search tool), and an AgentExecutor to orchestrate the reasoning and tool calls. The LLM is already part of the agent definition.

384
Multi-Selectmedium

An organization wants to use OCI Generative AI for a multilingual translation task. They need high quality and must avoid biases present in the training data. Which THREE strategies should they consider? (Select THREE.)

Select 3 answers
A.Use a RAG pipeline to retrieve canonical translations from a trusted database
B.Implement a human-in-the-loop review process to catch biased translations
C.Fine-tune a pre-trained model on a high-quality parallel corpus for the target language pairs
D.Increase the temperature parameter to 1.5 to reduce repetitive biases
E.Use an encoder-decoder model such as T5 or BART
AnswersB, C, E

Human review is an effective way to identify and correct biased outputs.

Why this answer

Fine-tuning on high-quality parallel corpora improves accuracy. Using models designed for translation (e.g., encoder-decoder) often yields better results. Implementing human-in-the-loop review catches biases.

Increasing temperature may reduce bias but also reduces quality; it is not a primary strategy for bias mitigation. RAG is not directly applicable to translation as it requires retrieved documents in the target language.

385
MCQhard

An organization wants to deploy a chatbot that uses a custom fine-tuned model. They have provisioned a Dedicated AI Cluster with 4 model units. During peak hours, they observe high latency and want to reduce it. What is the most cost-effective change?

A.Increase the number of model units in the dedicated cluster
B.Reduce the max_tokens parameter in the application
C.Switch to shared infrastructure to get more capacity
D.Enable response streaming
AnswerA

More model units provide additional compute capacity, reducing latency.

Why this answer

Adding more model units increases throughput and reduces latency by distributing the load. This is the direct way to improve performance on a dedicated cluster.

386
MCQeasy

Which model architecture is used by BERT for natural language understanding tasks?

A.Recurrent neural network
B.Encoder-decoder
C.Encoder-only
D.Decoder-only
AnswerC

BERT is an encoder-only model that uses bidirectional self-attention to understand the full context of the input.

Why this answer

BERT uses an encoder-only architecture, which processes the entire input sequence bidirectionally. This makes it well-suited for tasks like classification, NER, and QA where understanding the full context is important.

387
MCQmedium

A company has a large dataset of legal documents in multiple languages. They need to find documents semantically similar to a query. Which step is essential for this task?

A.Apply BPE tokenization to all documents
B.Use a text embedding model to convert documents into dense vector representations
C.Fine-tune a generation model on the legal documents
D.Use beam search to identify similar passages
AnswerB

Embedding models produce vectors that enable semantic similarity computation via cosine similarity.

Why this answer

Embedding models convert text into dense vectors that capture semantic meaning. Cosine similarity between query and document embeddings is then used to find similar documents.

388
MCQmedium

A researcher wants to compare two summarization models. Model A achieves a higher ROUGE-L score than Model B, but human evaluators prefer Model B's summaries. Which of the following is the MOST likely reason?

A.Model A overfits to the training data
B.Model B has a larger context window
C.ROUGE-L measures n-gram overlap, which may not align with human judgment of quality
D.Model A is an encoder-decoder model while Model B is decoder-only
AnswerC

Human evaluators consider factors like readability and conciseness, which ROUGE-L does not capture fully.

Why this answer

ROUGE-L measures n-gram overlap, which may not capture semantic quality. Human evaluators often prefer summaries that are fluent, coherent, and concise, even if they use different wording. The discrepancy indicates that ROUGE-L alone is insufficient for evaluation.

389
Multi-Selecteasy

A company wants to use LangChain to build a chatbot that remembers previous conversations across sessions. Which TWO components should they use together?

Select 2 answers
A.LLMChain
B.ChatMessageHistory with a persistent backend (e.g., RedisChatMessageHistory)
C.ConversationBufferMemory
D.AgentExecutor
E.OCIGenAIEmbeddings
AnswersB, C

Persists messages across sessions.

Why this answer

To persist chat history across sessions, you need a memory type that stores history externally, such as ConversationBufferMemory combined with a persistent store like RedisChatMessageHistory. ConversationSummaryMemory can also be persisted similarly. The other options are not memory types.

390
Multi-Selecthard

Which three characteristics of LLMs can lead to hallucinations? (Select THREE)

Select 3 answers
A.Overconfidence in predictions
B.Ability to generate plausible-sounding text
C.Lack of real-world grounding
D.Gaps in training data coverage
E.Large vocabulary size
AnswersB, C, D

Correct: Fluency can mask inaccuracies.

Why this answer

LLMs are trained to generate text that is statistically plausible and coherent, but they lack mechanisms to verify factual accuracy. This means they can produce sentences that sound convincing and grammatically correct while being entirely false, which is a direct cause of hallucinations.

Exam trap

Oracle often tests the distinction between symptoms and root causes, so the trap here is that candidates might confuse 'overconfidence in predictions' (a symptom) with a direct cause of hallucinations, or mistakenly think 'large vocabulary size' contributes to hallucinations when it is merely an enabler of the model's generative capability.

391
Multi-Selectmedium

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

Select 2 answers
A.Document-grounded generation syntax
B.Preamble
C.Max tokens
D.High temperature setting
E.Conversation history format
AnswersB, E

Preamble defines the chatbot's behavior and role.

Why this answer

The preamble sets the chatbot's persona and rules. Conversation history format allows passing previous exchanges for context. Document-grounded generation is for knowledge base retrieval but not for multi-turn context.

392
MCQeasy

A data scientist is using a large language model to summarize customer support tickets. The model occasionally generates summaries that include hallucinated details not present in the original ticket. Which technique would best reduce hallucinations while maintaining summary quality?

A.Implement retrieval-augmented generation (RAG) to ground the model in relevant documents.
B.Use a longer system prompt instructing the model to be factual.
C.Fine-tune the model on a large corpus of general text to improve its knowledge.
D.Increase the temperature parameter to 0.9 to encourage more deterministic outputs.
AnswerA

RAG provides factual context, reducing hallucinations.

Why this answer

Retrieval-Augmented Generation (RAG) reduces hallucinations by grounding the model's output in external, verifiable documents retrieved from a knowledge base. Instead of relying solely on the model's parametric memory, RAG fetches relevant context (e.g., the original ticket) at inference time, ensuring the summary is factually aligned with the source. This maintains summary quality because the model can still generate fluent text while being constrained to the retrieved evidence.

Exam trap

Oracle often tests the misconception that simply instructing the model to be factual (Option B) or fine-tuning (Option C) can eliminate hallucinations, when in reality grounding via retrieval (RAG) is the only technique that directly supplies external evidence to constrain generation.

How to eliminate wrong answers

Option B is wrong because a longer system prompt instructing the model to be factual does not provide new factual data; it only changes the model's behavior via instruction tuning, which cannot correct hallucinations stemming from missing or incorrect parametric knowledge. Option C is wrong because fine-tuning on a large corpus of general text would not specifically address hallucinations in customer support tickets; it might even dilute domain-specific accuracy and does not provide a retrieval mechanism to verify facts. Option D is wrong because increasing the temperature parameter to 0.9 actually increases randomness and creativity, making outputs less deterministic and more prone to hallucination, not less.

393
MCQmedium

A company wants to build a sentiment analysis system for customer reviews. They have a labeled dataset of 10,000 reviews. Which approach is most cost-effective and likely to yield good performance?

A.Use GPT-4 with a prompt and no fine-tuning
B.Use a simple bag-of-words model with logistic regression
C.Fine-tune a pre-trained BERT model on the labeled dataset
D.Train a Transformer model from scratch on the reviews
AnswerC

BERT is pre-trained for language understanding; fine-tuning on a small classification dataset is efficient and effective.

Why this answer

Fine-tuning a pre-trained encoder-only model like BERT on the labeled dataset is a standard approach for classification tasks, offering good performance with relatively modest data and compute.

394
Multi-Selectmedium

Which THREE of the following are supported capabilities of OCI Generative AI Service?

Select 3 answers
A.Text summarization
B.Sentiment analysis
C.Image generation
D.Question answering
E.Code generation
AnswersA, D, E

Summarization is a core capability.

Why this answer

OCI Generative AI Service includes a dedicated text summarization capability that uses large language models (LLMs) to generate concise summaries from longer documents. This feature is part of the service's core generative AI offerings, supporting use cases like meeting notes summarization and document abstraction.

Exam trap

Oracle often tests the distinction between OCI Generative AI Service (text generation only) and other OCI AI services (e.g., AI Language for sentiment analysis, Vision for image tasks), causing candidates to mistakenly attribute all AI capabilities to the generative service.

395
MCQhard

A machine learning engineer evaluates OCI Generative AI for a real-time content generation application. They need to meet a SLAs of 99.9% availability. Which deployment architecture satisfies the requirement with the lowest cost?

A.Two dedicated AI clusters in different regions.
B.Two dedicated AI clusters in different availability domains.
C.Two dedicated AI clusters in the same availability domain.
D.Single dedicated AI cluster with a single replica.
AnswerB

Clusters in different ADs provide resilience against AD failures at moderate cost.

Why this answer

Deploying two dedicated AI clusters in different availability domains within a single region provides high availability (HA) to meet the 99.9% SLA while minimizing cost. OCI's dedicated AI clusters are regional resources, and placing replicas across availability domains protects against domain-level failures without the cross-region data transfer and egress costs incurred by multi-region deployments.

Exam trap

The trap here is that candidates often assume multi-region deployment is required for high availability, but OCI's 99.9% SLA can be achieved within a single region using availability domains, making the cross-region option unnecessarily expensive.

How to eliminate wrong answers

Option A is wrong because two dedicated AI clusters in different regions introduces unnecessary cross-region data transfer costs and higher latency, making it more expensive than a single-region HA solution. Option C is wrong because two dedicated AI clusters in the same availability domain does not protect against availability domain failures, thus failing to meet the 99.9% SLA requirement. Option D is wrong because a single dedicated AI cluster with a single replica provides no redundancy; any failure of that cluster or its underlying infrastructure would cause downtime, violating the 99.9% availability SLA.

396
MCQmedium

A team is using LangChain's ConversationalRetrievalChain with ConversationBufferMemory to build a chatbot. After a few turns, the chatbot starts repeating information from earlier messages. What is the MOST likely cause?

A.The conversation history accumulates in the prompt, causing the model to focus on past messages
B.The chunk_size in the text splitter is too large
C.The LLM's max_tokens parameter is set too low
D.The retriever's similarity search returns irrelevant chunks
AnswerA

Full history in the prompt can cause the model to rephrase or repeat past content.

Why this answer

ConversationBufferMemory stores the entire conversation history, and each new query appends that history to the prompt. As history grows, the LLM may receive redundant context, causing repetition. Using ConversationSummaryMemory or limiting history length can mitigate this.

397
MCQeasy

A developer wants to deploy a custom generative AI model that was trained using OCI Data Science. Which service should they use to expose the model as an API endpoint?

A.OCI API Gateway
B.OCI Data Science Model Deployment
C.OCI Functions
D.OCI Generative AI service
AnswerB

This is purpose-built for deploying models as APIs.

Why this answer

B is correct because OCI Data Science Model Deployment is specifically designed to host and serve machine learning models as REST API endpoints. It directly deploys models trained in OCI Data Science, managing the underlying infrastructure, scaling, and providing a secure HTTPS endpoint for inference requests.

Exam trap

The trap here is that candidates confuse OCI Generative AI service (a managed service for pre-built models) with the ability to deploy custom models, or they assume API Gateway alone can serve a model without a backend compute service.

How to eliminate wrong answers

Option A is wrong because OCI API Gateway is a service for creating, managing, and securing API endpoints for backend services, but it does not host or run models; it would need a separate compute target like a model deployment behind it. Option C is wrong because OCI Functions is a serverless compute service for running stateless code snippets (functions) in response to events, not for hosting large generative AI models with persistent state and GPU requirements. Option D is wrong because OCI Generative AI service is a managed service that provides pre-built foundation models (like LLMs) from providers such as Cohere and Meta, not a platform to deploy custom models trained by the user.

398
MCQhard

A healthcare company is using OCI Generative AI to analyze patient records and generate clinical summaries. The company must comply with HIPAA regulations, which require that all protected health information (PHI) be encrypted at rest and in transit, and that access be logged and audited. The current architecture uses an OCI Data Science model deployment with a public endpoint. The model is stored in an OCI Object Storage bucket that is publicly accessible for testing. The company is now moving to production. The compliance officer has flagged the following issues: (1) The model endpoint is publicly accessible. (2) The bucket containing the model is public. (3) No audit logs are enabled. The company wants to remediate these issues while maintaining the ability to invoke the model from on-premises applications via a secure connection. Which set of actions should the architect take?

A.Switch the model endpoint to a private subnet with a service gateway, change the bucket to be accessible only via pre-authenticated requests, and enable OCI Logging for the model deployment.
B.Keep the public endpoint but restrict access using IAM policies and source IP addresses, make the bucket private, and enable OCI Audit.
C.Switch the model endpoint to a private subnet with a service gateway, update the bucket policy to block all public access, enable OCI Audit service, and set up a VPN or FastConnect for on-premises access.
D.Use a public load balancer with SSL termination, restrict bucket access to the load balancer's OCID, and enable OCI Audit.
AnswerC

This ensures private endpoint, private bucket, audit logging, and secure on-premises connectivity.

Why this answer

It addresses all three compliance issues: moving the model endpoint to a private subnet with a service gateway removes public exposure, making the bucket private with a policy that blocks all public access secures the model artifacts, and enabling OCI Audit provides the required logging. Additionally, setting up a VPN or FastConnect allows secure on-premises access without exposing the endpoint to the public internet, fully satisfying HIPAA encryption and audit requirements.

Exam trap

The trap here is that candidates often think IP restrictions or pre-authenticated requests are sufficient for HIPAA compliance, but HIPAA requires that PHI be encrypted at rest and in transit and that access be logged and audited—public endpoints and shared URLs violate the 'encryption in transit' and 'audit' requirements because they rely on internet-exposed paths and lack proper access controls.

How to eliminate wrong answers

Option A is wrong because pre-authenticated requests (PARs) still expose the bucket via a URL that can be shared, which does not meet HIPAA's requirement for access logging and audit; PARs are not a substitute for private bucket policies and audit logging. Option B is wrong because keeping the public endpoint even with IP restrictions is not sufficient for HIPAA compliance—public endpoints are inherently exposed to network-level attacks and do not satisfy the requirement for encryption at rest and in transit in a fully private manner; also, OCI Audit alone does not cover logging for the model deployment itself. Option D is wrong because a public load balancer with SSL termination still leaves the endpoint publicly accessible, and restricting bucket access to the load balancer's OCID does not prevent the bucket from being publicly listed or accessed via other paths; OCI Audit alone does not address the public endpoint issue.

399
MCQhard

A company is using OCI GenAI with a Dedicated AI Cluster to serve a large language model for real-time chat applications. They notice high inference latency (average 2 seconds per response) and want to reduce it to under 500 milliseconds without significantly degrading the quality of responses. The cluster is configured with NVIDIA A100 GPUs. The model is the base Cohere Command model (52B parameters). They have explored increasing batch size, but that increases latency for interactive use cases. Which action should they take?

A.Deploy the model with inference optimization frameworks like vLLM, TensorRT, or ONNX Runtime.
B.Increase batch size to process multiple queries at once.
C.Swap the model to a smaller variant, such as Cohere Command Light (6B).
D.Enable model quantization (e.g., int8) to reduce memory and computation.
AnswerA

These frameworks optimize GPU utilization and reduce latency without changing the model.

Why this answer

Inference optimization frameworks like vLLM, TensorRT, and ONNX Runtime are specifically designed to reduce latency for large language models on NVIDIA A100 GPUs. These frameworks use techniques such as PagedAttention (vLLM), kernel fusion, and graph optimization to significantly lower per-request latency without degrading output quality, making them ideal for real-time chat applications where sub-500ms responses are required.

Exam trap

Oracle often tests the misconception that model quantization or smaller models are the only ways to reduce latency, but the trap here is that inference optimization frameworks can achieve dramatic latency reductions without sacrificing model quality or capability.

How to eliminate wrong answers

Option B is wrong because increasing batch size improves throughput but increases per-request latency, which is counterproductive for interactive use cases requiring low latency. Option C is wrong because swapping to a smaller model (Cohere Command Light, 6B) would reduce latency but also significantly degrade response quality and capability, which the question explicitly wants to avoid. Option D is wrong because enabling model quantization (e.g., int8) reduces memory and computation, which can lower latency, but it often introduces a trade-off in model accuracy and may not achieve the target latency on its own without combining with inference optimization frameworks; the question asks for the best single action, and optimization frameworks directly target latency reduction more effectively.

400
MCQeasy

Which OCI Generative AI model family is specifically designed to convert text into vector embeddings for semantic search and clustering tasks?

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

Embed models produce vector embeddings for semantic search, clustering, and classification.

Why this answer

Cohere Embed models (e.g., embed-english-v3.0, embed-multilingual-v3.0) are explicitly designed for generating text embeddings. Cohere Command R and R+ are for generation, Meta Llama 3 is a general-purpose LLM, and Cohere Rerank is for re-ranking search results.

401
MCQmedium

A data scientist is deploying a custom generative AI model using OCI Data Science. After deploying the model to an endpoint, they notice that inference requests are failing with a timeout error when the payload size exceeds 1 MB. What is the most likely cause and solution?

A.The load balancer is misconfigured; reconfigure the load balancer timeout settings.
B.The model server lacks sufficient memory; scale out to more instances.
C.The model is not optimized for large payloads; use AutoML to optimize the model.
D.The model deployment has a default payload size limit of ~1 MB; increase the payload limit in the deployment configuration.
AnswerD

OCI Data Science model deployments have a default request payload limit that can be increased.

Why this answer

OCI Data Science model deployments have a default payload size limit of approximately 1 MB. When inference requests exceed this limit, the load balancer or gateway times out the request. The solution is to increase the payload limit in the deployment configuration, which can be adjusted via the OCI console or API by modifying the `maximumRequestPayloadSize` setting.

Exam trap

The trap here is that candidates often confuse a payload size limit with a generic timeout or resource issue, leading them to choose load balancer reconfiguration (A) or scaling (B) instead of recognizing the explicit payload limit enforced by the deployment configuration.

How to eliminate wrong answers

Option A is wrong because the load balancer timeout settings are not the root cause; the timeout is a symptom of hitting the payload size limit, not a misconfiguration of the load balancer itself. Option B is wrong because insufficient memory would cause out-of-memory errors or slow inference, not a timeout specifically triggered by payload size exceeding 1 MB. Option C is wrong because AutoML optimizes model training and hyperparameters, not the runtime payload handling; the issue is a deployment configuration limit, not model optimization.

402
MCQmedium

Your team is deploying a generative AI model for a clinical decision support system. The model must meet HIPAA compliance requirements. You have trained a model using OCI Data Science and now need to deploy it so that patient data is protected. The application requires real-time inference. Which set of actions should you take to ensure compliance while maintaining low latency?

A.Use OCI Functions with API Gateway and allow anonymous access
B.Deploy in a public subnet with HTTPS and enable OCI Audit
C.Use OCI Data Flow for batch inference and store results in Object Storage with SSE
D.Deploy in a private VCN subnet, use a service gateway, store keys in OCI Vault, and enable OCI Logging and OCI Audit
AnswerD

These actions address HIPAA requirements for access control, encryption, and auditing.

Why this answer

Deploying the model in a private VCN subnet ensures the inference endpoint is not exposed to the internet, meeting HIPAA's requirement for network isolation. Using a service gateway allows private connectivity to OCI services without traversing the internet, while storing encryption keys in OCI Vault enables customer-managed key control for data at rest. Enabling OCI Logging and OCI Audit provides the necessary audit trail for compliance, and the private subnet with service gateway keeps latency low by avoiding internet hops.

Exam trap

Oracle often tests the misconception that HTTPS encryption alone is sufficient for HIPAA compliance, but the trap here is that network isolation (private subnet) is mandatory for PHI, and public subnet exposure violates the HIPAA Security Rule even with encryption in transit.

How to eliminate wrong answers

Option A is wrong because OCI Functions with API Gateway and anonymous access bypasses authentication and authorization, violating HIPAA's access control requirements, and anonymous access exposes patient data to unauthorized users. Option B is wrong because deploying in a public subnet, even with HTTPS, exposes the inference endpoint to the internet, which is not permitted for protected health information (PHI) under HIPAA's security rule, and OCI Audit alone does not enforce network isolation. Option C is wrong because OCI Data Flow is a batch processing service, not suitable for real-time inference, and storing results in Object Storage with SSE does not address the need for low-latency, synchronous inference required by the clinical decision support system.

403
MCQmedium

A company wants to create a chatbot that answers questions based on a large internal document set that is updated weekly. They have limited ML expertise. Which approach is recommended?

A.Fine-tune a model on the entire document set.
B.Train a custom model from scratch.
C.Include all documents in the system prompt.
D.Use retrieval-augmented generation (RAG) with a vector database.
AnswerD

Correct: RAG handles dynamic data without retraining.

Why this answer

Retrieval-Augmented Generation (RAG) with a vector database is the recommended approach because it allows the chatbot to answer questions based on a large, frequently updated document set without requiring model retraining. RAG retrieves relevant document chunks at query time using vector similarity search, then passes them as context to the LLM, ensuring up-to-date answers with minimal ML expertise.

Exam trap

The exam often tests the misconception that fine-tuning is the only way to incorporate custom data, when in fact RAG is the preferred method for dynamic, large-scale document sets due to its cost-effectiveness, ease of updates, and lower ML expertise requirements.

How to eliminate wrong answers

Option A is wrong because fine-tuning a model on the entire document set would require significant ML expertise, computational resources, and would need to be repeated weekly to incorporate updates, making it impractical for a dynamically changing corpus. Option B is wrong because training a custom model from scratch is extremely resource-intensive, requires deep ML expertise, and is unnecessary when pre-trained LLMs can be leveraged with RAG. Option C is wrong because including all documents in the system prompt would exceed the LLM's context window limits (typically 4K-128K tokens), causing truncation, high latency, and increased cost, while also failing to scale with a large document set.

404
MCQmedium

A company uses OCI GenAI to build a content moderation system that filters toxic language in user-generated comments. They have a small labeled dataset of 1,000 comments (500 toxic, 500 non-toxic) and need an efficient solution that balances accuracy, cost, and latency. They are considering different model options: fine-tuning a large LLM (e.g., Cohere Command), using a pre-trained LLM with prompting, fine-tuning a smaller BERT-based classifier, or building a rule-based system. The team has moderate ML experience and wants to deploy using OCI Data Science. Which approach is most efficient for this binary classification task?

A.Fine-tune a BERT-based classifier (e.g., 'bert-base-uncased') on the dataset.
B.Develop a rule-based system using regular expressions and keyword lists.
C.Use a pre-trained LLM with a toxic/non-toxic prompt.
D.Fine-tune the Cohere Command model on the labeled dataset.
AnswerA

BERT is efficient for classification, fine-tunes quickly on small data, and has low inference cost.

Why this answer

Fine-tuning a BERT-based classifier (e.g., 'bert-base-uncased') is the most efficient approach because BERT is specifically designed for text classification tasks, requiring far fewer computational resources and lower latency than large LLMs. With only 1,000 labeled samples, BERT can achieve high accuracy through transfer learning, while keeping inference costs minimal—ideal for a production content moderation system on OCI Data Science.

Exam trap

Oracle often tests the misconception that larger LLMs (like Cohere Command) are always superior for classification tasks, ignoring the practical constraints of small datasets, cost, and latency that make fine-tuned BERT models the optimal choice for binary classification.

How to eliminate wrong answers

Option B is wrong because rule-based systems using regex and keyword lists cannot generalize to nuanced toxic language (e.g., sarcasm, misspellings, or context-dependent toxicity) and require constant manual maintenance, leading to poor accuracy and high operational overhead. Option C is wrong because using a pre-trained LLM with prompting (e.g., Cohere Command) incurs high per-token inference costs and latency, and with only 1,000 examples, few-shot prompting may not reliably capture the specific toxicity patterns in the dataset. Option D is wrong because fine-tuning a large LLM like Cohere Command on a tiny dataset of 1,000 samples risks catastrophic forgetting and overfitting, while also being computationally expensive and slower for real-time moderation compared to a smaller BERT model.

405
MCQmedium

A company wants to use OCI Generative AI service to automatically generate product descriptions for an e-commerce catalog. They have 10,000 products. What is the best approach to ensure high-quality, consistent descriptions?

A.Use a pre-trained summarization model.
B.Use a template-based generation with keyword insertion.
C.Use the built-in chat model with few-shot examples in the prompt.
D.Fine-tune a base model on a dataset of existing product descriptions.
AnswerD

Fine-tuning adapts the model to the specific domain and produces consistent outputs across many products.

Why this answer

Fine-tuning a base model on a dataset of existing product descriptions is the best approach because it adapts the model to the specific domain, style, and vocabulary of the e-commerce catalog. This ensures high-quality, consistent outputs across 10,000 products by learning the patterns and terminology from the company's own data, rather than relying on generic or template-based methods.

Exam trap

The exam often tests the misconception that few-shot prompting (Option C) is sufficient for large-scale, consistent generation, when in reality it suffers from context window limits and lack of domain-specific adaptation, making fine-tuning the only viable option for production workloads with thousands of items.

How to eliminate wrong answers

Option A is wrong because a pre-trained summarization model is designed to condense existing text, not generate new product descriptions from scratch, and would produce inconsistent or irrelevant outputs for this task. Option B is wrong because template-based generation with keyword insertion lacks the flexibility and natural language understanding needed for 10,000 unique products, resulting in repetitive, low-quality descriptions that do not capture nuanced product features. Option C is wrong because using the built-in chat model with few-shot examples in the prompt can work for small-scale tasks but is not scalable or reliable for 10,000 products; the model may drift, exceed token limits, or fail to maintain consistent style and accuracy across such a large volume.

406
Multi-Selecteasy

Which THREE are essential steps in the prompt engineering process for an LLM?

Select 3 answers
A.Test the prompt with a variety of input examples
B.Fine-tune the model on a domain corpus
C.Define the desired output format and constraints
D.Quantize the model to INT8
E.Iteratively refine the prompt based on model responses
AnswersA, C, E

Testing ensures robustness across different inputs.

Why this answer

Testing the prompt with a variety of input examples is essential to evaluate the LLM's generalization, robustness, and sensitivity to different phrasing or contexts. This step helps identify edge cases, biases, or inconsistencies in the model's responses before deployment.

Exam trap

Oracle often tests the distinction between prompt engineering (input-side optimization) and model modification (fine-tuning, quantization) to trap candidates who confuse these fundamentally different processes.

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

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

Why this answer

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

408
MCQeasy

A company needs to ensure that only authorized users can invoke an endpoint for a generative AI model. Which OCI feature should be used to control access?

A.Network security groups (NSGs)
B.VCN flow logs
C.OCI Web Application Firewall (WAF)
D.OCI Identity and Access Management (IAM) policies
AnswerD

Correct: IAM policies grant or deny access to specific resources like models and endpoints.

Why this answer

OCI Identity and Access Management (IAM) policies are the correct choice because they define who (users, groups, or service principals) can invoke which OCI resources, including generative AI model endpoints. IAM policies use resource-type and verb-based statements (e.g., 'allow group A to manage ai-service-family in compartment X') to enforce authorization at the API level, ensuring only authorized principals can call the model's inference endpoint.

Exam trap

The trap here is that candidates confuse network-level controls (NSGs, WAF) with identity-based access control, mistakenly thinking that restricting network traffic to the endpoint is sufficient for authorization, whereas OCI requires IAM policies to authenticate and authorize the caller's identity at the API layer.

How to eliminate wrong answers

Option A is wrong because Network Security Groups (NSGs) control network traffic at the subnet or VNIC level using stateful firewall rules (e.g., allow/deny TCP port 443), not user identity or API-level authorization. Option B is wrong because VCN flow logs capture metadata about network traffic (source IP, destination port, etc.) for auditing or troubleshooting, but they do not enforce access control. Option C is wrong because OCI Web Application Firewall (WAF) protects against HTTP-based attacks (e.g., SQL injection, XSS) and can filter by IP or request patterns, but it cannot authenticate or authorize individual users or service principals invoking the model endpoint.

409
MCQmedium

A company needs to generate vector embeddings for a multilingual document set to support semantic search across English and French documents. Which embedding model should they use?

A.Cohere embed-english-v3.0
B.Cohere Command R
C.Cohere embed-multilingual-v3.0
D.Meta Llama 3 8B
AnswerC

This model supports multiple languages including French and English.

Why this answer

The embed-multilingual-v3.0 model supports multiple languages, including English and French.

410
MCQmedium

A data scientist is fine-tuning a model on OCI Generative AI to generate code comments. They use a dataset of 10,000 examples. After fine-tuning, the model generates comments that are too similar to the training data and lack generalization. What is the most likely cause?

A.Incorrect tokenizer.
B.Insufficient training data.
C.Too many training epochs.
D.Too high learning rate.
AnswerC

Excessive epochs cause the model to memorize training data, reducing generalization.

Why this answer

When a fine-tuned model generates outputs that are too similar to the training data and lack generalization, it is a classic sign of overfitting. Overfitting occurs when the model is trained for too many epochs, causing it to memorize the training examples rather than learning the underlying patterns. In OCI Generative AI, the fine-tuning process adjusts model weights iteratively, and excessive epochs lead to poor performance on unseen data.

Exam trap

The trap here is that candidates often confuse overfitting (caused by too many epochs) with underfitting (caused by insufficient data or low learning rate), leading them to incorrectly select option B or D.

How to eliminate wrong answers

Option A is wrong because an incorrect tokenizer would cause tokenization errors or mismatched vocabulary, not overfitting or memorization of training data. Option B is wrong because insufficient training data typically leads to underfitting, not overfitting; with 10,000 examples, the dataset size is reasonable for fine-tuning. Option D is wrong because a too high learning rate usually causes training instability or divergence, not memorization; it would prevent the model from converging properly.

411
MCQmedium

A healthcare company is deploying an OCI Generative AI service to summarize patient notes. They have recently moved from a managed serving endpoint to a dedicated AI cluster to ensure data privacy. The fine-tuned model is deployed on a dedicated cluster in the US West region. Users report that the summarization responses are now slower and occasionally timeout. The IT team checks the metrics: the cluster has 1 replica and CPU utilization is at 90%. The Object Storage bucket containing the model artifacts is in the same region. They have increased the timeout in their client configuration to 120 seconds, but still get timeouts. What should they do first to address the issue?

A.Move the Object Storage bucket to a local NVMe cache in the cluster.
B.Move the model back to a managed serving endpoint in a different region.
C.Increase the number of replicas in the dedicated cluster.
D.Increase the max tokens parameter in the API call.
AnswerC

Adding replicas provides more compute capacity to handle the load.

Why this answer

The dedicated AI cluster has only 1 replica and CPU utilization is at 90%, indicating that the single replica is overloaded and cannot handle the inference request volume. Increasing the number of replicas distributes the load, reduces latency, and prevents timeouts. This is the most direct and scalable fix for performance bottlenecks in a dedicated OCI Generative AI cluster.

Exam trap

The trap here is that candidates may focus on storage or client-side tuning (like timeout or token limits) instead of recognizing that a single overloaded replica is the root cause of performance degradation.

How to eliminate wrong answers

Option A is wrong because moving the Object Storage bucket to a local NVMe cache does not address the compute bottleneck; model artifacts are loaded into memory at deployment time, and runtime inference latency is driven by CPU/GPU load, not storage I/O. Option B is wrong because moving back to a managed serving endpoint would compromise the data privacy requirement that prompted the move to a dedicated cluster, and a different region could introduce additional latency. Option D is wrong because increasing the max tokens parameter would increase the output length, making the inference slower and worsening timeouts, not solving the underlying resource contention.

412
MCQhard

An LLM is being used to answer customer queries about a product catalog. The answers are fluent but sometimes include plausible-sounding but incorrect product details. What is this phenomenon called, and which technique is most effective to mitigate it?

A.Knowledge cutoff; fine-tune the model on the catalog
B.Hallucination; use Retrieval-Augmented Generation (RAG) with the catalog indexed
C.Bias amplification; increase temperature
D.Overfitting; reduce the model size
AnswerB

Hallucination is the correct term; RAG is the standard mitigation.

Why this answer

Hallucination is the generation of false information; RAG grounds responses in retrieved factual documents, reducing hallucinations.

413
MCQeasy

In the OCI Generative AI Playground, a developer wants to control how creative the model responses are. Which parameter should they adjust?

A.Presence penalty
B.Temperature
C.Max tokens
D.Stop sequences
AnswerB

Temperature directly controls randomness and creativity in model outputs.

Why this answer

Temperature controls randomness; higher values produce more creative outputs. The other parameters control other aspects of generation.

414
Multi-Selectmedium

A company wants to use OCI Generative AI Agents to create a RAG-powered customer support system. Which THREE components are essential for the agent to work?

Select 3 answers
A.A knowledge base
B.A Dedicated AI Cluster
C.A data source (e.g., OCI Object Storage bucket)
D.A base LLM (e.g., Cohere Command R)
E.A fine-tuned embedding model
AnswersA, C, D

Why this answer

OCI Generative AI Agents require a knowledge base, a data source (like Object Storage), and a base LLM to generate responses. The other options are optional.

415
MCQmedium

A data scientist needs to fine-tune a Llama 3 model for a legal document classification task. They have a dataset of 10,000 labeled examples. Which fine-tuning technique available in OCI Generative AI is most suitable for efficiently adapting the model with limited computational overhead?

A.Full fine-tuning all model parameters
B.LoRA (Low-Rank Adaptation)
C.Prefix tuning
D.T-Few fine-tuning
AnswerD

T-Few is an efficient parameter-update technique designed for fine-tuning with limited compute, available in OCI GenAI.

Why this answer

T-Few fine-tuning is a parameter-efficient technique that updates only a small number of weights, making it suitable for fine-tuning large models with limited compute. It is the technique offered by OCI GenAI for fine-tuning.

416
MCQmedium

An OCI user observes that their embedding model returns vectors that are not normalized, and they want to compute cosine similarity between two text embeddings. What should they do?

A.Compute the Euclidean distance between the vectors
B.Compute the L1 norm of the difference
C.Normalize the vectors to unit length, then compute the dot product
D.Compute the dot product directly
AnswerC

Cosine similarity is dot product of normalized vectors. Normalizing ensures the result is in [-1,1] and reflects the cosine of the angle.

Why this answer

Cosine similarity measures the cosine of the angle between two vectors, which is equivalent to the dot product of the vectors after they have been normalized to unit length (L2 norm = 1). Option C correctly describes this process: first normalize each embedding vector to unit length, then compute the dot product. This is the standard approach because raw embedding vectors from models like OCI's AI services may not be unit vectors, and the dot product alone does not account for magnitude differences.

Exam trap

The 1Z0-1127 exam often tests the misconception that the dot product alone is equivalent to cosine similarity, but the trap is that this only holds if the vectors are already normalized to unit length, which is not guaranteed by default.

How to eliminate wrong answers

Option A is wrong because Euclidean distance measures the straight-line distance between vectors, which is sensitive to vector magnitude and does not directly compute cosine similarity. Option B is wrong because the L1 norm of the difference (Manhattan distance) is a different metric that does not capture angular similarity. Option D is wrong because computing the dot product directly on non-normalized vectors yields a value that is influenced by both the angle and the magnitudes of the vectors, not purely the cosine of the angle.

417
MCQmedium

An AI developer is building a document Q&A application using LangChain and OCI Generative AI. They need to split large PDF documents into smaller chunks before embedding. Which text splitter should they use to ensure splits respect sentence boundaries while also controlling chunk size?

A.RecursiveCharacterTextSplitter
B.WebBaseLoader
C.PDFLoader
D.TokenTextSplitter
AnswerA

This splitter recursively splits text by a list of separators, keeping paragraphs and sentences intact while controlling chunk size.

Why this answer

RecursiveCharacterTextSplitter splits text recursively by separators (like \n\n, \n, period) to keep semantically related text together and respects sentence-like boundaries. TokenTextSplitter splits by tokens without regard for sentence boundaries. PDFLoader and WebBaseLoader are document loaders, not splitters.

418
MCQmedium

A developer uses OCI Generative AI's chat endpoint with a system message placed after user messages. The model ignores the system message. What is the most likely reason?

A.The system message is too long
B.Temperature is set too high
C.The model has not been fine-tuned for instruction following
D.The system message is placed after user messages
AnswerD

The standard order is system first, then user; otherwise the model may misinterpret.

Why this answer

In OCI Generative AI's chat endpoint, the system message must be placed before user messages to establish the model's behavior and context. When placed after user messages, the model treats it as part of the conversation history rather than a directive, causing it to be ignored. This ordering is a fundamental requirement for the chat API's message structure.

Exam trap

Oracle often tests the specific API message ordering requirement, where candidates mistakenly attribute the failure to model limitations or hyperparameters rather than the structural placement of the system message.

How to eliminate wrong answers

Option A is wrong because the system message being too long would cause a token limit error or truncation, not silent ignoring. Option B is wrong because temperature controls randomness in output, not whether instructions are followed; a high temperature might produce varied responses but does not cause the model to ignore the system message. Option C is wrong because OCI Generative AI models are pre-trained for instruction following without requiring fine-tuning; the issue is purely about message ordering, not model capability.

419
Multi-Selectmedium

Which TWO are required components to implement a basic RAG system using OCI services? (Choose two.)

Select 2 answers
A.OCI Object Storage
B.OCI Functions
C.OCI Data Flow
D.OCI Search with OpenSearch
E.OCI Document Understanding
AnswersD, E

Required as the vector database for similarity search.

Why this answer

A RAG system needs a way to parse documents into chunks (OCI Document Understanding) and a vector store to index and search embeddings (OCI Search with OpenSearch).

420
MCQmedium

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

A.Always increase the number of few-shot examples
B.Run A/B tests on a representative evaluation set and measure accuracy
C.Manually review outputs of a few examples and adjust based on intuition
D.Change the model to a larger one
AnswerB

A/B testing with a labeled dataset provides quantitative evidence to guide refinement.

Why this answer

A/B testing with a holdout evaluation set allows objective comparison of prompt variants and measures performance improvements reliably.

421
MCQeasy

A developer wants to call the OCI Generative AI service from a Python application running on an OCI Compute instance. Which method is the most secure for authenticating the API calls?

A.Use a resource principal
B.Use the OCI CLI with a config file containing credentials
C.Use instance principals with a dynamic group and policy
D.Use an API signing key stored on the instance
AnswerC

Instance principals allow secure authentication without storing secrets.

Why this answer

Instance principals allow the Compute instance to authenticate to OCI services without storing any credentials on the instance. By assigning a dynamic group and policy, the instance obtains a temporary security token from the OCI metadata service, which is the most secure method for programmatic access from within OCI.

Exam trap

The trap here is that candidates confuse resource principals (used for serverless functions) with instance principals (used for Compute instances), or they assume that storing credentials in a config file is acceptable because it is a common practice in non-OCI environments.

How to eliminate wrong answers

Option A is wrong because resource principals are used for OCI Functions or other OCI resources that need to make API calls, not for Compute instances. Option B is wrong because using the OCI CLI with a config file containing credentials stores long-lived user credentials on the instance, which is less secure and violates the principle of least privilege. Option D is wrong because storing an API signing key on the instance creates a persistent secret that could be compromised if the instance is breached, and it requires manual key rotation.

422
MCQeasy

Which of the following is a decoder-only model architecture?

A.T5
B.GPT-3
C.BART
D.BERT
AnswerB

GPT-3 is decoder-only, using masked self-attention.

Why this answer

GPT is a decoder-only model. BERT is encoder-only. T5 is encoder-decoder.

423
MCQmedium

A company's AI system uses RAG to answer customer questions. Users often get incomplete answers because the retrieved chunks do not contain all relevant information. Which step in the RAG pipeline is most likely the issue?

A.Retrieval top-k setting
B.Generation model temperature
C.Chunking strategy (chunk size and overlap)
D.Embedding model selection
AnswerC

If chunks are too small or have insufficient overlap, relevant information may be split, leading to incomplete retrieval.

Why this answer

Chunking determines how documents are split into pieces. If chunks are too small, key information may be split across chunks, causing incomplete retrieval. Adjusting chunk size and overlap can improve completeness.

424
MCQeasy

An organization wants to deploy a generative AI chatbot using OCI Generative AI service. The chatbot must comply with data residency requirements by ensuring that all data processing occurs within a specific geographic region. What is the best practice to achieve this?

A.Use a dedicated AI cluster in the required region
B.Enable cross-region replication for disaster recovery
C.Configure a tenancy-wide policy to restrict region usage
D.Use IAM policies to block access from other regions
AnswerA

Dedicated AI clusters are region-specific and ensure data stays in that region.

Why this answer

OCI Generative AI service allows you to provision a dedicated AI cluster within a specific region, ensuring all model inference and data processing remain within that geographic boundary. This dedicated cluster is isolated from other regions and complies with data residency requirements by design, as no data leaves the chosen region during processing.

Exam trap

The trap here is that candidates confuse data residency with access control or disaster recovery, thinking that IAM policies or replication settings can enforce geographic data boundaries, when in fact only the physical placement of the compute cluster guarantees data stays within a region.

How to eliminate wrong answers

Option B is wrong because cross-region replication is a disaster recovery feature that copies data to another region, which would violate data residency by moving data outside the required geographic region. Option C is wrong because tenancy-wide policies restrict where resources can be created, but they do not control where data processing occurs for an existing AI cluster; data could still be processed in a different region if the cluster is not explicitly placed. Option D is wrong because IAM policies block user access from other regions but do not prevent the AI service from processing data in a region other than the required one; data residency is about data location, not access control.

425
MCQhard

A company is deploying a LangChain agent that uses a custom tool to query an external API. The agent must handle rate limits gracefully. Which approach should the developer implement?

A.Increase the tool's timeout to reduce request frequency
B.Deploy multiple agent instances to distribute requests
C.Ignore rate limits and rely on the LLM to slow down
D.Use the Tool's built-in RateLimiter wrapper with a specified max_requests_per_second
AnswerD

The RateLimiter wrapper automatically throttles calls to the tool.

Why this answer

LangChain provides a built-in RateLimiter tool wrapper that can be applied to any tool to enforce rate limits. Alternatively, custom retry logic can be added, but using the built-in wrapper is the recommended pattern.

426
MCQhard

A team is building a code generation assistant and needs to choose between fine-tuning a base LLM or using in-context learning with a few examples. They have 500 high-quality code examples. The assistant must generate code for a wide variety of tasks. Which approach is BETTER and why?

A.Fine-tuning, because it reduces inference cost compared to providing examples each time
B.Fine-tuning, because it permanently encodes the examples into the model weights
C.In-context learning, because it allows the model to adapt to each task dynamically without risking catastrophic forgetting
D.In-context learning, because it requires no additional training infrastructure
AnswerC

In-context learning uses the model's existing knowledge and adapts via examples in the prompt, which is more flexible for diverse tasks with a small dataset.

Why this answer

Fine-tuning with 500 examples may lead to overfitting or catastrophic forgetting, especially when the tasks are diverse. In-context learning with a few examples per task is more flexible and leverages the model's pre-trained knowledge. The small dataset size makes fine-tuning risky.

427
MCQeasy

A team is using OCI Generative AI Agents to build a customer support bot. The bot sometimes generates answers that contradict the knowledge base. What is the most likely cause?

A.The chunking strategy for the knowledge base does not capture enough context overlap.
B.The max tokens value is too low, truncating the response.
C.The temperature parameter is set too high, causing the model to hallucinate.
D.The model's repetition penalty is too high.
AnswerA

If chunks are too small or lack overlap, the model may not retrieve all relevant information, leading to inconsistencies.

Why this answer

When the chunking strategy lacks sufficient context overlap, the retrieved chunks may omit critical surrounding information, causing the generative AI model to infer missing details incorrectly and produce answers that contradict the knowledge base. In OCI Generative AI Agents, the chunking strategy determines how documents are split into smaller pieces for retrieval; without adequate overlap, the model loses the semantic continuity needed to stay faithful to the source material.

Exam trap

Oracle often tests the misconception that hallucinations are always caused by temperature settings, when in fact retrieval quality issues like poor chunking are a more common root cause in RAG-based systems.

How to eliminate wrong answers

Option B is wrong because a low max tokens value truncates the response length but does not cause the model to generate contradictory content; it simply cuts off the output prematurely. Option C is wrong because while a high temperature parameter increases randomness and can lead to hallucinations, the question specifically states the bot contradicts the knowledge base, which is more directly tied to retrieval failures (chunking) than to generation randomness. Option D is wrong because a high repetition penalty discourages the model from repeating phrases, which might reduce fluency but does not cause contradictions with the knowledge base.

428
MCQhard

An organization needs to deploy a fine-tuned model for real-time inference with strict latency requirements. They have provisioned a Dedicated AI Cluster with 2 model units. Which statement about this setup is accurate?

A.The cluster provides low-latency, dedicated inference for the fine-tuned model, and you are billed per model unit.
B.You must use the shared infrastructure for fine-tuned models; dedicated clusters are only for base models.
C.The cluster automatically scales model units based on request load.
D.The cluster can only host OCI’s built-in models, not custom fine-tuned models.
AnswerA

Dedicated clusters offer dedicated compute for low-latency inference, and costs are based on model units provisioned.

Why this answer

Dedicated AI Clusters provide low-latency dedicated inference, and model units are used to allocate capacity for running models, including custom fine-tuned ones. The cluster is specifically designed for hosting fine-tuned models with consistent performance.

429
MCQmedium

A company uses OCI Generative AI to power a chatbot for customer support. They notice that the model's responses sometimes contain factual inaccuracies. Which strategy would best reduce hallucination?

A.Implementing Retrieval-Augmented Generation (RAG).
B.Increasing the temperature parameter.
C.Reducing the max token limit.
D.Fine-tuning the model on a larger general corpus.
AnswerA

RAG retrieves relevant facts from a knowledge base, grounding the output and reducing hallucination.

Why this answer

Retrieval-Augmented Generation (RAG) grounds the model's responses in retrieved factual information, directly reducing hallucination. Increasing temperature increases randomness, fine-tuning on a larger corpus may not fix factual accuracy, and reducing max tokens does not affect correctness.

430
MCQhard

Refer to the exhibit. The dashboard shows latency grouped by modelId, but some points are missing for certain modelIds. Which of the following is the most likely reason?

A.The metric name is misspelled
B.The aggregation interval is too short
C.The modelIds with missing data may have been deleted or are inactive
D.The compartmentId is incorrect
AnswerC

Inactive or deleted models stop emitting metrics, leading to gaps in the time series.

Why this answer

In OCI's Generative AI service, model deployments are associated with specific modelIds. If a modelId is deleted or its deployment is deactivated, the corresponding telemetry data (e.g., latency metrics) will no longer be reported, causing gaps in the dashboard. The dashboard aggregates metrics only for active modelIds, so missing points indicate that those modelIds are no longer in service.

Exam trap

The trap here is that candidates may confuse missing data due to inactive resources with configuration errors (e.g., metric name typos or compartment mismatches), but OCI exam tests the understanding that metric gaps are often caused by resource lifecycle events rather than misconfiguration.

How to eliminate wrong answers

Option A is wrong because a misspelled metric name would cause all data points to be missing for all modelIds, not just selective gaps. Option B is wrong because a too-short aggregation interval would result in sparse or noisy data across all modelIds, not missing points for specific ones. Option D is wrong because an incorrect compartmentId would prevent any metrics from being displayed for the entire dashboard, not just for certain modelIds.

431
MCQeasy

A company deploys a fine-tuned Llama 2 model using OCI Generative AI service. They want to ensure low-latency inference for a real-time chat application. Which deployment option should they use?

A.Batch inference job
B.OCI Functions
C.Dedicated AI cluster
D.Serverless endpoint (standard)
AnswerC

Dedicated AI clusters offer reserved capacity and low latency for real-time inference.

Why this answer

A dedicated AI cluster provides reserved compute resources (GPUs) for low-latency, real-time inference by eliminating resource contention. This is essential for a fine-tuned Llama 2 model in a chat application where consistent sub-second response times are required, unlike shared or serverless options that introduce cold starts or queuing delays.

Exam trap

The trap here is that candidates confuse 'serverless endpoint (standard)' with a low-latency option, not realizing that its shared infrastructure and potential cold starts make it unsuitable for real-time inference, while a dedicated cluster guarantees consistent performance.

How to eliminate wrong answers

Option A is wrong because batch inference jobs are designed for asynchronous, high-throughput processing of large datasets, not for real-time, low-latency chat interactions. Option B is wrong because OCI Functions is a serverless compute service with cold-start latency and limited GPU support, making it unsuitable for sustained, low-latency model inference. Option D is wrong because a serverless endpoint (standard) uses shared infrastructure that can experience variable latency due to multi-tenancy and scaling delays, which is not acceptable for real-time chat.

432
Multi-Selectmedium

Which TWO techniques are commonly used to reduce the memory footprint of LLM inference?

Select 2 answers
A.Quantization
B.Increasing batch size
C.KV cache optimization
D.Gradient checkpointing
E.Using full precision (FP32)
AnswersA, C

Reduces memory by using lower precision weights.

Why this answer

Quantization reduces the memory footprint by lowering the precision of model weights and activations from FP32 to lower bit-widths like INT8 or FP16, which directly decreases the memory required to store and compute with the model. KV cache optimization reduces memory usage by efficiently managing the key-value cache during autoregressive decoding, often through techniques like shared memory, pruning, or compression, which is critical for long-context inference.

Exam trap

Oracle often tests the distinction between training and inference techniques, so candidates mistakenly apply gradient checkpointing (a training memory saver) to inference, or confuse batch size scaling with memory reduction.

433
Multi-Selectmedium

Which TWO factors are most likely to cause hallucinations in LLMs?

Select 2 answers
A.High temperature
B.Short context window
C.Excessive fine-tuning
D.Low top-p
E.Inadequate training data
AnswersA, E

High temperature increases randomness, leading to less factual outputs.

Why this answer

A high temperature setting increases the randomness of token sampling, making the model more likely to generate plausible-sounding but factually incorrect or nonsensical outputs. This directly contributes to hallucinations by encouraging the model to deviate from the most probable, grounded responses.

Exam trap

Oracle often tests the misconception that low top-p or short context windows are primary causes of hallucinations, when in fact high temperature and insufficient training data are the two most direct factors that increase the likelihood of generating false or fabricated content.

434
MCQeasy

Which OCI Generative AI model family is optimized for generating text embeddings that capture semantic meaning for tasks like clustering and classification?

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

Cohere Embed models are optimized for text embeddings, supporting tasks like clustering, classification, and search.

Why this answer

Cohere Embed models are specifically designed for embedding text into vectors. Cohere Command and Meta Llama are generative models, not embedding models.

435
MCQhard

A prompt engineer is designing a system that must extract structured data from unstructured text. The model occasionally outputs extra text beyond the required JSON. Which parameter should be adjusted to enforce strict output format?

A.Increase the frequency penalty
B.Reduce the temperature to 0
C.Increase the top-p value
D.Set a stop sequence to the closing delimiter of the JSON (e.g., '}')
AnswerD

Stop sequences halt generation when the specified token or string is produced, ensuring no additional output after the JSON.

Why this answer

Stop sequences tell the model when to stop generating. By adding a stop sequence like '}' (end of JSON), the model will terminate after the JSON object, preventing extra text.

436
Multi-Selectmedium

A company wants to implement a retrieval-augmented generation (RAG) chatbot using OCI Generative AI Agents. Which TWO services or components are required for this solution?

Select 2 answers
A.Cohere Embed model
B.Fine-tuned model
C.Knowledge Base
D.OCI Object Storage
E.Dedicated AI Cluster
AnswersC, D

The knowledge base indexes documents and enables retrieval.

Why this answer

A Knowledge Base is the core repository that stores the documents or data sources the RAG chatbot retrieves from. OCI Generative AI Agents use a knowledge base to perform retrieval-augmented generation, where the agent first retrieves relevant chunks from the knowledge base and then passes them to the generative model to produce a grounded, context-aware response.

Exam trap

The trap here is that candidates often assume a dedicated AI cluster or a specific embedding model is mandatory for RAG, when in fact OCI Generative AI Agents abstract away these details and only require a knowledge base and a data source like Object Storage.

437
Multi-Selecteasy

Which TWO techniques can help reduce bias in LLM outputs?

Select 2 answers
A.Setting temperature to 0
B.Using only English data
C.Using diverse training data
D.Increasing model size
E.Applying adversarial debiasing
AnswersC, E

Diverse data reduces representation bias.

Why this answer

Using diverse training data helps the model learn from a wide range of perspectives, reducing the risk of over-representing any single group or viewpoint. This directly mitigates bias by ensuring the training distribution is more representative of the real world, rather than skewed toward a dominant demographic or cultural norm.

Exam trap

Oracle often tests the misconception that lowering temperature or increasing model size can fix bias, when in reality these parameters affect randomness and capacity, not the underlying distributional fairness of the training data.

438
MCQhard

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

A.Include a single example of a JSON output in the user message
B.Set the temperature to 0.0 to make the model deterministic
C.Use a stop sequence '}' to force the model to stop after the JSON
D.Add a preamble: 'You are a JSON generator. Output only valid JSON. Do not include any other text.'
AnswerD

The preamble acts as a system prompt, setting the role and strict output constraint. Combined with explicit instructions, this effectively suppresses extra text.

Why this answer

Using a system prompt to set the persona (e.g., 'You are a JSON generator') and including a step-by-step instruction reduces unwanted text. Cohere's preamble works like a system prompt to enforce constraints.

439
MCQmedium

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

A.presence_penalty
B.frequency_penalty
C.temperature
D.top-k
AnswerB

Frequency penalty applies a penalty proportional to token frequency, reducing repetition.

Why this answer

Frequency penalty reduces the likelihood of tokens that have already appeared, directly targeting repetition of phrases.

440
Multi-Selectmedium

A developer is using the OCI Generative AI Chat API to create a customer support bot. They want the bot to maintain a consistent personality and follow specific guidelines. Which TWO settings should they use?

Select 2 answers
A.System prompt
B.Preamble override
C.Temperature
D.Frequency penalty
E.Max tokens
AnswersA, B

System prompt defines the assistant's behavior and constraints.

Why this answer

A system prompt sets the bot's behavior and guidelines, and preamble override allows customizing the model's initial instructions. Temperature and max tokens do not define personality or guidelines.

441
MCQmedium

A data scientist needs to fine-tune a large language model on a custom dataset of 10,000 prompt-completion pairs. They want to minimize cost while still updating the model effectively. Which fine-tuning technique is used by OCI Generative AI service?

A.Prefix tuning
B.T-Few fine-tuning
C.Adapter fine-tuning
D.LoRA fine-tuning
AnswerB

T-Few is the parameter-efficient fine-tuning method provided by OCI GenAI service.

Why this answer

OCI Generative AI uses T-Few, which updates only a small number of parameters via learned transformations, reducing computational cost while maintaining performance. Adapter, LoRA, and prefix tuning are general PEFT methods but not the specific technique offered by OCI.

442
Multi-Selecthard

A developer is troubleshooting low recall in a vector search. Which THREE factors should be checked? (Choose three.)

Select 3 answers
A.Embedding model quality and relevance to domain
B.Chunk size and overlap strategy
C.Quality of the query embedding generation
D.The number of results returned (k) in the search
E.The LLM's temperature setting
AnswersA, B, C

A model not trained on similar data may produce poor embeddings.

Why this answer

The embedding model's quality and domain relevance directly determine how well semantic relationships are captured. If the model is not fine-tuned on domain-specific data, it may fail to map similar concepts close together in the vector space, leading to low recall. For example, a general-purpose model may not distinguish between 'bank' as a financial institution versus a river bank in a legal document search.

Exam trap

Oracle often tests the misconception that retrieval parameters like k or generation parameters like temperature affect recall, when in fact recall is primarily determined by embedding quality, chunking strategy, and query embedding fidelity.

443
Multi-Selectmedium

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

Select 2 answers
A.Set top-k to a high value (e.g., 100)
B.Set frequency_penalty to a moderate value (e.g., 0.5)
C.Increase max_tokens significantly
D.Set presence_penalty to 0
E.Set temperature to a low value (e.g., 0.1)
AnswersB, E

Frequency penalty discourages repetition of tokens, which can reduce hallucinated patterns.

Why this answer

Lowering temperature reduces randomness, making outputs more deterministic and less prone to hallucinations. Frequency penalty reduces repetitive mistakes. Top-k and presence penalty are less directly effective.

444
MCQmedium

A developer is using the Cohere Command model for text generation and wants to ensure the output is deterministic for testing purposes. Which sampling strategy should they use?

A.Top-k sampling with k=50
B.Temperature sampling with temperature=0.7
C.Top-p (nucleus) sampling with p=0.9
D.Greedy decoding
AnswerD

Greedy decoding picks the most likely token at each step, making outputs deterministic.

Why this answer

Greedy decoding always selects the token with highest probability, producing the same output for a given input. Temperature, top-k, and top-p introduce randomness.

445
MCQhard

A team is building a Retrieval-Augmented Generation (RAG) pipeline using OCI Generative AI. They need to store and retrieve document embeddings for semantic search. Which OCI service is most appropriate as the vector store?

A.OCI Search with OpenSearch
B.OCI Streaming
C.OCI Object Storage
D.OCI Autonomous Database with AI Vector Search
AnswerA

OpenSearch supports vector storage and k-NN search, making it ideal for RAG pipelines.

Why this answer

OCI Search with OpenSearch is the most appropriate vector store for a RAG pipeline because it natively supports storing and querying high-dimensional vector embeddings using the k-nearest neighbor (k-NN) algorithm. It integrates directly with OCI Generative AI to enable semantic search over ingested documents, providing the required similarity search capabilities for retrieval-augmented generation.

Exam trap

Candidates often assume that OCI Autonomous Database with AI Vector Search is the best choice since it supports vectors, but for a dedicated vector store in a RAG pipeline, OCI Search with OpenSearch provides a specialized vector search engine with native k-NN support and direct integration with OCI Generative AI, making it the most appropriate option.

How to eliminate wrong answers

Option B is wrong because OCI Streaming is a real-time data ingestion and messaging service designed for event streams, not for storing or querying vector embeddings. Option C is wrong because OCI Object Storage is a durable, scalable blob storage service for unstructured data, but it lacks native vector indexing and similarity search functionality. Option D is wrong because while OCI Autonomous Database with AI Vector Search does support vector operations, it is not the most appropriate choice for a dedicated vector store in a RAG pipeline; OCI Search with OpenSearch is purpose-built for vector search and offers better performance and simpler integration with OCI Generative AI.

446
MCQeasy

Which Oracle AI Vector Search index type is designed for approximate nearest neighbor search and uses a navigable small world graph?

A.VECTOR
B.HNSW
C.IVF
D.BTREE
AnswerB

HNSW uses a multi-layer navigable small world graph for efficient ANN search.

Why this answer

HNSW (Hierarchical Navigable Small World) is a graph-based index for ANN search.

447
MCQeasy

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

A.Tree-of-thought prompting
B.Chain-of-thought prompting
C.Few-shot prompting
D.Zero-shot prompting
AnswerC

Correct: few-shot provides a few examples.

Why this answer

Few-shot prompting includes examples of desired input-output pairs, helping the model infer the task without fine-tuning.

448
MCQmedium

A team is fine-tuning a foundation model on a large dataset stored in OCI Object Storage. They want to minimize data transfer costs. What is the best practice for locating the storage?

A.Place the bucket in the same region and availability domain as the fine-tuning job
B.Use OCI File Storage instead of Object Storage
C.Use a cross-region bucket to leverage geographically distributed data
D.Place the bucket in the same region as the fine-tuning job
AnswerD

Correct: Same-region transfer is free of charge.

Why this answer

Placing the Object Storage bucket in the same OCI region as the fine-tuning job eliminates cross-region data transfer charges. OCI charges egress fees when data moves between regions, but intra-region data transfer between services in the same region is free. This minimizes costs while keeping the data accessible for the fine-tuning workload.

Exam trap

Oracle often tests the misconception that specifying an availability domain (Option A) is necessary for cost optimization, when in fact Object Storage buckets are regional and availability domain selection is irrelevant for data transfer costs.

How to eliminate wrong answers

Option A is wrong because OCI Object Storage buckets are regional resources, not tied to a specific availability domain; specifying an availability domain is irrelevant and does not affect data transfer costs. Option B is wrong because OCI File Storage is a network-attached file system that incurs additional egress costs when accessed from compute instances in a different region or availability domain, and it does not inherently reduce data transfer costs compared to Object Storage. Option C is wrong because a cross-region bucket replicates data across regions, which incurs replication and egress costs, and accessing data from a different region than the fine-tuning job would still result in cross-region data transfer charges.

449
MCQhard

A company is deploying a multi-language chatbot using OCI Generative AI Service. The chatbot must support English, Spanish, and French. The team finds that responses in Spanish are less accurate than in English. They have a small bilingual dataset. What is the best approach?

A.Use a multilingual base model (e.g., mT5) and fine-tune on the bilingual dataset (English and Spanish) using cross-lingual transfer learning.
B.Use prompt engineering with language-specific instructions in the system prompt.
C.Translate all user queries to English, process them, then translate responses back.
D.Train separate fine-tuned models for each language.
AnswerA

Cross-lingual transfer leverages English data to improve Spanish performance, and fine-tuning on bilingual data further boosts accuracy.

Why this answer

Fine-tuning a multilingual base model like mT5 on a small bilingual dataset leverages cross-lingual transfer learning, where knowledge from high-resource languages (English) improves performance on low-resource languages (Spanish). This approach is specifically designed for scenarios with limited data and directly addresses the accuracy gap without requiring separate models or translation pipelines.

Exam trap

The trap here is that candidates often overestimate the power of prompt engineering (Option B) for language-specific accuracy, underestimating that systematic linguistic errors require model adaptation through fine-tuning or transfer learning, not just instruction tuning.

How to eliminate wrong answers

Option B is wrong because prompt engineering with language-specific instructions does not adapt the model's internal representations; it merely provides contextual cues, which is insufficient to correct systematic inaccuracies in a specific language. Option C is wrong because translating queries to English and back introduces translation errors, latency, and loss of nuance, and does not improve the model's native understanding of Spanish. Option D is wrong because training separate fine-tuned models for each language is inefficient with a small bilingual dataset and fails to exploit cross-lingual transfer, leading to poor performance on the low-resource language.

450
MCQhard

A company is using OCI Generative AI for a RAG-based code assistant. They index source code repositories into a vector store. Developers report that the assistant often suggests deprecated APIs or outdated code snippets, even though the latest code is in the repository. The index was built a week ago and has not been updated. They plan to set up incremental updates. However, they notice that even after re-indexing the latest commits, the issue persists. What is the most likely oversight?

A.The vector store is not configured to overwrite existing vectors for updated documents.
B.The retrieval top-k is set too low, missing some relevant snippets.
C.The chunking strategy splits code at function boundaries, losing import statements.
D.The embedding model is not fine-tuned on code; it was trained on natural language.
AnswerA

Without overwrite, old vectors persist even after re-indexing, causing retrieval of outdated code.

Why this answer

If the vector store does not overwrite or update vectors for changed documents, old vectors remain, causing retrieval of outdated code. Option B (chunking at function boundaries) may cause missing imports but not specifically deprecation. Option C (embedding model not fine-tuned on code) might affect quality but not freshness.

Option D (low top-k) would affect recall, not freshness.

Page 5

Page 6 of 11

Page 7

All pages