Courseiva

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

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

Page 9

Page 10 of 11

Page 11
676
MCQhard

A company uses OCI Generative AI service with a Cohere Command model for a real-time chat application and experiences high latency. They have already set max_tokens to 50 and temperature to 0.2. Which further change would be most effective in reducing latency?

A.Use asynchronous invocation.
B.Switch to a smaller model variant.
C.Disable context caching.
D.Increase the number of GPUs.
AnswerB

Smaller models have fewer parameters and are faster.

Why this answer

Switching to a smaller model variant (e.g., from Command to Command-Light) directly reduces the number of parameters and computational steps per token, which lowers inference latency. Since the company has already minimized max_tokens and temperature, the next most impactful change is to use a less resource-intensive model. This is a common optimization for real-time applications where response speed is critical.

Exam trap

The trap here is that candidates often confuse throughput optimization (asynchronous calls or more GPUs) with latency reduction, but for a single real-time request, model size is the dominant factor.

How to eliminate wrong answers

Option A is wrong because asynchronous invocation does not reduce the latency of a single request; it only decouples the client from waiting for the response, which is unsuitable for a real-time chat application that requires synchronous replies. Option C is wrong because disabling context caching would increase latency, as the model would have to reprocess the conversation history from scratch on every turn, negating the benefit of cached key-value states. Option D is wrong because increasing the number of GPUs does not reduce per-request latency for a single inference call; it improves throughput for concurrent requests but adds overhead for distributing the workload, which can actually increase latency for a single user.

677
Multi-Selecthard

A prompt engineer is troubleshooting a chatbot that consistently fails to follow instructions when the user includes adversarial input. Which two strategies can mitigate prompt injection attacks? (Choose two.)

Select 2 answers
A.Increase temperature to make model less predictable
B.Use instruction shielding: clearly separate system instructions from user input
C.Use a smaller model to reduce capability
D.Add more few-shot examples with safe outputs
E.Implement input validation and sanitization to remove adversarial patterns
AnswersB, E

Separating instructions from user input prevents the model from treating user input as instructions.

Why this answer

Instruction shielding (clear separation of instruction and input) and input validation/sanitization are effective defenses. Adding more examples or adjusting temperature do not address injection.

678
Multi-Selecteasy

Which TWO are benefits of using few-shot prompting compared to zero-shot prompting?

Select 2 answers
A.It always reduces the need for parameter tuning
B.It eliminates the need for a system prompt
C.It reduces the number of tokens in the output
D.It helps the model understand the desired pattern, especially for uncommon tasks
E.It can improve performance on tasks requiring specific output formats
AnswersD, E

Examples guide the model for tasks it may not have seen frequently.

Why this answer

Few-shot provides examples that improve format adherence and guide the model, especially for complex tasks.

679
Multi-Selectmedium

A team wants to reduce hallucinations in their LLM-powered question-answering system. Which TWO techniques are most effective?

Select 2 answers
A.Implementing RAG to retrieve relevant documents
B.Switching to a smaller model
C.Using a lower temperature (e.g., 0) for more deterministic outputs
D.Using a larger context window
E.Increasing the temperature to 1.5
AnswersA, C

RAG grounds answers in retrieved facts.

Why this answer

RAG provides factual grounding, and reducing temperature makes outputs more deterministic, reducing fabricated details.

680
Multi-Selecthard

A company is deploying a LangChain application using OCI Generative AI. They need to comply with a policy that requires all prompts sent to the LLM to be logged for audit, and they must also handle rate limits gracefully. Which TWO strategies should they implement?

Select 2 answers
A.Use a faster LLM to reduce response time
B.Implement a custom LangChain callback that logs the prompt before sending it to the model
C.Increase the batch size of requests to reduce the number of API calls
D.Wrap the LLM call in a retry mechanism with exponential backoff to handle rate limit errors
E.Store the full conversation history in the prompt's system message
AnswersB, D

Callbacks are the idiomatic way to intercept and log prompts in LangChain.

Why this answer

Using LangChain callbacks (e.g., on_llm_start) allows capturing prompts for logging without modifying the chain. For rate limits, adding a retry with exponential backoff (e.g., via tenacity or a custom callback) ensures resilience without dropping requests.

681
Multi-Selectmedium

A data scientist is configuring a fine-tuning job in OCI Generative AI. Which TWO of the following are required inputs for creating the job?

Select 2 answers
A.Temperature setting for fine-tuning
B.Training dataset (JSONL file)
C.Max tokens limit for validation
D.Base model selection (e.g., Cohere Command R)
E.Inference endpoint name
AnswersB, D

Why this answer

Fine-tuning requires a base model and a training dataset. The other options are optional or configurable later.

682
Multi-Selectmedium

A prompt library manager wants to implement version control for prompt templates used across multiple applications. Which THREE practices should they adopt?

Select 3 answers
A.Automatically test prompts on a fixed set of inputs after each change
B.Store prompts only in the application's database without history
C.Use semantic versioning (e.g., v1.2.3) for prompt templates
D.Maintain a changelog documenting what changed and why
E.Store prompt templates in a version control system (e.g., Git)
AnswersC, D, E

Semantic versioning helps communicate the nature of changes.

Why this answer

Storing templates in a version control system, using semantic versioning, and maintaining a changelog are standard practices for prompt version management. Automated testing is good but not version control per se.

683
Multi-Selecthard

A data scientist is evaluating the cost of deploying a fine-tuned model for a high-volume production application. They need low latency but are cost-sensitive. Which TWO considerations should they evaluate when choosing between on-demand (shared) and dedicated cluster pricing?

Select 2 answers
A.The cost per model unit per hour for a dedicated cluster
B.Whether the model supports streaming responses
C.The number of days required to provision the dedicated cluster
D.The availability of the model in the OCI Generative AI Playground
E.The expected monthly token volume and the on-demand per-token price
AnswersA, E

Dedicated clusters are billed per model unit hour, which must be compared to on-demand token costs.

Why this answer

The cost of model units per hour and the expected token volume help determine whether dedicated or on-demand is more economical. Cluster provisioning time and streaming availability are not direct cost factors.

684
MCQeasy

A developer wants to build a RAG application that processes highly sensitive medical records. The documents are already stored in OCI Object Storage. Which vector storage strategy best balances security and performance?

A.Store vectors in-memory within the application server
B.Use OCI OpenSearch with a public endpoint for low latency
C.Use OCI OpenSearch with a private subnet and VCN security lists
D.Use a third-party vector database outside OCI
AnswerC

Private subnet ensures network isolation, and security lists control access.

Why this answer

It uses OCI OpenSearch deployed within a private subnet, which ensures that vector data never traverses the public internet, while VCN security lists provide granular traffic control. This architecture balances security (data isolation and access control) with performance (low-latency access within the same VCN or via FastConnect/IPSEC VPN) for sensitive medical records.

Exam trap

The trap here is that candidates may assume a public endpoint is acceptable for 'low latency' (Option B) without recognizing that security requirements for sensitive data override performance considerations, and that private subnet connectivity can still achieve very low latency within the same region.

How to eliminate wrong answers

Option A is wrong because storing vectors in-memory within the application server is volatile, lacks persistence, and cannot scale to handle large document collections, making it unsuitable for production RAG workloads. Option B is wrong because using a public endpoint for OCI OpenSearch exposes the vector store to the internet, violating security requirements for highly sensitive medical records and increasing attack surface. Option D is wrong because using a third-party vector database outside OCI introduces data egress costs, higher latency over the public internet, and compliance risks for sensitive data that should remain within OCI's tenancy.

685
MCQhard

A team uses OCI Generative AI’s fine-tuning capability to adapt a base model. After fine-tuning, they evaluate the model but see degraded performance on certain edge cases. What is the most likely cause?

A.Overfitting on the training data
B.Validation data leakage
C.Learning rate too high
D.Insufficient training epochs
AnswerA

Overfitting leads to poor generalization, especially on edge cases not seen during training.

Why this answer

Fine-tuning adapts a base model to a specific dataset, but if the training data is too narrow or the model is trained for too many epochs, it can memorize the training examples rather than learning generalizable patterns. This overfitting causes the model to perform well on training-like inputs but poorly on edge cases that deviate from the training distribution. In OCI Generative AI, overfitting is a common pitfall when fine-tuning hyperparameters like the number of epochs or learning rate are not properly validated.

Exam trap

Oracle often tests the distinction between overfitting and underfitting by presenting a scenario where performance is good on training data but poor on unseen data, leading candidates to incorrectly blame a high learning rate or insufficient epochs.

How to eliminate wrong answers

Option B is wrong because validation data leakage would cause artificially high performance on validation metrics, not degraded performance on edge cases; leakage means the model has seen the test data during training, which would inflate scores rather than cause failures. Option C is wrong because a learning rate that is too high typically causes training instability, divergence, or failure to converge, not selective degradation on edge cases after successful fine-tuning. Option D is wrong because insufficient training epochs would result in underfitting, where the model fails to learn even the main training patterns, leading to poor performance across all cases, not just edge cases.

686
MCQhard

Refer to the exhibit. A user in GenAI-Users group tries to run a text generation inference but gets permission denied. What is the most likely issue?

A.The policy resource type is wrong.
B.The operation condition is too restrictive.
C.The group name mismatch.
D.The user is not in the compartment.
AnswerB

The condition likely does not match the actual operation, causing denial.

Why this answer

The policy attached to the GenAI-Users group includes a condition that restricts the operation to a specific compartment or resource, but the user is attempting to run inference in a different compartment or without meeting the condition. Since the condition is too restrictive, the IAM policy denies the action even though the user is in the correct group and the resource type is valid.

Exam trap

Oracle often tests the nuance that a policy with overly restrictive conditions (e.g., scoping to a specific compartment or resource) will deny access even when the group, resource type, and user compartment are all correct, leading candidates to incorrectly blame the group or resource type.

How to eliminate wrong answers

Option A is wrong because the policy resource type (e.g., 'ai-language-models' or 'genai-models') is correct for text generation inference in OCI Generative AI, so a mismatch would cause a different error. Option C is wrong because the group name mismatch would result in no policy being applied at all, not a permission denied error with a valid group. Option D is wrong because the user being in the compartment is not the issue; the condition in the policy is what restricts the operation, not the user's compartment membership.

687
MCQeasy

A developer is using the OCI Generative AI SDK in Python to call the cohere.command model. They are getting a 401 Unauthorized error. They have configured the SDK with their tenancy OCID and user OCID. What is the most likely missing piece?

A.Correct region endpoint.
B.Model OCID.
C.API key or token.
D.Compartment OCID.
AnswerC

Authentication requires a valid API key or token; omitting it causes 401 errors.

Why this answer

The 401 Unauthorized error indicates that the request lacks valid authentication credentials. In the OCI Generative AI SDK, even when tenancy and user OCIDs are provided, the SDK requires an API signing key or a token (such as an OCI API key pair or a session token from an instance principal) to sign requests. Without this key or token, the SDK cannot authenticate the request to the OCI API, resulting in a 401 error.

Exam trap

The trap here is that candidates assume providing tenancy and user OCIDs is sufficient for authentication, overlooking that OCI requires a cryptographic signing key or token to prove identity.

How to eliminate wrong answers

Option A is wrong because a correct region endpoint affects routing and service availability, not authentication; a 401 error is unrelated to endpoint configuration. Option B is wrong because the model OCID is a parameter for specifying which model to invoke, not for authentication; omitting it would cause a different error (e.g., 400 Bad Request). Option D is wrong because the compartment OCID is used for resource scoping and billing, not for signing requests; missing it would not cause a 401 error.

688
MCQmedium

A data scientist is fine-tuning a Cohere model on OCI Generative AI service for a custom classification task. They have a dataset of 1000 labeled examples. What is the minimum recommended dataset size for fine-tuning?

A.500
B.1000
C.5000
D.100
AnswerB

Cohere's documentation states a minimum of 1000 examples.

Why this answer

Cohere models on OCI Generative AI require a minimum of 1000 labeled examples for fine-tuning to ensure sufficient signal for learning task-specific patterns without overfitting. This threshold is documented in OCI's fine-tuning requirements and applies to custom classification tasks.

Exam trap

The trap here is that candidates may assume a lower number like 500 is sufficient based on general machine learning heuristics, but OCI's specific fine-tuning documentation explicitly sets 1000 as the minimum, and Oracle tests this exact documented value.

How to eliminate wrong answers

Option A (500) is wrong because 500 examples are below the documented minimum threshold, risking poor generalization and overfitting. Option C (5000) is wrong because while larger datasets can improve performance, 5000 is not the minimum requirement; 1000 is the stated minimum. Option D (100) is wrong because 100 examples are far too few for fine-tuning a transformer-based model like Cohere, leading to severe overfitting and unreliable results.

689
Multi-Selecthard

Which THREE factors should be considered when designing a vector search index for a RAG application that supports multiple languages?

Select 3 answers
A.Implement language identification as a preprocessing step.
B.Create separate vector indexes for each language.
C.Use a multilingual embedding model that supports all required languages.
D.Configure language-specific text analyzers for preprocessing documents.
E.Use larger chunk sizes for languages with complex morphology.
AnswersA, C, D

Allows proper analyzer selection.

Why this answer

Language identification as a preprocessing step ensures that documents are correctly tagged before indexing, which allows the system to apply appropriate language-specific tokenization, stop-word removal, and stemming. This prevents cross-language contamination in the vector index and improves retrieval accuracy for a multilingual RAG application.

Exam trap

Oracle often tests the misconception that separate indexes per language are required for multilingual support, but the correct approach is to use a single index with a multilingual embedding model and language-specific preprocessing.

690
MCQhard

An organization needs to implement a RAG application with Oracle AI Vector Search but has strict latency requirements. They have millions of vectors. Which index type is likely to provide the best search speed while maintaining reasonable recall?

A.No index, relying on the VECTOR data type only
B.IVF (Inverted File) index
C.BTREE index
D.Exhaustive search (no index)
AnswerB

IVF uses clustering to limit search to a subset of vectors, offering a good trade-off between speed and recall.

Why this answer

IVF (Inverted File) partitions the vector space into clusters, reducing search scope. It typically offers faster search than exhaustive search and good recall, especially for large datasets. HNSW may also be fast but can have higher memory usage.

BTREE is for scalar data. Exhaustive search is too slow.

691
Multi-Selectmedium

Which TWO factors should be considered when selecting a base model for fine-tuning on OCI Generative AI service?

Select 2 answers
A.The model's training dataset size
B.The model's size and number of parameters
C.The model's license and terms of use
D.The model's training framework (PyTorch vs TensorFlow)
E.The model's built-in features like content filtering
AnswersB, C

Larger models consume more resources and cost more to serve.

Why this answer

When selecting a base model for fine-tuning on OCI Generative AI service, the model's size and number of parameters (B) directly impact computational cost, training time, and the model's capacity to learn from your dataset. The model's license and terms of use (C) are critical because commercial use, redistribution, and fine-tuning rights vary per model (e.g., Llama 2 vs. GPT-based models), and violating these can lead to legal or compliance issues.

Exam trap

Oracle often tests the misconception that technical details like training framework or dataset size are relevant, when in fact the exam focuses on operational and legal factors (size/license) that directly affect deployment and compliance in OCI's managed service.

692
MCQmedium

A data scientist uses OCI Generative AI Playground to test a Cohere Command R model for a summarization task. They want the summary to be concise and avoid repeating phrases. Which parameter adjustments would BEST achieve this?

A.Set temperature to 0.5 and max tokens to 50
B.Set temperature to 0.0 and frequency penalty to 0.0
C.Set temperature to 0.2 and frequency penalty to 0.8
D.Set temperature to 1.0 and presence penalty to 0.0
AnswerC

Low temperature for concise output, high frequency penalty to avoid repetition.

Why this answer

Decreasing temperature makes output more deterministic; increasing frequency penalty discourages repetition of phrases.

693
Multi-Selectmedium

A developer is building a conversational AI application using LangChain and needs to persist chat history across sessions. Which TWO approaches can they use? (Choose TWO.)

Select 2 answers
A.Use the agent's memory parameter with a default in-memory store
B.Enable streaming responses to automatically save history
C.Use ChatMessageHistory without a backing store
D.Use ConversationSummaryMemory and store the summary in a file
E.Use ConversationBufferMemory and save the buffer to a database
AnswersD, E

SummaryMemory keeps a running summary; persisting the summary file allows restoring history.

Why this answer

ConversationSummaryMemory can be persisted by storing its summary in a file, which allows chat history to survive across sessions. Option E is correct because ConversationBufferMemory can be explicitly saved to a database, providing durable storage for the conversation buffer. Both approaches decouple memory from the in-memory lifecycle, enabling cross-session persistence.

Exam trap

The 1Z0-1127 exam often tests the misconception that any memory parameter or streaming feature inherently provides persistence, when in fact persistence requires an explicit storage backend such as a file, database, or external key-value store.

694
Multi-Selecthard

Which THREE steps are necessary to secure access to the OCI Generative AI inference API in a production environment?

Select 3 answers
A.Enable encryption with OCI Vault keys for all inference data.
B.Configure network security groups to allow only trusted source IPs to the inference endpoint.
C.Create IAM policies that grant the 'use' verb on generative-ai-family resources.
D.Use private endpoints to access the Generative AI service from a VCN.
E.Apply data masking policies to obfuscate sensitive information in prompts.
AnswersB, C, D

NSGs provide network-level security.

Why this answer

Network security groups (NSGs) allow you to restrict inbound traffic to the Generative AI inference endpoint to only trusted source IP addresses, reducing the attack surface. In a production environment, this is a fundamental network-layer security control to prevent unauthorized access to the API.

Exam trap

Oracle often tests the distinction between network-layer controls (NSGs, private endpoints) and data-layer controls (encryption, masking), expecting candidates to recognize that securing API access requires network and IAM controls, not data protection features.

695
MCQmedium

Refer to the exhibit. A team created this dedicated AI cluster. However, when they try to create a model deployment, the deployment fails with an error indicating insufficient public IPs. What change to the cluster configuration should they make?

A.Change assignPublicIp to true.
B.Increase the nodeCount to 8.
C.Attach a different subnet that has more available public IPs.
D.Change the AI cluster shape to VM.GPU.A10.2.
AnswerA

Correct: Enabling public IPs allows nodes to have public endpoints.

Why this answer

The error indicates insufficient public IPs because the cluster's subnet does not have enough available public IP addresses. Setting `assignPublicIp` to `true` in the cluster configuration allows the cluster to automatically allocate public IPs from the subnet's pool, resolving the shortage. This is required for model deployments that need public endpoints.

Exam trap

The trap here is that candidates might think the issue is a subnet IP shortage (Option C) or a scaling problem (Option B), when the real cause is a misconfigured public IP assignment flag that prevents the cluster from using available IPs.

How to eliminate wrong answers

Option B is wrong because increasing the nodeCount to 8 would require even more public IPs, exacerbating the shortage rather than fixing it. Option C is wrong because attaching a different subnet with more public IPs is a workaround, but the root cause is that the cluster is not configured to assign public IPs; changing the subnet does not enable the assignment. Option D is wrong because changing the AI cluster shape to VM.GPU.A10.2 does not affect public IP allocation; it only changes the GPU type and compute capacity.

696
MCQmedium

An e-commerce company uses OCI Generative AI to generate product descriptions. They have fine-tuned the model on their product catalog. They notice that the descriptions are accurate but lack creativity and are repetitive. They want to maintain accuracy while adding variety. What change should they make?

A.Increase the top_p sampling from 0.9 to 1.0.
B.Increase the temperature from 0.2 to 0.5.
C.Use a different base model.
D.Add more training examples with diverse descriptions.
AnswerB

A moderate temperature increase adds variety while preserving factual accuracy.

Why this answer

Slightly increasing temperature (e.g., from 0.2 to 0.5) introduces controlled variability without significantly compromising accuracy. Option A is wrong because top_p=1.0 samples from the full distribution, which can add noise. Option C is wrong because adding more training data requires effort and time, and may not immediately add variety.

Option D is wrong because changing the base model could hurt accuracy and requires retraining.

697
MCQmedium

An AI specialist is troubleshooting why a fine-tuned model produces inconsistent results across different inference calls. What is the most likely cause?

A.The base model is not suitable
B.The temperature is set too high
C.The model is overfitted
D.The fine-tuning dataset is too small
AnswerB

High temperature increases randomness, causing variable outputs.

Why this answer

Temperature controls the randomness of token sampling during inference. A high temperature (e.g., >1.0) increases the probability of selecting less likely tokens, causing the model to produce varied outputs for the same input across different calls. This is the most direct cause of inconsistent results when the base model and fine-tuning are otherwise sound.

Exam trap

Oracle often tests the misconception that overfitting (Option C) causes inconsistency, but overfitting actually reduces variance by memorizing patterns; the trap is confusing output variability with poor generalization.

How to eliminate wrong answers

Option A is wrong because an unsuitable base model would cause consistently poor or biased outputs, not inconsistency across calls; the base model's suitability affects overall quality, not per-call variance. Option C is wrong because overfitting leads to memorization of training data, producing deterministic or near-identical outputs for similar inputs, not random inconsistency. Option D is wrong because a small fine-tuning dataset typically causes underfitting or poor generalization, not random variation across inference calls; inconsistency from small data would manifest as high variance across different inputs, not across repeated calls with the same input.

698
Multi-Selectmedium

A company is deploying a LangChain application on OCI and needs to implement error handling and rate limit management. Which THREE strategies should they consider? (Choose THREE.)

Select 3 answers
A.Implement retry logic with exponential backoff when receiving 429 (Too Many Requests) responses
B.Increase the chunk_size parameter in the text splitter
C.Use a caching layer to avoid repeating identical API calls
D.Monitor token usage and set up alerts to stay within service limits
E.Resubscribe to the model endpoint if errors occur
AnswersA, C, D

Exponential backoff is a standard approach to handle rate limits by retrying after increasing delays.

Why this answer

A is correct because HTTP 429 (Too Many Requests) responses indicate rate limiting by the API provider. Implementing retry logic with exponential backoff is a standard resilience pattern that progressively increases wait times between retries, preventing further rate limit violations and allowing the system to recover gracefully without overwhelming the endpoint.

Exam trap

The 1Z0-1127 exam often tests the distinction between strategies that directly address API rate limiting (retry logic, caching, monitoring) versus unrelated configuration parameters like chunk_size, which candidates may mistakenly associate with performance tuning.

699
MCQmedium

A team is building a multilingual semantic search application. They need to index documents in English, Spanish, and French, and later search using queries in any of these languages. Which embedding model should they use?

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

This model is designed for multilingual text, supporting English, Spanish, French, and many other languages.

Why this answer

Cohere embed-multilingual-v3.0 supports multiple languages in a single model, enabling cross-lingual semantic search. embed-english-v3.0 is English-only. Command R and Llama 3 are not embedding models.

700
MCQhard

An organization is fine-tuning a large language model on OCI Data Science. They must ensure that the training data remains within a specific geographic region and is encrypted at rest. Which combination of resources should they use?

A.OCI Object Storage bucket with a bucket policy and default encryption, created in the required region.
B.OCI Database with Transparent Data Encryption, storing the training data in tables.
C.OCI File Storage with export options and encryption, mounted to the Data Science session.
D.OCI Block Volume with encryption, attached to the Data Science notebook session.
AnswerA

Bucket policy controls access, encryption secures data at rest, and region selection ensures data residency.

Why this answer

OCI Object Storage with default encryption ensures data is encrypted at rest using AES-256, and a bucket policy can enforce that data remains within a specific geographic region by restricting cross-region replication or access. This combination directly meets the requirements of regional data residency and encryption at rest for training data used in OCI Data Science.

Exam trap

The trap here is that candidates may confuse encryption at rest with data residency enforcement, assuming any encrypted storage (like Block Volume or File Storage) automatically guarantees geographic containment, but only Object Storage provides bucket-level policies to explicitly restrict data movement across regions.

How to eliminate wrong answers

Option B is wrong because OCI Database with Transparent Data Encryption is designed for transactional workloads, not for storing large-scale training data for LLM fine-tuning, and it does not inherently enforce geographic region constraints on the data. Option C is wrong because OCI File Storage with export options and encryption can be mounted to a Data Science session, but it does not provide native mechanisms to enforce regional data residency; the data could be replicated or accessed across regions. Option D is wrong because OCI Block Volume with encryption attached to a notebook session encrypts data at rest, but it does not offer policy controls to ensure the data remains within a specific geographic region, as block volumes are tied to the compute instance's availability domain, not the broader region.

701
MCQeasy

Which statement accurately describes the T-Few fine-tuning technique used in OCI Generative AI?

A.It automatically adjusts hyperparameters during inference.
B.It does not require any training data and works by prompting only.
C.It updates all model parameters, requiring substantial compute resources.
D.It is a parameter-efficient fine-tuning method that updates only a fraction of the model parameters.
AnswerD

T-Few uses low-rank adaptations to efficiently fine-tune models.

Why this answer

The T-Few fine-tuning technique is a parameter-efficient fine-tuning (PEFT) method that updates only a small fraction of the model's parameters, typically by introducing and training adapter layers or using low-rank updates. This approach significantly reduces computational and memory requirements compared to full fine-tuning, making it suitable for adapting large language models with limited resources. In OCI Generative AI, T-Few enables efficient customization without retraining the entire model.

Exam trap

The trap here is that candidates often confuse parameter-efficient fine-tuning (PEFT) with full fine-tuning or prompting, leading them to select options that describe full parameter updates or no training at all, rather than recognizing T-Few as a lightweight adaptation method.

How to eliminate wrong answers

Option A is wrong because T-Few does not automatically adjust hyperparameters during inference; hyperparameters are set before training and remain fixed during inference. Option B is wrong because T-Few requires training data for fine-tuning, unlike zero-shot prompting which works by prompting only without any training data. Option C is wrong because T-Few does not update all model parameters; it is specifically designed to update only a fraction of parameters, avoiding the substantial compute resources required for full fine-tuning.

702
MCQhard

A team is building a conversational chatbot using LangChain and OCI Generative AI. They want to maintain a summary of the conversation rather than storing the entire history, to keep within token limits. Which memory class should they use, and what additional step is required when initializing the memory?

A.ConversationBufferWindowMemory; set a window size
B.ConversationTokenBufferMemory; set a token limit
C.ConversationSummaryMemory; provide an LLM to generate summaries
D.ConversationBufferMemory; no additional step
AnswerC

SummaryMemory needs an LLM to compress the conversation into a summary.

Why this answer

ConversationSummaryMemory is designed to maintain a running summary of the conversation instead of storing the full history, which directly addresses the requirement to stay within token limits. The additional step required is providing an LLM (e.g., via `llm=ChatOpenAI(...)`) because the memory class uses the LLM to generate and update the summary dynamically.

Exam trap

The 1Z0-1127 exam often tests the distinction between memory classes that truncate versus those that summarize, and the trap here is that candidates may confuse ConversationTokenBufferMemory (which drops messages) with summary-based memory, missing the critical requirement to provide an LLM for summary generation.

How to eliminate wrong answers

Option A is wrong because ConversationBufferWindowMemory keeps a fixed window of recent messages, not a summary, so it still stores raw history and does not reduce token usage beyond the window size. Option B is wrong because ConversationTokenBufferMemory drops messages when a token limit is exceeded, but it does not summarize; it simply truncates the history, losing context. Option D is wrong because ConversationBufferMemory stores the entire conversation history verbatim, which would exceed token limits and requires no additional step, making it unsuitable for the stated goal.

703
Multi-Selecthard

An organization is planning to use OCI Generative AI for sensitive customer data. Which three OCI services or features should they consider for data governance and security?

Select 3 answers
A.OCI Vault for managing API keys
B.OCI Data Safe for data masking and encryption
C.OCI IAM for access control
D.OCI Data Labeling for annotating data
E.OCI Audit for logging API calls
AnswersA, C, E

Secure storage of API keys and secrets is crucial for authentication to Generative AI endpoints.

Why this answer

OCI Vault is a dedicated service for securely storing and managing secrets, including API keys used to authenticate to OCI Generative AI. By centralizing API key management in Vault, organizations can enforce rotation policies, access controls, and audit trails, which is critical for protecting sensitive customer data when invoking generative AI models.

Exam trap

Oracle often tests the misconception that database security services like Data Safe apply to all data in OCI, but candidates must recognize that Generative AI operates through API calls and does not use a relational database, making Data Safe irrelevant here.

704
MCQhard

An engineer sets beam search width to 1 during inference on OCI Generative AI. What is the most likely effect on output?

A.More memory usage
B.More diverse outputs
C.Better quality
D.Faster inference
AnswerD

Greedy decoding is the fastest decoding method as it considers only one candidate path.

Why this answer

Beam search width of 1 is equivalent to greedy decoding, where only the single most probable token is selected at each step. This eliminates the need to maintain and compare multiple candidate sequences, significantly reducing computational overhead and memory access, which directly speeds up inference.

Exam trap

A common misconception is that a smaller beam width always degrades quality, but the trap here is that beam width 1 (greedy decoding) is actually the fastest inference method. While it sacrifices diversity and sometimes quality, it is not necessarily worst for all tasks, especially when speed is prioritized.

How to eliminate wrong answers

Option A is wrong because beam width 1 uses less memory (only one candidate sequence is tracked), not more. Option B is wrong because greedy decoding reduces output diversity by always picking the highest-probability token, whereas larger beam widths explore more alternatives. Option C is wrong because greedy decoding often produces repetitive or locally optimal outputs, whereas moderate beam widths (e.g., 4–8) typically yield higher quality by considering global coherence.

705
MCQeasy

An administrator needs to grant a data science team access to create and manage generative AI model endpoints in a specific compartment. Which policy should they create?

A.Allow group DataScientists to manage all-resources in compartment Production
B.Allow group DataScientists to use generative-ai-model-family in compartment Production
C.Allow group DataScientists to read generative-ai-model-family in compartment Production
D.Allow group DataScientists to manage generative-ai-model-family in compartment Production
AnswerD

This policy grants the required permissions.

Why this answer

The verb 'manage' grants full CRUD (Create, Read, Update, Delete) permissions on the 'generative-ai-model-family' resource type, which is the specific resource family for generative AI model endpoints in OCI. This allows the DataScientists group to create and manage endpoints within the specified compartment without granting broader access to all resources.

Exam trap

Oracle often tests the distinction between 'use' and 'manage' verbs, where candidates mistakenly choose 'use' thinking it covers creation, but 'use' only allows invocation and access, not resource lifecycle management.

How to eliminate wrong answers

Option A is wrong because 'manage all-resources' grants excessive permissions beyond what is needed, including access to unrelated services like compute or storage, violating the principle of least privilege. Option B is wrong because 'use' only allows actions like invoking or accessing the resource, but does not permit creating, updating, or deleting model endpoints. Option C is wrong because 'read' only allows viewing or listing resources, with no ability to create or manage endpoints.

706
Multi-Selecthard

Which THREE of the following are best practices when deploying a generative AI model on OCI?

Select 3 answers
A.Store API keys in the model endpoint configuration.
B.Set up autoscaling for the endpoint.
C.Disable logging to save costs.
D.Use a dedicated AI cluster for production endpoints.
E.Enable content filtering on the endpoint.
AnswersB, D, E

Autoscaling handles variable load efficiently.

Why this answer

Autoscaling ensures that the generative AI endpoint can dynamically adjust compute resources based on real-time inference traffic, maintaining low latency and high availability while optimizing cost. On OCI, autoscaling policies can be configured for dedicated AI clusters to scale the number of model serving replicas in response to metrics like CPU utilization or request queue depth.

Exam trap

Oracle often tests the misconception that disabling logging is a valid cost-saving measure, but in reality, logging is essential for operational visibility and compliance, and costs can be managed through sampling or retention policies rather than outright disabling.

707
MCQeasy

A developer needs to integrate OCI Generative AI into a Python application. Which SDK should they use?

A.Boto3
B.OCI Python SDK
C.Google Cloud client
D.OpenAI library
AnswerB

Correct: OCI Python SDK is the standard integration method.

Why this answer

The OCI Python SDK (Option B) is the correct choice because it provides the official set of libraries and tools for interacting with Oracle Cloud Infrastructure services, including the Generative AI service. This SDK handles authentication, request signing, and API calls specific to OCI, enabling seamless integration of OCI Generative AI into Python applications.

Exam trap

A common mistake is to assume that any popular AI library (e.g., OpenAI's) can be used with OCI Generative AI, but Oracle Cloud requires its own OCI Python SDK for proper authentication and API compatibility.

How to eliminate wrong answers

Option A is wrong because Boto3 is the Amazon Web Services (AWS) SDK for Python, designed to interact with AWS services such as Amazon Bedrock or SageMaker, not with OCI Generative AI. Option C is wrong because the Google Cloud client library is for accessing Google Cloud Platform services like Vertex AI, not OCI. Option D is wrong because the OpenAI library is specifically for calling OpenAI's own API endpoints (e.g., GPT models) and does not support OCI's authentication or API structure.

708
MCQmedium

During fine-tuning of a Cohere model on OCI Data Science, the loss curve shows a sharp spike after epoch 3. What is the most appropriate action?

A.Gradient clipping.
B.Reduce learning rate.
C.Add more training data.
D.Increase batch size.
AnswerA

Gradient clipping limits gradient values, preventing explosion and stabilizing training.

Why this answer

A sharp spike in the loss curve after epoch 3 during fine-tuning indicates a gradient explosion, where the gradients become excessively large and destabilize the model's weights. Gradient clipping is the most appropriate action because it directly caps the gradient norm (e.g., using `max_grad_norm=1.0` in Cohere's fine-tuning API) to prevent these spikes, ensuring stable training without altering the learning dynamics.

Exam trap

Oracle often tests the distinction between gradient explosion (sharp spikes) and learning rate divergence (gradual increase), leading candidates to incorrectly choose reducing the learning rate instead of gradient clipping.

How to eliminate wrong answers

Option B is wrong because reducing the learning rate addresses gradual divergence or oscillation, not sudden spikes; a sharp spike is a sign of gradient explosion, not a learning rate that is too high. Option C is wrong because adding more training data improves generalization and reduces overfitting but does not mitigate gradient instability during training. Option D is wrong because increasing batch size can stabilize gradient estimates but may also increase memory usage and does not directly prevent individual gradient values from becoming too large; it can even exacerbate gradient explosion by averaging over more samples.

709
MCQhard

You are a machine learning engineer at a large e-commerce company. You have been tasked with deploying a large language model to power a customer service chatbot that handles product returns and refunds. The model will answer customer queries based on a knowledge base of return policies and FAQs. The company has strict requirements: (1) responses must be factually accurate and grounded in the knowledge base, (2) the system must be cost-effective, and (3) latency should be under 2 seconds per response. You decide to use a pre-trained LLM from OCI Data Science and implement retrieval-augmented generation (RAG). You have two options for the retriever: a dense embedding-based retriever (e.g., using OCI AI Language embeddings) or a sparse keyword-based retriever (e.g., BM25). You also need to decide on the generation model size: a 7B parameter model or a 70B parameter model. You run a pilot test: with the dense retriever + 7B model, average latency is 1.8 seconds and accuracy is 85%. With the sparse retriever + 7B model, latency is 1.2 seconds but accuracy drops to 75%. With the 70B model (any retriever), latency exceeds 5 seconds. Which combination should you choose to meet all requirements?

A.Sparse retriever + 70B model.
B.Dense retriever + 70B model.
C.Sparse retriever + 7B model.
D.Dense retriever + 7B model.
AnswerD

Meets both latency and accuracy requirements.

Why this answer

(dense retriever + 7B model) is correct because it meets all three requirements: factual accuracy (85% accuracy from dense retrieval grounding), latency under 2 seconds (1.8 seconds), and cost-effectiveness (7B model is cheaper to run than 70B). The dense retriever provides better semantic matching for nuanced return policy queries, while the 7B model keeps inference fast and affordable.

Exam trap

Oracle often tests the trade-off between retrieval accuracy and model size, where candidates mistakenly prioritize a larger model (70B) for better generation quality, ignoring that the latency constraint makes it infeasible, or choose a sparse retriever thinking it's faster, but overlook the critical accuracy requirement for grounded responses.

How to eliminate wrong answers

Option A is wrong because the 70B model with any retriever exceeds 5 seconds latency, violating the 2-second requirement. Option B is wrong because the 70B model also exceeds 5 seconds latency, failing the latency requirement. Option C is wrong because the sparse retriever (BM25) with the 7B model yields only 75% accuracy, which is below the acceptable factual accuracy threshold given the strict requirement for grounded responses.

710
MCQhard

A developer makes an API call to generate text with top_p=1.5. What is the correct way to fix this error?

A.Remove the top_p parameter from the request
B.Increase the temperature parameter to compensate
C.Set top_p to a value between 0 and 1, e.g., 0.9
D.Use the top_k parameter instead
AnswerC

Correcting the value to within the allowed range fixes the error.

Why this answer

The `top_p` parameter, also known as nucleus sampling, must be a probability value between 0 and 1. Setting it to 1.5 is invalid because it exceeds the allowed range, which would cause the API to reject the request. The correct fix is to set `top_p` to a valid value such as 0.9, which restricts token selection to the smallest set whose cumulative probability exceeds that threshold.

Exam trap

OCI often tests the misconception that `top_p` can be any positive number, similar to `temperature`, when in fact it is a probability threshold strictly bounded between 0 and 1.

How to eliminate wrong answers

Option A is wrong because removing `top_p` entirely changes the sampling behavior to default settings, which may not achieve the desired output diversity and does not fix the invalid parameter error—the correct approach is to provide a valid value. Option B is wrong because increasing the `temperature` parameter does not compensate for an invalid `top_p` value; `temperature` controls randomness in token probability distribution, while `top_p` is a separate sampling constraint, and both must be within their respective valid ranges. Option D is wrong because `top_k` is a different sampling method that selects the top K tokens by probability; while it can be used instead of `top_p`, the question asks for the correct way to fix the error with `top_p`, not to replace it with another parameter.

711
MCQeasy

A data scientist fine-tunes a model using OCI Data Science and wants to deploy it as a managed endpoint in OCI Generative AI. What must they do first?

A.Upload model artifacts to Object Storage and register in Model Catalog
B.Write a custom container
C.Create a dedicated AI cluster
D.Use OCI CLI to create an endpoint
AnswerA

This is the required first step to deploy a custom model.

Why this answer

To deploy a fine-tuned model as a managed endpoint in OCI Generative AI, the model artifacts must first be uploaded to Object Storage and registered in the Model Catalog. This is a prerequisite because OCI Generative AI endpoints pull model artifacts from the Model Catalog, which references the storage location. Without registration, the service cannot locate or serve the model.

Exam trap

The trap here is that candidates assume they can directly create an endpoint using CLI or SDK without first registering the model in the Model Catalog, overlooking the mandatory registration step that links the artifacts to the serving infrastructure.

How to eliminate wrong answers

Option B is wrong because custom containers are not required for managed endpoints in OCI Generative AI; the service provides built-in serving infrastructure for supported model formats. Option C is wrong because a dedicated AI cluster is used for training or batch inference, not for deploying a managed endpoint, which uses OCI's shared serving infrastructure. Option D is wrong because using OCI CLI to create an endpoint is a valid method, but it cannot succeed until the model is registered in the Model Catalog; the CLI command requires a model OCID from the catalog.

712
MCQhard

A company has fine-tuned a Cohere Command R model using T-Few and wants to deploy it for real-time inference with the lowest possible latency. They have provisioned a dedicated AI cluster with 2 model units. However, latency is still higher than expected. Which action is MOST likely to reduce latency?

A.Reduce the temperature parameter to 0
B.Increase the number of model units on the dedicated AI cluster
C.Switch from dedicated AI cluster to shared infrastructure
D.Use a larger base model like Llama 3 70B
AnswerB

Increasing the number of model units from two to a higher count distributes the inference workload across more parallel compute resources, directly addressing the bottleneck of insufficient throughput for real-time requests. This action satisfies the constraint of achieving the lowest possible latency by reducing queue wait time per request, as the dedicated AI cluster’s capacity is currently under-provisioned for the demand.

Why this answer

Increasing model units on the dedicated cluster provides more compute capacity, reducing inference latency by parallelizing requests. Switching to shared infrastructure would likely increase latency due to multi-tenancy. Using a larger model would increase latency.

Reducing temperature does not affect latency.

713
MCQmedium

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

A.Use a larger foundation model with a longer context window and paste all documents into each prompt
B.Train a custom model from scratch on the policy documents each month
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.

714
MCQmedium

An organization wants to deploy an LLM for legal document analysis where accuracy is critical, and the model must not reference any external data outside the provided legal corpus. Which approach BEST satisfies these requirements?

A.Use a decoder-only model with zero-shot prompting
B.Use a fine-tuned encoder-only model for classification only
C.Use a large foundation model with a high temperature setting
D.Use RAG with a vector store containing only the legal documents, and set the retriever to return a fixed number of chunks with high similarity threshold
AnswerD

RAG ensures answers are grounded in the provided legal corpus; similarity threshold can prevent retrieval of irrelevant chunks.

Why this answer

RAG can ground generation in a curated corpus, and with strict retrieval settings (e.g., only retrieving from the legal corpus), the model will not use any outside knowledge, reducing hallucinations.

715
MCQeasy

A developer wants the LLM to solve a math problem by reasoning step by step. Which prompting technique should they use?

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

Chain-of-thought prompts the model to reason step by step, which is ideal for math problems.

Why this answer

Chain-of-thought prompting explicitly instructs the model to show its reasoning steps, improving accuracy on multi-step problems.

716
MCQmedium

A data scientist is building a RAG application that processes PDF invoices. The extraction step uses OCI Document Understanding to convert PDFs to text. The scientist then splits the text into chunks and generates embeddings using OCI Generative AI. However, the retrieval often misses critical fields like invoice numbers and dates. Which preprocessing step would MOST likely improve retrieval of these specific fields?

A.Increase the chunk size to include entire invoices.
B.Apply stemming and lemmatization to the text before chunking.
C.Tag each chunk with metadata such as invoice number, date, and vendor, and use metadata filtering during retrieval.
D.Switch from dense embeddings to sparse embeddings for better exact match.
AnswerC

Metadata filtering enables precise retrieval based on structured fields.

Why this answer

Metadata tagging and filtering directly address the retrieval of specific fields like invoice numbers and dates. By attaching metadata (e.g., invoice number, date, vendor) to each chunk and filtering on these metadata fields during retrieval, the RAG system can precisely locate the relevant chunks without relying solely on semantic similarity. This approach leverages OCI Document Understanding's ability to extract structured data and OCI Generative AI's vector search capabilities to combine dense embeddings with exact metadata matching.

Exam trap

Oracle often tests the misconception that increasing chunk size or changing embedding type alone can solve retrieval failures for structured fields, when in reality metadata filtering is the correct technique for precise field-level retrieval in RAG applications.

How to eliminate wrong answers

Option A is wrong because increasing chunk size to include entire invoices reduces granularity, making it harder to retrieve specific fields like invoice numbers and dates, and may exceed the context window of the embedding model, degrading retrieval quality. Option B is wrong because stemming and lemmatization reduce words to root forms, which can obscure exact matches for critical fields like invoice numbers (e.g., 'INV-12345' becomes 'inv-12345') and dates (e.g., '2023-01-15' might be altered), harming retrieval precision. Option D is wrong because sparse embeddings (e.g., TF-IDF) improve exact keyword matching but still rely on the text content of chunks; without metadata tagging, the system cannot filter chunks by field type, so critical fields may still be missed if they appear in chunks with low keyword overlap.

717
Multi-Selectmedium

Which TWO actions are recommended best practices for managing costs when using OCI Generative AI dedicated AI clusters?

Select 2 answers
A.Provision a fixed number of nodes to handle peak load
B.Use preemptible instances for non-critical inference workloads
C.Use autoscaling to adjust nodes based on demand
D.Stop the dedicated AI cluster when not in use
E.Use pay-as-you-go billing instead of preemptible instances
AnswersB, C

Preemptible instances are cheaper and suitable for fault-tolerant tasks.

Why this answer

Preemptible instances in OCI are significantly cheaper than standard instances and are ideal for non-critical inference workloads that can tolerate interruptions. This aligns with cost optimization best practices by allowing you to use spare compute capacity at a reduced rate for tasks that do not require continuous availability.

Exam trap

The trap here is that candidates may think stopping a dedicated AI cluster is a valid cost-saving action, but OCI dedicated AI clusters do not support a 'stop' state—you must terminate the cluster, which loses all configuration and data, making it impractical for intermittent use.

718
MCQmedium

A data science team at a healthcare company has fine-tuned a Llama 2 model using OCI Data Science and registered it in the Model Catalog. They want to deploy it as a managed endpoint using OCI Generative AI. The model requires 64 GB of GPU memory. The team has created a dedicated AI cluster with a single node shape that has 48 GB GPU memory. When they attempt to deploy the model, the deployment fails with an error indicating insufficient resources. The team has verified that the model artifact is correct and that the compartment policies allow deployment. What should the team do to successfully deploy the model?

A.Increase the number of nodes in the cluster to 2.
B.Enable model parallelism to split the model across nodes.
C.Select a node shape with higher GPU memory, such as 80 GB.
D.Reduce the model's precision from FP16 to INT8 to lower memory usage.
AnswerC

Using a node shape with sufficient memory allows the model to be loaded.

Why this answer

The model requires 64 GB of GPU memory, but the dedicated AI cluster uses a node shape with only 48 GB. The only way to satisfy the memory requirement is to select a node shape with higher GPU memory, such as 80 GB, as OCI Generative AI managed endpoints require a single node to host the entire model. Increasing nodes or enabling model parallelism does not help because OCI Generative AI does not support distributed inference across nodes for managed endpoints, and reducing precision may not guarantee the model fits or may degrade accuracy.

Exam trap

The trap here is that candidates may think adding more nodes or enabling model parallelism can aggregate GPU memory, but OCI Generative AI managed endpoints do not support distributed inference across nodes, so the only valid solution is to use a node shape with sufficient single-GPU memory.

How to eliminate wrong answers

Option A is wrong because increasing the number of nodes to 2 does not solve the memory issue; OCI Generative AI managed endpoints deploy the model on a single node, and additional nodes are not used to aggregate GPU memory for inference. Option B is wrong because model parallelism is not supported for managed endpoints in OCI Generative AI; the service expects the entire model to fit on one node's GPU memory. Option D is wrong because reducing precision from FP16 to INT8 may lower memory usage, but it is not a guaranteed fix and could introduce accuracy loss; moreover, the question states the model requires 64 GB of GPU memory, and the team should first ensure the hardware meets the requirement rather than altering the model.

719
MCQmedium

You manage a generative AI model deployed on OCI Model Deployment that serves a chatbot application. The model is a 13B parameter LLM on a VM.GPU.A100.1 shape. Recently, you rolled out a new version of the model that is supposed to improve response quality. However, after the update, the application starts returning HTTP 500 errors and memory usage spikes. You need to update to the new version without causing downtime. The current deployment has 2 replicas with autoscaling enabled. Which strategy should you use to safely deploy the new model version?

A.Directly update the existing model deployment with the new model artifact
B.Create a second deployment with the new model, test it, then shift traffic using a load balancer
C.Stop the existing deployment, update the model artifact, then start the deployment
D.Increase the number of replicas to 4, then update the model
AnswerB

Blue-green deployment ensures no downtime and safe rollout.

Why this answer

It implements a blue/green deployment strategy: you create a second deployment with the new model, test it in isolation, and then shift traffic using a load balancer. This avoids downtime and allows you to validate the new model before exposing it to production traffic, which is critical given the observed HTTP 500 errors and memory spikes.

Exam trap

The trap here is that candidates may assume increasing replicas provides safety through redundancy, but it does not prevent the new model from causing errors on all replicas; the key is isolation via a separate deployment and traffic shifting.

How to eliminate wrong answers

Option A is wrong because directly updating the existing model deployment with the new artifact would cause in-place changes, potentially triggering the memory spike and HTTP 500 errors on the live replicas, leading to downtime. Option C is wrong because stopping the existing deployment before updating causes complete downtime, violating the requirement to update without downtime. Option D is wrong because increasing replicas to 4 and then updating still performs an in-place update on all replicas, which does not isolate the faulty model and can still cause errors and memory spikes across the entire fleet.

720
MCQhard

Refer to the exhibit. A user runs 'oci generative-ai model list' and sees this output. They then try to use 'cohere.command-light' but get an error. What is the most likely reason?

A.The model is in INACTIVE state
B.The API key does not have access
C.The model is not listed
D.The region is wrong
AnswerA

INACTIVE models cannot be used for inference.

Why this answer

The model 'cohere.command-light' has lifecycle-state 'INACTIVE', meaning it cannot be used. Option B is false because the API key issue would produce a different error; Option C is false because the model is listed; Option D is false because a region mismatch would also produce a different error.

721
Multi-Selectmedium

Which three techniques are commonly used to reduce the risk of prompt injection in LLM applications? (Choose three.)

Select 3 answers
A.Enabling prompt validation against regex patterns.
B.Output filtering.
C.Increasing temperature.
D.Input sanitization.
E.Using role-based system prompts.
AnswersB, D, E

Filtering outputs can block dangerous responses.

Why this answer

Output filtering (B) is correct because it acts as a post-processing defense that scans the LLM's generated output for malicious content, such as leaked system prompts or injected commands, before it reaches the user. This technique helps mitigate the impact of successful prompt injections by catching and neutralizing harmful outputs that bypass input controls.

Exam trap

Oracle often tests the distinction between security controls and model parameters, so the trap here is that candidates mistakenly think adjusting model settings like temperature can reduce injection risk, when in fact only input/output controls and system prompt design are effective.

722
MCQmedium

When tuning the temperature parameter for a text generation task, which effect does setting temperature to 0.1 have compared to 0.9?

A.It increases the maximum number of tokens generated
B.It reduces the vocabulary considered at each step
C.It makes outputs more focused and deterministic
D.It increases randomness, producing more diverse outputs
AnswerC

Low temperature reduces randomness, making outputs more deterministic.

Why this answer

Low temperature makes output more deterministic and repetitive; high temperature increases randomness and creativity.

723
MCQmedium

A developer is building a summarization pipeline using OCI Generative AI. They want to ensure the summary includes key points from the entire document without truncation. Which parameter should they primarily adjust?

A.Max_tokens
B.Frequency_penalty
C.Temperature
D.Top_p
AnswerA

Max_tokens sets the maximum number of tokens in the generated summary, directly addressing truncation.

Why this answer

The max_tokens parameter controls the maximum length of the generated output. Increasing it allows longer summaries, preventing truncation.

724
MCQmedium

An organization wants to ensure that prompts submitted to an LLM do not contain sensitive customer data. Which practice is most effective?

A.Use a low temperature to avoid generating sensitive data
B.Increase the max tokens to allow the model to ignore sensitive data
C.Implement a prompt injection detection system that blocks malicious prompts
D.Sanitize user inputs by removing sensitive information before including them in the prompt
AnswerD

Correct: input sanitization is a direct mitigation.

Why this answer

Sanitizing prompts before submission (e.g., removing PII, using placeholders) prevents sensitive data from being sent to the model. Other options either do not prevent data leakage or are less direct.

725
MCQeasy

Which OCI Generative AI model family is specifically designed for reranking search results to improve relevance?

A.Cohere Command R
B.Cohere Command R+
C.Meta Llama 3
D.Cohere Rerank
AnswerD

Cohere Rerank is specifically designed for reranking tasks.

Why this answer

Cohere Rerank is the OCI Generative AI model family specifically designed for reranking search results to improve relevance. Unlike generation-focused models, Rerank takes a query and a list of candidate documents, scoring each for relevance to the query, thereby enhancing the quality of retrieved results in RAG pipelines.

Exam trap

OCI often tests the distinction between generative models (like Command R, Command R+, Llama 3) and specialized utility models (like Rerank), leading candidates to mistakenly select a generative model for a reranking task.

How to eliminate wrong answers

Option A is wrong because Cohere Command R is a generative model optimized for RAG and tool use, not for reranking search results. Option B is wrong because Cohere Command R+ is a larger, more capable generative model in the Command family, still focused on generation and instruction following, not reranking. Option C is wrong because Meta Llama 3 is a general-purpose large language model for text generation and understanding, not a specialized reranking model.

726
Multi-Selectmedium

Which TWO are best practices for prompt management in production environments?

Select 2 answers
A.Avoid using system prompts to keep prompts simple
B.Maintain a prompt library with reusable templates
C.Store prompts in a version-controlled repository
D.Keep all prompts as hard-coded strings in the application code
E.Use the same prompt for all use cases to reduce complexity
AnswersB, C

A library encourages consistency and saves time.

Why this answer

Versioning and maintaining a library of templates are essential for tracking changes and reusability.

727
MCQeasy

An organization wants to use an LLM to summarize legal documents. Which consideration is most important for ensuring accurate summaries?

A.Fine-tune the model on a curated legal corpus
B.Use the largest available general-purpose model
C.Rely on zero-shot summarization with careful prompting
D.Pre-train a new model from scratch on legal texts
AnswerA

Domain-specific fine-tuning teaches the model legal terminology and reasoning.

Why this answer

Legal documents require precise understanding, so fine-tuning on legal data is critical. Option B is wrong because larger models don't guarantee domain accuracy. Option C is wrong because pre-training from scratch is expensive and unnecessary.

Option D is wrong because zero-shot may miss legal nuances.

728
MCQeasy

A data scientist wants to fine-tune a generative AI model on proprietary customer data. What is a best practice for preparing the training dataset?

A.Randomly sample 1000 records from production logs.
B.Use the same dataset as the base model's pre-training data.
C.Curate a dataset of domain-specific examples with clear input-output pairs.
D.Use the largest available public dataset from the internet.
AnswerC

Domain-specific curated data ensures the model learns the desired behavior for the target use case.

Why this answer

Fine-tuning a generative AI model on proprietary data requires a curated, domain-specific dataset with clear input-output pairs. This ensures the model learns the desired task (e.g., summarization, classification) without introducing noise or irrelevant patterns, which is critical for OCI Generative AI Service fine-tuning where data quality directly impacts model performance.

Exam trap

Oracle often tests the misconception that more data (random or public) is always better for fine-tuning, when in fact curated, domain-specific data with clear input-output pairs is essential for effective adaptation without degrading base model capabilities.

How to eliminate wrong answers

Option A is wrong because randomly sampling 1000 records from production logs introduces noise, missing labels, and imbalanced distributions, which degrade fine-tuning quality and may cause catastrophic forgetting. Option B is wrong because using the same dataset as the base model's pre-training data provides no new information, leading to zero improvement and potential overfitting to already learned patterns. Option D is wrong because using the largest available public dataset from the internet introduces irrelevant or conflicting data, diluting domain-specific learning and violating data privacy requirements for proprietary customer data.

729
MCQmedium

An administrator needs to grant a group of data scientists access to use OCI Generative AI resources in a specific compartment. Which IAM policy statement should they use?

A.Allow group DataScientists to manage generative-ai-family in compartment ABC
B.Allow group DataScientists to inspect generative-ai-family in compartment ABC
C.Allow group DataScientists to use generative-ai-family in compartment ABC
D.Allow group DataScientists to read generative-ai-models in tenancy
AnswerC

Correct verb and resource for using GenAI.

Why this answer

The 'use' verb allows access to GenAI resources. The policy should target the specific compartment.

730
MCQhard

A company needs to integrate OCI Generative AI Service with an existing application that uses OCI IAM for authentication. They want to use resource principal to allow the application to call the service without storing API keys. Which step is REQUIRED?

A.Create an OCI API key for the application
B.Enable the Generative AI Service for resource principal in the tenancy
C.Assign the application to a group with admin privileges
D.Create a dynamic group and a policy granting access to the Generative AI Service
AnswerD

Dynamic group with matching rules and a policy are required for resource principal.

Why this answer

Resource principal authentication in OCI requires the application to be represented by a dynamic group, which matches instances or resources based on defined rules. A policy must then grant that dynamic group access to the Generative AI Service. This avoids storing API keys by using OCI IAM's built-in resource principal token exchange.

Exam trap

Oracle often tests the misconception that resource principal requires a tenancy-wide setting or an API key, when in fact the correct mechanism is a dynamic group combined with a targeted IAM policy.

How to eliminate wrong answers

Option A is wrong because creating an OCI API key would reintroduce the need to store and manage secrets, which resource principal is designed to eliminate. Option B is wrong because there is no tenancy-level toggle to 'enable' the Generative AI Service for resource principal; the service is always available for resource principal, but access is controlled via dynamic groups and policies. Option C is wrong because assigning the application to a group with admin privileges violates the principle of least privilege and is unnecessary; a custom policy granting only the required permissions to the dynamic group is sufficient and more secure.

731
MCQmedium

A company wants to use OCI Generative AI Agents to build a RAG application over documents stored in OCI Object Storage. What must they create first?

A.A knowledge base linked to the Object Storage bucket
B.A Dedicated AI Cluster
C.An embedding endpoint
D.A fine-tuning job for the base model
AnswerA

The agent uses a knowledge base to index and retrieve data from Object Storage.

Why this answer

OCI Generative AI Agents require a knowledge base to index data sources before creating an agent.

732
MCQhard

During iterative prompt refinement, a team evaluates two prompt variants on 100 test queries. Variant A scores 85% accuracy but occasionally generates offensive content. Variant B scores 80% accuracy with no safety issues. Which evaluation criterion should take priority for a customer-facing application?

A.Accuracy — because it is highest and the offensive content can be filtered post-hoc
B.Cost — the variant with higher accuracy uses fewer tokens
C.Safety — offensive content is unacceptable in a customer-facing system
D.Latency — because the variant with higher accuracy also has lower latency
AnswerC

Safety is a hard requirement; accuracy can be improved through further refinement.

Why this answer

For customer-facing applications, safety is paramount. Even if accuracy is slightly lower, ensuring no offensive content is critical to avoid reputational and legal risks. The team should prioritize safety and then work to improve accuracy.

733
MCQhard

A multinational corporation plans to deploy OCI Generative AI in multiple OCI regions for disaster recovery. They have fine-tuned a custom model in the primary region. What is the recommended approach to make the fine-tuned model available in the secondary region with minimal manual effort?

A.Create an IAM policy to allow cross-region access to the model from the secondary region.
B.Use OCI Cross-Region Replication for the model's underlying object storage bucket and the dedicated AI cluster.
C.Redeploy the fine-tuning job in the secondary region using the same training data.
D.Copy the model artifact to the secondary region's object storage bucket and create a new dedicated endpoint there.
AnswerD

This leverages existing model artifacts and can be automated with OCI CLI or SDK.

Why this answer

The recommended approach to make a fine-tuned custom model available in a secondary OCI region with minimal manual effort is to copy the model artifact (the trained weights and configuration files) to the secondary region's object storage bucket and then create a new dedicated endpoint there. This avoids re-running the expensive fine-tuning job and leverages OCI's object storage cross-region copy capabilities, while the dedicated AI cluster in the secondary region can serve the model directly from the copied artifact.

Exam trap

OCI often tests the misconception that cross-region replication of storage automatically makes the compute service (like a dedicated AI cluster) available in the secondary region, but in reality, the cluster is a separate resource that must be explicitly created and configured to use the replicated artifact.

How to eliminate wrong answers

Option A is wrong because IAM policies control access permissions but cannot make a model artifact physically available in another region; cross-region access to a model endpoint would still require the model to be deployed in the secondary region. Option B is wrong because OCI Cross-Region Replication for object storage buckets can replicate the model artifact, but it does not replicate the dedicated AI cluster (which is a compute resource, not a storage resource), and the cluster must be created separately in the secondary region. Option C is wrong because redeploying the fine-tuning job in the secondary region using the same training data is unnecessary and inefficient; it would consume significant time and compute resources when the model artifact can simply be copied.

734
MCQmedium

A data scientist wants to fine-tune a Cohere Command R model using the T-Few technique. They have prepared a dataset in JSONL format with prompt/completion pairs. Which step is REQUIRED before creating the fine-tuning job?

A.Register the dataset in OCI Data Labeling
B.Upload the dataset to an OCI Object Storage bucket
C.Deploy a dedicated AI cluster to host the base model
D.Create an OCI Functions endpoint for dataset preprocessing
AnswerB

Fine-tuning jobs in OCI GenAI read training data from Object Storage.

Why this answer

The dataset must be uploaded to an OCI Object Storage bucket so the fine-tuning job can access it. The other options are either optional or not required.

735
MCQhard

In a LangChain RAG pipeline using Oracle AI Vector Search, the developer wants to retrieve chunks that are both relevant and diverse to cover multiple aspects of a query. Which retrieval method should they configure on the retriever?

A.Threshold-based search
B.Maximal Marginal Relevance (MMR)
C.Random sampling of the top-k results
D.Similarity search with a high k value
AnswerB

MMR balances relevance and diversity by iteratively selecting documents that are dissimilar to already chosen ones.

Why this answer

Maximal Marginal Relevance (MMR) is the correct retrieval method because it explicitly balances relevance to the query with diversity among the retrieved chunks. In a LangChain RAG pipeline using Oracle AI Vector Search, MMR re-ranks the initial similarity results to minimize redundancy, ensuring the final set covers multiple aspects of the query rather than returning near-duplicate chunks.

Exam trap

The 1Z0-1127 exam often tests the misconception that simply increasing k or using a threshold will naturally yield diverse results, but candidates fail to recognize that without an explicit diversity mechanism like MMR, similarity-based retrievers inherently favor redundancy over coverage.

How to eliminate wrong answers

Option A is wrong because threshold-based search returns all chunks above a similarity score cutoff, which can still produce redundant results and does not enforce diversity. Option C is wrong because random sampling of the top-k results ignores relevance entirely, potentially returning irrelevant chunks and defeating the purpose of a RAG pipeline. Option D is wrong because similarity search with a high k value simply retrieves more chunks based on similarity, but without any diversity mechanism, it often returns clusters of near-identical content, failing to cover multiple query aspects.

736
MCQeasy

A developer is building a RAG pipeline using OCI Data Science and wants to store vector embeddings. Which OCI service is optimized for vector search and can be used as a vector store?

A.OCI Autonomous Database
B.OCI OpenSearch
C.OCI Object Storage
D.OCI Streaming
AnswerB

OCI OpenSearch includes a vector database plugin for k-NN similarity search, making it a suitable vector store.

Why this answer

B is correct because OCI OpenSearch is a fully managed, search and analytics engine that natively supports k-nearest neighbor (k-NN) search on dense vector embeddings. It provides optimized indexing and querying for high-dimensional vectors, making it the ideal vector store for a RAG pipeline in OCI Data Science.

Exam trap

The trap here is that candidates may confuse OCI Autonomous Database's ability to store vectors with being optimized for vector search, overlooking that OpenSearch is purpose-built for high-performance vector similarity search with native k-NN support.

How to eliminate wrong answers

Option A is wrong because OCI Autonomous Database, while capable of storing vectors, is not optimized for vector search; it lacks native k-NN indexing and relies on SQL-based similarity searches that are less performant for large-scale vector retrieval. Option C is wrong because OCI Object Storage is a blob storage service for unstructured data and does not support vector search operations or indexing. Option D is wrong because OCI Streaming is a real-time data ingestion service for event streams and has no vector storage or search capabilities.

737
Multi-Selecthard

Which THREE techniques effectively reduce query latency in a RAG system?

Select 3 answers
A.Pre-compute embeddings for all documents
B.Use approximate nearest neighbor search
C.Use a larger generation model
D.Increase the number of shards
E.Use a smaller embedding model
AnswersA, B, E

Pre-computed embeddings avoid real-time embedding calls during query.

Why this answer

Pre-computing embeddings for all documents eliminates the need to generate embeddings at query time, which is a computationally expensive step. By storing pre-computed vector representations, the system can directly perform similarity searches against the index, significantly reducing latency.

Exam trap

Oracle often tests the misconception that increasing model size or shard count always improves performance, but in RAG systems, these changes can introduce latency penalties due to higher computational overhead or distributed coordination costs.

738
MCQhard

A prompt engineer notices that the model sometimes generates outputs that include parts of the system prompt or user message verbatim. This is likely a symptom of which common prompt failure?

A.Ambiguous instructions
B.Conflicting requirements
C.Insufficient context
D.Prompt injection vulnerabilities
AnswerD

Prompt injection can cause the model to treat parts of the prompt as instructions and output them, leading to leakage.

Why this answer

Prompt injection vulnerabilities can cause the model to leak or repeat the prompt itself. This is a known failure mode where the model confuses the input with output.

739
MCQmedium

A financial services company is deploying a RAG system for regulatory compliance queries. The system uses OCI Data Science to run a custom embedding model fine-tuned on regulatory documents. The index in OpenSearch uses cosine similarity and HNSW algorithm. Users report that queries containing synonyms to regulatory terms (e.g., "AML" vs "Anti-Money Laundering") often fail to retrieve relevant documents. Which combination of improvements would be MOST effective? (Assume budget and latency constraints)

A.Increase the `m` parameter in HNSW to improve recall
B.Fine-tune the embedding model further on a dataset of synonyms
C.Implement a hybrid search combining keyword and vector search
D.Use query expansion with a thesaurus before embedding
AnswerC

Hybrid search (BM25 + vector) directly captures exact term matches, bridging the synonym gap effectively.

Why this answer

Hybrid search (combining keyword (BM25) and vector search) catches exact synonym matches from text. Query expansion helps but may not be as reliable. Fine-tuning on synonyms is possible but time-consuming.

Increasing HNSW m slightly improves recall but does not address synonym gap.

740
MCQmedium

A developer notices that the RAG application returns irrelevant chunks for user queries. The embedding model used is `cohere.embed-english-light-v3.0`. Which action is MOST likely to improve relevance?

A.Reduce the number of retrieved chunks (k)
B.Increase the chunk size
C.Switch to a larger embedding model (e.g., cohere.embed-english-v3.0)
D.Use a different similarity metric (e.g., Euclidean instead of cosine)
AnswerC

Larger models produce higher-quality embeddings, improving retrieval relevance.

Why this answer

The `cohere.embed-english-light-v3.0` model is a smaller, faster embedding model that may lack the semantic richness needed to capture nuanced query-document relationships. Switching to the larger `cohere.embed-english-v3.0` model provides higher-dimensional embeddings with better representational capacity, which directly improves the relevance of retrieved chunks in a RAG pipeline.

Exam trap

Oracle often tests the misconception that tuning retrieval parameters (k, chunk size, similarity metric) can compensate for a weak embedding model, when in fact the embedding quality is the foundational factor for relevance in RAG systems.

How to eliminate wrong answers

Option A is wrong because reducing the number of retrieved chunks (k) does not improve the relevance of each chunk; it merely returns fewer results, potentially missing relevant ones. Option B is wrong because increasing chunk size can dilute semantic focus, making chunks less specific to the query and often reducing relevance. Option D is wrong because cosine similarity is the standard metric for comparing dense embeddings; Euclidean distance is less effective for high-dimensional vectors and would not address the core issue of embedding quality.

741
MCQhard

During fine-tuning of a large language model on OCI, you notice that the model's performance on the validation set is not improving after several epochs, but the training loss continues to decrease. What is the most likely cause?

A.The learning rate is too high.
B.The validation set is not representative.
C.The model is overfitting to the training data.
D.The training data is too small.
AnswerC

Overfitting occurs when the model memorizes training examples, causing training loss to drop while validation performance plateaus or declines. This is the most likely cause.

Why this answer

When training loss decreases but validation performance stagnates or worsens, the model is overfitting to the training data. It memorizes the training examples but fails to generalize. A high learning rate might cause divergence, not this pattern.

Too small training data can contribute to overfitting but is not the direct symptom. An unrepresentative validation set could cause mismatch, but the described pattern is classic overfitting.

742
MCQmedium

Which of the following sampling strategies selects tokens based on a cumulative probability threshold from the highest probability tokens?

A.Top-p (nucleus) sampling
B.Top-k sampling
C.Greedy decoding
D.Temperature sampling
AnswerA

Top-p selects the smallest set of tokens whose cumulative probability exceeds p.

Why this answer

Top-p (nucleus) sampling cuts off the tail of the probability distribution where cumulative probability exceeds p, allowing dynamic vocabulary size.

743
Multi-Selecthard

A machine learning engineer is evaluating the performance of a translation model using BLEU score. Which THREE statements about BLEU are correct? (Choose three.)

Select 3 answers
A.BLEU includes a brevity penalty to penalize outputs that are too short
B.BLEU computes n-gram precision up to a maximum n (usually 4)
C.BLEU correlates well with human judgment at the corpus level
D.BLEU measures recall of n-grams by comparing the output to the reference
E.BLEU is a recall-oriented metric
AnswersA, B, C

The brevity penalty prevents short outputs from achieving artificially high scores.

Why this answer

BLEU is a precision-based metric (not recall). It uses modified n-gram precision with a brevity penalty. It correlates reasonably well with human judgment at the corpus level but has known limitations such as not capturing semantic equivalence.

744
MCQeasy

A healthcare company is using OCI GenAI to generate patient summaries from clinical notes. The model output sometimes includes hallucinated medical facts, such as incorrect dosages or diagnoses, which could be dangerous. The team needs to improve factual accuracy while maintaining data privacy. They have a large collection of internal medical knowledge bases (clinical guidelines, drug databases) that are stored in OCI Object Storage. The current implementation uses a zero-shot prompt with the base Cohere Command model. The data science team has limited GPU resources and wants to avoid building a complex pipeline. Which course of action best addresses the hallucination problem?

A.Increase the temperature parameter to 0.9 to encourage more deterministic outputs.
B.Use prompt engineering to add 'Only provide facts that are absolutely certain.'
C.Implement a RAG pipeline that retrieves relevant documents from the internal knowledge bases and includes them in the prompt.
D.Fine-tune the Cohere model on a publicly available medical dataset like PubMed.
AnswerC

RAG grounds generation in retrieved facts, significantly reducing hallucinations.

Why this answer

A Retrieval-Augmented Generation (RAG) pipeline directly addresses hallucination by grounding the model's output in verified, internal medical knowledge bases stored in OCI Object Storage. This approach retrieves relevant clinical guidelines or drug database entries and includes them in the prompt, providing factual context without requiring fine-tuning or complex GPU-intensive pipelines. It also preserves data privacy by keeping sensitive medical data within OCI and avoids exposing it to external model training.

Exam trap

Oracle often tests the misconception that prompt engineering alone can reliably eliminate hallucinations, but the trap here is that without external knowledge injection (RAG), the model cannot overcome its inherent tendency to fabricate facts, especially in high-stakes domains like healthcare.

How to eliminate wrong answers

Option A is wrong because increasing the temperature to 0.9 actually increases randomness and creativity, making outputs less deterministic and more prone to hallucinations, not less. Option B is wrong because prompt engineering with a vague instruction like 'Only provide facts that are absolutely certain' does not supply the model with actual factual data; the model still relies on its internal parametric knowledge, which is the source of hallucinations. Option D is wrong because fine-tuning on a publicly available dataset like PubMed introduces public, non-confidential data that may not align with the company's internal medical knowledge, and it requires significant GPU resources and complex pipeline management, which the team explicitly wants to avoid.

745
MCQeasy

A developer is testing a RAG application using OCI Generative AI. They receive an error: 'The model cohere.command-r-plus-v1:0 is not supported in this region.' What is the most likely cause?

A.The endpoint URL is incorrectly formatted.
B.The model is not available in the selected OCI region.
C.The tenancy is in a different availability domain.
D.The model name has a typo.
AnswerB

Cohere models are deployed in specific regions; the developer may be in a region where the model isn't provisioned.

Why this answer

The error message explicitly states that the model 'cohere.command-r-plus-v1:0' is not supported in the region. OCI Generative AI models are region-specific; each model is deployed only in certain OCI regions (e.g., us-ashburn-1, eu-frankfurt-1). If the selected region does not host that model, the API returns this error regardless of endpoint formatting, tenancy configuration, or model name spelling.

Exam trap

Oracle often tests the misconception that model availability is global across all OCI regions, leading candidates to overlook region-specific model deployment restrictions.

How to eliminate wrong answers

Option A is wrong because an incorrectly formatted endpoint URL would typically produce a 404 Not Found or a connection error, not a model-not-supported error. Option C is wrong because availability domains are a concept for compute instances, not for Generative AI model availability; the error is about regional model support, not AD-level placement. Option D is wrong because a typo in the model name would result in a 'model not found' error (e.g., 400 Bad Request), not a region-specific unsupported error.

746
MCQmedium

A developer runs an OCI GenAI chat request with system prompt "You are a sarcastic assistant." The output is offensive. How can the developer enforce safety policies?

A.Use the OCI GenAI content moderation filter.
B.Change model to LLAMA.
C.Increase maxTokens.
D.Set temperature to 0.
AnswerA

Content moderation filters explicitly block harmful or offensive content in outputs.

Why this answer

The OCI GenAI content moderation filter is specifically designed to enforce safety policies by detecting and blocking offensive, harmful, or policy-violating content in both input prompts and model outputs. By enabling this filter, the developer can prevent the model from generating offensive responses even when a system prompt like 'You are a sarcastic assistant' encourages undesirable behavior.

Exam trap

Oracle often tests the misconception that adjusting model parameters (like temperature or maxTokens) or switching model families can substitute for explicit content moderation, when in fact safety enforcement requires dedicated filtering mechanisms that operate independently of model behavior.

How to eliminate wrong answers

Option B is wrong because changing the model to LLAMA does not inherently enforce safety policies; LLAMA models have their own safety risks and require separate content moderation or fine-tuning to block offensive outputs. Option C is wrong because increasing maxTokens only extends the maximum length of the generated response, which does nothing to prevent offensive content—it may even allow the model to produce more harmful text. Option D is wrong because setting temperature to 0 makes the model deterministic (greedy decoding) but does not filter or moderate content; it can still generate offensive responses if the training data or system prompt encourages such behavior.

747
MCQmedium

A data scientist is fine-tuning a Llama 2 7B model on a custom dataset using OCI Data Science. After training, the model generates fluent but factually incorrect statements about the new domain. Which post-training technique would BEST address this issue without retraining?

A.Decrease the temperature to 0.1
B.Switch to a larger model like Llama 2 70B
C.Apply top-p sampling with p=0.9
D.Use a retrieval-augmented generation (RAG) pipeline
AnswerD

RAG retrieves relevant documents and feeds them as context, reducing hallucinations by grounding responses in verified sources.

Why this answer

RAG retrieves factual information from an external knowledge base to ground the generation, reducing hallucinations. The other options do not address factual accuracy.

748
MCQmedium

A developer notices that the ConversationalRetrievalChain in their LangChain application is not retaining context from previous turns in the conversation. Which component is most likely missing or misconfigured?

A.A document splitter to chunk the history
B.A retriever with appropriate search parameters
C.An embedding model to vectorize the history
D.A memory component like ConversationBufferMemory
AnswerD

Memory stores the conversation history and injects it into the prompt, enabling context retention.

Why this answer

ConversationalRetrievalChain requires a Memory component to store and retrieve chat history. Without Memory, the chain treats each query independently. The retriever, document splitter, and embeddings are responsible for retrieval and storage, not conversation history.

749
MCQhard

A data scientist in group DataScientists uses the OCI Generative AI SDK to start a fine-tuning job in compartment AIResources. They receive the error shown. What is the most likely cause?

A.The compartment AIResources does not exist.
B.The fine-tuning API is not yet available in that region.
C.The fine-tuning job requires additional IAM policies for accessing the training data in Object Storage.
D.The data scientist is not in the DataScientists group.
AnswerC

The policy must also grant permissions on Object Storage buckets containing the training data.

Why this answer

The error message indicates a permissions issue related to accessing training data in Object Storage. When using the OCI Generative AI SDK to start a fine-tuning job, the data scientist's IAM policies must explicitly grant read access to the bucket and objects containing the training data. Without these policies, the API call fails even if the user is in the correct group and the compartment exists.

Exam trap

The trap here is that candidates assume the error is about group membership or compartment existence, when in fact the fine-tuning job's dependency on Object Storage permissions is a classic oversight in OCI IAM policy configuration.

How to eliminate wrong answers

Option A is wrong because if the compartment AIResources did not exist, the error would be a '404 Not Found' or 'CompartmentNotFound' error, not a permissions-related error. Option B is wrong because the fine-tuning API is available in all OCI regions where Generative AI is supported; region unavailability would produce a 'ServiceNotSupported' or 'RegionNotSupported' error. Option D is wrong because the user is explicitly stated to be in the DataScientists group, and group membership alone does not grant access to Object Storage; IAM policies must be attached to the group or compartment to allow read access to training data.

750
MCQeasy

In few-shot prompting, what is the primary purpose of including examples in the prompt?

A.To reduce the need for a system prompt
B.To provide a template for the desired output format and reasoning pattern
C.To increase the model's vocabulary
D.To decrease the computational cost of inference
AnswerB

Examples demonstrate the expected mapping from input to output, reducing ambiguity.

Why this answer

Examples guide the model on the desired input-output pattern, improving task performance without fine-tuning.

Page 9

Page 10 of 11

Page 11

All pages