A hands-on professional exam for developers, ML engineers, and architects on Oracle Cloud. It validates that you can explain how large language models work, use the OCI Generative AI service, build RAG pipelines with LangChain and Oracle Database 23ai, and deploy grounded chatbots with OCI Generative AI Agents.
Learn → Practice → Apply · Build Smart. Scale Fast.
The Oracle Cloud Infrastructure Certified Generative AI Professional credential covers pretrained chat and embedding models, dedicated AI clusters, fine-tuning, endpoints, inference parameters, Retrieval-Augmented Generation (RAG) pipelines, and the OCI Generative AI Agents service. Expect scenario questions about picking the right fine-tuning method, sizing a dedicated AI cluster, tuning decoding parameters, choosing between HNSW and IVF vector indexes, and configuring an agent knowledge base. The current edition (as of July 2026) is 1Z0-1127-26, which carries an identical blueprint to the retired -25 edition — everything in this guide applies to the current exam.
The exam is organized into four domains weighted 20/40/20/20. The heavyweight is Using OCI Generative AI Service at 40% — roughly 20 of your 50 questions — so Part 2 of this guide is proportionally the deepest.
| Exam Facts | Details |
|---|---|
| Exam code | 1Z0-1127 (current edition 1Z0-1127-26 as of July 2026) |
| Questions | 50 multiple choice |
| Duration | 90 minutes |
| Passing score | 68% |
| Cost | $245 USD (as of July 2026) |
| Training | Free official course + practice exam on Oracle MyLearn |
| Prerequisites | None enforced; basic Python and OCI familiarity strongly recommended |
| Delivery | Online proctored via Oracle exam platform |
| Domains | LLM Fundamentals 20% · Using OCI Generative AI 40% · RAG with OCI 20% · RAG Agents Service 20% |
Work through the four parts in order — Part 1 gives you the vocabulary that Parts 2–4 build on. Budget the most study time for Part 2, exactly as the exam does. After each part, quiz yourself with the section headings: if you can explain every heading from memory, move on.
Four callout types appear throughout — Exam Tip (frequently tested or commonly confused points), Key Takeaway (the one idea to retain from a section), Remember (mnemonics and one-liners), and Note (useful nuance). The day before the exam, re-read only the callouts and tables — they compress the highest-yield facts in the guide.
About 10 of 50 questions. This domain is pure concepts — no OCI product names — covering what LLMs are, how transformer architectures differ, how prompting and fine-tuning adapt a model, how decoding turns probabilities into text, and where models fail (hallucination, bias). Every later domain reuses this vocabulary.
A large language model (LLM) is a probabilistic model of text: given a sequence of tokens (sub-word units), it computes a probability distribution over the vocabulary for the next token. Generation is simply repeated next-token prediction — the model appends a chosen token to the sequence and predicts again until it emits a stop condition. "Large" refers to the parameter count (billions of weights) and the scale of the training corpus.
Because the model outputs a distribution, not a single answer, two levers control behavior: what you feed in (prompting, and more permanently training/fine-tuning, which alters the distribution itself) and how you pick from the distribution (decoding, Section 1.5).
An LLM computes a probability distribution over its vocabulary for the next token. Prompting and fine-tuning change the distribution; decoding strategy changes how a token is selected from it. Nearly every Part 1 question is a variation on this sentence.
All modern LLMs are built from the transformer architecture, whose core mechanism — self-attention — lets every token weigh its relationship to every other token in the sequence, capturing long-range context that older recurrent networks lost. Transformers come in three configurations, and the exam expects you to match architecture to task:
| Architecture | What it does | Canonical examples | Best-fit tasks |
|---|---|---|---|
| Encoder-only | Converts text into a rich numeric representation (embedding) | BERT, Cohere Embed | Semantic search, classification, clustering — anything needing understanding, not generation |
| Decoder-only | Autoregressively generates the next token from left-to-right context | GPT family, Llama, Cohere Command | Chat, text generation, code generation — today's dominant LLM design |
| Encoder-decoder | Encoder reads the full input; decoder generates output conditioned on it | T5, BART | Sequence-to-sequence tasks: translation, structured summarization |
"Which model type produces vector embeddings for semantic search?" → encoder. "Which type generates fluent free text?" → decoder. "Translation from one language to another?" → encoder-decoder. These one-line mappings are asked almost verbatim.
A prompt is the input text that conditions the model's output; prompt engineering is the iterative craft of refining that text — instructions, examples, output-format requests — to steer the model without changing any weights. Key techniques:
Prompting has a dark side the exam tests: prompt injection (jailbreaking) — adversarial input crafted to override the system's instructions and make the model ignore its guardrails, leak its system prompt, or produce prohibited content. Treat any user-supplied text that reaches the prompt as untrusted input.
Zero-shot = instructions only. Few-shot = instructions + examples. CoT = show or request the reasoning steps. In-context learning is temporary — nothing is written to the model's weights.
When prompting cannot get the behavior you need — the model must adopt a domain vocabulary, a strict output format, or a task it consistently fails at — you adapt the weights:
When do you choose which adaptation path? The standard decision framework: start with prompt engineering (cheapest, instant); add RAG when the model needs your current, factual data it was never trained on; use fine-tuning when the model needs a style, format, or skill that prompting cannot reliably produce; combine RAG + fine-tuning for both.
Fine-tuning teaches behavior and style; RAG supplies knowledge and facts. A scenario about "answers must reflect this week's policy documents" is RAG. A scenario about "output must always follow our clinical note format" or "prompting with examples still fails" is fine-tuning. This distinction is tested repeatedly in Parts 1, 2, and 3.
Decoding is how a single output token is chosen from the model's probability distribution at each step:
Greedy = argmax, always the same output. Temperature reshapes probabilities (higher = flatter = more random). Top-k = fixed count cutoff. Top-p = probability-mass cutoff. If a question says "increasing this makes rare tokens more likely," the answer is temperature.
A hallucination is model output that is fluent and confident but factually wrong or unsupported by any source — invented citations, wrong dates, fabricated APIs. Hallucinations happen because the model optimizes for plausible next tokens, not true ones. Key exam framing:
Hallucination = fluent but ungrounded output; it can be reduced (RAG, retrieval grounding, citations, lower temperature) but never guaranteed away. Any answer option claiming a technique "eliminates" hallucinations is wrong.
Three LLM extensions round out the domain:
The core of the exam — around 20 of 50 questions — and where scenario detail matters most. OCI Generative AI is a fully managed, serverless service in which you consume pretrained foundation models through a single API, customize them with your own data, and (optionally) run them on dedicated GPU capacity. Know its models, parameters, cluster mechanics, fine-tuning workflow, endpoints, security posture, and moderation features cold.
OCI Generative AI provides:
The exam's mental model of the service has four moving parts: pretrained models → fine-tuning (optional) → dedicated AI clusters (capacity) → endpoints (access points).
The chat model lineup evolves, but the exam tests families and characteristics, not release-by-release specifics:
Chat models are conversation-aware: the API accepts a message history (roles for system/user/assistant style turns) so the model can use prior turns as context. Model choice questions hinge on the same factors as any FM selection: quality needs, context window, latency and cost, and whether you need fine-tuning support for that base.
The preamble is a Cohere chat concept — an initial context that sets tone and style. If no custom preamble is given, the model uses its built-in default. Expect one question on what a preamble does or what changing it affects.
You must know each request-time parameter and its effect:
Frequency vs. presence penalty is a classic trap. Frequency penalty scales with the count of prior occurrences ("penalize proportionally"). Presence penalty is binary — appeared once, penalized the same as appeared ten times. If the question mentions "reduces repetition proportional to occurrences," it is frequency penalty.
Embeddings are dense numeric vectors that represent the meaning of text; texts with similar meaning land close together in vector space, which is what makes semantic search possible — matching by meaning rather than keywords. OCI's embedding models are the Cohere Embed family:
Typical uses: semantic search (the RAG retrieval step in Parts 3–4), clustering, and classification. Remember from Part 1: embedding models are encoder architectures.
Embeddings turn meaning into geometry — semantically similar texts have nearby vectors. Standard Cohere Embed vectors are 1024-dimensional; light variants are smaller and cheaper; multilingual variants align meanings across languages.
Dedicated AI clusters are single-tenant GPU allocations that host your model workloads with no sharing across customers. There are two cluster types, and their mechanics are heavily tested:
| Aspect | Fine-tuning cluster | Hosting cluster |
|---|---|---|
| Purpose | Runs a fine-tuning training job | Serves inference for a model behind endpoints |
| Lifetime | Temporary — exists for the duration of training work | Long-running — active as long as the endpoint serves traffic |
| Typical size | 2 units of the matching unit type | Starts at 1 unit; add replicas/units for throughput |
| Minimum billing commitment | 1 unit-hour per fine-tuning job | 744 unit-hours per month (a full month) per cluster |
| Billing basis | Unit-hours consumed by the job × units | Unit-hours while the cluster exists — regardless of traffic |
Additional cluster facts to memorize:
Two numbers to burn in: fine-tuning clusters commit to a minimum of 1 unit-hour; hosting clusters commit to a minimum of 744 unit-hours per month. And fine-tuning typically requires 2 units while hosting starts at 1. Cost-calculation questions are simple multiplication once you know these.
OCI fine-tuning takes a pretrained base model + your labeled training dataset (prompt/completion pairs, uploaded to Object Storage, typically JSONL) and produces a custom model on a fine-tuning cluster. Two training methods:
Choose T-Few for most tasks, smaller datasets, and when you plan to serve many task-specific variants; choose vanilla when you have a large dataset and need deeper adaptation.
Key training hyperparameters you can set: total training epochs, learning rate, training batch size, and early stopping (patience/threshold) — defaults are model-specific and usually sensible.
Every fine-tuning job reports two evaluation numbers, and the exam asks what they mean:
Accuracy up = good, loss down = good. "Loss measures how bad a prediction is; a perfect model has loss approaching zero" is essentially a quotable exam answer.
An endpoint is the network access point through which applications send inference requests to a model on a hosting cluster:
Applications call endpoints through the OCI SDKs/REST API with standard OCI IAM authentication; access is governed by IAM policies on the Generative AI resources in the compartment.
OCI's Generative AI security story is a named exam topic. The pillars:
The dedicated security model in one sentence: your base + fine-tuned models run on GPUs dedicated to you, linked by an isolated RDMA network, with customer data kept in-tenancy, encrypted, and governed by IAM — no cross-customer sharing of GPUs, weights, or traffic.
OCI Generative AI includes content moderation to detect and handle harmful content — categories along the lines of hate/harassment, self-harm, sexual content, and violence. Exam-relevant mechanics:
About 10 of 50 questions. This domain is the build-it-yourself RAG path: LangChain as orchestration framework, OCI Generative AI models for embedding and chat, and Oracle Database 23ai as the vector store. (Part 4 covers the managed alternative.) Understand the pipeline end to end and every named component in it.
Retrieval-Augmented Generation grounds an LLM's answers in your own documents: instead of relying on parametric memory, the system retrieves relevant passages at question time and hands them to the model as context. Benefits: current and private knowledge without retraining, fewer hallucinations, and answers that can cite sources.
The canonical workflow has three phases:
Ingestion = Load → Split → Embed → Store. Retrieval = Embed the query → Search → Top-k. Generation = Question + retrieved context → grounded answer. If asked to order RAG steps, recite this.
LangChain is the orchestration framework that wires the pipeline together. Know its building blocks and the OCI-specific classes:
ChatOCIGenAI-style class) points at an OCI Generative AI model or endpoint, and an OCI embeddings class wraps the Cohere Embed models.PromptTemplate and ChatPromptTemplate build parameterized prompts with placeholders ({context}, {question}) filled at runtime — the standard way to inject retrieved chunks into the generation prompt.OracleVS integration) stores embeddings; calling as_retriever() turns it into a retriever component that returns top-k documents for a query.Map the phase to the LangChain component: loading → document loader; chunking → text splitter; embedding → embeddings class; storage/search → vector store / retriever; prompt assembly → prompt template; answer → chat model in a chain; multi-turn context → memory. Component-to-purpose matching is the most common LangChain question style.
Splitting matters because embedding models have input limits and because retrieval granularity drives answer quality:
Oracle 23ai also ships in-database utilities (the DBMS_VECTOR_CHAIN family) that can chunk and embed text inside the database, an alternative to doing it in Python.
Oracle Database 23ai adds AI Vector Search — native vector capability inside the converged relational database:
VECTOR data type stores embeddings in a table column right next to the business data they describe — no separate specialized vector database required.VECTOR_DISTANCE function computes similarity between vectors with a chosen metric (cosine, dot product, Euclidean), enabling similarity search in plain SQL (ORDER BY VECTOR_DISTANCE(...) FETCH FIRST k ROWS ONLY).OracleVS) handles inserting chunk embeddings and running similarity searches against 23ai from Python.At scale, exact search over every vector is too slow, so approximate-nearest-neighbor indexes trade a sliver of accuracy for large speedups. Oracle 23ai offers two, and their contrast is a guaranteed exam topic:
| Property | HNSW (Hierarchical Navigable Small World) | IVF (Inverted File Flat) |
|---|---|---|
| Structure | Multi-layer graph of neighbor links navigated greedily from top layer down | Vectors partitioned into clusters; search probes only the closest partitions |
| Where it lives | In-memory index — fast but bounded by available memory | Partition-based, storage-backed — suits datasets too large for memory |
| Query behavior | Very fast, high-accuracy approximate search | Efficient by narrowing to relevant clusters; accuracy depends on partitions probed |
| Best fit | Speed- and accuracy-critical search where the index fits in memory | Very large corpora, memory-constrained deployments |
HNSW = graph in memory; IVF = clusters/partitions on storage. If the stem mentions "neighbor graph" or "in-memory," answer HNSW; "partitions," "clusters," or "inverted file," answer IVF.
How "closeness" between a query vector and chunk vectors is measured:
Retrieval quality knobs: top-k (how many chunks to return — too few misses evidence, too many adds noise and cost) and the metric must match the one the embedding model was trained for. Use the same embedding model for documents and queries, or the vectors live in incompatible spaces and similarity is meaningless.
The final chain fills a prompt template with the retrieved chunks and the user question, instructs the model to answer only from the provided context, and invokes the OCI chat model. For multi-turn assistants, add memory:
A complete OCI RAG stack: LangChain orchestrates → OCI Cohere Embed embeds chunks and queries → Oracle 23ai stores vectors and runs VECTOR_DISTANCE similarity search (HNSW or IVF index) → OCI chat model generates the grounded answer → memory carries the conversation. Be able to name the component playing each role.
About 10 of 50 questions. OCI Generative AI Agents is the managed counterpart to Part 3: instead of assembling LangChain pipelines yourself, you configure a knowledge base, create an agent, and OCI runs ingestion, retrieval, grounding, citations, and sessions as a service.
The service pairs LLMs with an agent runtime that retrieves from your enterprise knowledge and answers with grounded, cited responses through a chat interface or API. The core RAG agent flow: user asks → agent retrieves relevant chunks from a knowledge base → LLM composes an answer with citations → the conversation continues within a session that preserves context. You manage four resource types: knowledge bases, agents, data sources, and endpoints.
A knowledge base is the agent's data backbone, and choosing among the three supported store types is the domain's signature question:
| Option | Who manages ingestion/embedding | Characteristics |
|---|---|---|
| OCI Object Storage (service-managed) | Oracle — fully automatic ingestion, chunking, embedding, indexing | Easiest path: drop PDF and TXT files (up to 100 MB each) into a bucket; PDFs may include tables and charts, which the service can interpret; reference images in answers |
| Oracle Database 23ai vector store (bring your own) | You — you create the tables, embeddings, and a SQL function returning search results in the shape the agent expects (body, score, and related fields) | Full control over embedding models and search logic; agent calls your function via a database tools connection |
| OCI Search with OpenSearch (bring your own) | You — you provision the OpenSearch cluster and ingest/index the data | Uses your existing OpenSearch indexes; supports lexical/keyword-style search integration |
"Least setup / Oracle manages ingestion end to end" → Object Storage. "We already store vectors in our Oracle database and want custom retrieval logic" → 23ai vector store with a custom retrieval function. "We already run OpenSearch indexes" → OpenSearch. Match the scenario's existing estate to the knowledge base type.
For service-managed (Object Storage) knowledge bases, an ingestion job processes the bucket's files: parsing, chunking, embedding, and indexing happen automatically, and you re-run ingestion when source files change — the job picks up new/updated files (and can resume, skipping files that already ingested successfully rather than reprocessing everything).
Hybrid search combines lexical (keyword) search with semantic (vector) search so that a query benefits both from exact term matching (product codes, names, acronyms) and meaning-based matching (paraphrases). This matters most with the OpenSearch knowledge-base path and in tuning retrieval quality: pure semantic search can miss exact identifiers; pure lexical search misses synonyms; hybrid captures both.
The deployment workflow to memorize:
IAM policies must grant the service and users access to the relevant resources (buckets, database connections, agent resources) in the compartment — permission-flavored answer options are usually about missing policies.
Sessions = conversational memory for users; tracing = conversational X-ray for developers. A question about "seeing which chunks the agent retrieved" is tracing; "the agent remembers the previous question" is sessions.
Citations are the Agents service's built-in groundedness feature — every RAG answer can point back to the exact source document (and page) that supports it. Tie this to Part 1: retrieval + citations is how the platform mitigates hallucination.
Beyond the console chat, applications call the agent programmatically through the Agent Runtime API/SDK:
This is the integration pattern for embedding the agent in Slack bots, web chat widgets, and internal tools — the exam checks that you know the order: endpoint → session → chat calls with session ID.
Limits questions are shallow but real — know the flavor of constraints rather than chasing every number:
Run through this list the night before; every line is a recurring exam answer.
VECTOR type + VECTOR_DISTANCE (cosine/dot/Euclidean) + SQL filters in the same query. HNSW = in-memory graph; IVF = storage-backed partitions.Finally, treat the weight distribution as your time budget: if you are short on prep time, drill Part 2 (clusters, fine-tuning, parameters, security) first — it alone is worth as much as any two other domains combined.
VECTOR_DISTANCE, HNSW/IVF index creation.Good luck — pass 1Z0-1127 and you hold the credential that proves you can take generative AI from prompt to production on Oracle Cloud.