Courseiva

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

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

Page 1 of 11

Page 2
1
Multi-Selecteasy

Which two metrics would you monitor to ensure a generative AI deployment on OCI is operating efficiently? (Choose two.)

Select 2 answers
A.Number of active users
B.Object Storage bucket size
C.Request throughput (requests per second)
D.Average inference latency
E.Model accuracy on validation set
AnswersC, D

Throughput indicates how many requests the system can handle.

Why this answer

Request throughput (requests per second) is a critical metric for monitoring the operational efficiency of a generative AI deployment on OCI because it directly measures the system's capacity to handle incoming inference requests. If throughput drops below expected levels, it indicates a bottleneck in the compute resources (e.g., GPU utilization) or the serving infrastructure, which can lead to degraded user experience and potential timeouts.

Exam trap

Oracle often tests the distinction between model quality metrics (like accuracy) and operational efficiency metrics (like latency and throughput), so the trap here is that candidates mistakenly select 'Model accuracy on validation set' because they confuse model performance with deployment performance.

2
MCQmedium

A prompt engineer is designing a system prompt for a customer support agent. The goal is to ensure the agent always responds in a polite, professional tone and never provides medical advice. Which approach best achieves this?

A.Set the temperature to 0 to ensure consistent tone and hope it avoids medical topics
B.Specify tone in the system prompt and add the medical advice restriction in each user message
C.Rely on the model's inherent training to avoid medical advice, so no explicit instruction needed
D.Use a system prompt that includes both the desired tone and the constraint about medical advice
AnswerD

System prompt is the proper place for global instructions about persona, tone, and constraints.

Why this answer

System prompt is designed to set persona, tone, and constraints. Including both tone and constraints in the system prompt is the intended practice.

3
MCQmedium

A developer is using the OCI Generative AI service API and receives a '400 Bad Request' with error 'Model not found'. What is the most likely cause?

A.The model ID is misspelled or does not exist.
B.The API request lacks authentication.
C.The input exceeds the maximum token limit.
D.The endpoint region is incorrect.
AnswerA

The error directly states 'Model not found'.

Why this answer

The '400 Bad Request' with 'Model not found' error indicates that the model ID provided in the API request does not match any available model in the OCI Generative AI service. This is most commonly caused by a typo, incorrect model name, or referencing a model that has been deprecated or removed from the service catalog.

Exam trap

The trap here is that candidates often confuse HTTP status codes and error messages, assuming any 4xx error is due to authentication or region issues, when in fact the specific 'Model not found' message directly points to an invalid model identifier.

How to eliminate wrong answers

Option B is wrong because a lack of authentication would result in a '401 Unauthorized' or '403 Forbidden' error, not a '400 Bad Request' with 'Model not found'. Option C is wrong because exceeding the maximum token limit would produce a '400 Bad Request' with a different error message, such as 'Input too long' or 'Token limit exceeded', not 'Model not found'. Option D is wrong because an incorrect endpoint region would typically cause a connection timeout, DNS resolution failure, or a '404 Not Found' error, not a '400 Bad Request' with a model-specific error.

4
MCQhard

A company wants to deploy a custom fine-tuned model for retrieval-augmented generation (RAG) using dedicated AI cluster. They need to ensure the model can handle concurrent requests from multiple applications with consistent latency. What should they configure?

A.Set a high temperature to keep responses concise.
B.Increase the number of replicas in the dedicated cluster.
C.Enable auto-scaling on the cluster.
D.Use the managed serving endpoint instead.
AnswerB

More replicas allow handling more requests concurrently without degradation.

Why this answer

Increasing the number of replicas in the dedicated cluster distributes the load across multiple model copies, improving concurrency and latency stability. This allows the model to handle concurrent requests from multiple applications with consistent latency.

5
Multi-Selectmedium

An enterprise is building a document Q&A application with OCI Generative AI. They want to minimize hallucinations. Which TWO techniques should they implement? (Choose two.)

Select 2 answers
A.Fine-tune the model on domain-specific data
B.Increase the model's context window to its maximum
C.Use Retrieval-Augmented Generation (RAG)
D.Use a higher temperature in sampling
E.Apply greedy decoding
AnswersA, C

Fine-tuning improves factual accuracy for the domain, reducing hallucinations.

Why this answer

RAG grounds answers in retrieved documents, and fine-tuning on domain-specific data reduces errors. Increasing context window alone does not reduce hallucinations; greedy decoding reduces creativity but not factual errors.

6
Multi-Selecteasy

Which TWO are valid methods to monitor the performance of a generative AI model deployed on OCI Data Science?

Select 2 answers
A.Use OCI Notifications to receive alerts on model drift
B.Use OCI Monitoring service to track custom metrics like latency and throughput
C.Use OCI Logging service to collect inference logs
D.Use OCI Events service to trigger retraining on low accuracy
E.Use OCI Audit service to review API call logs
AnswersB, C

Allows pushing custom metrics from the inference script.

Why this answer

OCI Monitoring service allows you to define and track custom metrics such as inference latency (e.g., p50/p99 response times) and throughput (requests per second) for your generative AI model deployed on OCI Data Science. This enables real-time performance monitoring and alerting based on thresholds you set, which is essential for production AI workloads.

Exam trap

Oracle often tests the distinction between monitoring (OCI Monitoring), logging (OCI Logging), and notification/event services, so candidates mistakenly select OCI Notifications or OCI Events as monitoring tools when they are actually reactive or alerting services.

7
MCQhard

An organization uses Oracle AI Vector Search in Oracle Database 23ai to store embeddings for a LangChain RAG application. They need to perform similarity search with high recall and low latency for a large dataset (10M vectors). Which index configuration should they choose?

A.Binary quantization without an index
B.HNSW index with appropriate parameters (e.g., efConstruction=200, M=32)
C.No index, use brute-force distance computation
D.IVF index with 1000 centroids
AnswerB

HNSW provides high recall and low latency, suitable for large datasets.

Why this answer

HNSW (Hierarchical Navigable Small World) indexes provide high recall and low latency for approximate nearest neighbor search, especially on large datasets. IVF (Inverted File) is also an option but typically requires more tuning and may have lower recall at high speed. HNSW is generally preferred for production workloads.

8
MCQmedium

A user wants to test different prompt variations with a generative model interactively without writing code. Which OCI Generative AI tool should they use?

A.OCI Generative AI API with InferenceClient
B.OCI Data Science Notebook
C.OCI Generative AI Agents
D.OCI Generative AI Playground
AnswerD

The Playground allows interactive testing of models with adjustable parameters.

Why this answer

The OCI Generative AI Playground provides a no-code interface to test models, adjust parameters, and experiment with prompts interactively.

9
MCQhard

A data scientist is comparing BLEU, ROUGE, and BERTScore to evaluate a summarization model. The client cares most about whether the summary captures all key facts from the source document. Which metric is most aligned with this requirement?

A.Perplexity
B.BERTScore
C.BLEU
D.ROUGE
AnswerD

ROUGE recall (e.g., ROUGE-1, ROUGE-L) measures overlap with the reference, directly indicating how many key facts are captured.

Why this answer

ROUGE is recall-oriented, measuring how much of the reference content appears in the generated summary, which aligns with capturing key facts. BLEU is precision-oriented, and BERTScore measures semantic similarity but is not specifically recall-focused.

10
MCQeasy

In LangChain, which component is responsible for loading data from a specific file format, such as PDF or CSV, into a document object?

A.Text Splitter
B.Document Loader
C.Vector Store
D.Retriever
AnswerB

Document loaders handle reading files and converting them into LangChain Document objects with content and metadata.

Why this answer

Document Loader is the correct component because it is specifically designed to ingest data from various file formats (e.g., PDF, CSV, HTML) and convert it into LangChain's standardized Document objects. This is the foundational step in any retrieval-augmented generation (RAG) pipeline, where raw data must first be loaded before any splitting, embedding, or retrieval occurs.

Exam trap

The 1Z0-1127 exam often tests the distinction between the loading phase and the processing phase, so the trap here is confusing the role of a Document Loader (input ingestion) with that of a Text Splitter (post-load chunking) or a Retriever (query-time retrieval).

How to eliminate wrong answers

Option A is wrong because Text Splitter is used to chunk large Document objects into smaller segments after loading, not to load data from files. Option C is wrong because Vector Store is a storage and indexing component for embeddings, not a loader for raw file formats. Option D is wrong because Retriever is responsible for fetching relevant documents from a Vector Store or other index based on a query, not for loading data from files.

11
MCQeasy

Which of the following is a known limitation of large language models where the model generates plausible-sounding but factually incorrect information?

A.Bias
B.Context window limitation
C.Hallucination
D.Knowledge cutoff
AnswerC

Hallucination describes the generation of plausible but false information.

Why this answer

Hallucination is the term used when an LLM produces content that is not grounded in training data or provided context, appearing confident but being incorrect.

12
MCQmedium

A developer needs to extract structured data from news articles in JSON format, but the model occasionally outputs extra fields or omits required fields. Which prompt engineering approach would MOST reliably enforce the exact schema?

A.Use a few-shot example of the desired JSON output
B.Specify the exact JSON schema in the task instruction and include constraints such as required fields
C.Lower the temperature to 0 to make output deterministic
D.Use chain-of-thought prompting to reason about the article before outputting JSON
AnswerB

Explicit schema and constraints in the prompt give the clearest guidance.

Why this answer

Providing a JSON schema with explicit instructions and constraints directly in the prompt is the most reliable way to enforce exact structure.

13
MCQeasy

A prompt engineering team is designing a system prompt for a chatbot that should adopt a professional and concise tone. Which prompt pattern is BEST suited for this requirement?

A.Role prompting in the system message: 'You are a professional customer support agent. Respond concisely and accurately.'
B.Chain-of-thought prompting to ensure reasoning before answering
C.Zero-shot prompting with a direct instruction in the user message
D.Few-shot prompting with examples of professional responses in the user message
AnswerA

Role prompting in the system message establishes the persona and tone across all interactions.

Why this answer

Role prompting explicitly sets the persona (e.g., 'You are an expert customer support agent') which guides tone and behavior. The system message is the ideal place for this.

14
Multi-Selecthard

A company is using dedicated AI cluster for fine-tuning. Which TWO best practices help optimize cost?

Select 2 answers
A.Use the largest replica count.
B.Manually scale down the cluster when not in use.
C.Use the managed serving endpoint instead.
D.Leave the cluster running continuously.
E.Use the smallest possible model for the task.
AnswersB, E

Reduces active compute hours.

Why this answer

Manually scaling down the dedicated AI cluster when not in use directly reduces compute costs by stopping idle GPU/CPU resources. In OCI Generative AI, dedicated AI clusters incur charges for provisioned capacity, so scaling down during inactivity avoids paying for unused infrastructure.

Exam trap

Oracle often tests the misconception that larger replica counts or continuous running improve performance, when in fact they only increase cost without accelerating fine-tuning convergence.

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

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

Why this answer

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

16
MCQeasy

Which LangChain abstraction is used to wrap OCI Generative AI's chat models (e.g., Cohere Command R) for use in a LangChain chain?

A.OCIGenAI
B.OCIGenAIEmbeddings
C.OracleAIChain
D.ChatOCIGenAI
AnswerD

This is the dedicated chat model wrapper for OCI Generative AI.

Why this answer

LangChain provides ChatOCIGenAI as a wrapper for OCI chat models, similar to ChatOpenAI for OpenAI. This allows seamless integration with LangChain's chat model interface.

17
Multi-Selectmedium

Which three factors most significantly affect the quality of an LLM's output? (Select THREE)

Select 3 answers
A.Model's context window size
B.Clarity of the prompt
C.Number of GPUs used during inference
D.Temperature setting
E.Quality of training data
AnswersB, D, E

Correct: Clear prompts yield more accurate responses.

Why this answer

The clarity of the prompt directly determines how well the LLM interprets the user's intent. A well-structured, unambiguous prompt reduces ambiguity and guides the model toward generating relevant and coherent responses, while a vague or poorly worded prompt often leads to off-target or nonsensical output.

Exam trap

Oracle often tests the misconception that hardware resources like GPU count directly improve output quality, whereas in reality they only affect performance metrics like latency and throughput, not the semantic quality of the generated text.

18
Multi-Selecteasy

Which TWO are advantages of using retrieval-augmented generation (RAG) over fine-tuning for incorporating new knowledge?

Select 2 answers
A.Better at capturing domain-specific writing style
B.Enables the model to access up-to-date information without retraining
C.Eliminates the need for a vector database
D.Reduces token usage and latency compared to fine-tuning
E.Cost-effective for large corpora that change frequently
AnswersB, E

RAG retrieves fresh data from external sources.

Why this answer

RAG retrieves relevant, up-to-date information from an external knowledge base at inference time, allowing the model to answer questions about recent events or proprietary data without requiring any retraining. This is a key advantage over fine-tuning, which would need a new training cycle to incorporate the same new knowledge.

Exam trap

Oracle often tests the misconception that RAG is always faster or cheaper than fine-tuning, when in reality RAG introduces retrieval latency and higher token usage, making it less suitable for low-latency or high-throughput scenarios.

19
MCQeasy

A company deployed OCI Generative AI for a customer service chatbot. They are using the Cohere command model. The chatbot is generating responses that are too brief and often cut off mid-sentence. They have limited budget. What should they do?

A.Increase max tokens to 1024.
B.Decrease the temperature to 0.2.
C.Increase the temperature to 0.9.
D.Use a different base model like Llama.
AnswerA

Increasing max tokens gives the model more room to complete its response.

Why this answer

The chatbot's responses are too brief and cut off mid-sentence, which indicates the model is hitting the maximum token limit for generation. Increasing the max tokens to 1024 allows the Cohere command model to produce longer, complete responses without truncation. This is the most direct and cost-effective fix for the described symptom.

Exam trap

A common misconception is that temperature adjustments can fix response length issues, when in fact temperature only controls randomness and creativity, not the output token limit.

How to eliminate wrong answers

Option B is wrong because decreasing the temperature to 0.2 makes the model more deterministic and less creative, which does not address the issue of responses being cut off; it only reduces randomness. Option C is wrong because increasing the temperature to 0.9 increases randomness and may lead to more incoherent or off-topic responses, but it does not extend the length of the generated text. Option D is wrong because switching to a different base model like Llama would require additional integration effort and cost, and the core problem (insufficient max tokens) would persist unless the new model's token limit is also adjusted.

20
Multi-Selectmedium

A company is deploying a large generative AI model on OCI using GPU compute instances. They want to optimize inference cost while maintaining acceptable latency. Which TWO strategies should they implement?

Select 2 answers
A.Enable provisioned concurrency on all models.
B.Select the smallest GPU instance type that meets latency requirements.
C.Increase the max-tokens parameter to generate longer responses.
D.Deploy the model on multiple large GPU instances to handle peak load.
E.Use an inference endpoint with auto-scaling to match demand.
AnswersB, E

Choosing appropriate instance size avoids paying for unused capacity.

Why this answer

Selecting the smallest GPU instance type that meets latency requirements directly reduces compute cost per inference without sacrificing user experience. This aligns with OCI's pay-as-you-go GPU pricing, where larger instances incur higher hourly costs. The key is to right-size the GPU based on model memory footprint and inference throughput, not to over-provision.

Exam trap

Oracle often tests the misconception that 'bigger GPU instances always improve performance' or that 'provisioned concurrency applies to all OCI services,' when in fact it is specific to serverless compute and irrelevant to GPU inference endpoints.

21
MCQeasy

A developer is using OCI Generative AI to build a question-answering system over a large corpus of technical manuals. The developer uses the Cohere Embed model to generate embeddings and stores them in an OCI OpenSearch cluster. Queries are slow and the team needs to reduce latency. Which approach is BEST for improving search speed while maintaining acceptable accuracy?

A.Increase the embedding dimension for better representation.
B.Reduce the k value in the nearest neighbor search.
C.Use exact nearest neighbor search instead of approximate.
D.Increase the index refresh interval to reduce write overhead.
AnswerB

Fewer neighbors means less distance computation and faster retrieval.

Why this answer

Reducing the k value in the nearest neighbor search directly decreases the number of vectors that must be compared during query time, which lowers latency. In approximate nearest neighbor (ANN) search, a smaller k means fewer candidates are evaluated, speeding up retrieval while still maintaining acceptable accuracy if the original k was unnecessarily high. This is the most effective tuning knob for latency in vector search systems like OCI OpenSearch with Cohere embeddings.

Exam trap

The trap here is that candidates often confuse reducing k with reducing accuracy, but in practice, many RAG systems use a k value larger than necessary, and reducing it to a reasonable minimum (e.g., from 20 to 5) can dramatically improve speed without noticeable quality loss.

How to eliminate wrong answers

Option A is wrong because increasing the embedding dimension increases the computational cost of distance calculations and memory usage, which would worsen latency, not improve it. Option B is wrong because exact nearest neighbor search (k-NN) requires scanning all vectors, which is O(n) and significantly slower than approximate methods, especially on large corpora. Option D is wrong because increasing the index refresh interval reduces write overhead but does not affect query latency; it only delays the visibility of new documents.

22
MCQmedium

A developer needs to generate embeddings for a set of search queries to be used in a semantic search system. Which input type should they specify when calling the Embedding API?

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

This is optimized for short queries in search.

Why this answer

The Embedding API in OCI Generative AI requires specifying the input type as 'search_query' when generating embeddings for search queries in a semantic search system. This input type optimizes the embedding model to produce vectors that are specifically tuned for query-side representation, ensuring better alignment with document embeddings during similarity search.

Exam trap

The trap here is that candidates may confuse 'search_query' with 'search_document' or assume a generic input type like 'clustering' or 'classification' is valid, not realizing that the Embedding API explicitly distinguishes between query and document embeddings for optimal semantic search performance.

How to eliminate wrong answers

Option A is wrong because 'clustering' is not a valid input type for the Embedding API; it is a downstream task that uses embeddings but not a parameter for embedding generation. Option B is wrong because 'search_document' is used for embedding documents, not queries, and specifying it for queries would mismatch the intended use case, degrading search accuracy. Option C is wrong because 'classification' is not a supported input type for the Embedding API; classification tasks use embeddings but require a different API or model endpoint.

23
MCQhard

A company has a collection of PDF documents that are 500 pages each. They want to build a RAG system using LangChain and FAISS. They need to ensure that each chunk has enough context for accurate retrieval while keeping chunk size small enough for efficient embedding. They also want some overlap between chunks to avoid losing context at boundaries. Which text splitter configuration is most appropriate?

A.RecursiveCharacterTextSplitter with chunk_size=5000 and chunk_overlap=0
B.CharacterTextSplitter with chunk_size=2000 and chunk_overlap=500
C.TokenTextSplitter with chunk_size=100 and chunk_overlap=10
D.RecursiveCharacterTextSplitter with chunk_size=1000 and chunk_overlap=200
AnswerD

1000 characters provides good context, 200 overlap (20%) avoids boundary loss.

Why this answer

RecursiveCharacterTextSplitter with a moderate chunk_size (e.g., 1000 characters) and a chunk_overlap of 10-20% is a standard choice for balancing context and efficiency.

24
Multi-Selectmedium

A prompt engineer is refining a prompt that currently produces outputs with excessive repetition. Which TWO parameters can be adjusted to reduce repetition? (Choose two.)

Select 2 answers
A.Temperature
B.Frequency penalty
C.Presence penalty
D.Max tokens
E.Top-p
AnswersB, C

Frequency penalty reduces the likelihood of repeating the same tokens.

Why this answer

Frequency penalty discourages tokens that have already appeared, and presence penalty discourages tokens that have appeared at all. Both reduce repetition. Temperature and max tokens do not directly target repetition.

25
MCQmedium

Refer to the exhibit. A user receives this error when calling the OCI Gen AI inference endpoint. What is the most likely cause?

A.The region name is misspelled
B.The model is not deployed in the region
C.The API key is expired
D.The model name is incorrect
AnswerB

The error indicates the model is not supported in that region.

Why this answer

The error indicates that the model is not available in the specified region. OCI Gen AI models are deployed regionally, and each region supports only a specific subset of models. If the user calls an endpoint in a region where the requested model has not been deployed, the service returns an error because the model's inference endpoint does not exist in that region's routing table.

Exam trap

Oracle often tests the distinction between 'model not found' (invalid model name) and 'model not available in region' (valid model but not deployed there), leading candidates to incorrectly select the model name option when the error message explicitly mentions regional unavailability.

How to eliminate wrong answers

Option A is wrong because a misspelled region name would typically result in a DNS resolution failure or a 404 error, not a model-not-found error. Option C is wrong because an expired API key would cause an authentication failure (HTTP 401 Unauthorized), not a model availability error. Option D is wrong because an incorrect model name would produce a 'model not found' or 'invalid model' error, but the error message in the exhibit specifically states the model is not available in the region, not that the model name is invalid.

26
MCQmedium

A team wants to use OCI Generative AI to generate synthetic data for training a model. They are concerned about the cost of API calls. Which pricing model would be most cost-effective for high-volume batch processing?

A.OCI Universal Credits with per-request charges
B.Monthly subscription with limited requests
C.Pay-as-you-go per request
D.Reserved capacity with a fixed monthly fee
AnswerD

Reserved capacity offers predictable pricing and lower per-request cost for high volume.

Why this answer

Reserved capacity with a fixed monthly fee provides the lowest per-request cost for high-volume batch processing. OCI Generative AI offers dedicated capacity pricing, which is ideal for predictable, large-scale workloads where you commit to a certain throughput, avoiding per-request charges that would accumulate significantly with high volume.

Exam trap

Oracle often tests the misconception that pay-as-you-go is always the cheapest for any workload, but the trap here is that high-volume batch processing benefits from reserved capacity's flat fee, which lowers per-request costs significantly compared to per-request pricing models.

How to eliminate wrong answers

Option A is wrong because OCI Universal Credits with per-request charges would be expensive for high-volume batch processing, as each API call incurs a separate cost, leading to unpredictable and high expenses. Option B is wrong because a monthly subscription with limited requests would cap the number of requests, making it unsuitable for high-volume batch processing where you need to generate large amounts of synthetic data without hitting a limit. Option C is wrong because pay-as-you-go per request is the most expensive model for high-volume workloads, as costs scale linearly with each API call, whereas reserved capacity offers a flat fee for better cost predictability.

27
MCQhard

A developer is using the Chat API for a multi-turn conversation. They want the assistant to adopt a formal tone and always identify itself as 'OracleBot'. How should they configure the API request?

A.Include the persona instructions in the 'preamble_override' field and the conversation history in the 'messages' field of the Chat API
B.Set the 'temperature' parameter low and 'max_tokens' high
C.Use the Embedding API to embed the persona instructions and pass them with each request
D.Set the 'system_prompt' in the Generate API
AnswerA

Preamble override sets the assistant's behavior; messages carry the conversation history.

Why this answer

The Chat API supports a 'preamble_override' parameter to set system-level instructions, and 'messages' array for conversation history. The preamble is the correct place to set persona. Temperature and max tokens do not control persona.

The Generate API does not support system prompts.

28
MCQmedium

Which OCI service provides a managed vector database capability that can be used as a knowledge base in a RAG architecture?

A.OCI MySQL HeatWave
B.OCI Database (Autonomous Database)
C.OCI Search with OpenSearch
D.OCI Object Storage
AnswerC

OpenSearch includes the k-NN plugin for vector search, managed by OCI.

Why this answer

OCI Search with OpenSearch provides a managed vector database capability through its k-nearest neighbor (k-NN) plugin, which supports storing and querying vector embeddings. This makes it suitable as a knowledge base in a Retrieval-Augmented Generation (RAG) architecture, where vector similarity search retrieves relevant context for LLM prompts.

Exam trap

Oracle often tests the misconception that any database with vector support (like Autonomous Database) is the primary managed vector service, but the question specifically asks for a 'managed vector database capability' as a knowledge base in RAG, and OCI Search with OpenSearch is the dedicated service designed for this purpose.

How to eliminate wrong answers

Option A is wrong because OCI MySQL HeatWave is a managed MySQL database optimized for online transaction processing (OLTP) and analytics via HeatWave acceleration, but it does not natively support vector storage or vector similarity search required for RAG. Option B is wrong because OCI Database (Autonomous Database) supports AI Vector Search only in newer versions (e.g., 23ai) and is not the primary managed vector database service for RAG; it is a general-purpose relational database with added vector capabilities, not a dedicated vector database service. Option D is wrong because OCI Object Storage is a blob storage service for unstructured data (e.g., documents, images) and lacks any query engine or vector indexing capability; it cannot perform vector similarity searches.

29
MCQeasy

An OCI Generative AI user wants to host a fine-tuned model with guaranteed low latency for a production application. Which option should they choose?

A.Use the Chat API with a base model
B.Use the on-demand shared inference endpoint
C.Use the OCI Generative AI Playground
D.Provision a Dedicated AI Cluster with model units for the fine-tuned model
AnswerD

A Dedicated AI Cluster provides reserved capacity and low-latency inference for custom models.

Why this answer

A Dedicated AI Cluster provides dedicated inference capacity with low latency, ideal for production fine-tuned models. Shared infrastructure may have variable latency.

30
MCQmedium

A company wants to process a large batch of documents to generate summaries using OCI Generative AI. They need the most cost-effective option without compromising on summary quality. Which approach should they use?

A.Use the on-demand (shared) inference endpoint with the Summarisation API
B.Use OCI Generative AI Agents with a knowledge base
C.Provision a dedicated AI cluster for the batch job
D.Fine-tune a model on summarization and deploy it on a dedicated cluster
AnswerA

On-demand tokens are cost-effective for batch summarization.

Why this answer

On-demand pricing is pay-per-token, suitable for batch workloads without dedicated capacity; it's cost-effective for sporadic or large batch jobs.

31
MCQhard

When evaluating a summarization model, the team notices that the ROUGE-L score is high but human evaluators rate the summaries poorly for coherence. What does this discrepancy MOST likely indicate?

A.The model is suffering from hallucination
B.The reference summaries are too short
C.ROUGE-L is not sensitive to coherence and fluency, only to n-gram overlap
D.The human evaluators are biased
AnswerC

ROUGE-L measures longest common subsequence; it does not evaluate readability or logical flow.

Why this answer

ROUGE-L measures longest common subsequence overlap, focusing on word order recall. It does not capture coherence, factual consistency, or fluency. High ROUGE-L with low human scores suggests the summaries are lexically similar but not well-formed.

32
MCQhard

An organization deploys a fine-tuned model for legal document analysis using OCI Generative AI Service. They need to ensure that only authorized users in the 'LegalTeam' group can access the model endpoint. Which policy statement should be used?

A.Allow group LegalTeam to use generative-ai-model in compartment ABC
B.Allow group LegalTeam to manage generative-ai-family in compartment ABC
C.Allow group LegalTeam to read generative-ai-model in compartment ABC
D.Allow group LegalTeam to inspect generative-ai-model in compartment ABC
AnswerA

Use permission allows invoking the model for inference.

Why this answer

The 'use' verb on the 'generative-ai-model' resource type grants the LegalTeam group permission to invoke the model endpoint for inference, which is the minimum privilege required for accessing a deployed fine-tuned model in OCI Generative AI Service. The 'use' permission specifically allows calling the model for text generation or analysis without granting broader management or read capabilities.

Exam trap

Oracle often tests the distinction between 'use' and 'read' on resource types that support inference endpoints, where candidates mistakenly assume 'read' is sufficient for accessing the model's functionality, but only 'use' grants the actual invocation permission required for inference operations.

How to eliminate wrong answers

Option B is wrong because 'manage' on 'generative-ai-family' grants full administrative control over all Generative AI resources (including creating, updating, deleting models and endpoints), which exceeds the requirement of only accessing the model endpoint and violates the principle of least privilege. Option C is wrong because 'read' on 'generative-ai-model' allows viewing model metadata and configuration but does not include the permission to invoke the model endpoint for inference, which requires the 'use' verb. Option D is wrong because 'inspect' on 'generative-ai-model' only permits listing and viewing basic resource information (like tags and identifiers) and provides no ability to call the model endpoint for legal document analysis.

33
MCQmedium

An application needs to generate embeddings for text in multiple languages (English, Spanish, French). Which OCI Generative AI embedding model should be used?

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

This model supports multiple languages and generates high-quality embeddings for English, Spanish, French, and many others.

Why this answer

The embed-multilingual-v3.0 model is designed for multilingual text. The English-only model would not handle other languages well.

34
MCQeasy

A data scientist wants to quickly test a prompt with different parameters like temperature and max tokens without writing code. Which OCI GenAI feature should they use?

A.OCI CLI.
B.OCI Generative AI Playground.
C.OCI SDK.
D.OCI Data Science Notebooks.
AnswerB

Playground allows visual prompt testing with adjustable parameters.

Why this answer

The OCI Generative AI Playground is a web-based, no-code interface that allows data scientists to interactively test prompts and adjust parameters like temperature and max tokens without writing any code. This directly matches the user's requirement for quick, code-free experimentation.

Exam trap

The trap here is that candidates may confuse the OCI CLI or SDK as 'quick' tools, but the question explicitly requires 'without writing code,' which only the Playground satisfies.

How to eliminate wrong answers

Option A is wrong because the OCI CLI is a command-line tool that requires writing and executing commands, not a no-code interface for interactive prompt testing. Option C is wrong because the OCI SDK is a software development kit used for programmatic access via code in languages like Python or Java, which contradicts the 'without writing code' requirement. Option D is wrong because OCI Data Science Notebooks are Jupyter-based environments that require writing Python code to invoke the Generative AI service, not a no-code playground.

35
MCQeasy

In LangChain, which class should be used to wrap Oracle Cloud Infrastructure's Generative AI service as a chat model?

A.OracleVS
B.ChatOCIGenAI
C.OCIGenAIEmbeddings
D.OCIGenAI
AnswerB

ChatOCIGenAI is specifically designed to wrap OCI Generative AI chat endpoints.

Why this answer

ChatOCIGenAI is the LangChain wrapper for chat-based models from OCI Generative AI. OCIGenAI is for LLM (non-chat) completions, OCIGenAIEmbeddings is for embeddings, and OracleVS is for vector store integration with Oracle Database.

36
MCQmedium

An organization is deploying a large language model on OCI using a dedicated AI cluster. They need to minimize inference latency. Which configuration step is most critical?

A.Set up a load balancer across multiple regions
B.Configure the cluster to use high-bandwidth RDMA networking
C.Use a single VM shape to reduce network hops
D.Disable model parallelism to simplify setup
AnswerB

Correct: RDMA enables ultra-low-latency communication between nodes, essential for performance.

Why this answer

RDMA (Remote Direct Memory Access) bypasses the CPU and kernel to transfer data directly between GPU memories, drastically reducing latency and CPU overhead. In a dedicated AI cluster on OCI, high-bandwidth RDMA networking (e.g., using RoCE v2 or InfiniBand) is the most critical step to minimize inference latency because model parallelism and tensor parallelism across nodes depend on fast, low-latency interconnects. Without RDMA, even with optimized model parallelism, the network becomes the bottleneck, increasing per-token latency.

Exam trap

Oracle often tests the misconception that load balancing or simplifying the model architecture (e.g., disabling parallelism) reduces latency, when in fact the critical bottleneck for distributed inference is inter-node communication, which RDMA directly addresses.

How to eliminate wrong answers

Option A is wrong because a multi-region load balancer adds cross-region network latency and is designed for high availability and geographic distribution, not for minimizing inference latency within a single cluster. Option C is wrong because using a single VM shape does not reduce network hops; inference on large models requires multiple GPUs across nodes, and a single VM cannot host the full model, so network hops are inevitable. Option D is wrong because disabling model parallelism would force the entire model onto a single GPU, which is impossible for large models and would actually increase latency due to memory swapping or inability to load the model, not simplify setup.

37
MCQmedium

A developer notices that the RAG system returns irrelevant chunks when the user query contains typos or abbreviations. Which technique would BEST improve retrieval robustness for such queries?

A.Decrease the chunk size to focus on smaller units.
B.Increase the number of retrieved chunks to cover more variations.
C.Use a spell-checker on the retrieved chunks.
D.Implement query rewriting or expansion using a language model before embedding.
AnswerD

Rewriting corrects typos and expands abbreviations, improving embedding quality.

Why this answer

Query rewriting or expansion using a language model (LLM) directly addresses typos and abbreviations by generating a corrected or enriched query before embedding. This improves the semantic alignment between the user's intent and the vector search, ensuring that even noisy input retrieves relevant chunks. Techniques like spelling correction or synonym expansion at query time are far more effective than post-retrieval fixes or parameter tuning.

Exam trap

Oracle often tests the misconception that retrieval robustness can be improved by tuning chunk size or retrieval count, when the real bottleneck is the quality of the query embedding itself.

How to eliminate wrong answers

Option A is wrong because decreasing chunk size does not fix typos or abbreviations; it only changes the granularity of retrieval units, potentially missing context or increasing noise. Option B is wrong because increasing the number of retrieved chunks may include more irrelevant results without correcting the query's semantic mismatch caused by typos or abbreviations. Option C is wrong because applying a spell-checker on retrieved chunks is a post-retrieval fix that cannot recover relevance lost during embedding of a malformed query; the damage is already done at the retrieval stage.

38
MCQeasy

Which LangChain abstraction is responsible for storing and retrieving conversation history to maintain context across multiple turns in a chatbot?

A.Memory
B.Agent
C.Chain
D.Model
AnswerA

Memory explicitly stores and manages conversation history for context across turns.

Why this answer

Memory in LangChain is designed to store and retrieve conversation history, enabling context-aware responses. Models generate text, chains orchestrate steps, and agents decide actions — none handle history directly.

39
MCQmedium

An application uses LangChain's ConversationalRetrievalChain with memory. Users report that the chatbot occasionally repeats information from earlier in the conversation even when the new question is unrelated. What is the most likely cause?

A.The memory type is set to ConversationSummaryMemory
B.The chunk_size is too small, causing loss of context
C.The retriever is returning irrelevant documents from the conversation history
D.The LLM temperature is set too high
AnswerC

ConversationalRetrievalChain uses the chat history to formulate a new query; if the retrieval is broad, old topics may resurface.

Why this answer

The chain retrieves documents based on the conversation history plus the current question; if the retriever returns irrelevant chunks from past context, the LLM may repeat old information.

40
MCQmedium

Which prompt pattern is most suitable when a user needs to generate a structured report following a specific template every time?

A.Recipe pattern
B.Template pattern
C.ReAct pattern
D.Role prompting
AnswerB

Template pattern provides a structured form with placeholders, ideal for consistent report generation.

Why this answer

Template patterns provide a fixed structure (e.g., fill-in-the-blanks) that the model follows, ensuring consistent output format.

41
MCQmedium

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

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

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

Why this answer

Retrieval-Augmented Generation (RAG) is the most appropriate approach because it allows the chatbot to answer questions by retrieving relevant chunks from the policy documents stored in a vector store at query time, without requiring model retraining. When documents are updated monthly, only the vector store needs to be re-indexed, while the underlying LLM remains unchanged, making it cost-effective and scalable.

Exam trap

The 1Z0-1127 exam often tests the misconception that fine-tuning or retraining is the only way to handle dynamic data, but the trap here is that RAG decouples knowledge updates from model updates, making it ideal for frequently changing documents without retraining costs.

How to eliminate wrong answers

Option B is wrong because pasting all policy documents into each prompt is impractical due to context window limits (e.g., 4K–128K tokens) and rapidly increasing costs; it also fails to scale as documents grow. Option C is wrong because fine-tuning a base LLM monthly is expensive, time-consuming, and risks catastrophic forgetting, especially when the updates are frequent and the model must retain general language capabilities. Option D is wrong because training a custom model from scratch each month is prohibitively expensive and unnecessary; it requires massive compute resources, large datasets, and expertise, making it unsuitable for a document update cycle.

42
MCQmedium

A data scientist is using OCI Generative AI Service to generate product descriptions. They notice that the output often repeats phrases. Which parameter adjustment would MOST directly address this issue?

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

Frequency penalty penalizes tokens that have already appeared, reducing repetition.

Why this answer

The frequency penalty directly reduces the likelihood of the model repeating the same phrases by penalizing tokens that have already appeared in the generated text. In OCI Generative AI Service, this parameter subtracts a fixed value from the log-probability of each token each time it is generated, making repeated tokens less likely to be chosen again. This is the most direct mechanism to address repetitive output.

Exam trap

Oracle often tests the distinction between frequency penalty and temperature, where candidates mistakenly think increasing randomness (temperature) will reduce repetition, but temperature actually increases variability without targeting repetition directly.

How to eliminate wrong answers

Option A is wrong because increasing temperature adds randomness to the token selection process by scaling the logits before applying softmax, which can lead to more diverse but also more chaotic output, not specifically reducing repetition. Option B is wrong because increasing max tokens only extends the maximum length of the generated text, which may actually allow more repetition to occur rather than preventing it. Option D is wrong because decreasing top-p (nucleus sampling) restricts the sampling pool to the smallest set of tokens whose cumulative probability exceeds the threshold, which can reduce diversity and potentially increase repetition by focusing on high-probability tokens.

43
Multi-Selecthard

A team is designing a RAG system for a multilingual knowledge base. Which TWO strategies are appropriate? (Choose two.)

Select 2 answers
A.Store separate vector indices per language
B.Disable vector search for non-English queries
C.Translate all documents to English before indexing
D.Use a different embedding model per language
E.Use a single embedding model trained for multilingual text
AnswersA, E

Separate indices allow language-specific preprocessing and retrieval optimizations.

Why this answer

Storing separate vector indices per language allows the RAG system to optimize retrieval for each language's unique semantic and syntactic characteristics. This avoids cross-language interference and enables the use of language-specific preprocessing, tokenization, and embedding models, which improves retrieval accuracy for multilingual queries.

Exam trap

In Oracle OCI GenAI, a common misconception is that a single multilingual embedding model alone is sufficient for all multilingual RAG scenarios, but the correct answer pair (A and E) highlights that both a unified model and language-specific indices can be appropriate strategies depending on the system's requirements.

44
Multi-Selectmedium

Which TWO of the following are valid ways to reduce latency when using OCI Generative AI Service?

Select 2 answers
A.Use a dedicated AI cluster
B.Reduce the max tokens parameter
C.Deploy the model in a different region
D.Use a larger model
E.Batch multiple requests
AnswersA, B

Dedicated cluster provides consistent performance and lower latency.

Why this answer

A dedicated AI cluster provides isolated compute resources (GPU nodes) for inference, eliminating resource contention from other tenants or workloads. This ensures consistent low-latency responses because the model is always warm and available without queueing delays, which is critical for real-time applications.

Exam trap

Oracle often tests the misconception that deploying in a different region or using a larger model improves performance, when in fact these actions increase latency due to network distance and computational overhead.

45
MCQmedium

A developer is using the OCI Generative AI service and notices that the cost per API call is higher than expected. Which factor contributes MOST to the cost of an LLM inference call?

A.Number of input and output tokens
B.Model size (number of parameters)
C.Context window size
D.Temperature setting
AnswerA

Pricing is usually based on token usage; more tokens mean higher cost.

Why this answer

Most LLM APIs charge based on the number of input and output tokens. The token count directly affects cost. Model size, context window, and temperature are related but the direct billing metric is token count.

46
MCQhard

A developer is using Oracle AI Vector Search with LangChain to build a RAG system on top of Oracle Database 23ai. They have created a VECTOR column and built an HNSW index. To improve recall at the cost of some accuracy, which index parameter should they adjust?

A.Increase the chunk_overlap in the text splitter
B.Increase the 'neighbors' parameter
C.Decrease the 'efConstruction' parameter
D.Switch from HNSW to IVF index type
AnswerB

More neighbors per node improves recall by exploring more paths, but trades off accuracy (more false positives) and resource usage.

Why this answer

Increasing the 'neighbors' parameter (M) in an HNSW index expands the number of bidirectional links per node during graph construction. This denser graph provides more alternative paths during search, improving recall because the search is less likely to miss relevant vectors, but it also increases memory usage and can slightly degrade search speed due to more edges to traverse.

Exam trap

The trap here is that candidates confuse the HNSW 'neighbors' parameter with the 'efConstruction' parameter, mistakenly thinking that decreasing efConstruction (which speeds up construction) would improve recall, when in fact it reduces the thoroughness of graph building and lowers recall.

How to eliminate wrong answers

Option A is wrong because chunk_overlap in the text splitter controls how much text overlaps between consecutive chunks, which affects context continuity but has no direct impact on the vector index's recall-vs-accuracy trade-off. Option C is wrong because decreasing 'efConstruction' reduces the size of the dynamic candidate list during HNSW index construction, which actually lowers recall (opposite of the goal) and may speed up construction but does not improve recall. Option D is wrong because switching from HNSW to IVF (Inverted File) index type typically trades recall for faster search and lower memory, not the other way around; HNSW generally offers higher recall than IVF, so this change would not improve recall.

47
MCQmedium

A developer is using LangChain's RecursiveCharacterTextSplitter with chunk_size=1000 and chunk_overlap=200. Which statement best describes the resulting chunks?

A.Chunks are at most 1000 characters, and consecutive chunks overlap by 200 characters
B.Chunks are at most 1200 characters, overlapping by 200
C.Chunks are exactly 800 characters, with no overlap
D.Each chunk is exactly 1000 characters, with no overlap
AnswerA

The text splitter ensures chunks do not exceed chunk_size and overlap by chunk_overlap characters to maintain context.

Why this answer

With chunk_size=1000 and chunk_overlap=200, each chunk is up to 1000 characters and consecutive chunks share 200 characters of overlap to preserve context across boundaries. The splitter recursively tries to split on separators like newlines to keep chunks semantically coherent.

48
MCQmedium

An organization plans to deploy a custom fine-tuned model for a real-time chat application requiring consistent low-latency responses. They expect high throughput during business hours. Which OCI Generative AI infrastructure choice best meets these requirements?

A.Use the shared infrastructure on-demand endpoint
B.Use the OCI Generative AI Playground for production
C.Provision a Dedicated AI Cluster with the required model units
D.Deploy the model on OCI Data Science using a custom container
AnswerC

Dedicated clusters offer isolated compute for low-latency inference and are suitable for custom fine-tuned models.

Why this answer

A Dedicated AI Cluster provides reserved compute with low latency and high throughput, ideal for production workloads with custom models. Shared infrastructure may have variable performance.

49
MCQeasy

A startup is building a customer support chatbot using RAG with OCI Generative AI. They have a large corpus of FAQ documents stored as PDFs in OCI Object Storage. The developer uses OCI Language to embed the text and stores vectors in OCI OpenSearch. During testing, the chatbot often fails to answer questions because relevant FAQ entries are not retrieved. The team suspects the chunking size is too large, causing loss of specific details. After reducing chunk size, retrieval improves slightly but still misses many answers. What should the team do NEXT?

A.Use a sliding window chunking strategy with overlap
B.Increase the number of retrieved chunks (k)
C.Switch to a different embedding model
D.Manually rephrase the queries
AnswerA

Overlap preserves context across chunk boundaries, improving recall.

Why this answer

A sliding window chunking strategy with overlap ensures that context is preserved across chunk boundaries, preventing the loss of specific details that can occur when a relevant sentence or phrase is split between two chunks. This directly addresses the symptom where reducing chunk size alone still misses answers, as overlapping chunks increase the likelihood that the exact text needed for retrieval appears in at least one chunk.

Exam trap

OCI often tests the misconception that simply reducing chunk size or increasing k is sufficient to fix retrieval failures, when in fact the real issue is the lack of context continuity across chunks—a sliding window with overlap is the standard solution in production RAG systems.

How to eliminate wrong answers

Option B is wrong because increasing the number of retrieved chunks (k) may bring in more noise and does not fix the root cause of missing specific details due to chunk boundary issues; it only widens the net without improving chunk quality. Option C is wrong because switching to a different embedding model would not resolve the problem of information being split across chunks—the embedding model's quality is not the bottleneck here, as the issue is chunking strategy, not semantic representation. Option D is wrong because manually rephrasing queries is a brittle, non-scalable workaround that does not address the underlying retrieval failure caused by chunking; the system should be robust to natural query variations.

50
MCQmedium

A developer is implementing a text generation pipeline using OCI Generative AI and needs to produce diverse, creative outputs for a marketing campaign. Which sampling strategy should they choose?

A.Beam search
B.Temperature sampling with temperature=0.0
C.Top-p sampling with p=0.9
D.Greedy decoding
AnswerC

Top-p sampling introduces controlled randomness, making outputs more diverse and creative while maintaining coherence.

Why this answer

Top-p (nucleus) sampling selects from a dynamically chosen set of tokens whose cumulative probability exceeds p, allowing diversity while avoiding the long tail of improbable tokens.

51
Multi-Selectmedium

A company wants to build a RAG application using OCI Generative AI Agents. Which TWO components are required to set up the agent?

Select 2 answers
A.An embedding model
B.A knowledge base
C.A dedicated AI cluster
D.A data source (e.g., OCI Object Storage)
E.A fine-tuned model
AnswersB, D

Required to store indexed documents.

Why this answer

A knowledge base is the core repository that stores the indexed content used by OCI Generative AI Agents to retrieve relevant information for answering queries. Without a knowledge base, the agent has no source of domain-specific data to ground its responses, making it a mandatory component.

Exam trap

A common misconception is that you need to separately provision an embedding model or a dedicated AI cluster, when in fact OCI Generative AI Agents abstract these components away as part of the managed service, requiring only a data source and a knowledge base.

52
MCQeasy

Refer to the exhibit. Users in the group cannot create a new custom model deployment on a Dedicated AI Cluster. What is the most likely missing permission?

A.Manage ai-document-understanding
B.Manage ai-agents
C.Use of virtual-network-family for cluster networking
D.Manage instance-configurations
AnswerC

Dedicated AI Clusters require VCN networking permissions to provision networking resources.

Why this answer

Creating a custom model deployment on a Dedicated AI Cluster requires the user to have the 'Use of virtual-network-family for cluster networking' permission. This permission allows the user to specify and manage the virtual network (VCN) and subnet that the cluster uses for networking. Without it, the deployment fails because the cluster cannot be attached to the required network resources.

Exam trap

The trap here is that candidates often focus on AI-specific permissions (like ai-document-understanding or ai-agents) and overlook the underlying networking permission required for cluster-based deployments, assuming that cluster creation is purely an AI service operation.

How to eliminate wrong answers

Option A is wrong because 'Manage ai-document-understanding' is a permission for managing document understanding AI services, not for deploying custom models on a Dedicated AI Cluster. Option B is wrong because 'Manage ai-agents' controls permissions for AI agent resources, which are separate from model deployment on clusters. Option D is wrong because 'Manage instance-configurations' is related to compute instance configurations, not to the networking setup required for a Dedicated AI Cluster deployment.

53
MCQhard

When using Cohere Command models on OCI Generative AI, a developer wants to ground a response based on a provided document. Which syntax should be used to embed document content in the prompt?

A.{{document}} ... {{/document}}
B.[DOC] ... [/DOC]
C.document: ... <end_document>
D.<|document|> ... <|/document|>
AnswerC

Cohere Command uses the 'document:' prefix and '<end_document>' marker to specify document content.

Why this answer

Cohere Command models support a special document-grounded generation syntax using the 'document:' prefix. This tells the model to treat the following text as a reference document for grounding.

54
MCQmedium

An OCI user wants to generate embeddings for a large corpus of technical documents to enable semantic search. Which type of model should they use?

A.A summarization model
B.A classification model
C.A generation model like Cohere Command
D.An embedding model like Cohere Embed
AnswerD

Cohere Embed is designed to create dense vector embeddings that represent the semantic meaning of text, ideal for semantic search.

Why this answer

Embedding models are specifically designed to produce dense vector representations that capture semantic meaning. They are distinct from generation models. For semantic search, embeddings from an embedding model are compared using cosine similarity.

55
MCQmedium

A team wants to use a prompt pattern that combines reasoning with acting, where the model alternates between thinking and taking actions (e.g., tool calls). Which pattern fits this requirement?

A.ReAct pattern
B.Template pattern
C.Role prompting
D.Recipe pattern
AnswerA

ReAct explicitly interleaves reasoning traces with actions (e.g., tool use).

Why this answer

The ReAct pattern (Reason + Act) prompts the model to output reasoning steps and then perform actions (like API calls), enabling interactive problem-solving.

56
MCQeasy

A user wants to use OCI Generative AI to generate marketing copy. They want the output to be more creative and varied. Which parameter should they adjust?

A.Set temperature to 0.
B.Increase the temperature parameter.
C.Decrease the temperature parameter.
D.Increase the max_tokens parameter.
AnswerB

Higher temperature increases randomness, leading to more creative and varied text generation.

Why this answer

Increasing the temperature parameter makes the model's output more random and diverse, which is ideal for creative tasks like generating marketing copy. A higher temperature (e.g., 0.7–1.0) increases the probability of sampling less likely tokens, leading to more varied and imaginative text. Setting temperature to 0 would make the output deterministic and repetitive, which is the opposite of what the user wants.

Exam trap

Oracle often tests the misconception that increasing max_tokens or adjusting other parameters like top_p can substitute for temperature when the goal is to increase creativity, but only temperature directly controls randomness and diversity in token selection.

How to eliminate wrong answers

Option A is wrong because setting temperature to 0 forces the model to always choose the most likely token, resulting in deterministic, repetitive, and less creative output. Option C is wrong because decreasing the temperature reduces randomness, making the output more conservative and less varied, which contradicts the goal of creativity. Option D is wrong because increasing max_tokens only extends the maximum length of the generated text; it does not affect the creativity or variability of the output.

57
MCQmedium

A data scientist wants to generate a response that lists top-3 product features in a bulleted format with no introductory text. Which prompt engineering technique should be used?

A.Set temperature to 0 to ensure deterministic output
B.Provide few-shot examples of desired output
C.Use chain-of-thought prompting
D.Include a clear task instruction specifying the format
AnswerD

Directly instructing the model to output a bulleted list without intro text is the most straightforward technique.

Why this answer

Specifying the output format (bulleted list, no intro text) directly in the instruction is the most straightforward way to control the structure. Few-shot examples could also work but are unnecessary when a clear instruction suffices.

58
MCQmedium

An organization wants to use OCI Generative AI for real-time document translation. They need high availability across regions. Which deployment option meets this requirement?

A.Single dedicated AI cluster in one region
B.Multiple dedicated AI clusters in different regions with a load balancer
C.Single serverless endpoint
D.Multiple serverless endpoints in different regions
AnswerB

Multi-region with load balancing ensures continuity even if one region is down.

Why this answer

Deploying multiple dedicated AI clusters across different regions with a load balancer ensures high availability by distributing traffic and providing failover if one region becomes unavailable. OCI Generative AI dedicated AI clusters are provisioned per region, and a load balancer can route requests to healthy clusters, meeting the requirement for real-time document translation with cross-region redundancy.

Exam trap

The trap here is that candidates often assume serverless endpoints inherently provide multi-region high availability, but in OCI Generative AI, serverless endpoints are region-scoped and do not include built-in cross-region failover or load balancing.

How to eliminate wrong answers

Option A is wrong because a single dedicated AI cluster in one region creates a single point of failure, failing the high-availability requirement. Option C is wrong because a single serverless endpoint is also region-specific and lacks cross-region redundancy, so it cannot provide high availability across regions. Option D is wrong because multiple serverless endpoints in different regions without a load balancer cannot automatically distribute traffic or handle failover; they require external routing logic to achieve high availability, which is not inherent in the serverless endpoint model.

59
Multi-Selecthard

Which THREE models are available as part of the OCI Generative AI service?

Select 3 answers
A.Llama 3
B.GPT-4
C.Cohere Command
D.Stable Diffusion
E.Cohere Embed
AnswersA, C, E

Meta's Llama 3 is available in OCI GenAI.

Why this answer

Llama 3 is one of the open-source large language models (LLMs) available through the OCI Generative AI service, alongside Cohere models. OCI Generative AI provides managed access to Llama 3 for text generation tasks, allowing users to deploy and fine-tune it within Oracle Cloud Infrastructure.

Exam trap

Oracle often tests the distinction between models available natively in OCI Generative AI versus those accessible only through external integrations, leading candidates to mistakenly include popular models like GPT-4 that are not part of the managed service.

60
MCQeasy

A company uses a RAG pipeline with OCI Data Science and Cohere embeddings. They notice that retrieval recall is low for domain-specific acronyms. What is the best practice to improve this?

A.Reduce the cosine similarity threshold in the vector search.
B.Expand acronyms to their full forms during document preprocessing and indexing.
C.Fine-tune the embedding model with domain-specific acronyms.
D.Increase the chunk size to include more context around acronyms.
AnswerB

Full forms improve semantic matching.

Why this answer

Expanding acronyms to their full forms during document preprocessing and indexing ensures that the embedding model can map the acronym to its semantic meaning, improving retrieval recall for domain-specific terms. Cohere embeddings are trained on general text, so without expansion, acronyms like 'NLP' may not match queries for 'Natural Language Processing' in vector space. This preprocessing step directly addresses the root cause of low recall for acronyms.

Exam trap

Oracle often tests the misconception that fine-tuning the embedding model is the default fix for retrieval issues, when in practice simpler preprocessing techniques like acronym expansion are more efficient and recommended for domain-specific vocabulary gaps.

How to eliminate wrong answers

Option A is wrong because reducing the cosine similarity threshold would increase the number of retrieved chunks but also introduce more irrelevant results, degrading precision without fixing the underlying embedding mismatch for acronyms. Option C is wrong because fine-tuning the embedding model is resource-intensive and typically unnecessary for this issue; preprocessing acronyms is a simpler, more effective solution that avoids retraining. Option D is wrong because increasing chunk size may add more context but does not resolve the core problem that the acronym itself is not semantically represented in the embedding space, so the retrieval still fails to match the intended concept.

61
MCQhard

A team is deploying a chatbot that must never output harmful or biased statements. They plan to use a pre-trained LLM with in-context learning. Which additional measure is MOST effective at reducing harmful outputs without retraining?

A.Apply a larger context window to include more safety instructions
B.Fine-tune the model on a curated dataset of safe dialogues
C.Use beam search with a high beam width
D.Include few-shot examples in the system prompt that demonstrate appropriate responses
AnswerD

In-context learning with few-shot examples can bias the model toward desired behavior without any model update.

Why this answer

Providing few-shot examples of desired behavior in the system prompt (in-context learning) can guide the model toward safe responses. Fine-tuning would require retraining, and prompt engineering is broader; few-shot examples are a specific, effective technique.

62
MCQmedium

A team is prompting a model to translate English to French. They notice the model occasionally mixes French with other Romance languages. Which prompt refinement strategy would MOST likely improve language consistency?

A.Add a constraint in the system prompt: 'Translate only to French. Do not use any other language.'
B.Use a stop sequence to halt after the first sentence
C.Lower top-k to 1 for deterministic output
D.Increase temperature to encourage more focused output
AnswerA

A clear constraint in the system prompt reduces ambiguity and prevents mixing.

Why this answer

Explicitly constraining the output to French only, with a clear prohibition against other languages, directly addresses language mixing.

63
MCQmedium

A developer wants to index a large corpus of HTML web pages for a RAG pipeline using LangChain. They need to load the content from URLs, split the text into chunks, and generate embeddings. Which combination of LangChain components should they use?

A.PDFLoader, RecursiveCharacterTextSplitter, OCIGenAIEmbeddings
B.WebBaseLoader, RecursiveCharacterTextSplitter, OCIGenAIEmbeddings
C.CSVLoader, RecursiveCharacterTextSplitter, OCIGenAIEmbeddings
D.WebBaseLoader, TokenTextSplitter, OCIGenAI
AnswerB

WebBaseLoader loads web pages, splitter splits text, and embeddings generate vectors.

Why this answer

WebBaseLoader loads HTML content, RecursiveCharacterTextSplitter splits it, and OCIGenAIEmbeddings generates embeddings.

64
MCQmedium

A developer is using ChatPromptTemplate with MessagesPlaceholder to handle conversation history. What is the purpose of MessagesPlaceholder in the prompt template?

A.To insert a single user message at a specific position
B.To add a system instruction that is always present
C.To convert the chat history into a plain string for the LLM
D.To provide a slot where conversation history messages can be injected dynamically
AnswerD

MessagesPlaceholder is replaced by a list of messages (e.g., from memory) at runtime, enabling the model to see the conversation history.

Why this answer

MessagesPlaceholder in LangChain's ChatPromptTemplate is specifically designed to inject conversation history messages dynamically at a designated position in the prompt. It acts as a slot that can hold a list of messages (e.g., from a chat memory buffer) and is replaced at runtime with the actual history, allowing the LLM to maintain context across turns.

Exam trap

The trap here is that candidates confuse MessagesPlaceholder with a simple string substitution or a fixed message insertion, overlooking its role as a dynamic slot for structured message lists that preserves role semantics.

How to eliminate wrong answers

Option A is wrong because MessagesPlaceholder is not for inserting a single user message; that is done with a HumanMessagePromptTemplate or a plain string. Option B is wrong because a system instruction that is always present is added via SystemMessagePromptTemplate, not MessagesPlaceholder. Option C is wrong because MessagesPlaceholder keeps messages in their structured format (e.g., HumanMessage, AIMessage) rather than converting them to a plain string; the LLM receives them as a list of message objects.

65
Multi-Selecthard

An OCI customer is deploying a chatbot using a pre-trained LLM. They are concerned about the model generating biased or harmful content. Which TWO strategies should they implement as part of their responsible AI approach? (Choose two.)

Select 2 answers
A.Train the model from scratch on a curated dataset
B.Increase the context window to include more examples
C.Set up a human-in-the-loop review for sensitive queries
D.Use top-k sampling with k=1
E.Implement a content filtering layer to detect and block harmful outputs
AnswersC, E

Human review ensures oversight for high-risk interactions.

Why this answer

Content filtering and human review are direct mitigations. Training from scratch is impractical; modifying sampling does not address bias; increasing context window is irrelevant.

66
Multi-Selectmedium

An organization needs to choose a model for a multilingual customer support chatbot that must understand and respond in five different languages. Which TWO models available in OCI Generative AI are suitable?

Select 2 answers
A.Meta Llama 3
B.Cohere Command R
C.Cohere Rerank
D.Cohere Command R+
E.Cohere embed-english-v3.0
AnswersA, D

Supports multiple languages.

Why this answer

Cohere Command R+ and Meta Llama 3 support multiple languages.

67
MCQmedium

A team wants to create a prompt library for their organization's LLM applications. Which practice is MOST important for maintaining prompt quality over time?

A.Version-control prompts and define evaluation metrics for each prompt variant
B.Store all prompts in a shared document without version history
C.Assign a single person to manage all prompts without review
D.Keep prompts only in the codebase without separate documentation
AnswerA

Versioning and evaluation metrics enable systematic refinement and accountability.

Why this answer

Versioning prompts and establishing evaluation criteria are key to tracking changes and ensuring quality. Without versioning, it's impossible to know which version produced which result.

68
Multi-Selecthard

Which THREE components are required to deploy a custom generative AI model on OCI Data Science model deployment?

Select 3 answers
A.A load balancer to distribute traffic
B.An inference script (e.g., score.py) to handle prediction requests
C.A model artifact containing the model files
D.An API signing key for authentication
E.A deployment configuration specifying resources and environment
AnswersB, C, E

Required to define how the model is called.

Why this answer

OCI Data Science model deployment requires an inference script (typically score.py) to define how the model processes incoming prediction requests. This script is the entry point that loads the model artifact and executes inference logic, making it an essential component for serving predictions.

Exam trap

The trap here is that candidates confuse optional infrastructure components like load balancers or API keys with the mandatory deployment components, leading them to select A or D instead of recognizing that the inference script, model artifact, and deployment configuration are the three required elements.

69
Multi-Selecteasy

Which TWO methods can be used to invoke a generative AI model deployed on OCI?

Select 2 answers
A.Using OCI Notifications service
B.Using the OCI Console web interface
C.Sending HTTP requests to the model endpoint URL
D.Using OCI Events service
E.Using the OCI SDK (e.g., Python, Java)
AnswersC, E

Direct REST calls are standard.

Why this answer

Generative AI models deployed on OCI expose a RESTful endpoint that accepts HTTP requests (typically POST with JSON payloads) for inference. This is the standard method for programmatic access to the model, allowing integration with any HTTP client.

Exam trap

Oracle often tests the distinction between management-plane actions (like using the Console or Events to trigger deployments) and data-plane actions (like invoking the model via SDK or HTTP), leading candidates to confuse OCI services that manage resources with those that perform inference.

70
MCQhard

An enterprise RAG application experiences high latency during peak hours. The architecture uses OCI OpenSearch with a single node cluster storing 5 million vectors (768 dimensions). The search uses exact k-NN (EF_SEARCH=500). The average query takes 1.5 seconds, but the SLA requires <500ms. The team considers several options: A) Switch to ANN with lower recall (HNSW with ef_search=50), B) Scale OpenSearch cluster to 3 nodes, C) Reduce embedding dimension to 256 using PCA, D) Increase the number of shards from 1 to 10. Which option provides the best balance of latency reduction and minimal impact on retrieval quality? (Assume all options are feasible)

A.Scale OpenSearch cluster to 3 nodes
B.Increase the number of shards from 1 to 10
C.Switch to ANN (HNSW with ef_search=50)
D.Reduce embedding dimension to 256 using PCA
AnswerB

More shards divide the vector set, allowing parallel exact searches on smaller partitions, reducing latency without quality loss.

Why this answer

Increasing shards on the same node partitions the index, so each shard contains fewer vectors, making exact search faster. This reduces latency without sacrificing accuracy. ANN reduces recall, scaling adds cost and complexity, and dimension reduction can degrade embedding quality.

71
MCQeasy

When invoking the OCI Generative AI service from a RAG application, the developer receives a 401 Unauthorized error. The application uses resource principal authentication from an OCI Data Science notebook session. What is the most likely fix?

A.Add the Generative AI service to the subnet's security list
B.Use an API key instead of resource principal
C.Ensure the dynamic group includes the data science notebook session and has the correct policy
D.Restart the notebook session
AnswerC

The dynamic group must match the session, and the policy must grant access to the Generative AI service.

Why this answer

The 401 Unauthorized error indicates that the OCI Generative AI service cannot authenticate the request. In a RAG application using resource principal authentication from an OCI Data Science notebook session, the notebook session must be a member of a dynamic group, and that dynamic group must have an IAM policy granting it the necessary permissions (e.g., `allow dynamic-group <name> to use generative-ai-family in compartment <name>`). Option C correctly identifies that the dynamic group configuration or policy is missing or incorrect, which is the most likely cause of the authentication failure.

Exam trap

Oracle often tests the distinction between network-level issues (security lists, NACLs) and IAM-level issues (dynamic groups, policies) — the trap here is that candidates may confuse a 401 Unauthorized error with a network connectivity problem and incorrectly choose a security list fix.

How to eliminate wrong answers

Option A is wrong because security lists control network traffic at the subnet level, not authentication; a 401 error is an authentication/authorization issue, not a network connectivity issue. Option B is wrong because using an API key would bypass the resource principal mechanism but is not a 'fix' — it changes the authentication method entirely and may not be desirable or secure for a notebook session; the question asks for the most likely fix given the existing resource principal setup. Option D is wrong because restarting the notebook session does not resolve missing dynamic group membership or policy misconfiguration; it would only refresh the session's credentials if they were stale, but a 401 typically indicates a fundamental permission gap, not a transient token issue.

72
MCQmedium

A developer is using the Embedding API to create embeddings for a clustering task. They want to ensure the embeddings are optimized for clustering similar documents. Which input type should they specify?

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

Optimized for clustering.

Why this answer

The input type 'clustering' optimizes embeddings for clustering tasks.

73
MCQmedium

A healthcare company must use OCI Generative AI for medical report generation. They need to ensure PHI is not sent to third-party models. Which approach best ensures data stays within OCI?

A.Use OCI Gen AI service with fine-tuned model on a dedicated AI cluster
B.Use OCI Gen AI service with base model in a multi-tenant environment
C.Use OCI Gen AI service with base model in a dedicated AI cluster
D.Use a third-party LLM via API Gateway
AnswerA

Correct. A fine-tuned model on a dedicated AI cluster keeps all data within OCI and provides domain-specific accuracy.

Why this answer

Using OCI Gen AI service with a fine-tuned model on a dedicated AI cluster ensures that all data (including PHI) remains within OCI's infrastructure, as the dedicated cluster is isolated and no data is sent to third-party models. Fine-tuning also provides the accuracy needed for medical report generation. Option B uses a multi-tenant environment, which may have data isolation concerns but still within OCI; however, it does not involve fine-tuning, so it is less optimal for the medical domain.

Option C uses a dedicated cluster but with a base model, which means no fine-tuning on medical data, so it may not provide the required accuracy, though data stays within OCI. Option D sends data to a third-party LLM, violating PHI requirements.

74
Multi-Selectmedium

A prompt engineer is designing a system to answer customer queries using OCI Generative AI. They want to ensure the model's responses are concise, accurate, and consistent. Which TWO prompt engineering practices should they implement? (Select two.)

Select 2 answers
A.Include a system prompt specifying 'You are a customer support agent. Answer concisely in two sentences.'
B.Remove any context from the prompt to avoid biasing the model
C.Use the tree-of-thought technique for every query
D.Use a low temperature (e.g., 0.1) for deterministic outputs
E.Set temperature to 0.9 to encourage creative responses
AnswersA, D

System prompt sets persona and length constraint.

Why this answer

Setting a low temperature reduces randomness (consistency). Including a system prompt with tone and length constraints directly addresses conciseness and format.

75
MCQhard

A developer uses a Cohere Command model with a preamble: 'You are a helpful assistant that answers questions based on the provided document.' They also include a user message with a query and a relevant document excerpt. However, the model often ignores the document and uses its own knowledge. Which improvement is MOST effective?

A.Use the document-grounded generation format with <doc> and </doc> tags around the document
B.Increase the temperature to 0.7 to reduce reliance on parametric knowledge
C.Set frequency penalty to 0.5
D.Remove the preamble and rely solely on the user message
AnswerA

Explicit document tags help the model distinguish between the query and the grounding document.

Why this answer

Cohere's document-grounded generation syntax uses special tags to clearly separate the document from the query, ensuring the model focuses on the provided content rather than its training data.

Page 1 of 11

Page 2

All pages