Courseiva

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

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

Page 7

Page 8 of 11

Page 9
526
MCQeasy

A developer wants to use OCI Generative AI Service to summarize long documents. Which endpoint should they use to send the document content?

A./generate
B./classify
C./embed
D./chat
AnswerD

The /chat endpoint accepts a conversation history, suitable for summarization tasks.

Why this answer

The /chat endpoint in OCI Generative AI Service is designed for conversational interactions and can handle long document summarization by accepting the document content as part of the chat context. This endpoint supports multi-turn dialogues and large input payloads, making it suitable for processing and summarizing lengthy documents.

Exam trap

Oracle often tests the misconception that /generate is the correct endpoint for all text generation tasks, including summarization, but the /chat endpoint is specifically optimized for interactive and context-aware tasks like document summarization.

How to eliminate wrong answers

Option A is wrong because /generate is used for text generation tasks like content creation or completion, not specifically for summarization of long documents. Option B is wrong because /classify is intended for text classification tasks such as sentiment analysis or topic labeling, not summarization. Option C is wrong because /embed is used to generate vector embeddings for text, which are useful for semantic search or similarity comparisons, not for producing summaries.

527
Multi-Selecthard

Which TWO are common causes of poor answer quality in a RAG system built on OCI Generative AI? (Choose two.)

Select 2 answers
A.Mismatch between the embedding model's training data and the domain of the documents.
B.Using a generation model that is too large for the task.
C.Setting the temperature parameter too low, causing overly deterministic outputs.
D.Insufficient number of relevant chunks in the document corpus for the given query.
E.Using only vector search without keyword-based fallback.
AnswersA, D

Domain mismatch leads to poor semantic alignment and irrelevant retrieval.

Why this answer

The embedding model's training data determines the semantic space in which documents and queries are represented. If the model was trained on general text (e.g., Wikipedia) but the documents are from a specialized domain (e.g., medical or legal), the embeddings will fail to capture domain-specific nuances, leading to poor retrieval relevance and thus poor answer quality in the RAG system.

Exam trap

Oracle often tests the distinction between retrieval-side failures (like embedding mismatch or insufficient chunks) and generation-side parameters (like temperature or model size), so candidates mistakenly attribute poor answer quality to generation settings rather than the retrieval pipeline.

528
MCQeasy

A startup is using OCI Generative AI serverless inference for a text generation application. They notice that the latency is high during peak hours. They have a budget to increase costs moderately. Which action would most effectively reduce latency?

A.Switch to dedicated AI cluster.
B.Enable content filtering.
C.Increase the number of concurrent requests.
D.Use a smaller model.
AnswerA

Dedicated clusters offer predictable, low-latency inference.

Why this answer

Switching to a dedicated AI cluster provides consistent low latency compared to serverless inference. Option B is wrong because enabling content filtering does not affect latency; it is used to filter harmful content. Option C is wrong because increasing the number of concurrent requests may increase the load on the serverless infrastructure and could actually worsen latency.

Option D is wrong because although using a smaller model might reduce latency, it can degrade the quality of generated text, and the dedicated cluster is a more effective solution given the budget to increase costs moderately.

529
MCQhard

A company uses RAG (Retrieval-Augmented Generation) with OCI OpenSearch and OCI Generative AI. The system retrieves irrelevant documents. What is the first step to debug?

A.Use a different LLM
B.Increase the number of retrieved documents
C.Check the embeddings quality
D.Lower the temperature
AnswerC

Embeddings directly impact retrieval relevance; low-quality embeddings cause irrelevant results.

Why this answer

When RAG retrieves irrelevant documents, the most common root cause is poor embedding quality—vectors that fail to capture semantic similarity between the query and the documents. Checking embeddings (e.g., cosine similarity scores, dimensionality, or model used) is the logical first step before adjusting retrieval parameters or the LLM itself.

Exam trap

Oracle OCI GenAI exams often test the misconception that retrieval issues are caused by the LLM or its parameters, when in fact the root cause is almost always in the embedding or indexing pipeline.

How to eliminate wrong answers

Option A is wrong because swapping the LLM changes only the generation step, not the retrieval step; irrelevant documents will still be fed to any LLM. Option B is wrong because increasing the number of retrieved documents only adds more noise if the embeddings are poor, worsening the problem. Option D is wrong because lowering the temperature affects the randomness of the LLM's output, not the relevance of retrieved documents.

530
MCQmedium

A company wants to use OCI Generative AI Agents for a question-answering system over their internal knowledge base stored in OCI Object Storage. The data consists of PDF and Word documents. What is the first step to make this data usable by the agent?

A.Use the Embedding API to generate embeddings for all documents
B.Create a dedicated AI cluster for inference
C.Create an OCI Generative AI Agent
D.Create a knowledge base and associate it with the Object Storage bucket
AnswerD

The knowledge base indexes the documents from Object Storage, enabling the agent to retrieve relevant content for answering questions.

Why this answer

A knowledge base must be created and linked to the data source (Object Storage bucket) so the agent can index and retrieve the content. Creating an agent first without a knowledge base would not work. The Embedding API is lower-level; the agent service abstracts this.

531
MCQeasy

Which of the following is a primary limitation of large language models that can lead to generating factually incorrect information?

A.Bias in training data
B.Hallucinations
C.Context window limitation
D.Knowledge cutoff
AnswerB

Hallucinations occur when the model generates content that is not factually accurate or grounded in the training data.

Why this answer

Hallucinations are a primary limitation of large language models because they cause the model to generate text that is factually incorrect, nonsensical, or not grounded in the training data. This occurs due to the probabilistic nature of token prediction, where the model prioritizes fluency and coherence over factual accuracy, especially when the prompt lacks sufficient context or the model is asked to recall specific facts not well-represented in its training.

Exam trap

The 1Z0-1127 exam often tests the distinction between hallucinations and other limitations like bias or context windows, so the trap here is that candidates confuse 'bias in training data' with factual inaccuracy, when bias is about systematic prejudice, not random or confident fabrication of false facts.

How to eliminate wrong answers

Option A is wrong because bias in training data leads to skewed or prejudiced outputs, not necessarily factually incorrect information; it affects fairness and representation rather than factual accuracy. Option C is wrong because context window limitation restricts the amount of input the model can process at once, which can cause loss of context but does not directly cause the generation of factually incorrect information—it may lead to incomplete or irrelevant responses. Option D is wrong because knowledge cutoff refers to the date after which the model has no training data, meaning it cannot answer about events after that date, but it does not cause the model to fabricate facts; it simply limits the temporal scope of knowledge.

532
MCQmedium

A legal firm needs an AI assistant that can answer questions based on a large corpus of internal regulations that change quarterly. The firm also requires high accuracy and the ability to cite sources. Which approach should the firm choose?

A.Build a RAG application with vector search and citation generation
B.Use a pre-trained model without customization
C.Implement a rule-based search engine
D.Fine-tune a pre-trained model on the current regulations
AnswerA

RAG retrieves relevant documents and can cite sources, and updating the knowledge base is straightforward.

Why this answer

Retrieval-Augmented Generation (RAG) with vector search allows the legal firm to index its quarterly-changing regulations into a vector database, retrieve the most relevant chunks for each query, and generate answers with source citations. This approach ensures high accuracy by grounding the LLM's output in the current, authoritative documents without requiring retraining, and citation generation provides the necessary source traceability for legal compliance.

Exam trap

Oracle often tests the misconception that fine-tuning is the best way to incorporate domain-specific knowledge, but the trap here is that fine-tuning cannot handle frequently changing data and does not provide source citations, whereas RAG with vector search is purpose-built for dynamic, citation-required use cases.

How to eliminate wrong answers

Option B is wrong because a pre-trained model without customization has no access to the firm's specific internal regulations, leading to hallucinated or outdated answers and no ability to cite sources. Option C is wrong because a rule-based search engine relies on static keyword matching and cannot understand semantic meaning or generate natural language answers, making it unsuitable for complex legal queries and dynamic content. Option D is wrong because fine-tuning on the current regulations would require retraining every quarter when regulations change, which is resource-intensive and does not inherently provide source citation; moreover, fine-tuning risks catastrophic forgetting of prior regulations and cannot dynamically retrieve the latest documents.

533
Multi-Selectmedium

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

Select 3 answers
A.Setting temperature to 0.9
B.Context/background about the company's product line
C.Output format specification: 'Use the following XML schema: <product><name>...</name></product>'
D.Task instruction: 'Generate a product description as XML'
E.Few-shot examples of valid XML product descriptions
AnswersC, D, E

Explicit format specification guides the model to produce valid XML.

Why this answer

Task instruction tells the model what to do, output format specification tells it the structure, and few-shot examples provide a concrete reference. Context/background is less critical, and temperature does not enforce schema.

534
Multi-Selecthard

Which THREE components are essential for a production-grade generative AI deployment on OCI? (Select THREE)

Select 3 answers
A.OCI Logging for audit
B.OCI Vault for secrets
C.OCI Data Flow for data processing
D.Dedicated AI cluster
E.OCI IAM policies for access control
AnswersA, D, E

Logging is critical for monitoring and compliance.

Why this answer

A is correct because OCI Logging provides centralized audit logging for all API calls and resource changes in the generative AI deployment. This is essential for compliance, security monitoring, and troubleshooting in a production environment, as it captures detailed logs of model invocations, data access, and configuration changes.

Exam trap

Oracle often tests the distinction between 'essential' components for deployment versus 'useful but optional' services, leading candidates to select OCI Vault or OCI Data Flow because they are commonly used in AI pipelines, but they are not mandatory for a production-grade deployment.

535
Multi-Selecthard

An OCI administrator is configuring access control for OCI Generative AI. Which three IAM components are required to allow a group of data scientists to call the GenerateText API? (Choose three.)

Select 3 answers
A.An IAM group for the data scientists
B.A local peering gateway
C.A policy granting ai-services-generative-ai-family in a compartment
D.A dynamic group
E.A compartment for the AI resources
AnswersA, C, E

The group is the subject of the policy.

Why this answer

An IAM group is required to organize the data scientists into a logical set of principals. IAM policies are then attached to this group to grant permissions, ensuring only members of the group can call the GenerateText API. Without a group, you cannot apply a policy to a collection of users.

Exam trap

The trap here is that candidates confuse dynamic groups (for resources) with IAM groups (for users), or mistakenly think a networking component like a local peering gateway is required for API access control.

536
Multi-Selectmedium

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

Select 2 answers
A.Temperature
B.Stop sequences
C.Frequency penalty
D.Top-p
E.Max tokens
AnswersA, D

Temperature scales logits to affect randomness.

Why this answer

Temperature and top-p (nucleus sampling) are the primary parameters that influence randomness and diversity.

537
MCQmedium

A data scientist is evaluating two LLMs for a summarization task. Model X scores 45 on ROUGE-L, while Model Y scores 42. However, in human evaluation, Model Y is preferred 60% of the time. What is the most likely explanation?

A.Human evaluators are biased and cannot be trusted for objective assessment
B.Model Y overfits to the training data, causing poor generalisation
C.ROUGE-L measures lexical overlap, which may not capture the semantic quality that humans value
D.ROUGE-L is not a reliable metric for summarization because it only measures recall
AnswerC

ROUGE relies on n-gram overlap; Model Y might produce more concise or coherent summaries that humans prefer but that share fewer exact n-grams with the reference.

Why this answer

ROUGE-L measures the longest common subsequence (LCS) between generated and reference summaries, focusing on lexical (word-level) overlap. It does not assess semantic meaning, fluency, or factual correctness. Human evaluators often prefer summaries that are coherent and capture key ideas, even if they use different wording, which explains why Model Y can score lower on ROUGE-L but be preferred 60% of the time.

Exam trap

The 1Z0-1127 exam often tests the distinction between lexical metrics (like ROUGE) and semantic quality, trapping candidates who assume higher automated scores always indicate better performance without considering human preferences.

How to eliminate wrong answers

Option A is wrong because human evaluators are not inherently biased in this context; their preference reflects subjective quality (e.g., coherence, relevance) that automated metrics may miss. Option B is wrong because overfitting would typically cause poor performance on unseen data, but here Model Y performs worse on ROUGE-L yet is preferred by humans, suggesting it generalizes better in terms of human-perceived quality. Option D is wrong because ROUGE-L measures both precision and recall via the F1-score of the LCS, not just recall; the issue is its reliance on lexical overlap, not a limitation to recall.

538
MCQhard

Refer to the exhibit. A developer sends this JSON payload to the /chat endpoint. The response includes an error that 'maxTokens' must be an integer. What is the issue?

A.The compartmentId is missing
B.The temperature value is too low
C.The parameter should be 'max_tokens' instead of 'maxTokens'
D.The model name 'cohere.command-light' is incorrect
AnswerC

The API expects snake_case parameters.

Why this answer

The OCI Generative AI service expects the parameter name 'max_tokens' (snake_case) for specifying the maximum number of tokens in the response, not 'maxTokens' (camelCase). The error message indicates that the value is not being recognized as an integer because the JSON key itself is incorrect, causing the service to fail validation.

Exam trap

Oracle often tests the difference between snake_case and camelCase parameter names in OCI services, and the trap here is that candidates familiar with OpenAI's API conventions might assume 'maxTokens' is correct, overlooking OCI's strict snake_case requirement.

How to eliminate wrong answers

Option A is wrong because the compartmentId is not required for the /chat endpoint when using a model that is accessible via the service's default compartment or when the request is authenticated via API keys that have the necessary permissions. Option B is wrong because a temperature value of 0.5 is within the valid range (typically 0.0 to 1.0) and does not cause an error about 'maxTokens' needing to be an integer. Option D is wrong because 'cohere.command-light' is a valid model name in OCI Generative AI, and the error message specifically points to the 'maxTokens' parameter, not the model name.

539
MCQeasy

Which OCI Generative AI API is used to send a message and receive a model-generated response while maintaining a conversation history?

A.InferenceClient
B.Chat API
C.Embeddings API
D.Generate API
AnswerB

Chat API handles multi-turn conversations, system prompts, and history.

Why this answer

The Chat API is specifically designed for multi-turn conversations, supporting system prompts and history. The Generate API is for single-turn text generation. InferenceClient is a client class, not an API endpoint.

The Embeddings API is for vector generation.

540
MCQmedium

A developer is building a LangChain-powered application that must maintain conversation history across multiple turns. They want to store the chat history in Oracle Database. Which memory type and persistence approach should they use?

A.ConversationSummaryMemory with in-memory storage
B.ConversationBufferWindowMemory with Redis persistence
C.ConversationKGMemory with file-based storage
D.ConversationBufferMemory with a custom chat message history class backed by Oracle Database
AnswerD

BufferMemory preserves the complete conversation; a custom Oracle-backed history class persists it durably across sessions.

Why this answer

The requirement explicitly states storing chat history in Oracle Database. ConversationBufferMemory stores the full conversation history without summarization or windowing, and by implementing a custom chat message history class backed by Oracle Database, the developer can persist the conversation history directly in Oracle, meeting both the memory type and persistence requirements.

Exam trap

The trap here is that candidates may choose a memory type like ConversationSummaryMemory or ConversationBufferWindowMemory for efficiency, overlooking the explicit requirement to store the full history in Oracle Database, and instead defaulting to simpler in-memory or Redis-based solutions.

How to eliminate wrong answers

Option A is wrong because ConversationSummaryMemory stores a summarized version of the conversation, which loses detail, and in-memory storage does not persist data to Oracle Database. Option B is wrong because ConversationBufferWindowMemory only retains a fixed window of recent messages, discarding older context, and Redis persistence does not use Oracle Database. Option C is wrong because ConversationKGMemory stores a knowledge graph of entities and relationships, not the raw conversation history, and file-based storage does not use Oracle Database.

541
MCQmedium

An organization wants to use OCI Generative AI to build a summarization tool but must ensure that all inference requests are logged for audit purposes. Which approach should they take?

A.Implement a custom proxy with logging
B.Enable OCI Audit service
C.Enable OCI Logging on the generative AI endpoint
D.Use OCI Vault to store logs
AnswerC

OCI Logging can capture detailed request and response data for audit.

Why this answer

OCI Logging can be enabled directly on the Generative AI endpoint to capture all inference requests and responses as logs, which can then be used for audit purposes. This is the native, recommended approach for logging API calls without introducing additional infrastructure or complexity.

Exam trap

Oracle often tests the distinction between management-plane logging (OCI Audit) and data-plane logging (OCI Logging on the service endpoint), leading candidates to mistakenly choose OCI Audit for inference request auditing.

How to eliminate wrong answers

Option A is wrong because implementing a custom proxy with logging introduces unnecessary complexity, latency, and potential security gaps, and is not a native OCI solution for logging inference requests. Option B is wrong because the OCI Audit service captures only management-plane events (e.g., create, update, delete operations on resources), not data-plane events like individual inference API calls. Option D is wrong because OCI Vault is designed for storing secrets (e.g., API keys, passwords), not for storing logs; logs should be stored in OCI Logging or Object Storage.

542
Multi-Selectmedium

Which TWO actions are required to use a custom fine-tuned model via OCI Generative AI? (Choose two.)

Select 2 answers
A.Deploy the model to an endpoint
B.Provision a private endpoint for the model
C.Enable cross-region replication
D.Grant access to other tenancies
E.Complete the fine-tuning job successfully
AnswersA, E

A deployed endpoint is needed to invoke the model.

Why this answer

To use a custom fine-tuned model via OCI Generative AI, you must first successfully complete the fine-tuning job (E) to create the model, and then deploy it to an endpoint (A) to enable inference. Options B (private endpoint) is optional for networking control, not required. C (cross-region replication) is not needed.

D (granting access to other tenancies) is only required if you want to share the model across tenancies, not for your own usage.

543
MCQhard

A data scientist is fine-tuning a generative AI model on OCI Data Science using a custom container with GPU resources. The training job fails with an out-of-memory error despite the GPU instance having sufficient memory. The job works fine on a smaller dataset. What is the most likely cause?

A.The training script has a memory leak
B.The GPU instance is not supported by OCI Data Science
C.The model is not compatible with the PyTorch version
D.The batch size is too large for the GPU memory
AnswerD

Large batch size can cause OOM errors; reducing batch size resolves it.

Why this answer

The most likely cause is that the batch size is too large for the GPU memory. Even though the GPU instance has sufficient total memory, a batch size that exceeds the available GPU memory (after accounting for model parameters, gradients, and optimizer states) will trigger an out-of-memory (OOM) error. Reducing the batch size allows the model to fit within the GPU's memory limits, which explains why the job works on a smaller dataset but fails on a larger one.

Exam trap

Oracle often tests the misconception that 'sufficient instance memory' guarantees no OOM errors, ignoring that GPU memory is a separate, finite resource that must accommodate both the model and the batch data simultaneously.

How to eliminate wrong answers

Option A is wrong because a memory leak would cause gradual memory consumption over time, not a consistent OOM error that correlates with dataset size; the error occurs immediately with a larger dataset, not after prolonged execution. Option B is wrong because OCI Data Science supports a wide range of GPU instances (e.g., VM.GPU.A10.1, VM.GPU.A100.1), and if the instance were unsupported, the job would fail with a different error (e.g., 'unsupported instance shape') rather than an OOM error. Option C is wrong because model compatibility with PyTorch version would typically cause import or runtime errors (e.g., 'module not found' or 'operator not implemented'), not an OOM error; PyTorch version mismatches do not directly affect memory allocation.

544
MCQhard

In the self-attention mechanism, what is the role of the 'scaling factor' (division by sqrt(d_k)) in the softmax computation?

A.To make the attention mechanism translation invariant
B.To prevent the softmax from saturating and producing small gradients
C.To increase the variance of attention scores
D.To ensure the sum of attention weights equals 1
AnswerB

Scaling avoids large values that cause softmax saturation.

Why this answer

Scaling prevents the dot products from growing too large in magnitude, which would push softmax into regions with extremely small gradients.

545
Multi-Selectmedium

A developer is building a multilingual search application and needs to generate embeddings for user queries in multiple languages. Which two options are correct? (Select TWO)

Select 2 answers
A.Use the embed-english-v3.0 model
B.Set the input type to 'search_document'
C.Use the embed-multilingual-v3.0 model
D.Set the input type to 'search_query'
E.Set the input type to 'classification'
AnswersC, D

This model supports multiple languages for embedding.

Why this answer

OCI Generative AI provides embed-multilingual-v3.0 for multilingual support. The input type 'search_query' is designed for query embeddings. Embed-english-v3.0 is English-only. 'search_document' is for documents, not queries. 'classification' is for classification tasks.

546
MCQeasy

Which OCI Generative AI model is specifically designed to generate embeddings for English text?

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

This is the dedicated English embedding model.

Why this answer

Cohere embed-english-v3.0 is the embedding model for English text. The other options are either generative models or multilingual embedding models.

547
MCQmedium

When using LangChain's RetrievalQA chain with `chain_type="stuff"`, what happens if the retrieved documents exceed the model's context window?

A.The chain automatically truncates the documents to fit
B.The chain raises an error because the input is too long
C.The chain uses a sliding window to summarize documents
D.The chain switches to a different model with larger context
AnswerB

Stuff chain will fail due to context length exceeded.

Why this answer

The "stuff" chain type simply concatenates all retrieved documents into the prompt. If the total exceeds the context window, a TokenLimitError or similar error occurs. Other chain types like "map_reduce" or "refine" can handle larger contexts.

548
MCQeasy

What is the primary purpose of the self-attention mechanism in a Transformer model?

A.To generate token embeddings in parallel
B.To reduce the dimensionality of token embeddings
C.To encode positional information of tokens
D.To compute a weighted sum of all token representations based on pairwise relevance
AnswerD

Self-attention computes attention scores between all pairs and aggregates information.

Why this answer

Self-attention allows each token to attend to every other token in the sequence, capturing contextual relationships regardless of distance.

549
MCQhard

A developer is implementing a text generation pipeline and wants to produce diverse, creative outputs. They set temperature=1.2, top_k=50, and top_p=1.0. What is the MOST likely effect of this combination?

A.The output will be identical to greedy decoding because top_p=1.0 disables sampling
B.The output will be mostly factual because top_k filters out unlikely tokens
C.The output will be diverse and creative, but may occasionally be incoherent or off-topic
D.The output will be highly deterministic and repetitive
AnswerC

High temperature increases randomness, and the relaxed cutoffs allow less likely tokens, yielding creative but sometimes nonsensical outputs.

Why this answer

Temperature >1 flattens the probability distribution, making low-probability tokens more likely. top_k=50 restricts to top 50 tokens, but top_p=1.0 imposes no cumulative probability cutoff. The combination yields diverse but potentially incoherent outputs.

550
Multi-Selecteasy

Which TWO of the following sampling strategies introduce randomness into text generation?

Select 2 answers
A.Beam search
B.Greedy decoding
C.Temperature sampling
D.Top-k sampling
E.Top-p (nucleus) sampling
AnswersD, E

Correct — Top-k sampling randomly samples from the k most probable tokens.

Why this answer

Top-k sampling and top-p (nucleus) sampling introduce randomness by sampling from a restricted token set. Temperature modifies the probability distribution and controls randomness but is a generation parameter, not a standalone sampling strategy. Greedy decoding and beam search are deterministic or near-deterministic.

551
MCQhard

During deployment of a generative AI model, the inference endpoint returns high latency and timeouts. The model is deployed on a dedicated AI cluster with multiple nodes. What is the most likely cause?

A.The inference request batch size is too small
B.The model is too large for the cluster memory
C.The cluster nodes are configured with insufficient parallelism or the model is not properly parallelized across nodes
D.The client-side network is slow
AnswerC

Correct: Without proper model parallelism, nodes may be underutilized leading to high per-request latency.

Why this answer

High latency and timeouts in a distributed AI inference deployment typically indicate that the model workload is not efficiently distributed across the cluster nodes. Option C is correct because insufficient parallelism—either due to misconfigured node resources (e.g., insufficient vCPUs, GPU cores, or memory bandwidth) or improper model sharding/parallelization—causes some nodes to become bottlenecks while others remain underutilized, leading to queuing delays and eventual timeouts.

Exam trap

Oracle often tests the misconception that high latency is always due to insufficient resources (e.g., memory or batch size), but the real trap here is that candidates overlook the critical role of parallelization configuration in distributed inference—assuming that simply adding more nodes automatically distributes the workload.

How to eliminate wrong answers

Option A is wrong because a batch size that is too small would actually reduce latency per request (though it might lower throughput), not cause high latency or timeouts; the issue here is overload, not underutilization. Option B is wrong because if the model were too large for the cluster memory, the deployment would fail to load or would crash immediately, not return high latency and timeouts during inference. Option D is wrong because client-side network slowness would manifest as high network round-trip time or packet loss, not as server-side timeouts from the inference endpoint; the problem is explicitly on the deployment side.

552
MCQeasy

Refer to the exhibit. A user receives this error when using the OCI CLI to chat with a model. What is the most likely cause?

A.The model is not deployed.
B.The model ID is incorrect.
C.The OCI CLI is not configured with the correct region.
D.The user does not have the required IAM policy to invoke the model.
AnswerD

Correct: The 'AuthorizationFailure' error indicates insufficient permissions.

Why this answer

The error occurs because the user lacks the necessary IAM policy to invoke the model. In OCI, even if the model is deployed and the CLI is correctly configured, the IAM policy must grant the user or group the 'inference' permission on the specific model or model family. Without this policy, the OCI CLI returns an authorization error when attempting to chat with the model.

Exam trap

The trap here is that candidates often assume the error is due to a misconfiguration (region or model ID) rather than a missing IAM policy, because the CLI error message may not explicitly say 'authorization' and instead show a generic 'service error'.

How to eliminate wrong answers

Option A is wrong because if the model were not deployed, the error would typically indicate that the model endpoint is unavailable or not found, not an authorization failure. Option B is wrong because an incorrect model ID would result in a 'model not found' or 'invalid parameter' error, not an authorization error. Option C is wrong because an incorrect region configuration would cause connectivity or endpoint resolution errors, such as 'region not found' or 'endpoint unreachable', not an IAM permission error.

553
MCQhard

Your company uses OCI Data Science for model development and deployment. You have a generative AI model that requires dynamic batching for efficient inference. You deployed the model using the OCI Model Deployment service with a custom inference script in a Docker container. However, you notice that the batch size is fixed at 1, leading to low throughput. The model can process multiple requests together efficiently. You want to implement dynamic batching to increase throughput without significantly increasing latency for individual requests. What is the best approach?

A.Modify the model deployment to use a larger GPU shape to handle larger batches
B.Enable the model deployment's built-in request batching feature
C.Use OCI Streaming service to buffer requests and then invoke the model in batches from a consumer
D.Implement a queuing mechanism in the inference script that collects incoming requests and processes them in batches
AnswerD

This is a common pattern for dynamic batching and can be done within the custom container.

Why this answer

Dynamic batching must be implemented at the application level within the custom inference script when using OCI Model Deployment. The service does not provide built-in request batching; instead, you need to collect incoming requests in a queue and process them together in a single forward pass, which maximizes GPU utilization while controlling latency via a timeout or max batch size.

Exam trap

The trap here is that candidates assume OCI Model Deployment has a built-in batching feature similar to some cloud ML services, but OCI requires you to implement batching logic yourself in the custom inference script.

How to eliminate wrong answers

Option A is wrong because simply using a larger GPU shape does not change the fact that the inference script processes one request at a time; throughput gains require batching logic, not just more compute. Option B is wrong because OCI Model Deployment does not have a built-in request batching feature; this is a common misconception—the service routes each request individually to the container. Option C is wrong because OCI Streaming is designed for asynchronous, durable message buffering and would introduce significant latency and complexity; it is not suitable for real-time inference where low latency is critical.

554
MCQhard

An AI assistant needs to solve complex math word problems step by step. Which prompting technique is most suitable?

A.Chain-of-thought prompting with few-shot examples.
B.Zero-shot prompting with the problem only.
C.Prompting with a high temperature setting.
D.Using a model with a larger context window.
AnswerA

Correct: CoT with examples guides reasoning.

Why this answer

Chain-of-thought prompting with few-shot examples is most suitable because it guides the LLM to break down complex math word problems into intermediate reasoning steps, mimicking human problem-solving. Few-shot examples provide a template for the desired reasoning structure, which significantly improves accuracy on multi-step arithmetic tasks compared to direct answer generation.

Exam trap

Oracle often tests the misconception that simply increasing model capacity (context window) or randomness (temperature) can substitute for structured reasoning, when in fact the prompting strategy itself is the critical factor for multi-step tasks.

How to eliminate wrong answers

Option B is wrong because zero-shot prompting lacks the explicit reasoning structure needed for multi-step math problems, often leading to incorrect or incomplete answers. Option C is wrong because a high temperature setting increases randomness in token selection, which is counterproductive for deterministic math tasks requiring precise calculations. Option D is wrong because a larger context window does not inherently improve reasoning quality; it only allows more input tokens, but without structured prompting the model may still fail to perform step-by-step logic.

555
MCQhard

An ML engineer is selecting a pre-trained model for a code generation task. The model must be able to generate syntactically correct code in multiple programming languages. Which model family is BEST suited for this task?

A.Meta Llama (Code Llama variant)
B.BERT
C.Cohere Command
D.Mistral
AnswerA

Code Llama is a variant of Llama fine-tuned on code, making it well-suited for code generation across languages.

Why this answer

Models like Code Llama (a variant of Llama) are specifically fine-tuned on code and are known for strong code generation capabilities. While other models can generate code, Code Llama is the best fit among the options.

556
MCQhard

A company is building a customer support chatbot that uses Retrieval-Augmented Generation (RAG) with OCI Generative AI. They need low-latency responses and the ability to update the knowledge base daily. Which architecture best meets these requirements?

A.Store embeddings in OCI Object Storage and use OCI Functions to perform similarity search.
B.Use OCI Data Science Notebook Sessions to run the RAG pipeline with a managed Cohere model.
C.Use OCI Streaming to ingest documents and OCI Data Flow to update a knowledge base in OCI Object Storage.
D.Use OCI Search with OpenSearch for the vector database, OCI Generative AI for inference, and Oracle Database for metadata.
AnswerD

OpenSearch provides low-latency vector search and supports daily indexing updates.

Why this answer

It combines OCI Search with OpenSearch as a vector database for efficient similarity search, OCI Generative AI for inference, and Oracle Database for metadata management. This architecture provides low-latency responses by leveraging OpenSearch's optimized vector indexing and allows daily knowledge base updates through Oracle Database's robust data management capabilities.

Exam trap

Oracle exams often test the misconception that any storage service (like Object Storage) can serve as a vector database, but candidates must recognize that low-latency similarity search requires a purpose-built vector database like OpenSearch.

How to eliminate wrong answers

Option A is wrong because OCI Object Storage is a blob store, not a vector database; using OCI Functions for similarity search would be slow and unscalable due to lack of optimized indexing. Option B is wrong because OCI Data Science Notebook Sessions are designed for development and experimentation, not production-grade low-latency inference, and they lack a vector database for efficient retrieval. Option C is wrong because OCI Streaming is for real-time data ingestion, not for updating a knowledge base, and OCI Data Flow is a batch processing service that does not provide the low-latency query capability required for RAG.

557
MCQeasy

A developer is building a RAG application using OCI Generative AI. They notice that the generated responses often contain outdated information even though the knowledge base is updated daily. What is the most likely cause?

A.The embedding model is not fine-tuned on the latest data.
B.The vector database index is not rebuilt after data updates.
C.The retrieval top-k is set too high.
D.The chunk size is too small, causing loss of context.
AnswerB

If the index is not refreshed, new data is not searchable, leading to outdated results.

Why this answer

In a RAG pipeline, the vector database index is a static snapshot of the embedded knowledge base. When the knowledge base is updated daily, the index must be rebuilt or incrementally updated to reflect the new data. Without rebuilding, the retrieval step will still search the old index, returning outdated chunks and causing the LLM to generate stale responses.

Exam trap

Oracle often tests the misconception that embedding model fine-tuning or chunk size adjustments are the primary cause of outdated responses, when in fact the root cause is the failure to rebuild or update the vector index after data changes.

How to eliminate wrong answers

Option A is wrong because fine-tuning the embedding model on the latest data is not required for RAG; embeddings are typically generated by a pre-trained model and the retrieval quality depends on the index reflecting the current data, not on model fine-tuning. Option C is wrong because setting top-k too high would retrieve more chunks, potentially including irrelevant ones, but it would not cause the responses to contain outdated information—the retrieved chunks would still come from the old index. Option D is wrong because a small chunk size may cause loss of context, leading to incomplete or fragmented answers, but it does not directly cause the use of outdated information; the core issue is the index not being refreshed.

558
MCQmedium

A developer wants to deploy a RAG application using OCI Generative AI for both embedding and text generation while minimizing costs. Which strategy is most effective?

A.Use a larger generation model
B.Cache frequent queries and their embeddings
C.Reduce chunk size to decrease embedding calls
D.Use a larger embedding model for better accuracy
AnswerB

Caching reduces redundant embedding API calls, lowering costs.

Why this answer

Caching embeddings for frequent queries eliminates repeated embedding API calls, directly reducing cost.

559
MCQhard

A team is fine-tuning a Llama 3 model using OCI Generative AI. The training dataset contains 10,000 prompt-completion pairs in JSONL format. After submitting the fine-tuning job, it fails with a 'Data validation error'. What is the most likely cause?

A.The base model selected does not support fine-tuning
B.The dataset is in the wrong compartment
C.The fine-tuning job does not have enough model units allocated
D.The JSONL file uses 'input' and 'output' as key names instead of 'prompt' and 'completion'
AnswerD

OCI Generative AI expects exact key names 'prompt' and 'completion' in the JSONL training file; using alternate keys causes a data validation error.

Why this answer

OCI fine-tuning requires a specific JSONL format with 'prompt' and 'completion' keys. If the keys are named differently (e.g., 'input'/'output'), validation fails. Model units, compartment, and base model are not typically validation issues.

560
MCQmedium

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

A.Fine-tune the model on the technical manuals
B.Set temperature to 0 in the generation parameters
C.Use the document-grounded generation syntax by providing documents in the chat history with explicit citation instructions
D.Use the preamble to instruct the model to answer only from the documents
AnswerC

Cohere supports document-grounded generation where you supply documents and specify they are the only source.

Why this answer

Cohere's document-grounded generation syntax allows you to supply search results or documents and instruct the model to answer solely from those documents, reducing hallucination.

561
MCQeasy

Which of the following is NOT an available model in OCI Generative AI service?

A.Cohere Embed English v3.0
B.OpenAI GPT-4
C.Meta Llama 3
D.Cohere Command R+
AnswerB

GPT-4 is not part of OCI Generative AI service.

Why this answer

OCI GenAI offers Cohere Command R, Command R+, Meta Llama 3, Cohere Embed models, and Cohere Rerank. GPT-4 is an OpenAI model and is not available in OCI GenAI.

562
MCQmedium

A company has deployed a generative AI model endpoint on OCI. They want to monitor token usage and latency for cost optimization. Which OCI service should they use to collect these metrics?

A.OCI Monitoring
B.OCI Events
C.OCI Notifications
D.OCI Logging
AnswerA

OCI Monitoring collects and visualizes metrics such as token count and latency.

Why this answer

A is correct because OCI Monitoring is the native telemetry service that collects and stores metrics such as token usage (e.g., input/output token counts) and latency (e.g., model inference latency) from OCI Generative AI endpoints. These metrics are automatically emitted by the OCI Generative AI service and can be queried via the Monitoring API or visualized in the Console, enabling cost optimization by tracking consumption patterns.

Exam trap

The trap here is that candidates confuse OCI Logging (which collects unstructured logs) with OCI Monitoring (which collects structured metrics), leading them to select Logging for numeric performance data like token counts and latency.

How to eliminate wrong answers

Option B (OCI Events) is wrong because OCI Events is a notification service that triggers actions based on changes in OCI resources (e.g., state transitions), not a service for collecting time-series metrics like token usage or latency. Option C (OCI Notifications) is wrong because OCI Notifications is a pub/sub messaging service for distributing alerts and messages, not a metric collection or storage service. Option D (OCI Logging) is wrong because OCI Logging captures log data (e.g., text-based audit logs, error logs) from resources, not structured numeric metrics; metrics require OCI Monitoring's custom or predefined metric streams.

563
MCQhard

During fine-tuning, a user notices the loss does not decrease after several epochs. The dataset is a JSONL file with 500 prompt/completion pairs. What is the MOST likely cause?

A.The JSONL format is incorrect because it lacks system prompts
B.The base model is not compatible with the T-Few technique
C.The dataset is too small; T-Few fine-tuning generally needs at least 1000 examples
D.The learning rate is too high, causing the model to diverge
AnswerC

T-Few is efficient but still requires a minimum dataset size to learn effectively.

Why this answer

Fine-tuning with T-Few typically requires at least 1000 examples for meaningful learning. The dataset size is likely insufficient.

564
MCQhard

A multinational corporation uses OCI Generative AI to power a customer support chatbot. The chatbot uses a fine-tuned model deployed on a dedicated AI cluster in the us-ashburn-1 region. The application is used globally, and users in Europe are experiencing high latency (over 2 seconds) compared to users in North America (under 500 ms). The company has a requirement to keep all data within the US due to compliance, so they cannot deploy in Europe. The latency is not due to network bandwidth but due to the inference time. The monitoring shows that the cluster is at 80% utilization during peak hours. The team wants to reduce the latency for European users without violating data residency. What is the best course of action?

A.Optimize the model using techniques like quantization or pruning to reduce inference time.
B.Implement an edge caching layer in Europe to serve common queries.
C.Increase the number of nodes in the cluster to distribute the load.
D.Deploy an additional endpoint in a European region and use a global load balancer.
AnswerA

Model optimization directly reduces per-request latency without moving data.

Why this answer

The latency issue is explicitly due to inference time, not network bandwidth or cluster utilization. Model optimization techniques like quantization (reducing precision of weights from FP32 to INT8) and pruning (removing redundant neurons) directly reduce the computational cost per inference, thereby lowering the response time without moving data or changing the deployment region. This approach satisfies the data residency constraint while addressing the root cause of high latency for European users.

Exam trap

The trap here is that candidates may confuse latency caused by inference time with latency caused by network distance or cluster load, leading them to choose scaling or caching solutions that do not address the fundamental computational bottleneck.

How to eliminate wrong answers

Option B is wrong because an edge caching layer in Europe would only serve cached responses for common queries; it does not reduce inference time for unique or dynamic queries, and caching introduces stale data risks for a customer support chatbot that may require real-time accuracy. Option C is wrong because increasing the number of nodes in the cluster addresses throughput (handling more concurrent requests) but does not reduce the per-request inference time; with 80% utilization, the cluster is not saturated, so adding nodes would not lower latency for individual inference calls. Option D is wrong because deploying an additional endpoint in a European region would violate the compliance requirement to keep all data within the US; even with a global load balancer, inference would still require data processing in Europe, which is not permitted.

565
MCQhard

A data scientist is fine-tuning a model on OCI Generative AI with a custom dataset. They receive a "QuotaExceeded" error during training. What is the most likely cause?

A.Exceeded the training compute unit quota
B.Exceeded the API call rate limit
C.Exceeded the model storage limit
D.Exceeded the data transfer out limit
AnswerA

Fine-tuning uses training compute units; quota may be exceeded.

Why this answer

The 'QuotaExceeded' error during fine-tuning on OCI Generative AI specifically indicates that the training job has consumed more compute units than allocated in the service limit. Fine-tuning requires dedicated training compute units (TCUs) which are a separate quota from inference or API calls. When this quota is exhausted, the service rejects new training jobs with this error.

Exam trap

OCI Gen AI exams often test the distinction between different types of quotas (compute vs. API rate vs. storage vs. egress) to see if candidates understand that 'QuotaExceeded' in the context of training specifically refers to compute resource limits, not API throttling or storage caps.

How to eliminate wrong answers

Option B is wrong because API call rate limits apply to inference requests (e.g., generating text), not to training compute resources; exceeding them would return a '429 Too Many Requests' error, not 'QuotaExceeded'. Option C is wrong because model storage limits apply to the number or size of models you can store in the OCI Generative AI model catalog, not to the compute resources used during training. Option D is wrong because data transfer out limits are related to egress traffic from OCI to the internet, not to internal training operations within the service.

566
MCQmedium

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

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

Self-consistency generates multiple reasoning chains and aggregates the results to increase robustness.

Why this answer

Self-consistency runs chain-of-thought multiple times and aggregates answers (e.g., by majority vote) to improve reliability. The other options are different techniques.

567
MCQmedium

Refer to the exhibit. A developer runs this command and sees that the 'cohere.embed-english-v3.0' model is INACTIVE. What is the most likely cause?

A.The model is not supported in the current region.
B.The API call lacks the required OCI policy for the model.
C.The model has been deprecated and is no longer available.
D.The compartment does not have access to the model.
AnswerC

An INACTIVE state indicates the model has been deprecated or retired, making it unavailable for new inference requests.

Why this answer

The 'cohere.embed-english-v3.0' model is listed as INACTIVE because Oracle Cloud Infrastructure (OCI) has deprecated it, meaning it is no longer available for inference. When a model is deprecated, its status changes to INACTIVE, and any attempt to invoke it will fail, even if the region, policies, and compartment permissions are correctly configured.

Exam trap

Oracle often tests the distinction between model lifecycle states (INACTIVE vs. ACTIVE) and common operational errors (policy, region, compartment), leading candidates to confuse a deprecation event with a configuration or permission issue.

How to eliminate wrong answers

Option A is wrong because if the model were unsupported in the current region, the command would typically return a 'not found' or 'unsupported' error, not an INACTIVE status. Option B is wrong because a missing OCI policy would result in a 403 Forbidden or authorization error, not an INACTIVE model status. Option D is wrong because compartment access issues would produce a permissions error, not an INACTIVE status; the model's availability is independent of compartment-level access.

568
Multi-Selectmedium

Which TWO of the following are benefits of using OCI Generative AI service compared to self-hosting an LLM?

Select 2 answers
A.Lower latency always
B.No data egress costs
C.Built-in content safety filters
D.Automatic scaling
E.Full control over model weights
AnswersC, D

OCI Generative AI includes safety filters.

Why this answer

OCI Generative AI service includes built-in content safety filters that automatically detect and block harmful or inappropriate content (e.g., hate speech, violence, sexual content) without requiring manual configuration. This is a key advantage over self-hosting, where you must implement and maintain your own content moderation pipeline.

Exam trap

The trap here is that candidates often assume a managed service like OCI Generative AI always provides lower latency or eliminates all data transfer costs, but in reality, self-hosting can be optimized for latency and egress costs depend on network architecture, not just the service model.

569
MCQhard

A researcher is evaluating two LLMs for a summarization task. Model A achieves a ROUGE-L score of 0.45 and a BERTScore of 0.92. Model B achieves a ROUGE-L score of 0.50 and a BERTScore of 0.88. Which model is likely better for producing summaries that are semantically faithful to the source, even if not using the exact same words?

A.Neither model is acceptable because ROUGE-L is below 0.6
B.Both are equally good because the scores are close
C.Model B because ROUGE-L is higher
D.Model A because BERTScore is higher
AnswerD

Higher BERTScore suggests better semantic alignment with the source, which is more important for faithfulness.

Why this answer

BERTScore measures semantic similarity using contextual embeddings, while ROUGE-L measures n-gram overlap. Higher BERTScore indicates better semantic faithfulness even without exact phrase matches.

570
MCQhard

In Oracle AI Vector Search, which index type is designed for approximate nearest neighbor search and employs a hierarchical navigable small world graph, offering high recall and fast search speeds for high-dimensional data?

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

HNSW uses a multi-layer graph structure for fast approximate nearest neighbor search with high recall.

Why this answer

HNSW (Hierarchical Navigable Small World) is a graph-based index that provides efficient approximate nearest neighbor search. IVF (Inverted File) uses clustering, and BTREE is for scalar data. VECTOR is a data type, not an index.

571
MCQhard

A security team requires that all OCI GenAI API calls be logged and audited. Despite enabling Audit logs in OCI, they do not see GenAI API calls. What is the most likely reason?

A.The audit log retention policy is too short and logs were overwritten.
B.The user is not a tenancy administrator.
C.OCI Audit currently only records control-plane operations; data-plane operations like inference are not logged.
D.The API calls are made by an OCI function, which is not logged.
AnswerC

Data-plane calls (e.g., model inference) are not captured by Audit; use Service Connector Hub for logging.

Why this answer

C is correct because OCI Audit service is designed to log control-plane operations (e.g., creating, updating, or deleting resources) but does not log data-plane operations such as inference API calls to the Generative AI service. The GenAI inference calls (e.g., generating text) are data-plane operations that occur on the service endpoint, not on the OCI control-plane API, so they are not captured by Audit logs. To log data-plane operations, you would need to use a different mechanism, such as OCI Vault for key usage or custom logging via API Gateway.

Exam trap

The trap here is that candidates assume enabling Audit logs captures all API activity, but OCI Audit explicitly excludes data-plane operations, which is a common misconception tested in the 1Z0-1127 exam.

How to eliminate wrong answers

Option A is wrong because audit log retention policies affect how long logs are kept, not whether specific API calls are recorded in the first place; if the calls were never logged, retention is irrelevant. Option B is wrong because tenancy administrator privileges are not required to view Audit logs; any user with the appropriate IAM policies (e.g., Audit Log Readers) can access them, and the issue is about logging scope, not permissions. Option D is wrong because OCI Functions calls are logged if they are control-plane operations; the fact that an API call originates from a function does not exclude it from Audit logging—the exclusion is based on whether the call is control-plane or data-plane.

572
Multi-Selecthard

An OCI user is troubleshooting a prompt that sometimes produces outputs containing offensive language. The prompt uses a system prompt to set a professional tone. Which THREE steps should the user take to mitigate this issue? (Select three.)

Select 3 answers
A.Apply a frequency penalty to discourage repetition of offensive phrases
B.Increase temperature to 0.9 to dilute the offending outputs
C.Test the prompt with diverse inputs including adversarial examples
D.Add a constraint in the system prompt: 'Do not use offensive or inappropriate language.'
E.Remove the system prompt to avoid overriding model's safety training
AnswersA, C, D

Frequency penalty reduces token repetition, which can help if offensive language appears repeatedly.

Why this answer

Adding explicit constraints in the system prompt, setting frequency/presence penalties to reduce undesirable patterns, and testing with adversarial inputs are effective safeguards. Using high temperature or removing the system prompt would worsen the problem.

573
Multi-Selectmedium

Which TWO of the following are required to fine-tune a model using OCI Generative AI Service?

Select 2 answers
A.A training dataset in the required format
B.The base model identifier
C.A compartment with sufficient quota
D.An OCI API key
E.A dedicated AI cluster
AnswersA, B

Training data is essential for fine-tuning.

Why this answer

A is correct because fine-tuning a model in OCI Generative AI Service requires a training dataset in the required format (JSONL with prompt-completion pairs) to provide the task-specific examples that adjust the model's weights. B is correct because you must specify the base model identifier (e.g., 'cohere.command-light-14-07-2024') to indicate which pre-trained model to fine-tune, as the service uses this to load the correct architecture and initial parameters.

Exam trap

Oracle often tests the misconception that you need a dedicated AI cluster or an API key for every operation, but OCI Generative AI Service abstracts infrastructure management and supports multiple authentication methods, making those options distractors.

574
MCQhard

A data scientist is using the OCI Generative AI SDK to create embeddings for a large corpus of legal documents. They want to perform semantic search. Which endpoint should they use?

A./v1/classify
B./v1/embed
C./v1/generate
D./v1/chat
AnswerB

The /v1/embed endpoint returns embeddings that can be stored in a vector database and used for semantic search.

Why this answer

The /v1/embed endpoint is specifically designed to generate vector embeddings from input text, which are numerical representations that capture semantic meaning. For semantic search over a large corpus of legal documents, embeddings must be created to enable similarity comparisons, making this the correct choice.

Exam trap

Oracle often tests the distinction between embedding endpoints and generation/classification endpoints, trapping candidates who confuse the purpose of semantic search (which requires embeddings) with text generation or classification tasks.

How to eliminate wrong answers

Option A is wrong because /v1/classify is used for text classification tasks (e.g., sentiment analysis or topic labeling), not for generating embeddings. Option C is wrong because /v1/generate is for text generation (e.g., completing a prompt or producing new content), not for creating vector representations. Option D is wrong because /v1/chat is designed for conversational interactions with a chat model, not for producing embeddings for semantic search.

575
MCQeasy

A developer is using the OCI Generative AI API to generate text. The responses are often too short and incomplete. Which parameter adjustment is most likely to produce longer, more complete responses?

A.Decrease the max_tokens parameter.
B.Increase the max_tokens parameter.
C.Increase the top_p parameter.
D.Decrease the frequency_penalty parameter.
AnswerB

Increasing max_tokens gives the model more room to generate a complete response, directly addressing the issue of short outputs.

Why this answer

The max_tokens parameter controls the maximum number of tokens (words or subwords) the model can generate in a single response. By increasing max_tokens, the model is allowed to produce longer sequences, which directly addresses the issue of responses being too short and incomplete. In the OCI Generative AI API, this is the primary parameter for capping output length.

Exam trap

Oracle often tests the distinction between parameters that control output length (max_tokens) versus those that control output diversity or repetition (top_p, frequency_penalty), leading candidates to confuse 'more complete' with 'more creative' or 'less repetitive'.

How to eliminate wrong answers

Option A is wrong because decreasing max_tokens would further restrict the output length, making responses even shorter and more incomplete. Option C is wrong because increasing top_p adjusts nucleus sampling (the cumulative probability threshold for token selection) to control randomness and diversity, not the length of the output. Option D is wrong because decreasing frequency_penalty reduces the penalty for repeating tokens, which may increase repetition but does not directly extend the overall length or completeness of the response.

576
Multi-Selectmedium

Which THREE are valid considerations when designing a RAG pipeline that uses OCI Generative AI and OCI OpenSearch? (Choose three.)

Select 3 answers
A.OCI OpenSearch only supports Euclidean distance for vector similarity.
B.Each document must be converted to a single vector for efficient retrieval.
C.The quality of the text extraction from OCI Document Understanding directly impacts retrieval accuracy.
D.The generation model's context window size limits the number of chunks that can be included in the prompt.
E.The chunk size and overlap must be tuned based on the document type and query patterns.
AnswersC, D, E

Poor extraction leads to noisy embeddings and irrelevant results.

Why this answer

OCI Document Understanding performs text extraction from documents (e.g., PDFs, images). If the extraction is poor (e.g., missing text, OCR errors), the resulting chunks will be inaccurate, directly degrading the quality of vector embeddings and thus retrieval accuracy in the RAG pipeline.

Exam trap

Oracle often tests the misconception that vector databases only support one similarity metric (like Euclidean) or that documents must be stored as single vectors, when in practice they support multiple metrics and chunking is essential for effective retrieval.

577
MCQhard

A RAG system returns irrelevant chunks even though the embedding model and vector index are correctly configured. After reviewing, the chunks are too large and contain extraneous information. Which combination of adjustments should be made to improve relevance?

A.Increase chunk overlap only.
B.Decrease chunk size and increase chunk overlap.
C.Use semantic chunking and adjust topK.
D.Reduce chunk size, increase overlap, and adjust topK.
AnswerD

All three adjustments can help refine the retrieved context.

Why this answer

Reducing chunk size removes extraneous information, increasing overlap ensures context continuity across smaller chunks, and adjusting topK limits the number of retrieved chunks to the most relevant ones. This combination directly addresses the problem of large chunks containing irrelevant data while maintaining retrieval precision.

Exam trap

Oracle often tests the misconception that only one parameter (like chunk size or topK) needs adjustment, when in reality a combination of chunk size, overlap, and topK tuning is required to address both chunk granularity and retrieval count.

How to eliminate wrong answers

Option A is wrong because increasing chunk overlap alone does not reduce chunk size or remove extraneous information, so irrelevant content persists. Option B is wrong because while decreasing chunk size and increasing overlap helps, it fails to adjust topK, which may still return too many chunks and dilute relevance. Option C is wrong because semantic chunking improves chunk boundaries but does not guarantee smaller chunks or control the number of retrieved chunks; adjusting topK alone without reducing chunk size still allows large chunks with extraneous data.

578
MCQhard

A financial company deploys a generative AI model for document analysis. They need to ensure that the model does not expose sensitive information in its responses. Which OCI service should they use to implement content filtering?

A.OCI Data Safe
B.OCI Vault
C.OCI WAF
D.OCI AI Content Moderation
AnswerD

This service can filter sensitive content in model inputs and outputs.

Why this answer

OCI AI Content Moderation is the correct service because it provides pre-trained models and APIs specifically designed to detect and filter sensitive content such as personally identifiable information (PII), profanity, and other unsafe text in generative AI outputs. This allows the financial company to enforce content safety policies on document analysis responses, preventing exposure of sensitive information.

Exam trap

The trap here is that candidates often confuse security services like Data Safe or Vault with content moderation, assuming any 'security' service can filter AI outputs, but OCI AI Content Moderation is the only service purpose-built for analyzing and filtering the semantic content of text generated by AI models.

How to eliminate wrong answers

Option A is wrong because OCI Data Safe is a database security service focused on data masking, auditing, and user risk assessment for Oracle databases, not for filtering content generated by AI models. Option B is wrong because OCI Vault is a key management service for storing and managing encryption keys and secrets, not for content moderation or filtering of AI responses. Option C is wrong because OCI WAF (Web Application Firewall) protects web applications from common attacks like SQL injection and cross-site scripting at the HTTP/HTTPS layer, but it does not inspect or filter the semantic content of generative AI outputs.

579
MCQmedium

An application using OCI Generative AI produces inconsistent responses to the same user query. The developer suspects the model's output variability is too high. Which parameter adjustment would most directly reduce output randomness?

A.Increase the max tokens parameter.
B.Increase the top_p parameter.
C.Change the model to a smaller variant.
D.Decrease the temperature parameter.
AnswerD

Lower temperature reduces randomness, making responses more consistent.

Why this answer

Temperature directly controls the randomness of token sampling in the model's output distribution. Lowering temperature (e.g., from 0.7 to 0.2) makes the model more deterministic by concentrating probability mass on the most likely next tokens, thus reducing output variability for the same query.

Exam trap

The trap here is that candidates often confuse top_p and temperature, assuming both control randomness similarly, but top_p controls the diversity of the candidate pool while temperature directly sharpens or flattens the probability distribution.

How to eliminate wrong answers

Option A is wrong because increasing max tokens only extends the length limit of the response, not the randomness of token selection; it can even introduce more variability by allowing longer, less constrained sequences. Option B is wrong because increasing top_p (nucleus sampling) expands the cumulative probability threshold for token selection, which actually increases randomness by allowing more low-probability tokens to be considered. Option C is wrong because changing to a smaller variant may reduce model capacity and coherence, but it does not directly control the sampling randomness; variability can persist or even increase due to less confident probability distributions.

580
MCQmedium

A data scientist wants to compare the semantic similarity between two sentences generated by an LLM. Which evaluation metric is most suitable for this purpose?

A.ROUGE-L
B.BLEU
C.BERTScore
D.Perplexity
AnswerC

BERTScore uses contextual embeddings to evaluate semantic similarity.

Why this answer

BERTScore computes cosine similarity between contextual embeddings, capturing semantic meaning better than surface-level n-gram metrics.

581
MCQhard

A company is using OCI Generative AI service to power a customer support chatbot. They observe that the chatbot sometimes provides outdated information because the model was trained on data up to 2022. They want to incorporate real-time knowledge without retraining the model. Which approach should they use?

A.Increase the max-tokens parameter to allow longer responses.
B.Use prompt engineering to instruct the model to ignore old information.
C.Implement a Retrieval-Augmented Generation (RAG) pattern using OCI OpenSearch.
D.Fine-tune the model with recent data from 2023 onwards.
AnswerC

RAG retrieves relevant up-to-date documents and feeds them to the model, enabling current responses without retraining.

Why this answer

Retrieval-Augmented Generation (RAG) allows the model to access real-time information from an external knowledge base, such as OCI OpenSearch, without retraining. This pattern retrieves relevant documents or data at inference time and injects them into the prompt, enabling the model to answer with up-to-date context. It directly addresses the need for real-time knowledge while keeping the base model static.

Exam trap

The trap here is that candidates often confuse prompt engineering (Option B) as a way to 'override' training data, but in reality, prompt instructions cannot erase the model's learned parameters, making RAG the only viable solution for real-time knowledge without retraining.

How to eliminate wrong answers

Option A is wrong because increasing max-tokens only extends the length of the response, not the recency or accuracy of the information; it does not provide any mechanism to incorporate new data. Option B is wrong because prompt engineering cannot force the model to 'ignore' outdated training data; the model's parametric knowledge is fixed and cannot be selectively suppressed by instructions alone, leading to hallucinations or contradictions. Option D is wrong because fine-tuning requires retraining the model on new data, which contradicts the requirement to avoid retraining and is also resource-intensive and time-consuming.

582
Multi-Selecthard

Which THREE of the following are known limitations of large language models that practitioners must consider?

Select 3 answers
A.Hallucination of facts not present in the input.
B.Generation of toxic or harmful language.
C.Limited to processing only one language at a time.
D.Bias amplification from training data.
E.Inability to process inputs longer than a few hundred tokens.
AnswersA, B, D

LLMs often generate plausible but false information.

Why this answer

Large language models (LLMs) are prone to hallucination, where they generate plausible-sounding but factually incorrect information that was not present in the input. This occurs because LLMs are next-token predictors without a built-in fact-checking mechanism, and they can invent details, citations, or events to maintain coherence. Practitioners must implement retrieval-augmented generation (RAG) or external verification to mitigate this risk.

Exam trap

Oracle often tests the misconception that LLMs have a hard token limit of a few hundred tokens, but the trap is that modern models have large context windows (e.g., 128K tokens) and the real limitation is the quadratic computational cost of attention, not a strict inability to process longer inputs.

583
MCQhard

An architect needs to ensure that an LLM deployed in OCI does not reveal sensitive information in its outputs. Which technique should be used?

A.Limiting max tokens
B.OCI Data Safe masking
C.Output filtering via custom inference wrapper
D.Input sanitization
AnswerC

A custom wrapper can filter outputs to remove sensitive information.

Why this answer

Output filtering via a custom inference wrapper allows the architect to inspect and sanitize the model's generated text before it reaches the user, preventing the leakage of sensitive information such as PII, credentials, or internal data. This technique operates at the application layer, intercepting the LLM's response and applying rules or regex patterns to redact or block prohibited content, which is essential for compliance and data security in production deployments.

Exam trap

Oracle often tests the distinction between input-side controls (like sanitization) and output-side controls (like filtering), and the trap here is that candidates confuse input sanitization with output filtering, assuming that cleaning the input is sufficient to prevent data leakage from the model's training or internal knowledge.

How to eliminate wrong answers

Option A is wrong because limiting max tokens only restricts the length of the output, not its content, and does nothing to prevent sensitive information from appearing within the allowed token count. Option B is wrong because OCI Data Safe masking is designed for structured databases and relational data, not for unstructured text generated by an LLM; it cannot be applied to model outputs in real-time. Option D is wrong because input sanitization focuses on cleaning user prompts before they reach the model, which is important for prompt injection prevention but does not control what the model generates in its response.

584
MCQmedium

A security administrator needs to grant a group of data scientists access to use OCI Generative AI resources (models, endpoints) in compartment 'GenAI-Prod', but not allow them to create or manage infrastructure. Which IAM policy statement should be used?

A.Allow group DataScientists to inspect genai-family in compartment GenAI-Prod
B.Allow group DataScientists to use genai-family in compartment GenAI-Prod
C.Allow group DataScientists to read genai-family in compartment GenAI-Prod
D.Allow group DataScientists to manage genai-family in compartment GenAI-Prod
AnswerB

Use grants permission to invoke models and use endpoints without management rights.

Why this answer

The 'use' verb on genai-family resources allows inference and use of models/endpoints without permitting management (create/update/delete). This matches the requirement.

585
MCQeasy

Which of the following is the correct format for a training dataset used in OCI Generative AI fine-tuning?

A.JSONL file with 'prompt' and 'completion' fields
B.CSV file with columns 'input' and 'output'
C.TXT file with one prompt-completion pair per line separated by a tab
D.Parquet file with 'text' and 'label' columns
AnswerA

This is the required format.

Why this answer

OCI GenAI fine-tuning expects a JSONL file with prompt/completion pairs.

586
MCQeasy

An organization wants to fine-tune a large language model on OCI using their proprietary data. They are concerned about data privacy and want to ensure that fine-tuning data does not leave the OCI region. Which OCI service should they use to securely store and manage their training data?

A.OCI Block Volume
B.OCI File Storage
C.OCI Object Storage
D.Oracle Autonomous Database
AnswerC

Object Storage provides secure, regional storage ideal for large datasets.

Why this answer

C is correct because OCI Object Storage is a regional service that stores data within a specific OCI region, ensuring that fine-tuning data does not leave that region. It provides secure, durable, and scalable storage for large datasets, such as training data for LLMs, with encryption at rest and in transit, and supports direct integration with OCI Data Science and Generative AI services for fine-tuning workflows.

Exam trap

Oracle often tests the misconception that any storage service can be used for data residency, but the trap here is that Block Volume and File Storage are compute-attached services that do not inherently enforce regional data boundaries for data at rest across multiple services, while Object Storage is the only regional service designed for secure, scalable, and region-bound storage of unstructured data like LLM training datasets.

How to eliminate wrong answers

Option A is wrong because OCI Block Volume is a block-level storage service attached to compute instances, designed for low-latency, persistent storage for databases or applications, but it is not a regional service for storing and managing large training datasets; it is tied to a specific compute instance and does not inherently enforce regional data residency for data at rest across multiple services. Option B is wrong because OCI File Storage is a network file system (NFS) service for shared file access across compute instances, but it is not optimized for large-scale object storage of training data and does not provide the same regional data residency guarantees as Object Storage; it is typically used for shared file systems, not as a primary store for fine-tuning datasets. Option D is wrong because Oracle Autonomous Database is a managed database service for transactional and analytical workloads, not designed for storing large unstructured datasets like LLM training data; it is optimized for structured data and SQL queries, and using it for fine-tuning data would be inefficient and misaligned with the data storage requirements for generative AI training.

587
Multi-Selectmedium

Which TWO of the following are characteristics of decoder-only models like GPT? (Select TWO)

Select 2 answers
A.They process input through an encoder and a decoder
B.They use bidirectional self-attention
C.They use masked self-attention to prevent attending to future tokens
D.They are ideal for tasks requiring full bidirectional context like NER
E.They are typically used for generative tasks like text completion
AnswersC, E

Masked self-attention ensures each token only attends to previous tokens.

Why this answer

Decoder-only models use masked self-attention (causal) and generate tokens left-to-right. They cannot use bidirectional context because future tokens are masked.

588
MCQhard

An enterprise with strict data residency requirements wants to use OCI Generative AI. They must ensure that no training data or inference data leaves a specific OCI region. Which configuration option should they choose?

A.Use a dedicated AI cluster in the desired region and disable cross-region access.
B.Configure a service gateway with a private endpoint.
C.Implement a policy restricting data transfer via OCI Identity and Access Management.
D.Use OCI Data Transfer Service to keep data within the region.
AnswerA

Dedicated clusters are region-specific and can be restricted to prevent cross-region data flow.

Why this answer

A dedicated AI cluster in the desired region, with cross-region access disabled, ensures that all compute, training data, and inference data remain physically within that OCI region. This satisfies strict data residency requirements because the cluster is isolated from other regions at the network and infrastructure level, preventing any data egress.

Exam trap

The trap here is that candidates confuse network-level controls (like service gateways or private endpoints) with data residency enforcement, but only a dedicated, region-locked compute cluster guarantees that no data leaves the specified region.

How to eliminate wrong answers

Option B is wrong because a service gateway with a private endpoint only provides private connectivity within a VCN and does not prevent data from being processed or stored in other regions; it does not enforce regional data residency. Option C is wrong because OCI IAM policies control user permissions and resource access, not the physical location or movement of data between regions. Option D is wrong because OCI Data Transfer Service is designed for offline bulk data migration and does not provide ongoing control over where inference or training data resides during active AI workloads.

589
MCQeasy

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

A.It reduces the token cost of each user message
B.It sets the overall behavior, tone, and constraints for the model throughout the conversation
C.It automatically grounds the model in the latest training data
D.It replaces the need for few-shot examples
AnswerB

System prompts define the model's role and rules for the entire session.

Why this answer

The system prompt establishes persistent behavioral guidelines that influence all subsequent interactions, ensuring consistency without repeating instructions in every user message.

590
MCQmedium

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

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

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

Why this answer

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

591
Multi-Selectmedium

A DevOps engineer is setting up monitoring and logging for a generative AI inference endpoint. Which three resources should they enable? (Select THREE.)

Select 3 answers
A.OCI VCN flow logs for network traffic
B.OCI Logging for inference requests and responses
C.OCI Monitoring metrics for endpoint latency and error rates
D.OCI Application Performance Monitoring (APM) for tracing inference requests
E.OCI Audit logs for all API calls
AnswersB, C, D

Correct: Logging allows auditing and debugging of inference calls.

Why this answer

OCI Logging captures detailed logs of inference requests and responses, which is essential for auditing, debugging, and analyzing the behavior of a generative AI endpoint. This service provides a centralized repository for log data, enabling DevOps engineers to track input prompts and model outputs for compliance and troubleshooting purposes.

Exam trap

The trap here is that candidates may confuse OCI Audit logs (which track administrative API calls) with OCI Logging (which captures data-plane request/response details), leading them to select Audit logs instead of Logging for monitoring inference payloads.

592
Multi-Selecteasy

Which TWO of the following are best practices for building a RAG pipeline in OCI?

Select 2 answers
A.Use overlapping chunks
B.Always use exact vector search for accuracy
C.Use a pre-trained embedding model from OCI Generative AI
D.Avoid storing metadata alongside vectors
E.Use a single large chunk for each document
AnswersA, C

Overlapping chunks preserve context across boundaries, improving retrieval.

Why this answer

Overlapping chunks ensure that context is not lost at chunk boundaries, which is critical for retrieval accuracy in RAG pipelines. By including overlapping text segments, the embedding model can capture semantic continuity, reducing the risk of missing relevant information when a query spans chunk edges.

Exam trap

A common misconception in OCI RAG pipelines is that exact vector search is always superior for accuracy. In practice, approximate nearest neighbor (ANN) search in OCI Search with OpenSearch or OCI Generative AI's vector database achieves equivalent recall while being much faster.

593
MCQmedium

A data engineer is building a RAG application using OCI Generative AI Agents. They have documents stored in OCI Object Storage. Which resource must they create to make these documents searchable by the agent?

A.Create a Dedicated AI Cluster
B.Create a data source pointing to the Object Storage bucket
C.Create an endpoint
D.Create a fine-tuning job
AnswerB

Data sources connect to storage and index the content for retrieval.

Why this answer

In OCI Generative AI Agents, a data source points to Object Storage buckets and indexes the documents. Knowledge bases combine data sources, but the first step is creating the data source.

594
Multi-Selectmedium

A developer is using LangChain's ChatPromptTemplate to construct a prompt for a conversational agent. The prompt should include a system message, a placeholder for conversation history, and the latest user query. Which TWO components should they include in the template?

Select 2 answers
A.AIMessage
B.SystemMessage
C.MessagesPlaceholder with variable name 'history'
D.HumanMessage
AnswersB, C

SystemMessage is correct because it defines the system-level instruction for the agent.

Why this answer

The two necessary components are a SystemMessage to set the agent's behavior and a MessagesPlaceholder to store conversation history. The latest user query is provided as the input variable to the template at runtime, not as a static component in the template itself. Therefore, HumanMessage is not required in the template definition.

Exam trap

Oracle exams often test the distinction between message types used in prompt construction versus message types used in conversation history, leading candidates to incorrectly include `AIMessage` as a template component when it should only appear in the `history` placeholder.

595
MCQeasy

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

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

Temperature adjusts the softmax distribution's sharpness, directly controlling randomness.

Why this answer

Temperature scales the logits before softmax, affecting creativity. Higher values increase randomness; lower values make output more deterministic.

596
MCQeasy

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

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

Few-shot prompting provides a few examples in the prompt to demonstrate the task.

Why this answer

Few-shot prompting includes several examples of the desired input-output mapping to help the model understand the task and output format.

597
MCQmedium

A data scientist has fine-tuned a Cohere Command R model using the T-Few technique. They now need to deploy this custom model for real-time inference with low latency. What is the recommended deployment option in OCI Generative AI?

A.Use the OCI Generative AI Playground to test the model
B.Provision a dedicated AI cluster and host the fine-tuned model on it
C.Use the shared infrastructure endpoint with an API call
D.Create an InferenceClient pointing to the fine-tuned model directly without a cluster
AnswerB

Dedicated AI clusters allow you to deploy your own fine-tuned models with low latency and dedicated compute resources, suitable for production real-time inference.

Why this answer

Dedicated AI clusters provide isolated, low-latency inference for custom fine-tuned models. Shared infrastructure is multi-tenant and may have variable latency; on-demand inference does not support custom models directly.

598
Multi-Selectmedium

A developer is building a RAG application using OCI Generative AI Agents. They want to ensure the agent only retrieves information from approved documents in a specific compartment. Which THREE steps are required?

Select 3 answers
A.Provision a dedicated AI cluster in the same compartment
B.Create a knowledge base that references the Object Storage bucket
C.Use the Embedding API to manually generate embeddings for each document
D.Create an IAM policy that allows the agent to read objects in the specific compartment
E.Store the approved documents in an Object Storage bucket located in that compartment
AnswersB, D, E

The knowledge base is the bridge between the agent and the data; it must be configured to use that bucket.

Why this answer

IAM policies restrict access to data, placing documents in the correct compartment, and creating a knowledge base pointing to that compartment are required. Creating a dedicated cluster and using the Embedding API directly are not necessary steps for the agent.

599
MCQmedium

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

A.Increase the temperature to 0.9 to make the model more cautious
B.Use a few-shot prompt with examples of correct summaries
C.Include the full document text in the prompt and instruct the model to base its summary only on that text
D.Set the presence penalty to a high value
AnswerC

Grounding the model with the source text is the most direct way to reduce hallucination.

Why this answer

Providing the full document context within the prompt (e.g., using a template that includes the document text) grounds the model's response and reduces the chance it invents details. Few-shot examples can also help but are secondary to providing the source.

600
MCQmedium

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

A.Change the prompt to: 'Summarize the following text in a bullet list of at most 5 items. Each bullet must be under 10 words.'
B.Set temperature to 1.0 for more focused outputs
C.Increase the frequency penalty to 2.0
D.Add an example summary at the end of the prompt
AnswerA

This provides explicit format and length constraints.

Why this answer

Explicitly specifying the output format (bullet list, max 5 items) gives the model clear constraints, reducing verbosity.

Page 7

Page 8 of 11

Page 9

All pages