Oracle Cloud Infrastructure 2025 Generative AI Professional Free Sample Questions

Description

Covers large language model fundamentals and prompt design, the OCI Generative AI service for chat, embedding and fine-tuning, retrieval-augmented generation with LangChain, and building RAG agents.

17 free sample questions290 in the full practice test

Try simulator

1Z0-1127-25 Sample Questions

  1. Question 1

    Beginner

    Fundamentals of Large Language Models (LLMs) · Model Parameters for Prompt Control

    A data science team is developing a new LLM-based application to generate creative marketing slogans. They observe that the model's output is highly deterministic and lacks variety, often repeating the same few ideas. Which model parameter should they adjust to increase the creativity and randomness of the generated text?

    Answer and explanation

    Correct answer: B

    The temperature parameter controls the randomness of the output. A lower temperature (e.g., 0.2) makes the model more deterministic and focused, while a higher temperature (e.g., 0.9) increases randomness, leading to more creative and diverse outputs. This is the correct parameter to adjust for the desired outcome.

  2. Question 2

    Intermediate

    Fundamentals of Large Language Models (LLMs) · Prompt Engineering Techniques

    A financial services company is building a chatbot to answer complex customer queries about mortgage applications. The queries often require multi-step reasoning. For example, a user might ask, 'If I have an income of $120,000, a credit score of 750, and $50,000 for a down payment, what is the maximum loan I can qualify for and what would my estimated monthly payment be?' Which prompt engineering technique is best suited for guiding the LLM to solve this problem accurately?

    Answer and explanation

    Correct answer: C

    Chain-of-thought (CoT) prompting is specifically designed for problems requiring multi-step reasoning. It involves providing examples where the intermediate reasoning steps are explicitly written out. This guides the model to 'think step-by-step,' breaking down the complex problem into smaller, manageable parts, which significantly improves accuracy on arithmetic and logical reasoning tasks.

  3. Question 3

    Beginner

    Using OCI Generative AI Service · Create dedicated AI clusters for fine-tuning and inference

    What is the primary function of a Dedicated AI Cluster within the OCI Generative AI service?

    Answer and explanation

    Correct answer: C

    A Dedicated AI Cluster is a managed set of dedicated GPU resources. Its primary purpose is to provide the necessary computational power for the intensive tasks of fine-tuning a base model with custom data and for hosting custom model endpoints for dedicated, high-performance inference.

  4. Question 4

    Beginner

    Fundamentals of Large Language Models (LLMs) · LLM Architecture Fundamentals

    True or False: In the transformer architecture, positional encoding is added to the input embeddings to provide the model with information about the order of tokens in a sequence.

    Answer and explanation

    Correct answer: A

    This statement is true. The self-attention mechanism in a transformer processes all tokens in parallel and has no inherent sense of their order. Positional encodings are vectors that are added to the token embeddings to give the model explicit information about the position of each token in the sequence.

  5. Question 5

    Intermediate

    Using OCI Generative AI RAG Agents service · Discuss options for creating knowledge bases

    An administrator of the OCI Generative AI Agents service needs to delete a Knowledge Base named 'Q3-Financial-Reports'. However, every attempt to delete it from the console fails without a specific error message. What is the most probable reason for this failure and what action must be taken first?

    Answer and explanation

    Correct answer: C

    The OCI Generative AI Agents service maintains dependencies between resources. A Knowledge Base cannot be deleted if one or more Agents are actively using it. This is a protective measure to prevent breaking deployed applications. The correct procedure is to first delete any Agents that rely on the Knowledge Base, or edit them to use a different one, before attempting to delete the Knowledge Base itself.

  6. Question 6

    IntermediateMultiple answers

    Using OCI Generative AI Service · Explore OCI Generative AI security architecture

    A retail company is using OCI Generative AI to create personalized product descriptions. To ensure brand consistency and prevent the model from generating unsafe content, the AI architect needs to implement security controls. Which TWO of the following OCI security mechanisms are most directly applicable to controlling access to the Generative AI service and monitoring its usage? (Select TWO)

    Answer and explanation

    Correct answers: B, D

    OCI Identity and Access Management (IAM) is the primary mechanism for controlling who can do what with OCI resources. Creating granular policies to allow or deny actions like creating fine-tuning jobs, deploying endpoints, or invoking models is fundamental to securing the service.

    The OCI Audit service automatically records all API calls made to OCI services in a tenancy. This is crucial for monitoring who is using the Generative AI service, what actions they are performing, and when. It provides an immutable log for security analysis and compliance.

  7. Question 7

    Intermediate

    Implement RAG using OCI Generative AI service · Explain RAG and RAG workflow

    A data engineer is building the ingestion pipeline for a RAG system. The source consists of thousands of large PDF documents stored in an OCI Object Storage bucket. Which sequence of steps, using a framework like LangChain, correctly describes the data preparation process before the data can be stored in a vector database?

    flowchart LR A[OCI Object Storage] --> B{Load Documents} B --> C{Split into Chunks} C --> D{Generate Embeddings} D --> E[(Vector Database)]

    Answer and explanation

    Correct answer: B

    This is the correct sequence for the RAG ingestion pipeline. First, the raw documents are loaded (e.g., using a PDF loader). Second, because LLM embedding models have context limits, the loaded text is split into smaller, manageable chunks. Finally, each of these text chunks is passed to an embedding model to create its corresponding vector representation, which can then be stored.

  8. Question 8

    Intermediate

    Implement RAG using OCI Generative AI service · Explain RAG and RAG workflow

    A project manager is deciding between two approaches for building a question-answering system for their company's internal documentation: full fine-tuning a base model versus implementing a Retrieval-Augmented Generation (RAG) system. The documentation is updated daily with new policies and procedures. Which of the following is the STRONGEST reason to choose the RAG approach in this scenario?

    Answer and explanation

    Correct answer: B

    This is the core advantage of RAG for this use case. With RAG, updating the system's knowledge is as simple as updating the documents in the vector store, a process that can be easily automated. In contrast, fine-tuning embeds knowledge into the model's weights, requiring a costly and time-consuming retraining process every time the documentation changes. For frequently updated knowledge, RAG is far more practical and scalable.

Register free for 9 more questions

Or unlock all 290 1Z0-1127-25 questions with explanations, timed mode and flashcards.