Courseiva

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

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

Page 8

Page 9 of 11

Page 10
601
MCQmedium

A developer is using the OCI Generative AI Chat API to build a conversational assistant. They want the assistant to adopt a formal tone regardless of user input. Which parameter should they set in the API request?

A.Set a high temperature (e.g., 0.9)
B.Set the system prompt to 'You are a formal assistant that responds in a professional tone.'
C.Set the frequency penalty to a high value
D.Set max tokens to a low value
AnswerB

The system prompt defines the assistant's behavior and tone across the conversation.

Why this answer

The system prompt (or preamble) sets the assistant's behavior consistently. Temperature affects randomness but not tone directly.

602
MCQhard

A research institution uses OCI Data Flow to process large-scale document corpora for a RAG system. They want to minimize latency for end-user queries. Which architecture decision would most effectively reduce query latency?

A.Embed documents on-the-fly during query time to ensure freshness.
B.Use a larger, more accurate embedding model.
C.Increase the number of Spark workers for parallel processing of queries.
D.Precompute embeddings offline using OCI Data Flow and store them in an OCI OpenSearch index.
AnswerD

Precomputation removes runtime embedding cost.

Why this answer

Precomputing embeddings offline with OCI Data Flow and storing them in an OCI OpenSearch index eliminates the need to generate embeddings at query time, which is the primary source of latency. This approach shifts the computationally expensive embedding generation to a batch process, allowing queries to perform only a fast vector similarity search against the precomputed index, drastically reducing end-user response time.

Exam trap

The trap here is that candidates often confuse batch processing with real-time processing, assuming that more parallelism (Option C) or a better model (Option B) can solve latency issues, when in fact the fundamental latency reduction comes from moving the expensive embedding computation out of the query path entirely.

How to eliminate wrong answers

Option A is wrong because embedding documents on-the-fly during query time introduces significant latency, as the embedding model must process each document in real time, which is impractical for large-scale corpora and defeats the purpose of minimizing query latency. Option B is wrong because using a larger, more accurate embedding model increases the computational cost and time for each embedding generation, which would actually increase latency rather than reduce it, especially if done at query time. Option C is wrong because increasing the number of Spark workers for parallel processing of queries does not address the bottleneck of embedding generation; Spark workers are used for batch processing in OCI Data Flow, not for real-time query serving, and adding more workers would not reduce the latency of the embedding step itself.

603
MCQhard

An OCI GenAI model generates English to French translation. Which metric is most appropriate to evaluate its quality?

A.Perplexity
B.ROUGE
C.F1 score
D.BLEU
AnswerD

BLEU is the standard metric for translation tasks.

Why this answer

BLEU (Bilingual Evaluation Understudy) is the standard metric for machine translation tasks because it measures the n-gram overlap between the generated translation and one or more reference translations, directly assessing fluency and adequacy. For English-to-French translation, BLEU correlates well with human judgment of translation quality, making it the most appropriate choice.

Exam trap

Oracle often tests the distinction between metrics for generation tasks (BLEU for translation, ROUGE for summarization, perplexity for language modeling) and classification metrics (F1 score), leading candidates to confuse their appropriate domains.

How to eliminate wrong answers

Option A is wrong because perplexity measures how well a language model predicts a sequence of tokens, not the quality of a translation against a reference. Option B is wrong because ROUGE is designed for summarization tasks, focusing on recall of n-grams and longest common subsequences, not translation accuracy. Option C is wrong because F1 score is a classification metric (precision and recall) that does not capture the sequential and lexical alignment required for evaluating translation output.

604
MCQmedium

A company wants to use OCI Generative AI to analyze legal documents and extract key clauses. Which model type is best suited for this task?

A.Cohere Command (generate)
B.Cohere Chat
C.Cohere Embed
D.Cohere Summarize
AnswerD

Summarize models are optimized for condensing content, suitable for extracting key clauses.

Why this answer

Cohere Summarize is specifically designed to condense long documents into concise summaries, making it ideal for extracting key clauses from legal documents. Unlike other Cohere models, Summarize focuses on distilling the most important information from text, which aligns with the task of identifying and extracting critical clauses.

Exam trap

Oracle often tests the misconception that any generative model can perform extraction tasks, but the key distinction is that Cohere Summarize is purpose-built for condensation and extraction, whereas other models are designed for generation, conversation, or embedding.

How to eliminate wrong answers

Option A is wrong because Cohere Command (generate) is a text generation model for creating new content, not for extracting or summarizing existing information. Option B is wrong because Cohere Chat is optimized for conversational interactions and multi-turn dialogue, not for document analysis or clause extraction. Option C is wrong because Cohere Embed generates vector embeddings for semantic search or clustering, but does not perform text extraction or summarization.

605
MCQhard

During iterative refinement, a prompt engineer tests two prompt variants on the same 100 inputs and measures accuracy. Variant A yields 85% accuracy, Variant B yields 82%. However, Variant B's outputs are more concise and preferred by users. What should the engineer do NEXT?

A.Select Variant B because user preference outweighs the small accuracy difference
B.Select Variant A because accuracy is the primary metric
C.Run a larger A/B test with statistical significance check before deciding
D.Define clear evaluation criteria that balance accuracy and conciseness, then re-evaluate
AnswerD

Establishing weighted criteria ensures both dimensions are considered and the decision is objective.

Why this answer

Evaluation should be based on multiple criteria beyond accuracy, especially user preference. The engineer should establish a composite metric that includes both accuracy and conciseness.

606
MCQeasy

Your organization uses OCI Data Science to train a generative AI model for code generation. After training, you want to deploy it as a REST API. You create a model deployment using the OCI console, but after 30 minutes the deployment status is still 'Creating'. You check the logs and see the message: 'Insufficient capacity for shape VM.GPU.A10.1 in availability domain AD-1'. The deployment is configured with a single replica. You have verified your tenancy has sufficient service limits for GPU instances. What should you do to resolve this issue quickly?

A.Change the deployment to use a different GPU shape, such as VM.GPU.A10.2
B.Delete the deployment and create it in a different region with more GPU capacity
C.Request a service limit increase for GPU shapes
D.Wait for 1 hour and check again; capacity may become available
AnswerA

A different GPU shape may have available capacity in the same availability domain.

Why this answer

The error indicates that the specific GPU shape VM.GPU.A10.1 lacks capacity in the current availability domain. Switching to a different GPU shape, such as VM.GPU.A10.2, which uses a different instance configuration, can bypass the capacity constraint without requiring a region change or service limit increase. This is the fastest resolution because it directly addresses the availability domain capacity issue while keeping the deployment in the same region and AD.

Exam trap

The trap here is that candidates confuse service limits with capacity availability, assuming a limit increase will fix the issue, when in fact the error explicitly states 'Insufficient capacity' for the shape, not a limit breach.

How to eliminate wrong answers

Option B is wrong because deleting and recreating in a different region is an overreaction; the capacity issue is specific to the shape and AD, not the region, and moving regions introduces latency and complexity. Option C is wrong because the error is about capacity, not service limits; the user already verified sufficient service limits, so a limit increase would not resolve the immediate capacity shortage. Option D is wrong because waiting does not guarantee capacity will become available; the error indicates a persistent lack of capacity for that specific shape in that AD, and waiting could waste time without resolution.

607
MCQeasy

Which tokenization algorithm is commonly used in models like GPT and BERT and builds tokens by merging the most frequent pairs of characters or subwords iteratively?

A.WordPiece
B.SentencePiece
C.Unigram tokenization
D.Byte-Pair Encoding (BPE)
AnswerD

BPE is the algorithm that iteratively merges the most frequent byte pairs to build a subword vocabulary.

Why this answer

Byte-Pair Encoding (BPE) is a subword tokenization method that starts with individual characters and merges the most frequent pairs iteratively until a vocabulary size is reached.

608
MCQeasy

A researcher wants to compare the performance of two LLMs on OCI Generative AI: a base model and an instruct model. They notice the instruct model often refuses to generate certain types of content. Which factor most likely explains this behavior?

A.The base model was programmed to follow stricter rules.
B.The instruct model has been fine-tuned with reinforcement learning from human feedback (RLHF) to align with safety guidelines.
C.The instruct model was trained on a smaller dataset.
D.The base model rejects content more often.
AnswerB

RLHF makes instruct models more likely to reject unsafe requests.

Why this answer

Instruct models are typically fine-tuned using reinforcement learning from human feedback (RLHF) to align with safety guidelines and ethical constraints. This fine-tuning process teaches the model to refuse generating harmful, biased, or unsafe content, which explains why the instruct model refuses certain types of content while the base model does not.

Exam trap

Oracle often tests the misconception that refusal behavior is due to dataset size or rule-based programming, when in fact it is a direct result of RLHF-based safety alignment in instruct models.

How to eliminate wrong answers

Option A is wrong because base models are not programmed with explicit rule-based filters; they are trained on large text corpora without specific refusal mechanisms. Option C is wrong because the training dataset size does not directly cause refusal behavior; instruct models are often fine-tuned on smaller, curated datasets but the refusal stems from RLHF alignment, not dataset size. Option D is wrong because base models typically do not reject content more often; they generate outputs freely without the safety alignment that instruct models undergo.

609
MCQmedium

An AI engineer is testing a large language model on OCI Generative AI and receives this error: 'Token limit exceeded. Maximum context length is 4096 tokens.' The prompt is 4000 tokens long. What is the most effective way to resolve the issue without losing important context?

A.Reduce the prompt length by summarizing or trimming less relevant information.
B.Switch to a model with a larger context window, if available.
C.Increase the max_tokens parameter in the API call.
D.Split the prompt into multiple requests and combine outputs.
AnswerA

Reducing prompt length ensures it fits within the token limit while preserving key context.

Why this answer

The error indicates that the combined prompt and generated output exceed the model's maximum context length of 4096 tokens. Since the prompt alone is 4000 tokens, there is very little room for the model to generate a response. Trimming or summarizing less relevant parts of the prompt directly reduces the token count, allowing the model to produce a complete output without exceeding the limit.

This approach preserves the most critical context while staying within the model's constraints.

Exam trap

Oracle often tests the misconception that increasing max_tokens or switching models can bypass the token limit, but the core issue is the total context length, which is a fixed architectural constraint of the model.

How to eliminate wrong answers

Option B is wrong because switching to a model with a larger context window may not be available in the current environment or may introduce additional costs and latency; the question asks for the most effective way to resolve the issue without losing important context, and reducing the prompt is a more direct and universally applicable solution. Option C is wrong because increasing the max_tokens parameter does not change the total context length limit; it only controls the maximum number of tokens the model can generate, and if the prompt already consumes 4000 tokens, increasing max_tokens would still cause the total to exceed 4096. Option D is wrong because splitting the prompt into multiple requests and combining outputs can lead to loss of coherence and context across the separate calls, and the model does not maintain state between requests, so important relationships between parts of the prompt would be lost.

610
MCQmedium

An administrator notices that a dedicated AI cluster is not scaling down after a period of low traffic. What could be the cause?

A.The cluster has a minimum size set to the current number of nodes
B.There are pending inference requests
C.The cluster is in a compartment without permissions
D.The autoscaling policy uses a cooldown period that is too short
AnswerA

A minimum size setting prevents scaling down below that threshold.

Why this answer

A dedicated AI cluster in OCI has a minimum size configuration that prevents the autoscaler from reducing the node count below that threshold. If the current number of nodes equals the configured minimum, the cluster will not scale down even during low traffic, as the autoscaler respects this lower bound. This ensures baseline capacity is always available for inference workloads.

Exam trap

Oracle often tests the misconception that autoscaling always scales down when traffic is low, without considering the minimum size constraint that overrides scaling policies.

How to eliminate wrong answers

Option B is wrong because pending inference requests would actually prevent scaling down, but the question states the cluster is not scaling down after a period of low traffic, implying no pending requests are present. Option C is wrong because compartment permissions affect resource access and management operations, not the autoscaling behavior of a cluster. Option D is wrong because a cooldown period that is too short would cause the cluster to scale down too aggressively or oscillate, not prevent scaling down entirely.

611
Multi-Selectmedium

A company is using OCI Generative AI Agents to implement a RAG system for employee onboarding. They want to ensure the agent only answers from the uploaded documents and avoids making up information. Which THREE configuration steps should they take?

Select 3 answers
A.Configure the agent to use only the knowledge base and disable internet search
B.Set the preamble to instruct the agent to only answer based on provided context
C.Increase the temperature to 2.0 for more creative responses
D.Create a knowledge base that indexes the onboarding documents
E.Fine-tune the underlying model on the onboarding documents
AnswersA, B, D

This ensures the agent retrieves only from provided documents.

Why this answer

To ground the agent in provided documents, they should use a knowledge base, set a preamble to restrict knowledge, and disable internet search. Fine-tuning is not needed.

612
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.

613
MCQeasy

A data scientist needs to generate vector embeddings for a large corpus of text documents to use in a semantic search application. Which OCI service is best suited for this task?

A.OCI Vision
B.OCI Speech
C.OCI Generative AI
D.OCI Language
AnswerC

OCI Generative AI offers embedding models (e.g., Cohere embed) specifically for text.

Why this answer

OCI Generative AI is the correct choice because it provides a managed service for generating vector embeddings from text using large language models (LLMs) like Cohere. This service is specifically designed for tasks such as semantic search, where embeddings capture the meaning of text to enable similarity comparisons. OCI Vision, Speech, and Language focus on other modalities (images, audio, and NLP tasks like sentiment analysis) and do not offer embedding generation for semantic search.

Exam trap

Oracle often tests the misconception that OCI Language can generate embeddings because it handles text, but OCI Language lacks an embedding API, while OCI Generative AI is the only service that provides this capability for semantic search.

How to eliminate wrong answers

Option A is wrong because OCI Vision is designed for image and video analysis (e.g., object detection, OCR), not for generating text embeddings. Option B is wrong because OCI Speech handles audio-to-text transcription and speaker diarization, not text embedding generation. Option D is wrong because OCI Language provides NLP features like sentiment analysis, entity extraction, and text classification, but it does not offer a dedicated embedding API for semantic search; that capability is exclusive to OCI Generative AI.

614
MCQhard

A data scientist is designing a prompt to extract structured information (e.g., JSON) from text using an instruct model on OCI Generative AI. The model sometimes outputs additional text beyond the JSON, breaking parsing. Which prompt engineering technique is most effective to enforce structured output?

A.Use a base model instead of an instruct model.
B.Set the temperature to 0.0 to reduce randomness.
C.Include a few-shot example of the expected JSON output in the prompt.
D.Increase max_tokens to allow for additional output.
AnswerC

Few-shot examples teach the model to output precisely in the desired format.

Why this answer

Few-shot prompting provides explicit examples of the desired output format, which instructs the model to follow the exact JSON structure and reduces the likelihood of extraneous text. This technique leverages the model's in-context learning ability to adhere to formatting constraints, making it the most effective for enforcing structured output in OCI Generative AI instruct models.

Exam trap

Oracle often tests the misconception that lowering temperature or increasing tokens can enforce output format, when in reality only explicit formatting examples (few-shot) reliably constrain the model's output structure.

How to eliminate wrong answers

Option A is wrong because base models lack instruction-following capabilities and are more prone to generating unstructured or irrelevant text, making them less suitable for structured output tasks. Option B is wrong because setting temperature to 0.0 reduces randomness but does not prevent the model from outputting additional explanatory text beyond the JSON; it only makes outputs more deterministic, not format-compliant. Option D is wrong because increasing max_tokens allows more room for additional output, which would exacerbate the problem of extra text beyond the JSON, not solve it.

615
MCQeasy

An OCI AI Language text classification request returns the output shown. Which conclusion is most accurate?

A.The model is uncertain about the sentiment.
B.The text is classified as Positive with high confidence.
C.The API endpoint is misconfigured.
D.The --endpoint parameter is optional.
AnswerB

The label 'Positive' with score 0.98 confirms high-confidence classification.

Why this answer

The output shows a sentiment label of 'Positive' with a confidence score of 0.98, indicating the model is highly confident in its classification. Option B correctly identifies this as a positive sentiment with high confidence, which is the most accurate conclusion based on the provided data.

Exam trap

The trap here is that candidates may misinterpret a high confidence score as uncertainty (Option A) due to a common misconception that AI models always express doubt, but in OCI AI Language, a score near 1.0 explicitly indicates high certainty.

How to eliminate wrong answers

Option A is wrong because a confidence score of 0.98 indicates the model is very certain, not uncertain, about the sentiment. Option C is wrong because the API endpoint is not misconfigured; the request returned a valid response with a sentiment label and confidence score, which would not happen if the endpoint were misconfigured. Option D is wrong because the --endpoint parameter is not optional; it is required to specify the OCI AI Language endpoint for the API call, and its absence would cause a request failure.

616
MCQmedium

A model generates code with security issues. Which approach is best to mitigate this?

A.Reduce max_tokens
B.Increase temperature
C.Use a different model
D.Add a system prompt with security guidelines
AnswerD

System prompts can guide the model to produce secure code.

Why this answer

Adding a system prompt with security guidelines (option D) instructs the model to follow best practices, directly addressing security concerns without changing model training.

617
MCQmedium

A developer is using the OCI Generative AI Chat API to build a multi-turn conversational assistant. They want the assistant to adopt a formal tone throughout the conversation. Which parameter should they set in the API request to achieve this?

A.preamble_override
B.temperature
C.frequency_penalty
D.max_tokens
AnswerA

Preamble override sets the system prompt that defines the assistant's behavior and tone for the entire conversation.

Why this answer

The 'preamble_override' parameter sets the system-level instruction (e.g., 'You are a formal assistant...') that persists across turns. The other options control generation statistics, not system behavior.

618
MCQhard

Refer to the exhibit. A developer runs the OCI CLI command and receives the output. However, the text "Hello, how are you?" is actually a mix of English and French words. Why does the model assign only 0.03 to French?

A.The text is overwhelmingly English, so the model assigns a low probability to French.
B.The model is limited to identifying a single language per query.
C.The model cannot detect multiple languages in a single text.
D.The model's scores are normalized to sum to 1, so a high English score forces low others.
AnswerA

The phrase is mostly English, so the model is confident it is English.

Why this answer

The model's output shows a probability distribution over languages, and the text is predominantly English with only a few French words. The model assigns a low probability (0.03) to French because the overwhelming majority of tokens are English, making the text far more likely to be classified as English. This reflects how language identification models evaluate the overall composition of the input.

Exam trap

Oracle often tests the misconception that normalized probabilities force a single language to dominate, but the trap here is that candidates may think the low French score is an artifact of normalization rather than a reflection of the actual token distribution in the text.

How to eliminate wrong answers

Option B is wrong because the model can output probabilities for multiple languages simultaneously, as shown in the exhibit where both English and French scores are present. Option C is wrong because the model can detect multiple languages in a single text, as evidenced by the non-zero probability assigned to French; it does not have a hard limit of one language per query. Option D is wrong because while scores are normalized to sum to 1, the low French score is due to the actual token composition, not merely a forced consequence of normalization; normalization reflects the relative likelihoods, but the model could assign high scores to multiple languages if the text were genuinely multilingual.

619
MCQhard

A company runs batch inference jobs daily using the OCI Generative AI service. The current cost is higher than expected. Which change would most effectively reduce cost while maintaining throughput?

A.Switch from on-demand to dedicated AI cluster with batch endpoint.
B.Reduce the max token limit for all requests.
C.Use a larger model to reduce retries.
D.Increase the number of parallel requests to improve efficiency.
AnswerA

Dedicated clusters provide lower cost per token for batch workloads and avoid contention.

Why this answer

Switching from on-demand to a dedicated AI cluster with a batch endpoint reduces cost because dedicated clusters provide reserved capacity at a lower per-token rate compared to on-demand pay-per-token pricing, and batch endpoints allow you to process multiple inference requests in a single job, amortizing overhead and reducing idle time. This combination directly addresses the high cost of per-request on-demand pricing while maintaining the same throughput for daily batch jobs.

Exam trap

Oracle often tests the misconception that reducing token limits or increasing parallelism is the most effective cost-saving measure, when in fact the pricing model change from on-demand to dedicated infrastructure yields the greatest savings for predictable batch workloads.

How to eliminate wrong answers

Option B is wrong because reducing the max token limit may lower per-request cost but can degrade output quality or truncate results, and it does not address the underlying pricing model inefficiency for batch workloads. Option C is wrong because using a larger model typically increases cost per token and latency, and retries are not a significant cost driver in batch inference; larger models would worsen, not reduce, cost. Option D is wrong because increasing parallel requests on an on-demand endpoint can actually increase cost due to higher concurrency charges or rate-limiting penalties, and it does not change the per-token pricing structure.

620
MCQhard

A RAG application is hallucinating because the LLM receives irrelevant context from the retrieval step, even when topK is set to 3. Which strategy would best reduce hallucination by improving the relevance of retrieved documents?

A.Reduce the chunk size to one sentence per chunk
B.Add a reranking step after retrieval to select the most relevant chunks
C.Implement a query rewriting mechanism
D.Increase topK to 10 to provide more context
AnswerB

Reranking improves the relevance of the final context set.

Why this answer

Adding a reranking step after retrieval directly addresses the core issue: even with a low topK, the initial retrieval may return chunks that are semantically similar but not precisely relevant to the query. Reranking uses a cross-encoder model to score each retrieved chunk against the query, reordering them so that only the most contextually relevant chunks are passed to the LLM. This reduces the chance of the LLM receiving irrelevant context, thereby minimizing hallucination.

Exam trap

Oracle often tests the misconception that simply adjusting retrieval parameters (like chunk size or topK) can fix relevance issues, when the real solution is a dedicated reranking step that re-evaluates relevance with a more powerful model.

How to eliminate wrong answers

Option A is wrong because reducing chunk size to one sentence per chunk can fragment context and lose necessary supporting information, often making retrieval less coherent and potentially increasing hallucination. Option C is wrong because query rewriting improves the query itself but does not fix the problem of irrelevant chunks already retrieved; it addresses query ambiguity, not retrieval relevance. Option D is wrong because increasing topK to 10 would retrieve more chunks, which could introduce even more irrelevant context and worsen hallucination, not reduce it.

621
MCQeasy

A user wants to invoke an OCI Generative AI endpoint from a cloud function. What is the required authentication method?

A.API signing key
B.User name and password
C.Session token
D.OCI certificate
AnswerA

API signing key is required for OCI API authentication.

Why this answer

OCI Generative AI endpoints require API signing keys for authentication because they are REST APIs that use the Signature Version 1 algorithm (based on HMAC-SHA256) to sign requests. Cloud Functions must include a signed HTTP header using a user's or service principal's OCI API signing key pair (private key for signing, public key uploaded to OCI) to prove identity and authorization. This is the standard method for programmatic access to OCI services, including Generative AI, and is enforced by the OCI Identity and Access Management (IAM) policy layer.

Exam trap

Oracle often tests the misconception that OCI always uses session tokens or OAuth2 for service-to-service calls, but for Generative AI and most OCI REST APIs, the required method is API signing key authentication, not token-based or certificate-based methods.

How to eliminate wrong answers

Option B is wrong because username and password are used for interactive console login (OCI IAM user password authentication) and are not supported for programmatic API calls from cloud functions; they would expose credentials in code and violate OCI security best practices. Option C is wrong because a session token is a temporary credential obtained via federation or token exchange (e.g., from an identity provider) and is typically used for CLI or SDK sessions, not for direct REST API signing from a cloud function without a token exchange flow. Option D is wrong because OCI certificate authentication (mTLS) is used for specific services like API Gateway or load balancer mutual TLS, not for standard OCI REST API endpoints like Generative AI, which rely on API signing keys.

622
Multi-Selectmedium

A machine learning engineer is designing a RAG pipeline in OCI to improve the accuracy of an LLM-based FAQ bot. Which TWO components are essential for the retrieval phase? (Select TWO.)

Select 2 answers
A.Document chunking
B.Tokenization before the generation step
C.Text generation model
D.A reranker model
E.Embedding model to convert chunks into vectors
AnswersA, E

Documents must be split into chunks for effective retrieval.

Why this answer

Document chunking is essential because it breaks large documents into smaller, manageable pieces that can be individually indexed and retrieved. Without chunking, the retrieval phase would either miss relevant context or return overly large documents that exceed the LLM's context window, reducing accuracy.

Exam trap

The 1Z0-1127 exam often tests the distinction between retrieval-phase components (chunking and embeddings) and generation-phase components (tokenization and the LLM itself), leading candidates to mistakenly include reranking as essential when it is only an optional refinement.

623
Multi-Selectmedium

Which TWO deployment options are available for using fine-tuned models with OCI Generative AI service?

Select 2 answers
A.Bring Your Own Container (BYOC)
B.Serverless Endpoint
C.On-Demand Endpoint
D.Edge Deployment
E.Managed Dedicated Endpoint
AnswersC, E

On-demand endpoints are for base models but fine-tuned models can also be deployed via dedicated endpoints that use on-demand scaling.

Why this answer

The OCI Generative AI service provides two deployment options for fine-tuned models: On-Demand Endpoint and Managed Dedicated Endpoint. The On-Demand Endpoint (Option C) is a serverless, pay-per-token option that automatically scales, suitable for variable workloads. The Managed Dedicated Endpoint (Option E) provides a dedicated, single-tenant endpoint with guaranteed throughput and lower latency for production workloads.

Exam trap

Oracle OCI GenAI exams often test the distinction between 'serverless' as a general concept versus the specific named deployment options in OCI Generative AI, leading candidates to incorrectly select 'Serverless Endpoint' as a separate option when it is actually the underlying model for the On-Demand Endpoint.

624
MCQeasy

Which parameter controls the creativity and randomness of a model's output by adjusting the probability distribution before sampling the next token?

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

Temperature directly controls the randomness of token selection.

Why this answer

Temperature scales logits before softmax; higher values increase randomness.

625
MCQeasy

What is the role of the softmax function in the output layer of an LLM?

A.Apply attention
B.Tokenize input
C.Compute gradients
D.Convert logits to probabilities
AnswerD

Softmax normalizes logits into a probability distribution.

Why this answer

The softmax function in the output layer of an LLM converts the raw, unnormalized scores (logits) produced by the final linear layer into a probability distribution over the vocabulary. This allows the model to output a valid probability for each token, where all probabilities sum to 1, enabling sampling or greedy decoding for next-token prediction.

Exam trap

The trap here is that candidates may confuse the role of softmax with other transformer components like attention or tokenization, especially since all are critical to LLM operation, but only softmax directly converts logits to probabilities in the output layer.

How to eliminate wrong answers

Option A is wrong because attention is a mechanism within the transformer architecture (e.g., self-attention in the encoder/decoder blocks) that computes weighted sums of values based on queries and keys, not a function applied in the output layer. Option B is wrong because tokenization is a preprocessing step that splits input text into tokens (e.g., using BPE or WordPiece) before the model processes them, not a function of the output layer. Option C is wrong because gradient computation is part of the backpropagation algorithm during training, not an inference-time operation of the output layer; softmax itself is differentiable but its role is to produce probabilities, not compute gradients.

626
MCQeasy

A user has a prompt that exceeds the model's token limit. What is the best practice to handle this?

A.Summarize the earlier parts of the prompt and include the summary.
B.Increase the max tokens parameter in the API call.
C.Truncate the prompt and hope the model understands.
D.Split the input into multiple calls and merge results.
AnswerA

Correct: Summarization preserves context while reducing token count.

Why this answer

When a prompt exceeds the model's token limit, the best practice is to summarize the earlier parts of the prompt and include the summary. This preserves the essential context without exceeding the token limit, as the model's context window is fixed (e.g., 4,096 tokens for GPT-3.5 or 8,192 for GPT-4). Summarization reduces token count while retaining key information, enabling the model to process the entire input within its constraints.

Exam trap

Oracle often tests the misconception that increasing the max tokens parameter can extend the input capacity, when in reality it only affects output length, not the fixed context window.

How to eliminate wrong answers

Option B is wrong because increasing the max tokens parameter does not expand the model's context window; it only controls the length of the generated response, not the input prompt limit. Option C is wrong because truncating the prompt arbitrarily removes potentially critical context, leading to incomplete or incorrect model understanding, as the model cannot infer missing information. Option D is wrong because splitting the input into multiple calls and merging results breaks the conversational context; the model has no memory across separate API calls, so the merged output would lack coherence and continuity.

627
MCQmedium

An organization wants to allow its data science group to use OCI Generative AI services but restrict access to a specific compartment. Which IAM policy statement correctly achieves this?

A.allow group data-scientists to use generative-ai-family in compartment GenAI-Prod
B.allow group data-scientists to manage generative-ai-family in tenancy
C.allow group data-scientists to read generative-ai-family in compartment GenAI-Prod
D.allow group data-scientists to use generative-ai-family where target.compartment.id = 'GenAI-Prod'
AnswerA

This grants the necessary permissions within the specified compartment only.

Why this answer

The 'allow group <group_name> to use generative-ai-family in compartment <compartment_name>' policy grants access to all GenAI resources within that compartment. The other options either miss the compartment scope or use incorrect verbs.

628
Multi-Selectmedium

Which TWO of the following are common applications of large language models in enterprise settings?

Select 2 answers
A.Summarizing lengthy legal documents.
B.Performing real-time signal processing for audio streams.
C.Generating boilerplate code from natural language descriptions.
D.Replacing relational databases for data storage.
E.Enhancing low-resolution images through super-resolution.
AnswersA, C

LLMs are effective for text summarization.

Why this answer

Large language models (LLMs) excel at abstractive summarization, which involves condensing lengthy legal documents into concise summaries while preserving key facts and legal reasoning. This is a common enterprise application for legal departments, as LLMs can process large volumes of text and generate coherent, context-aware summaries without requiring manual reading.

Exam trap

Oracle often tests the distinction between LLMs' text-based capabilities and specialized AI tasks (e.g., signal processing, image enhancement), leading candidates to mistakenly assume LLMs can handle any AI task due to their broad 'general intelligence' appearance.

629
MCQmedium

A team wants to use OCI Generative AI Agents to build a question-answering system over documents stored in OCI Object Storage. They have created a knowledge base and are ready to test. Which API should they use to interact with the agent for multi-turn conversations?

A.Chat API
B.Embedding API
C.Sessions API
D.Generate API
AnswerC

The Sessions API provides multi-turn conversation management for OCI GenAI Agents.

Why this answer

The Sessions API is used to manage conversational sessions with OCI GenAI Agents, allowing multi-turn interactions. The Chat API is for direct LLM chat without agent capabilities. The Generate API is for single-turn text generation, and the Embedding API is for vector creation.

630
MCQmedium

A developer is building a RAG pipeline using LangChain and Oracle AI Vector Search. After loading and splitting PDF documents, they generate embeddings and store them in Oracle Database using OracleVS. Which method should they call on the vector store object to create a retriever that uses similarity search with a configurable number of results?

A.as_retriever()
B.from_texts()
C.max_marginal_relevance_search()
D.similarity_search()
AnswerA

as_retriever() creates a retriever that uses the vector store's search method.

Why this answer

The as_retriever() method on a vector store returns a retriever object that can be configured with search_kwargs like 'k'.

631
MCQmedium

A team is evaluating two embedding models for a similarity search task. Model A has a higher BERTScore on a reference dataset. Model B has a lower perplexity on the same dataset. Which model is likely better for retrieval?

A.Both are equally good for retrieval
B.Model A, because BERTScore directly measures semantic similarity of embeddings
C.Model B, because lower perplexity indicates better language modeling, which improves retrieval
D.Neither metric is relevant for retrieval tasks
AnswerB

BERTScore is a semantic similarity metric that evaluates the quality of embeddings for capturing meaning, which is crucial for retrieval.

Why this answer

For retrieval tasks, embedding quality is best measured by semantic similarity metrics like BERTScore, which correlate with how well embeddings capture meaning. Perplexity measures language model fluency, not embedding quality.

632
MCQhard

A financial services company deployed a fine-tuned model using OCI Generative AI Service to generate investment advice based on quarterly reports. The model was trained on 10,000 labeled examples and achieved high accuracy in testing. However, after three months in production, the model's outputs have become inconsistent and sometimes recommend investments based on outdated market conditions. The team has received multiple complaints from users about inaccurate advice. The model is deployed on a dedicated AI cluster with auto-scaling disabled. The OCI audit logs show no configuration changes. The team suspects data drift and wants to mitigate it without incurring high costs. They have a pipeline that can collect new labeled data monthly, but it takes two weeks to process. What should the team do?

A.Set up a monthly retraining schedule using the new labeled data as soon as it is available, and use a champion/challenger deployment to validate the new model before full rollout.
B.Decrease the temperature parameter to 0.1 to make outputs more deterministic.
C.Revert to the base model (Cohere Command) and use few-shot prompting with recent reports.
D.Enable auto-scaling on the dedicated AI cluster to handle increased load.
AnswerA

Monthly retraining with fresh data mitigates drift, and champion/challenger ensures safe deployment.

Why this answer

It directly addresses data drift by establishing a regular retraining cycle with the new labeled data, which is the standard mitigation strategy for model degradation over time. The champion/challenger deployment pattern allows the team to validate the updated model's performance against the current production model before full rollout, ensuring no regression in accuracy. This approach balances cost efficiency (monthly retraining) with the operational constraint of a two-week data processing pipeline.

Exam trap

Oracle often tests the misconception that hyperparameter tuning (like temperature) or infrastructure scaling can fix data drift, when in reality only retraining with fresh, representative data addresses the root cause.

How to eliminate wrong answers

Option B is wrong because decreasing the temperature parameter only affects the randomness of token generation, not the underlying model's knowledge of market conditions; it cannot fix data drift or outdated recommendations. Option C is wrong because reverting to the base model and using few-shot prompting would lose all the domain-specific fine-tuning and would not scale to handle the volume of quarterly reports, nor does it address the root cause of data drift. Option D is wrong because enabling auto-scaling addresses throughput and latency issues, not model accuracy or data drift; the problem is inconsistent outputs due to outdated training data, not insufficient compute resources.

633
MCQeasy

Which model family is NOT currently available in OCI Generative AI service?

A.OpenAI GPT-4
B.Meta Llama
C.Anthropic Claude
D.Cohere
AnswerA

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

Why this answer

OpenAI GPT-4 is not available in OCI Generative AI service because OCI's native generative AI offerings are built on open-source and partner models like Meta Llama, Anthropic Claude, and Cohere, but not on OpenAI's proprietary models. OCI Generative AI service provides access to models hosted on OCI, and OpenAI GPT-4 is only accessible via Azure OpenAI Service or direct OpenAI API, not through OCI's managed service.

Exam trap

The trap here is that candidates may assume OCI Generative AI service includes all major commercial models like GPT-4, but OCI only supports models from partners that have signed direct agreements with Oracle, excluding OpenAI due to its exclusive partnership with Microsoft Azure.

How to eliminate wrong answers

Option B is wrong because Meta Llama is available in OCI Generative AI service as a supported open-source model family, including Llama 2 and Llama 3 variants, which can be deployed via OCI's managed endpoints. Option C is wrong because Anthropic Claude is available in OCI Generative AI service, specifically Claude 3 models, as part of OCI's partnership with Anthropic for enterprise AI workloads. Option D is wrong because Cohere models, including Command and Embed, are available in OCI Generative AI service as a native offering, with Cohere being a key partner for OCI's AI services.

634
MCQeasy

Which LangChain memory type is best suited for a long-running conversation where token consumption must be minimized, and the gist of previous exchanges should be retained?

A.ConversationBufferMemory
B.VectorStoreMemory
C.ConversationBufferWindowMemory
D.ConversationSummaryMemory
AnswerD

Summary memory periodically summarizes the conversation, significantly reducing token count while maintaining context.

Why this answer

ConversationSummaryMemory (D) is best suited for long-running conversations where token consumption must be minimized because it periodically summarizes the conversation history, retaining the gist of previous exchanges in a compressed form. This avoids storing every raw message (as in BufferMemory) while still preserving context, making it ideal for cost-sensitive or token-limited LLM deployments.

Exam trap

The 1Z0-1127 exam often tests the distinction between 'retaining the gist' (summarization) versus 'retaining recent messages' (window) or 'retaining everything' (buffer), and the trap here is that candidates confuse ConversationBufferWindowMemory (which drops old context) with a memory that preserves the essence of all prior exchanges.

How to eliminate wrong answers

Option A (ConversationBufferMemory) is wrong because it stores every message in full, leading to unbounded token consumption that grows linearly with conversation length, making it unsuitable for long-running chats. Option B (VectorStoreMemory) is wrong because it is designed for semantic search over large document stores, not for compact summarization of conversation history; it stores embeddings and retrieves chunks, which incurs high token and compute overhead for chat context. Option C (ConversationBufferWindowMemory) is wrong because it only keeps a fixed window of recent messages, discarding older context entirely, so the gist of early exchanges is lost, which fails the requirement to retain the gist of previous exchanges.

635
MCQeasy

An organization needs to extract text from PDF documents and convert them into embeddings for a RAG pipeline using OCI. Which OCI service is best suited for extracting text from PDFs?

A.OCI Language
B.OCI Speech
C.OCI Vision
D.OCI Document Understanding
AnswerD

This service provides OCR and text extraction from documents.

Why this answer

OCI Document Understanding is purpose-built for extracting text, tables, and key-value pairs from PDFs and images using pre-trained AI models. It directly supports the text extraction step required to prepare documents for embedding generation in a RAG pipeline, unlike the other services which focus on different modalities or lack native PDF text extraction capabilities.

Exam trap

The trap here is that candidates may confuse OCI Vision's OCR capability with full document text extraction, overlooking that Document Understanding is the dedicated service for extracting structured content from PDFs in a RAG workflow.

How to eliminate wrong answers

Option A is wrong because OCI Language is designed for natural language processing tasks like sentiment analysis and entity extraction, not for extracting raw text from PDF documents. Option B is wrong because OCI Speech is specialized for transcribing audio and speech into text, not for processing PDF files. Option C is wrong because OCI Vision focuses on image analysis (object detection, image classification) and can perform OCR on images, but it is not optimized for extracting structured text from multi-page PDFs, whereas Document Understanding provides a dedicated document parsing pipeline.

636
MCQeasy

Which component of the Transformer architecture allows each token to consider the relevance of every other token in the input sequence?

A.Multi-head attention
B.Self-attention
C.Feed-forward network
D.Positional encoding
AnswerB

Self-attention directly computes relevance weights between every pair of tokens in the input.

Why this answer

Self-attention computes attention scores between all pairs of tokens, enabling the model to capture dependencies across the entire sequence.

637
MCQhard

A company is deploying a RAG pipeline using OCI Data Science and OCI Generative AI. The pipeline uses a Cohere command model for generation and a Cohere embed model for retrieval. The team notices that the model occasionally produces hallucinated answers that are not supported by the retrieved context. Which strategy is MOST effective at reducing hallucinations?

A.Implement a faithfulness verification step that re-ranks retrieved passages based on alignment with the generated answer.
B.Increase the temperature parameter of the generation model.
C.Increase the number of retrieved chunks (k) to provide more context.
D.Use a larger generative model with more parameters.
AnswerA

Correct. Faithfulness verification re-ranks retrieved passages to align with the generated answer, directly reducing hallucinations by filtering unsupported claims.

Why this answer

Implementing a faithfulness verification step that re-ranks retrieved passages based on alignment with the generated answer directly reduces hallucinations by ensuring the generated output is supported by the retrieved context. Option B is wrong because increasing temperature increases randomness and may lead to more hallucinations. Option C is wrong because increasing the number of retrieved chunks (k) can introduce irrelevant or conflicting information, potentially increasing hallucinations.

Option D is wrong because using a larger generative model does not inherently improve faithfulness to the retrieved context and adds computational cost.

638
Multi-Selecthard

A data scientist is evaluating an LLM's performance on a summarization task. They observe that the model produces fluent summaries but often misses key information. Which TWO metrics would best capture this issue? (Select TWO.)

Select 2 answers
A.BLEU score
B.Perplexity
C.Human evaluation with a rubric for completeness
D.ROUGE-L
E.BERTScore
AnswersC, D

Human judgment can directly assess whether key information is included.

Why this answer

ROUGE-L measures recall of the longest common subsequence, capturing information coverage. Human evaluation can assess completeness. BLEU emphasizes precision and fluency.

BERTScore measures semantic similarity but not directly the presence of key points. Perplexity measures model confidence, not recall.

639
MCQhard

An architect is designing a multi-tenant application using OCI Generative AI. Each tenant has custom instructions and data. To minimize cost while maintaining isolation, which deployment approach is recommended?

A.Dedicated fine-tuned endpoint per tenant.
B.Shared base model with per-tenant system prompts and retrieval.
C.On-premises deployment of open-source models.
D.Single large fine-tuned model with conditional logic.
AnswerB

This approach uses a shared model with tenant-specific prompts and RAG, balancing cost and isolation.

Why this answer

It leverages a shared base model with per-tenant system prompts and retrieval-augmented generation (RAG) to isolate custom instructions and data without the cost of dedicated endpoints. This approach minimizes compute overhead by reusing a single model instance while maintaining logical isolation through prompt engineering and vector-based retrieval, aligning with OCI's pay-as-you-go pricing model.

Exam trap

The trap here is that candidates often assume fine-tuning is necessary for customization, overlooking that system prompts and retrieval can achieve equivalent isolation at a fraction of the cost, which the Oracle OCI GenAI exam tests by contrasting dedicated endpoints against shared-model strategies.

How to eliminate wrong answers

Option A is wrong because dedicating a fine-tuned endpoint per tenant multiplies infrastructure costs linearly with each tenant, defeating the cost-minimization goal. Option C is wrong because on-premises deployment of open-source models incurs fixed hardware and operational costs, lacks OCI's managed scaling benefits, and still requires per-tenant isolation mechanisms. Option D is wrong because a single large fine-tuned model with conditional logic introduces coupling between tenants, risking data leakage and making updates or rollbacks complex without true isolation.

640
MCQmedium

A developer is using LangChain's ConversationBufferMemory to store chat history. They notice that after many turns, the prompt becomes too large and exceeds the model's context window. What is the BEST memory type to use for this scenario?

A.ConversationEntityMemory
B.ConversationBufferMemory with a large max_token_limit
C.ConversationSummaryMemory
D.ConversationStringBufferMemory
AnswerC

Summary memory compresses history into summaries, keeping the prompt small.

Why this answer

ConversationSummaryMemory periodically summarizes the conversation, keeping the prompt size manageable. It retains the gist of the conversation while reducing token usage.

641
Multi-Selectmedium

A data scientist is using the OCI Generative AI Embeddings API to generate vectors for a classification task. Which TWO input types are appropriate for this use case?

Select 2 answers
A.search_query
B.clustering
C.text
D.classification
E.search_document
AnswersB, D

Optimizes embeddings for clustering tasks, which can be used for classification.

Why this answer

The Embeddings API supports input types like 'classification' and 'clustering' which optimize embeddings for those tasks. 'search_document' and 'search_query' are for search. 'text' is not a valid input type.

642
MCQhard

A developer notices that an LLM-based question-answering system sometimes provides answers that are correct but from an outdated version of the knowledge base. The system uses RAG with a vector database updated daily. What is the MOST likely root cause?

A.The retrieval top-k parameter is set too high
B.The chunking strategy splits documents into too-small pieces
C.The embedding model was not re-run on the updated documents, so the index contains old embeddings
D.The LLM's training data has a knowledge cutoff date
AnswerC

If the vector database is updated but embeddings are not recomputed, the index still matches old chunks, causing retrieval of outdated information.

Why this answer

The core issue is that the vector database index still contains old embeddings. Even though the knowledge base documents are updated daily, if the embedding model is not re-run on those updated documents, the vector representations in the index remain stale. When the RAG system retrieves, it fetches these outdated embeddings, leading to correct but outdated answers.

This is a classic index synchronization problem in RAG pipelines.

Exam trap

Oracle OCI GenAI exams often test the distinction between retrieval-side issues (index staleness) and model-side issues (knowledge cutoff), so candidates mistakenly pick D because they confuse the LLM's training cutoff with the freshness of the vector database index.

How to eliminate wrong answers

Option A is wrong because a high top-k parameter would retrieve more documents, potentially including both old and new versions, but it does not cause the system to systematically favor outdated content; it would increase recall, not introduce staleness. Option B is wrong because chunking into too-small pieces might reduce context or cause fragmentation, but it does not inherently cause the system to retrieve outdated information; the chunks themselves would still reflect the current document content if embeddings are updated. Option D is wrong because the LLM's training data cutoff date affects the model's parametric knowledge, not the retrieval from the vector database; the RAG system is designed to overcome this by retrieving fresh documents, so the cutoff date is irrelevant to the index staleness problem.

643
Multi-Selectmedium

A company is building a chatbot that must maintain a professional tone and avoid discussing off-topic subjects. Which TWO prompt engineering approaches should they combine to enforce these requirements?

Select 2 answers
A.Use a few-shot prompt with examples of off-topic conversations to teach the model what to avoid
B.Use a system prompt that defines the chatbot's role (e.g., 'You are a professional customer support agent') and includes constraints (e.g., 'Do not discuss topics outside of product support.')
C.Include a template pattern in the system prompt that specifies the response format (e.g., 'Greeting, Answer, Closing')
D.Set frequency penalty to 2.0 to reduce repetition of any words
E.Set temperature to 1.0 to ensure creative responses
AnswersB, C

This directly sets the tone and limits the scope.

Why this answer

A system prompt with role and constraints sets the overall behavior, and a template pattern for responses provides a consistent structure. The other options are less suitable.

644
MCQmedium

A healthcare startup is building an AI assistant to help doctors draft clinical notes from patient-physician conversations. They have a large language model that is fine-tuned on medical data. During testing, they notice the model occasionally generates plausible-sounding but incorrect medical recommendations. The startup wants to deploy the assistant to assist doctors, not replace them. They have the following options: (A) Deploy the model as-is and rely on doctors to catch errors, (B) Add a disclaimer that the model may make mistakes, (C) Implement a fact-checking pipeline that cross-references outputs with a trusted medical knowledge base before presenting to doctors, (D) Reduce the model's temperature to 0 to ensure deterministic outputs. Which option best balances safety and utility?

A.Implement a fact-checking pipeline that cross-references outputs with a trusted medical knowledge base.
B.Add a disclaimer that the model may make mistakes.
C.Deploy the model as-is and rely on doctors to catch errors.
D.Reduce the model's temperature to 0 to ensure deterministic outputs.
AnswerA

Fact-checking reduces hallucinations and ensures accuracy.

Why this answer

Implementing a fact-checking pipeline that cross-references outputs with a trusted medical knowledge base directly mitigates the risk of hallucinated medical recommendations while preserving the assistant's utility. This approach leverages retrieval-augmented generation (RAG) principles to ground the model's outputs in verified facts, ensuring safety without sacrificing the flexibility needed for drafting clinical notes.

Exam trap

The Oracle OCI Generative AI certification tests understanding that temperature controls output randomness and not factual accuracy; reducing temperature to 0 does not prevent hallucination.

How to eliminate wrong answers

Option B is wrong because a disclaimer does not prevent the model from generating incorrect medical advice; it merely shifts liability and does not address the underlying safety risk. Option C is wrong because deploying the model as-is and relying on doctors to catch errors places an unrealistic cognitive burden on clinicians, increasing the chance of oversight and patient harm. Option D is wrong because reducing temperature to 0 makes outputs deterministic but does not guarantee correctness; the model may still produce plausible-sounding but false recommendations from its training data, and deterministic outputs can actually amplify systematic errors.

645
MCQmedium

An administrator runs the above CLI command to check the status of a dedicated AI cluster. The cluster is ACTIVE with capacity 10. However, a user reports that inference requests to this cluster are failing with a '429 Too Many Requests' error. What is the most likely cause?

A.The cluster is hitting the maximum inference requests per minute limit
B.The cluster does not have enough nodes to handle the load
C.The user is not in the same compartment as the cluster
D.The cluster is not in ACTIVE state
AnswerA

429 indicates rate limit; the cluster has a requests-per-minute limit separate from node count.

Why this answer

The '429 Too Many Requests' error is an HTTP status code indicating rate limiting has been exceeded. In OCI Generative AI, dedicated AI clusters have a configurable 'maximum inference requests per minute' limit. Even if the cluster is ACTIVE and has capacity (e.g., 10 nodes), hitting this per-minute request cap will cause the API gateway to reject further requests with a 429 error.

The administrator must increase the rate limit or implement client-side throttling to resolve this.

Exam trap

The trap here is that candidates confuse capacity (number of nodes) with rate limits, assuming a cluster with available compute resources cannot produce a 429 error, when in fact the 429 is tied to a separate API-level throttling mechanism.

How to eliminate wrong answers

Option B is wrong because a cluster with insufficient nodes would typically result in higher latency, timeouts, or '503 Service Unavailable' errors, not a '429 Too Many Requests' which is specifically a rate-limiting response. Option C is wrong because compartment mismatches cause '404 Not Found' or '403 Forbidden' errors, not a 429 status code. Option D is wrong because the cluster is explicitly stated as ACTIVE; an inactive cluster would return a '503 Service Unavailable' or '400 Bad Request' error, not a 429.

646
MCQmedium

A developer is building a code generation assistant and needs to ensure the LLM follows a specific output format (e.g., JSON). Which approach is MOST effective for achieving format adherence without retraining?

A.Lower the temperature to 0 to reduce output variability
B.Provide a few-shot example of the desired JSON format in the prompt
C.Fine-tune the model on a dataset of JSON code examples
D.Increase the context window to include more code context
AnswerB

In-context learning (few-shot) guides the model to mimic the provided format without retraining.

Why this answer

Few-shot prompting—providing explicit examples of the desired JSON format in the prompt—directly guides the LLM's output structure without requiring retraining. This technique leverages in-context learning, where the model infers the required schema from the examples, making it the most effective and efficient method for format adherence.

Exam trap

A common misconception in the Oracle OCI GenAI exam is that lowering temperature or increasing context window can enforce output format, but these parameters only affect randomness or input length, not structural adherence.

How to eliminate wrong answers

Option A is wrong because lowering temperature to 0 reduces randomness but does not enforce a specific output format; the model may still produce valid JSON with varying structures or deviate entirely. Option C is wrong because fine-tuning requires retraining the model on a dataset, which is costly, time-consuming, and contradicts the constraint of 'without retraining.' Option D is wrong because increasing the context window provides more input context but does not constrain the output format; the model may still generate malformed or non-JSON responses.

647
Multi-Selecthard

Which THREE techniques are commonly used to improve the quality of text generation?

Select 3 answers
A.Temperature scaling
B.Top-k sampling
C.Greedy decoding
D.Random sampling
E.Beam search
AnswersA, B, E

Temperature scaling smooths token probabilities and can improve the quality-diversity trade-off.

Why this answer

Temperature scaling is correct because it controls the randomness of token probability distributions by dividing logits before softmax; lower temperatures (e.g., 0.1) make the model more deterministic, while higher temperatures (e.g., 1.5) increase diversity. This directly influences the quality of generated text by balancing coherence and creativity.

Exam trap

Oracle often tests the misconception that greedy decoding or random sampling are valid quality-improvement techniques, when in fact they either cause repetition (greedy) or incoherence (random) without the controlled stochasticity of temperature, top-k, or the global optimization of beam search.

648
MCQhard

An administrator wants to grant a group of data scientists permission to use OCI Generative AI resources in a specific compartment, but prevent them from creating Dedicated AI Clusters. Which IAM policy statement achieves this?

A.Allow group data-scientists to read generative-ai-family in compartment genai-dev
B.Allow group data-scientists to manage generative-ai-family in compartment genai-dev
C.Allow group data-scientists to use generative-ai-family in compartment genai-dev where request.operation != 'CreateDedicatedAiCluster'
D.Allow group data-scientists to use generative-ai-models in compartment genai-dev
AnswerC

This grants use of most GenAI resources but excludes creating dedicated clusters via a condition.

Why this answer

It uses the 'use' verb to grant the data scientists access to OCI Generative AI resources while adding a condition with 'request.operation != 'CreateDedicatedAiCluster'' to explicitly deny the ability to create Dedicated AI Clusters. In OCI IAM, the 'use' verb includes read and update capabilities but not create or delete, and the condition further restricts the specific create operation, aligning with the requirement to prevent cluster creation.

Exam trap

The trap here is that candidates often confuse the 'use' verb with 'manage' or 'read', or overlook the necessity of a condition to block a specific operation, assuming a broader verb like 'manage' can be restricted by a condition when it actually grants all permissions including create.

How to eliminate wrong answers

Option A is wrong because the 'read' verb only allows viewing resources, not using them (e.g., invoking models), so data scientists cannot perform inference or other actions. Option B is wrong because the 'manage' verb grants full control, including creating Dedicated AI Clusters, which violates the requirement to prevent that action. Option D is wrong because 'generative-ai-models' is a subset of 'generative-ai-family' and does not cover all necessary resources like endpoints or deployments, and it lacks the condition to block Dedicated AI Cluster creation.

649
MCQhard

A company uses OCI Generative AI to generate legal document summaries. They have a custom model deployed on a dedicated AI cluster. They want to ensure that the model is not used by unauthorized users. They also need to log all inference requests for auditing. Which combination of OCI services should they use?

A.OCI Vault for encryption and OCI Audit for logging.
B.OCI Identity and Access Management (IAM) policies and OCI Logging.
C.OCI Data Safe and OCI Monitoring.
D.OCI API Gateway with authentication and OCI Audit.
AnswerB

IAM controls access, Logging records inference requests for audit.

Why this answer

OCI IAM policies are the primary mechanism for controlling access to OCI resources, including custom models on dedicated AI clusters, by defining which users or groups can invoke the model. OCI Logging captures detailed logs of all inference requests, including metadata such as timestamps, source IPs, and request payloads, which satisfies the auditing requirement. Together, they provide both authorization enforcement and audit trail without additional services.

Exam trap

The trap here is that candidates often confuse OCI Audit (which logs only management-plane operations) with OCI Logging (which logs data-plane operations like inference requests), leading them to pick Option A or D, while also overlooking that IAM policies are the native access control mechanism for Generative AI models on dedicated clusters.

How to eliminate wrong answers

Option A is wrong because OCI Vault manages encryption keys and secrets, not access control or logging; it does not prevent unauthorized model usage. OCI Audit records only management-plane API calls (e.g., creating or deleting resources), not data-plane inference requests, so it cannot log individual inference calls. Option C is wrong because OCI Data Safe is a database security service for protecting sensitive data in databases, not for controlling access to or logging inference requests for a Generative AI model.

OCI Monitoring collects metrics and alarms, not detailed request logs for auditing. Option D is wrong because OCI API Gateway can provide authentication and request logging, but it is an unnecessary intermediary for a model deployed on a dedicated AI cluster; the question specifies the model is already deployed on a dedicated cluster, and IAM policies directly control access to the model endpoint without requiring an API Gateway. OCI Audit, as noted, does not log data-plane inference requests.

650
MCQeasy

What is the primary benefit of using a Dedicated AI Cluster for inference in OCI Generative AI?

A.Ability to use any LLM model for free
B.Higher throughput and lower latency due to dedicated compute resources
C.Automatic model fine-tuning on the cluster
D.No need to create endpoints
AnswerB

Dedicated clusters offer consistent, low-latency performance without competition for resources.

Why this answer

A Dedicated AI Cluster provides exclusive, low-latency inference with reserved capacity, unlike shared infrastructure where resources are contended.

651
MCQmedium

An organization wants to combine keyword search and vector search to improve retrieval accuracy in their RAG pipeline. Which OCI service provides built-in hybrid search capabilities?

A.OCI Search with AI
B.OCI OpenSearch
C.Autonomous Database with AI Vector Search
D.OCI Logging
AnswerB

OpenSearch integrates BM25 and vector search.

Why this answer

OCI OpenSearch is the correct answer because it natively supports hybrid search, which combines keyword-based (BM25) and vector-based (k-NN) queries in a single search request. This allows the RAG pipeline to retrieve documents that match both exact terms and semantic meaning, improving overall accuracy without requiring separate search systems.

Exam trap

Oracle often tests the misconception that any service with 'AI' or 'Vector' in its name supports hybrid search out of the box, but candidates must recognize that OCI OpenSearch is the only service with a built-in hybrid search pipeline that combines keyword and vector search natively.

How to eliminate wrong answers

Option A is wrong because OCI Search with AI is a managed search service that primarily focuses on AI-powered search over enterprise content, but it does not provide native hybrid search capabilities combining keyword and vector search in a single query. Option C is wrong because Autonomous Database with AI Vector Search supports vector similarity search and SQL-based keyword search, but it requires manual orchestration to combine them into a hybrid search pipeline, lacking built-in hybrid search. Option D is wrong because OCI Logging is a service for collecting and analyzing log data, not a search engine for RAG pipelines, and it has no vector search or hybrid search capabilities.

652
MCQmedium

A security administrator needs to grant a data science team access to use OCI Generative AI resources (e.g., run inference, create fine-tuning jobs) but only within a specific compartment. What is the correct IAM policy statement?

A.Allow group DataScientists to manage generative-ai-family in compartment Production
B.Allow group DataScientists to manage llm-models in compartment Production
C.Allow group DataScientists to use all-resources in tenancy
D.Allow group DataScientists to read ai-services in compartment Production
AnswerA

This policy grants the group permission to use (read, use, manage) all GenAI resources in the specified compartment.

Why this answer

The 'allow group to use generative-ai-family in compartment' is the standard OCI IAM policy for granting access to all GenAI resources in a compartment. The other options have incorrect resource types or conditions.

653
MCQmedium

A data scientist is using OCI Generative AI to generate synthetic data for training. They observe that the model's outputs lack diversity and often repeat the same phrases. Which combination of parameter adjustments would BEST increase output diversity?

A.Set frequency penalty to 0.0 and presence penalty to 0.0
B.Increase temperature to 0.9 and increase top-p to 0.9
C.Decrease temperature to 0.3 and increase top-p to 0.9
D.Increase temperature to 0.9 and decrease top-p to 0.5
AnswerB

Both higher temperature and higher top-p increase randomness and token variety, boosting diversity.

Why this answer

Increasing temperature and top-p both increase randomness and diversity. Temperature controls the randomness of token selection, while top-p (nucleus sampling) allows a broader set of probable tokens.

654
Multi-Selectmedium

A company wants to use OCI Generative AI to build a multilingual customer support chatbot. They need to understand customer queries in multiple languages and generate responses in the same language. Which TWO actions should they take? (Choose two.)

Select 2 answers
A.Use the embed-english-v3.0 model for embedding queries
B.Fine-tune Meta Llama 3 on multilingual data
C.Select Cohere Command R as the base model for chat
D.Use the embed-multilingual-v3.0 model for embedding queries
E.Use the Summarisation API for each language
AnswersC, D

Command R supports multilingual conversations without additional fine-tuning.

Why this answer

Cohere Command R (or R+) supports multilingual input and output natively, so fine-tuning is unnecessary. Using the embed-multilingual-v3.0 model for embedding customer queries enables multilingual semantic search if RAG is used. Embed-english-v3.0 only supports English, and Llama 3 is primarily English-focused.

655
MCQhard

A developer is using the OCI Generative AI Generate API (not Chat API) to create a single-turn text completion. They need to include a system-level instruction that guides the model's behavior for that request. Which parameter should they use?

A.'temperature' parameter
B.'preamble_override' parameter
C.'system' parameter
D.'max_tokens' parameter
AnswerB

In the Generate API, 'preamble_override' allows you to set a preamble that acts as a system instruction for the completion.

Why this answer

The Generate API uses 'preamble_override' to set a system instruction for the completion. The 'system' parameter is for the Chat API. 'max_tokens' and 'temperature' are not system instructions.

656
MCQmedium

A developer is using OCI Generative AI Service to generate code snippets. They want to ensure the output is as deterministic as possible for testing. Which combination of parameters should they use?

A.Temperature = 0, Top-p = 1
B.Temperature = 0.5, Top-p = 0.5
C.Temperature = 0, Top-p = 0
D.Temperature = 1, Top-p = 1
AnswerA

Temperature=0 makes output deterministic; top-p=1 disables nucleus sampling.

Why this answer

Setting Temperature=0 makes the model deterministic by always selecting the highest-probability token, while Top-p=1 includes all tokens in the sampling pool, ensuring no additional randomness is introduced. This combination eliminates stochastic variation, making outputs repeatable for testing.

Exam trap

The trap here is that candidates mistakenly think Top-p=0 (like Temperature=0) would also enforce determinism, but Top-p=0 actually removes all tokens, leading to generation failure rather than deterministic output.

How to eliminate wrong answers

Option B is wrong because Temperature=0.5 introduces moderate randomness and Top-p=0.5 restricts the sampling pool, both of which reduce determinism. Option C is wrong because Top-p=0 would exclude all tokens, causing the model to fail to generate any output (or produce an error). Option D is wrong because Temperature=1 maximizes randomness and Top-p=1 includes all tokens, resulting in highly variable outputs.

657
MCQmedium

A developer wants to compare two sentences for semantic similarity using embeddings. Which distance or similarity metric is most commonly used for dense vector representations?

A.Cosine similarity
B.Jaccard similarity
C.Manhattan distance
D.Euclidean distance
AnswerA

Cosine similarity is the standard metric for comparing embedding vectors because it focuses on orientation, not magnitude.

Why this answer

Cosine similarity measures the cosine of the angle between two vectors, is commonly used for comparing embedding vectors, and ranges from -1 to 1, where 1 indicates identical direction.

658
MCQmedium

A developer is using the OCI Generative AI Playground to test a Cohere Command R model. They want to reduce repetitiveness in the generated responses. Which parameter should they increase?

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

A higher frequency penalty discourages the model from repeating the same tokens.

Why this answer

Frequency penalty penalizes tokens that have already appeared in the text, reducing repetition. Temperature increases randomness, top_p changes nucleus sampling, and max tokens controls length.

659
MCQmedium

An organization is concerned about the safety of generated content. Which OCI feature allows them to define custom policies to block inappropriate outputs?

A.OCI IAM policies
B.Content filtering and safety controls in Generative AI
C.OCI Audit logs
D.OCI Vault
AnswerB

The Generative AI service includes configurable safety filters that can block inappropriate content based on defined categories and thresholds.

Why this answer

OCI Generative AI includes built-in content filtering and safety controls that allow organizations to define custom policies to block inappropriate or harmful outputs. These controls operate at the model inference layer, enabling fine-grained filtering based on categories such as toxicity, hate speech, or personally identifiable information (PII). This directly addresses the concern about generated content safety.

Exam trap

The trap here is that candidates often confuse IAM policies (access control) with content safety policies, or assume that logging (Audit) or encryption (Vault) can prevent inappropriate outputs, when in fact only the Generative AI service's built-in content filtering provides that capability.

How to eliminate wrong answers

Option A is wrong because OCI IAM policies govern access control and permissions for OCI resources, not the filtering or safety of generated content from AI models. Option C is wrong because OCI Audit logs capture API calls and operational events for compliance and monitoring, but they do not provide any mechanism to block or filter inappropriate outputs in real time. Option D is wrong because OCI Vault is a key management service for storing and managing secrets, encryption keys, and certificates; it has no role in content safety or output filtering for generative AI.

660
MCQmedium

A developer is fine-tuning a Cohere Command R model using OCI Data Science and the T-Few technique. They have prepared a dataset. What is the required format for the training data?

A.A CSV file with columns 'input' and 'output'
B.A Parquet file with 'text' and 'label' columns
C.A plain text file with one conversation per line
D.A JSONL file where each line contains a 'prompt' and a 'completion' field
AnswerD

The training dataset must be in JSONL format with prompt/completion pairs.

Why this answer

OCI Generative AI fine-tuning expects a JSONL file where each line is a JSON object containing a prompt and completion (or response) field. This format pairs input with expected output for supervised fine-tuning.

661
MCQhard

A financial institution uses an LLM for generating investment advice. They are concerned about hallucinations. Which method is most effective?

A.Fine-tune on general financial data.
B.Use RAG with a verified corpus of regulations and reports.
C.Increase the temperature to get more creative responses.
D.Use a larger model to improve accuracy.
AnswerB

Correct: Grounding in trusted data reduces hallucinations.

Why this answer

Retrieval-Augmented Generation (RAG) grounds the LLM's output in a verified, external knowledge base (e.g., regulations and reports). By retrieving relevant documents at inference time, RAG reduces the model's reliance on its parametric memory, directly mitigating hallucinations in high-stakes domains like financial advice.

Exam trap

Oracle often tests the misconception that simply fine-tuning or scaling a model can fix hallucinations, when in fact grounding via retrieval (RAG) is the most effective technique for factual accuracy in domain-specific applications.

How to eliminate wrong answers

Option A is wrong because fine-tuning on general financial data does not provide a mechanism to verify or update the model's knowledge at inference time; it only adjusts weights on static data, leaving the model prone to hallucinating outdated or fabricated details. Option C is wrong because increasing temperature makes the output more random and creative, which amplifies the risk of hallucinations rather than reducing them. Option D is wrong because using a larger model does not inherently solve hallucination; larger models can still confidently generate false information, and without a retrieval or grounding mechanism, they remain susceptible to fabricating details.

662
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.Use a larger foundation model with a longer context window and paste all documents into each prompt
D.Fine-tune a base LLM on the policy documents monthly
AnswerB

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

Why this answer

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

663
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.Train a custom model from scratch on the policy documents each month
D.Fine-tune a base LLM on the policy documents monthly
AnswerA

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

Why this answer

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

664
MCQmedium

A practitioner is developing a legal document summarization system and needs to reduce hallucinations. Which prompting technique is most effective for improving factual accuracy by exploring multiple reasoning paths?

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

Self-consistency samples multiple chain-of-thought outputs and picks the most consistent answer, improving factual accuracy.

Why this answer

Self-consistency generates several reasoning chains and aggregates the results, increasing reliability and reducing hallucinations in tasks requiring factual accuracy.

665
Multi-Selecteasy

Which TWO OCI Generative AI features are available in the Playground for testing models?

Select 2 answers
A.Adjusting parameters like temperature and max tokens
B.Setting system prompts and preamble overrides
C.Provisioning a dedicated AI cluster
D.Viewing model training metrics
E.Submitting a fine-tuning job
AnswersA, B

The Playground provides sliders and fields for common generation parameters.

Why this answer

The Playground allows interactive testing with parameter adjustment and system prompts. It does not allow fine-tuning or creating dedicated clusters.

666
MCQhard

A company has deployed a generative AI model on OCI to generate product descriptions. After a recent update, the model started producing outputs with repetitive phrases and poor coherence. The inference endpoint is configured with default parameters. Which single parameter adjustment is most likely to improve output quality?

A.Increase the max-tokens parameter to 512
B.Increase the frequency penalty parameter to 0.5
C.Increase the temperature parameter to 1.5
D.Decrease the top-p parameter to 0.8
AnswerB

Frequency penalty reduces repeated tokens, directly improving repetitive output.

Why this answer

Increasing the frequency penalty reduces the likelihood of the model repeating the same phrases, directly addressing the repetitive outputs. The frequency penalty subtracts a proportional penalty from tokens that have already appeared, discouraging repetition and improving coherence. Default parameters often have no frequency penalty (0.0), so a small positive value like 0.5 can significantly enhance output diversity.

Exam trap

The trap here is that candidates often confuse frequency penalty with temperature or top-p, assuming that increasing randomness (temperature) or narrowing token selection (top-p) will fix repetition, when in fact those parameters address different aspects of output diversity and coherence.

How to eliminate wrong answers

Option A is wrong because increasing max-tokens only extends the maximum length of the output, not the quality or repetition; it could even worsen the problem by allowing more repetitive text. Option C is wrong because increasing temperature to 1.5 makes the model more random and less focused, which typically reduces coherence and can increase nonsensical outputs. Option D is wrong because decreasing top-p to 0.8 narrows the sampling pool to the top 80% of probability mass, which may reduce diversity and potentially increase repetition rather than fix it.

667
MCQeasy

Which fine-tuning technique does OCI Generative AI use to efficiently update model parameters without modifying the entire model, enabling faster training on limited data?

A.T-Few
B.Full fine-tuning
C.Prefix tuning
D.LoRA
AnswerA

OCI GenAI uses the T-Few fine-tuning technique.

Why this answer

T-Few is a parameter-efficient fine-tuning technique that updates only a small fraction of model parameters.

668
MCQmedium

A company notices that some inference requests to their deployed model on OCI Generative AI take longer than acceptable. They want to reduce per-request latency. What should they do?

A.Reduce the maximum number of tokens generated
B.Enable request batching
C.Use a larger model to improve accuracy
D.Increase the number of replicas in the deployment
AnswerA

Lowering max tokens reduces the amount of computation per request, directly decreasing latency.

Why this answer

Reducing the maximum number of tokens generated directly decreases the amount of computation required per inference request because the model stops generating output earlier. Since latency is proportional to the number of output tokens produced, this is the most effective single change to reduce per-request response time in OCI Generative AI deployments.

Exam trap

Oracle often tests the distinction between latency (per-request speed) and throughput (requests per second), causing candidates to confuse batching or scaling replicas (which improve throughput) with reducing individual request latency.

How to eliminate wrong answers

Option B is wrong because request batching aggregates multiple inference requests into a single batch, which improves throughput (requests per second) but does not reduce the latency of any individual request; in fact, it can increase per-request latency due to queuing and waiting for batch completion. Option C is wrong because using a larger model increases the number of parameters and computational steps per token, which typically increases latency, not reduces it. Option D is wrong because increasing the number of replicas improves scalability and concurrency (handling more requests in parallel) but does not reduce the latency of a single inference request; each request still processes through the same model with the same token generation steps.

669
MCQhard

Refer to the exhibit. A user runs the command shown and receives the error: 'ServiceError: NotAuthorizedOrNotFound'. What is the MOST likely cause?

A.The CLI is not configured with OCI credentials
B.The user does not have the 'inspect' permission on the model
C.The model ID is incorrectly formatted
D.The model is in a different region than iad
AnswerB

NotAuthorizedOrNotFound is common when permissions are insufficient.

Why this answer

The error 'NotAuthorizedOrNotFound' in OCI is a generic error that can occur either when the resource does not exist or the user lacks the necessary permission to access it. Given that the model ID and region are likely correct (otherwise a different error like 'InvalidParameter' would appear), the most probable cause is that the user does not have the 'inspect' permission on the model. This permission is required to view model details.

Option A would result in a credential configuration error, not this generic error. Option C would produce an invalid model ID error. Option D is less likely because if the model were in a different region, the error would typically indicate a region mismatch rather than a generic authorization error.

Therefore, option B is correct.

Exam trap

The 'NotAuthorizedOrNotFound' error is deliberately ambiguous; do not assume it always means unauthorized. However, in this context, permission issues are the most probable cause.

670
MCQeasy

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

A.To reduce the number of parameters in the model
B.To convert tokens into fixed-length vectors
C.To ensure the model is autoregressive
D.To process tokens in parallel while modeling long-range dependencies
AnswerD

Self-attention enables parallelization by computing attention scores between all token pairs simultaneously, and its receptive field covers the entire sequence.

Why this answer

The self-attention mechanism allows each token in the input sequence to attend to every other token, computing a weighted sum of their representations. This enables the model to capture long-range dependencies directly without the sequential processing constraints of RNNs, and because the attention scores for all tokens can be computed simultaneously, the mechanism supports parallel processing of the entire sequence.

Exam trap

The 1Z0-1127 exam often tests the distinction between the self-attention mechanism's core function (parallel processing and long-range dependencies) and other transformer components like embeddings or causal masking, leading candidates to confuse the purpose of self-attention with the overall autoregressive nature of the decoder.

How to eliminate wrong answers

Option A is wrong because self-attention actually increases the number of parameters (through query, key, and value projection matrices) rather than reducing them. Option B is wrong because converting tokens into fixed-length vectors is the role of the embedding layer, not the self-attention mechanism. Option C is wrong because self-attention itself is not autoregressive; autoregressive behavior in transformers is enforced by causal masking (masking future tokens) during decoding, not by the self-attention mechanism itself.

671
Multi-Selecteasy

A developer is comparing different foundation models for a text completion API on OCI. Which TWO of the following are model families available through OCI Generative AI service? (Choose two.)

Select 2 answers
A.OpenAI GPT
B.BERT
C.Meta Llama
D.Cohere Command/Embed
E.Mistral
AnswersC, D

Meta Llama models are available on OCI.

Why this answer

OCI Generative AI offers models including Cohere Command/Embed and Meta Llama. Mistral and GPT are not mentioned in the context of OCI's available models, and BERT is an encoder-only model not typically offered as a generation model.

672
MCQmedium

A company is deploying a generative AI service on OCI using the OCI Data Science service with a large language model (LLM) in a VCN. The model inference endpoint must be accessible only from a private subnet within the same VCN. Which networking component should be configured to enable this?

A.NAT Gateway
B.Dynamic Routing Gateway (DRG)
C.Internet Gateway
D.Service Gateway
AnswerD

Service gateway enables private subnet access to OCI services like Data Science.

Why this answer

A Service Gateway enables private subnet resources to access OCI services (including the OCI Data Science model deployment endpoint) without traversing the internet. Since the inference endpoint must be accessible only from a private subnet within the same VCN, the Service Gateway provides the necessary private connectivity by routing traffic over the OCI network fabric, not through a NAT or internet gateway.

Exam trap

The trap here is that candidates often confuse a Service Gateway with a NAT Gateway, assuming both provide outbound-only access, but the Service Gateway is specifically designed for private access to OCI services, not general internet egress.

How to eliminate wrong answers

Option A is wrong because a NAT Gateway allows outbound internet access from a private subnet but does not provide private connectivity to OCI services; it would expose traffic to the internet. Option B is wrong because a Dynamic Routing Gateway (DRG) is used for connecting a VCN to on-premises networks or other VCNs via VPN or FastConnect, not for accessing OCI services privately within the same VCN. Option C is wrong because an Internet Gateway provides bidirectional internet access, which would make the endpoint publicly accessible, violating the requirement of private subnet-only access.

673
MCQhard

A data engineer wants to migrate a large corpus of PDFs to OCI for use with GenAI. Which storage and preprocessing approach is most efficient for RAG?

A.Store PDFs in OCI Object Storage, then use OCI AI Document Understanding to extract text and create embeddings.
B.Convert PDFs to text locally, upload to OCI Database, use SQL queries to retrieve.
C.Use OCI Data Flow to process in batch and store in NoSQL.
D.Store PDFs in OCI File Storage, mount to compute, run offline extraction.
AnswerA

This leverages cloud-native services for scalable extraction and embedding, ideal for RAG.

Why this answer

OCI Object Storage is optimized for large-scale, unstructured data like PDFs, and OCI AI Document Understanding provides a managed service to extract text from PDFs, which can then be directly fed into embedding pipelines for RAG. This eliminates the need for manual preprocessing or local compute, ensuring scalability and integration with GenAI services.

Exam trap

Oracle often tests the misconception that any storage service (like File Storage or Database) can be used for RAG, but the key is that Object Storage combined with a managed AI extraction service is the most efficient for unstructured data at scale, avoiding local processing overhead.

How to eliminate wrong answers

Option B is wrong because converting PDFs to text locally introduces a bottleneck and inefficiency for large corpora, and storing text in OCI Database with SQL queries is not designed for vector search or RAG workflows, lacking native embedding support. Option C is wrong because OCI Data Flow (Apache Spark) is for batch processing but storing in NoSQL does not provide the vector indexing or retrieval capabilities required for RAG, and it adds unnecessary complexity. Option D is wrong because OCI File Storage is a shared file system for compute instances, not optimized for high-throughput object access, and running offline extraction on a mounted compute instance is manual, lacks scalability, and does not leverage managed AI services.

674
MCQmedium

A data scientist wants to improve the accuracy of a summarization model on medical texts. Which OCI service feature is most suitable?

A.OCI Data Flow
B.OCI Language service
C.OCI Generative AI fine-tuning
D.OCI Anomaly Detection
AnswerC

Fine-tuning adapts a model to domain-specific data, improving accuracy.

Why this answer

C is correct because OCI Generative AI fine-tuning allows a data scientist to adapt a pre-trained large language model (LLM) specifically for medical text summarization by training it on domain-specific data. This improves accuracy by aligning the model's outputs with the terminology, context, and nuances of medical literature, which generic models may not capture well.

Exam trap

The trap here is that candidates may confuse the OCI Language service's pre-built summarization capabilities with the ability to customize a model for a specialized domain, overlooking that fine-tuning is required for significant accuracy improvements on niche text like medical records.

How to eliminate wrong answers

Option A is wrong because OCI Data Flow is a serverless Apache Spark-based data processing service for ETL and big data analytics, not designed for fine-tuning or improving summarization model accuracy. Option B is wrong because OCI Language service provides pre-trained NLP capabilities like sentiment analysis and entity extraction but does not support custom fine-tuning of generative models for summarization tasks. Option D is wrong because OCI Anomaly Detection is used for identifying unusual patterns in time-series data, such as equipment failures or fraud, and has no relevance to improving text summarization accuracy.

675
MCQmedium

An organization needs to ensure that all inference requests to OCI Generative AI are logged for compliance. Which OCI feature should be enabled?

A.OCI Cloud Guard
B.OCI Logging for the AI service
C.OCI Vault
D.OCI Audit logs
AnswerB

OCI Logging enables detailed logging of inference requests and responses for compliance.

Why this answer

OCI Logging for the AI service captures detailed request and response data for inference calls to OCI Generative AI, including payloads, timestamps, and user identities. This feature must be explicitly enabled per service endpoint to meet compliance requirements for logging all inference requests. Unlike Audit logs, which record control-plane operations, OCI Logging provides data-plane logging for the AI service itself.

Exam trap

Oracle often tests the distinction between control-plane logging (Audit logs) and data-plane logging (service-specific Logging), leading candidates to mistakenly choose Audit logs for operational request tracking.

How to eliminate wrong answers

Option A is wrong because OCI Cloud Guard is a security posture management service that detects misconfigurations and threats, but it does not log individual inference requests to Generative AI. Option C is wrong because OCI Vault manages encryption keys and secrets, not request logging for AI services. Option D is wrong because OCI Audit logs capture only control-plane API calls (e.g., creating or deleting resources), not data-plane inference requests to the Generative AI service.

Page 8

Page 9 of 11

Page 10

All pages