Oracle certification · Exam 1z0-1127-25

1z0-1127-25 Mock Exam Page 2

Oracle Cloud Infrastructure 2025 Generative AI Professional

Free 1z0-1127-25 mock exam questions 11–20, each with the answer and an explanation.

20 questions · 33 minutes · free, no sign-up

Free 1z0-1127-25 questions

11–20 of 25 free
Question 11 Choose 1
Which statement best describes the role of encoder and decoder models in natural language processing?
Show answerHide answer

Correct answer: C Encoder models convert a sequence of words into a vector representation, and decoder models take this vector representation to generate a sequence of words.

Explanation

Explanation: Comprehensive and Detailed In-Depth Explanation:
In NLP (e.g., transformers), encoders convert input text into a vector representation (encoding meaning), while decoders generate text from such vectors (e.g., in translation or generation). This makes Option C correct. Option A is false—decoders generate text.
Option B reverses roles—encoders don’t predict next words, and decoders don’t encode.
Option D oversimplifies—encoders handle text, not just numbers. This is the foundation of seq2seq models.
OCI 2025 Generative AI documentation likely explains encoder-decoder roles under model architecture.
Question 12 Choose 1
How does a presence penalty function in language model generation?
Show answerHide answer

Correct answer: D It penalizes a token each time it appears after the first occurrence.

Explanation

Explanation: Comprehensive and Detailed In-Depth Explanation:
A presence penalty reduces the probability of tokens that have already appeared in the output, applying the penalty each time they reoccur after their first use, to discourage repetition. This makes Option D correct. Option A (equal penalties) ignores prior appearance. Option B is the opposite—penalizing unused tokens isn’t the intent. Option C (more than twice) adds an arbitrary threshold not typically used. Presence penalty enhances output variety.
OCI 2025 Generative AI documentation likely details presence penalty under generation control parameters.
Question 13 Choose 1
What is the main advantage of using few-shot model prompting to customize a Large Language Model (LLM)?
Show answerHide answer

Correct answer: C It provides examples in the prompt to guide the LLM to better performance with no training cost.

Explanation

Explanation: Comprehensive and Detailed In-Depth Explanation:
Few-shot prompting involves providing a few examples in the prompt to guide the LLM’s behavior, leveraging its in-context learning ability without requiring retraining or additional computational resources. This makes Option C correct. Option A is false, as few-shot prompting doesn’t expand the dataset. Option B overstates the case, as inference still requires resources. Option D is incorrect, as latency isn’t significantly affected by few-shot prompting.
OCI 2025 Generative AI documentation likely highlights few-shot prompting in sections on efficient customization.
Question 14 Choose 1
Which is a key characteristic of Large Language Models (LLMs) without Retrieval Augmented Generation (RAG)?
Show answerHide answer

Correct answer: B They rely on internal knowledge learned during pretraining on a large text corpus.

Explanation

Explanation: Comprehensive and Detailed In-Depth Explanation:
LLMs without Retrieval Augmented Generation (RAG) depend solely on the knowledge encoded in their parameters during pretraining on a large, general text corpus. They generate responses basedon this internal knowledge without accessing external data at inference time, making Option B correct. Option A is false, as external databases are a feature of RAG, not standalone LLMs. Option C is incorrect, as LLMs can generate responses without fine-tuning via prompting or in-context learning. Option D is wrong, as vector databases are used in RAG or similar systems, not in basic LLMs. This reliance on pretraining distinguishes non-RAG LLMs from those augmented with real-time retrieval.
OCI 2025 Generative AI documentation likely contrasts RAG and non-RAG LLMs under model architecture or response generation sections.
Question 15 Choose 1
In which scenario is soft prompting appropriate compared to other training styles?
Show answerHide answer

Correct answer: C When there is a need to add learnable parameters to a Large Language Model (LLM) without task-specific training

Explanation

Explanation: Comprehensive and Detailed In-Depth Explanation:
Soft prompting adds trainable parameters (soft prompts) to adapt an LLM without retraining its core weights, ideal for low-resource customization without task-specific data. This makes Option C correct. Option A suits fine-tuning. Option B may require more than soft prompting (e.g., domain fine-tuning). Option D describes pretraining, not soft prompting.
Soft prompting is efficient for specific adaptations.
OCI 2025 Generative AI documentation likely discusses soft prompting under PEFT methods.
Question 16 Choose 1
An AI development company is working on an advanced AI assistant capable of handling queries in a seamless manner. Their goal is to create an assistant that can analyze images provided by users and generate descriptive text, as well as take text descriptions and produce accurate visual representations. Considering the capabilities, which type of model would the company likely focus on integrating into their AI assistant?
Show answerHide answer

Correct answer: A A diffusion model that specializes in producing complex outputs.

Explanation

Explanation: Comprehensive and Detailed In-Depth Explanation:
The task requires bidirectional text-image capabilities: analyzing images to generate text and generating images from text. Diffusion models (e.g., Stable Diffusion) excel at complex generative tasks, including text-to-image and image-to-text with appropriate extensions, making Option A correct. Option B (LLM) is text-only. Option C (token-based LLM) lacks image handling. Option D (RAG) focuses on text retrieval, not image generation. Diffusion models meet both needs.
OCI 2025 Generative AI documentation likely discusses diffusion models under multimodal applications.
Question 17 Choose 1
In the simplified workflow for managing and querying vector data, what is the role of indexing?
Show answerHide answer

Correct answer: B To map vectors to a data structure for faster searching, enabling efficient retrieval

Explanation

Explanation: Comprehensive and Detailed In-Depth Explanation:
Indexing in vector databases maps high-dimensional vectors to a data structure (e.g., HNSW,Annoy) to enable fast, efficient similarity searches, critical for real-time retrieval in LLMs. This makes Option B correct. Option A is backwards—indexing organizes, not deindexes.
Option C (compression) is a side benefit, not the primary role. Option D (categorization) isn’t indexing’s purpose—it’s about search efficiency. Indexing powers scalable vector queries.
OCI 2025 Generative AI documentation likely explains indexing under vector database operations.
Question 18 Choose 1
What happens if a period (.) is used as a stop sequence in text generation?
Show answerHide answer

Correct answer: D The model stops generating text after it reaches the end of the first sentence, even if the token limit is much higher.

Explanation

Explanation: Comprehensive and Detailed In-Depth Explanation:
A stop sequence in text generation (e.g., a period) instructs the model to halt generation once it encounters that token, regardless of the token limit. If set to a period, the model stops after the first sentence ends, making Option D correct. Option A is false, as stop sequences are enforced. Option B contradicts the stop sequence’s purpose. Option C is incorrect, as it stops at the sentence level, not paragraph.
OCI 2025 Generative AI documentation likely explains stop sequences under text generation parameters.
Question 19 Choose 1
How are chains traditionally created in LangChain?
Show answerHide answer

Correct answer: C Using Python classes, such as LLMChain and others

Explanation

Explanation: Comprehensive and Detailed In-Depth Explanation:
Traditionally, LangChain chains (e.g., LLMChain) are created using Python classes that define sequences of operations, such as calling an LLM or processing data. This programmatic approach predates LCEL’s declarative style, making Option C correct. Option A is vague and incorrect, as chains aren’t ML algorithms themselves. Option B describes LCEL, not traditional methods. Option D is false, as third-party integrations aren’t required. Python classes provide structured chain building.
OCI 2025 Generative AI documentation likely contrasts traditional chains with LCEL under LangChain sections.
Question 20 Choose 1
What does a cosine distance of 0 indicate about the relationship between two embeddings?
Show answerHide answer

Correct answer: C They are similar in direction

Explanation

Explanation: Comprehensive and Detailed In-Depth Explanation:
Cosine distance measures the angle between two vectors, where 0 means the vectors point in the same direction (cosine similarity = 1), indicating high similarity in embeddings’ semantic content—Option C is correct. Option A (dissimilar) aligns with a distance of 1.
Option B is vague—directional similarity matters. Option D (magnitude) isn’t relevant—cosine ignores magnitude. This is key for semantic comparison.
OCI 2025 Generative AI documentation likely explains cosine distance under vector database metrics.
Full mock exam

Sit the 1z0-1127-25 exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real 1z0-1127-25 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full 1z0-1127-25 mock exam
  • 65questions per mock
  • 105 mintime limit
  • 85questions in the bank
  • Newmock on every attempt