Home / Oracle Cloud Infrastructure 2024 Generative AI Professional (1Z0-1127-24) / Mock exam
Oracle Cloud Infrastructure 2024 Generative AI Professional (1Z0-1127-24) Exam-style mock test

Oracle OCI Generative AI Professional (1Z0-1127) Practice Exams|Practice test

Full explanations Exam format Pass line 65%
33 USD One-time · lifetime access
Enroll →

Sample questions

Example1 · Large Language Models and Generative AI Fundamentals
A B2B SaaS company is evaluating a large language model to power its customer-support assistant. An architect wants to explain to non-technical stakeholders what fundamentally defines an LLM as a type of model. Which statement best captures the defining characteristic of a large language model?
✓It is a neural network trained on very large text corpora to predict the probability of the next token given preceding context
Correct. An LLM is a large neural network trained on massive text to model token probabilities, generating output by predicting likely next tokens from context.
・It is a rule-based parser that applies a fixed grammar to decompose sentences into predefined syntactic categories for lookup
Incorrect. LLMs do not rely on hand-written fixed grammars; they learn statistical patterns from data rather than applying predefined syntactic rules.
・It is a relational database engine that stores every training sentence and retrieves exact matches when a user query arrives
Incorrect. LLMs do not store and retrieve exact training sentences; they encode learned parameters and generate novel text probabilistically.
・It is a supervised classifier limited to sorting input documents into a small set of manually labeled business categories
Incorrect. LLMs are generative and general-purpose, not restricted to sorting documents into a few fixed, manually labeled categories.
Explanation
A large language model is fundamentally a neural network trained on large text corpora to predict the next token, which is what enables its generative, general-purpose language capabilities.
Example2 · OCI Generative AI Service: Models and Inference
A B2B SaaS company wants to add a conversational assistant to its support portal and needs a hosted chat model from OCI Generative AI that follows multi-turn instructions. Which category of pretrained model should its team select for this conversational workload?
・An embedding model that converts support tickets into dense numeric vectors for semantic search
Incorrect. Embedding models produce vector representations for search and clustering, not interactive conversational responses.
✓A chat model designed for interactive, instruction-following, multi-turn conversations
Correct. OCI Generative AI chat models are built for interactive, instruction-following, multi-turn dialogue, which matches a support assistant.
・A reranking model that reorders retrieved candidate passages before they are returned to the user
Incorrect. Reranking models order retrieved passages by relevance and do not generate conversational replies.
・A summarization-only model that condenses long call transcripts into short abstractive summaries
Incorrect. A summarization-only model condenses text but is not intended for back-and-forth conversational support.
Explanation
Conversational assistants that follow instructions across turns require a chat model, which is the OCI Generative AI category purpose-built for that behavior.
Example3 · Prompt Engineering and Model Customization (Fine-Tuning)
A B2B SaaS company is adding a support-ticket classifier to its platform using an OCI Generative AI base model. The data science lead wants to start with the lowest-cost, fastest-to-iterate approach before committing infrastructure. Which customization approach should the team adopt first for this goal?
・Provision a dedicated AI cluster and run a full fine-tuning job on the labeled ticket corpus before any evaluation
Incorrect. Provisioning a dedicated cluster and running full fine-tuning first incurs the highest cost and slowest iteration, the opposite of the stated goal.
✓Craft prompts with clear instructions and a few labeled examples, iterating on wording before considering training
Correct. Prompt engineering with instructions and few-shot examples is the cheapest, fastest way to iterate and should be tried before investing in training.
・Pretrain a new foundation model from scratch on the company's historical ticket archive and logs
Incorrect. Pretraining a foundation model from scratch is extremely expensive and unnecessary when capable base models already exist.
・Immediately fine-tune the base model using T-Few on the entire multi-year ticket dataset without testing prompts
Incorrect. Jumping straight to fine-tuning on the full dataset skips cheap prompt iteration and commits cost prematurely.
Explanation
Prompt engineering is the lowest-cost, fastest customization lever and should be exhausted before moving to fine-tuning or pretraining.
Example4 · RAG, Vector Search, and Semantic Search on OCI
A healthcare services firm builds a RAG assistant so clinicians can ask questions about internal care protocols. An engineer asks what the retrieval step contributes to the generated answer. Which description best captures the purpose of retrieval in a RAG pipeline?
✓It fetches relevant document chunks from a knowledge store and supplies them as grounding context to the language model before it generates its answer text
Correct. Retrieval pulls relevant chunks from the knowledge store and passes them as context, grounding the model's generated answer in the firm's protocols.
・It replaces the language model entirely so that answers are returned directly from the matched documents without any generative step being performed at all
Incorrect. RAG still uses the language model to generate the answer; retrieval augments, not replaces, generation.
・It fine-tunes the base language model on every incoming clinician question so the model permanently memorizes the firm's internal care protocols over time
Incorrect. Retrieval does not fine-tune the model; it injects external context at inference time without changing model weights.
・It converts the clinician's natural-language question into executable SQL that queries a relational database of protocols and returns exact matching rows
Incorrect. RAG retrieval is based on semantic similarity over embeddings, not on generating SQL against a relational store.
Explanation
In RAG, the retriever fetches relevant context from an external store and supplies it to the generator, which produces a grounded answer. The model is neither replaced nor fine-tuned by retrieval.
Example5 · Building and Deploying LLM Applications and Agents
A healthcare services firm is building a patient-triage assistant in LangChain that must pass a cleaned symptom summary into a prompt template, call the LLM, and then parse the structured output. Which LangChain concept lets the team wire these steps together so the output of one component becomes the input of the next?
✓A chain, which sequences components such as prompts, models, and parsers so each step's output feeds the next step's input
Correct. A chain composes components (prompt, model, output parser) in sequence, passing each step's output as the next step's input.
・A memory buffer that stores every prior user message and silently appends it to all future prompts without additional configuration
Incorrect. A memory buffer persists conversation history; it does not define the sequential flow that wires prompt, model, and parser together.
・A retriever that queries the vector store for relevant documents and returns them ranked by cosine similarity score
Incorrect. A retriever fetches documents from a store; it does not sequence the prompt-model-parser pipeline the firm needs.
・An embedding model that converts the symptom text into a dense vector suitable for storage and semantic search
Incorrect. An embedding model produces vectors for search; it is not the construct that orders the processing steps.
Explanation
Chains are LangChain's mechanism for sequencing components so each output becomes the next input.
Example6 · Large Language Models and Generative AI Fundamentals
A data scientist at a healthcare services firm is explaining to clinical staff why a large language model can answer free-form questions about patient intake notes it was never explicitly programmed to handle. Which characteristic of LLMs best accounts for this behavior?
・The model stores every training document verbatim and looks up the closest matching passage to return as its answer
Incorrect. LLMs do not store and retrieve training documents verbatim; parameters encode distributed statistical patterns, not a lookup index of passages.
✓The model learns statistical patterns over tokens during pretraining and predicts the next token to generate novel text
Correct. Through pretraining on large corpora, an LLM learns probability distributions over token sequences and generates text by predicting the next token, enabling responses to unseen prompts.
・The model relies on a fixed rule table that maps each possible medical question to one predefined clinical response
Incorrect. A fixed rule table mapping questions to responses describes a rules-based system, not a learned generative LLM.
・The model queries an external knowledge base at inference time to retrieve the exact answer from indexed records
Incorrect. Base LLMs generate from internal parameters; external retrieval is an add-on pattern such as RAG, not the core reason they handle novel prompts.
Explanation
LLMs generalize to unseen inputs because pretraining teaches them statistical token patterns used for next-token prediction, rather than memorizing documents or following fixed rules.
Example7 · Large Language Models and Generative AI Fundamentals
The AI team at Maplewood Outfitters, a retail apparel brand, is onboarding new analysts and wants a concise explanation of what makes a language model a 'large' language model. Which description best captures the defining characteristic?
・A model trained exclusively on retail product catalogs so that it only understands commerce vocabulary and domain-specific apparel terminology
Incorrect. LLMs are trained on broad general corpora, not exclusively on a narrow domain catalog; domain adaptation is a later step, not the definition.
✓A model with a very large number of parameters trained on broad text corpora to predict tokens and generalize across many language tasks
Correct. The 'large' refers to a very high parameter count trained on broad text, enabling token prediction and generalization across many tasks.
・A model that stores every customer sentence it has ever seen in a lookup table and retrieves the closest stored match at inference time
Incorrect. LLMs do not memorize and retrieve exact sentences from a table; they learn statistical patterns in parameters to generate text.
・A rule-based system where linguists manually encode a comprehensive grammar so the system can parse and respond to typed customer questions
Incorrect. LLMs are learned statistical models, not hand-encoded rule-based grammar systems built manually by linguists.
Explanation
A large language model is defined by its very large number of learned parameters trained on broad text to predict tokens and generalize across tasks.
Example8 · Large Language Models and Generative AI Fundamentals
A developer at Maplewood Outfitters watches an LLM produce a product description one piece at a time and asks how the model decides what text comes next. Which explanation of the generation process is correct?
・The model generates the entire paragraph simultaneously in a single step and then edits any grammatical mistakes it finds afterward
Incorrect. LLMs generate autoregressively, one token at a time, not an entire paragraph at once with a separate editing pass.
✓The model predicts the next token from a probability distribution over the vocabulary, then appends it and repeats until the output is complete
Correct. The model samples or selects the next token from a probability distribution over the vocabulary, appends it, and repeats autoregressively.
・The model searches an indexed database of previously written descriptions and copies the whole passage that best fits the given prompt
Incorrect. The model does not copy whole passages from an index; it computes a distribution over tokens and generates new text.
・The model counts the letters requested in the prompt and emits exactly that many characters drawn uniformly at random from its vocabulary
Incorrect. Generation is driven by learned probabilities, not by counting requested characters or emitting uniformly random symbols.
Explanation
LLMs generate text autoregressively, predicting the next token from a probability distribution and repeating the process until done.
Example9 · Large Language Models and Generative AI Fundamentals
A content manager at Maplewood Outfitters wants the LLM to write marketing copy in a friendly tone with three bullet points, but gives only the instruction 'describe this jacket.' The output is a plain sentence. What is the most appropriate way to steer the model toward the desired format?
・Retrain the base model from scratch on a dataset of friendly three-bullet marketing descriptions before trying to use it for any copy
Incorrect. Retraining from scratch is wildly disproportionate; prompt refinement handles formatting and tone without any training.
✓Expand the prompt to specify the friendly tone, request exactly three bullet points, and provide an example so the instructions are explicit
Correct. Making the prompt explicit about tone, structure, and an example directly guides the model to the desired format.
・Lower the model's temperature to zero so its deterministic decoding automatically introduces bullet points and a friendlier tone into the text
Incorrect. Temperature controls randomness, not formatting; lowering it does not add bullets or change tone by itself.
・Switch to a smaller model, since smaller models follow formatting constraints and tone requests far more reliably than larger ones
Incorrect. Model size does not inherently improve instruction-following; the fix is a clearer prompt, not a smaller model.
Explanation
Clarifying the prompt with explicit tone, structure, and an example is the direct and appropriate lever for controlling output format.
Example10 · Large Language Models and Generative AI Fundamentals
A financial services firm is evaluating an LLM to summarize quarterly earnings reports. An engineer explains that the model, at its core, predicts outputs based on probability. Which statement best describes what a large language model fundamentally computes when generating text?
・It stores every training document verbatim and retrieves the closest matching passage from memory to answer the prompt.
Incorrect. LLMs do not retrieve verbatim passages from a stored corpus; they learn statistical patterns in parameters rather than copying documents.
✓It assigns a probability distribution over the next possible token given the sequence of preceding tokens in the context.
Correct. An LLM models the conditional probability of the next token given prior context, sampling or selecting from that distribution to generate text.
・It applies hand-written grammar rules and a curated financial dictionary to construct each sentence deterministically.
Incorrect. Modern LLMs are not rule-based systems; they learn language patterns from data rather than relying on hand-written grammars and dictionaries.
・It queries an external knowledge graph for every request to ensure that all generated facts are current and verified.
Incorrect. A base LLM generates from learned parameters and does not query an external knowledge graph on each request unless explicitly augmented.
Explanation
A large language model is fundamentally a next-token predictor that computes a probability distribution over possible tokens conditioned on the preceding context.
Example11 · Large Language Models and Generative AI Fundamentals
While building a loan-approval assistant, a developer at the firm notices the model counts usage in tokens rather than words. When asked what a token actually represents in the context of an LLM, which description is most accurate?
・A token is always exactly one English word, so the token count and the word count of any prompt are identical.
Incorrect. Tokens often do not map one-to-one to words; a single word may become several sub-word tokens depending on the tokenizer.
✓A token is a unit of text such as a whole word, a sub-word fragment, or a character that the model processes.
Correct. A token is a chunk of text produced by the tokenizer, which can be a full word, a sub-word piece, or an individual character.
・A token is a fixed 512-byte memory block that the GPU reserves for every individual request sent to the model.
Incorrect. A token is a textual unit, not a fixed-size GPU memory block reserved per request.
・A token is a security credential issued by the service that authorizes the client application to call the model endpoint.
Incorrect. In LLM terminology a token is a unit of text, not an authentication credential, despite the overlapping word in API security contexts.
Explanation
Tokenization breaks text into tokens that can be whole words, sub-word fragments, or characters, and the model processes and bills on these units rather than on words.
Example12 · Large Language Models and Generative AI Fundamentals
A manufacturing distributor plans to deploy an assistant that drafts supplier emails and summarizes machine manuals. An engineer asks why the chosen large language model (LLM) is categorized as generative AI. Which explanation is most accurate?
・It classifies each incoming manual into a fixed set of predefined maintenance categories using labeled data
Incorrect. Assigning inputs to fixed predefined categories describes a discriminative classifier, not a generative model that creates new content.
✓It produces new text sequences by predicting probable tokens, rather than only selecting among preset outputs
Correct. An LLM is generative because it synthesizes novel token sequences via probabilistic next-token prediction rather than choosing from a closed set.
・It stores every supplier email verbatim in a database and retrieves the closest stored match on request
Incorrect. Verbatim storage and nearest-match retrieval describes a lookup system, not a model that generates original text.
・It executes deterministic rules written by engineers to map each input phrase to one fixed reply string
Incorrect. Fixed hand-written rules mapping phrases to replies describe a rule-based system, which is deterministic and non-generative.
Explanation
Generative AI, including LLMs, creates new outputs through probabilistic token prediction rather than classifying, retrieving, or applying fixed rules.
Example13 · Large Language Models and Generative AI Fundamentals
The distributor feeds part descriptions such as 'hydraulic valve assembly' into an LLM. A data analyst wants to understand what the model actually processes internally. Which description of tokenization is correct?
✓Text is split into tokens such as subwords or words, and each token is mapped to a numeric identifier for the model
Correct. Tokenization breaks text into tokens (often subwords or words), and each token is assigned a numeric ID the model can process.
・Text is kept as full raw sentences and passed unchanged as plain strings directly into the neural layers
Incorrect. Models cannot ingest raw plain-text strings directly; text must first be tokenized and encoded into numeric form.
・Each full part description is converted into a single image embedding that the transformer then processes as pixels
Incorrect. Text LLMs do not turn descriptions into pixel-based image embeddings; that mischaracterizes how text is represented.
・Each letter is permanently assigned one unique fixed number that never varies across any different language or model
Incorrect. Token IDs are tied to a specific tokenizer and vocabulary, not a universal fixed per-letter numbering across all models.
Explanation
LLMs process text by splitting it into tokens and converting those tokens to numeric IDs defined by the tokenizer's vocabulary.
Example14 · Large Language Models and Generative AI Fundamentals
A telecom operator's AI team is briefing new engineers on what makes a Large Language Model 'large'. Which characteristic best captures why these models are described this way?
✓They are trained on vast text corpora and contain billions of learned parameters that encode statistical language patterns.
Correct. The scale comes from training on huge corpora and holding billions of parameters that capture statistical patterns of language.
・They store a fixed lookup table of every sentence seen during training and retrieve the closest match at query time.
Incorrect. LLMs do not store and retrieve exact sentences; they generalize patterns rather than memorizing a lookup table.
・They rely on a large set of manually written grammar rules curated by linguists for each supported human language.
Incorrect. Modern LLMs learn from data and do not depend on hand-authored grammar rules per language.
・They keep a continuously growing database of live customer tickets that expands the model file as new data arrives.
Incorrect. The model's parameters are fixed after training; it does not grow its file by ingesting live tickets.
Explanation
LLMs are 'large' because of their enormous parameter counts and the massive corpora they are trained on, which let them encode broad statistical language knowledge.
Example15 · Large Language Models and Generative AI Fundamentals
An engineer at the telecom operator notices that a long network-outage report consumes more of the model's context budget than a short SMS. How does an LLM fundamentally break down text before processing it?
・It compresses the whole document into one fixed-size vector and discards the original word boundaries entirely.
Incorrect. Text is not collapsed into a single vector up front; it is segmented into many tokens that each get embeddings.
✓It splits the text into tokens, which are words or sub-word units, and each token is then mapped to an embedding.
Correct. LLMs tokenize text into words or sub-word pieces, and each token is converted into an embedding for processing.
・It processes raw UTF-8 bytes directly and never converts any of the input into numeric vector representations.
Incorrect. Tokens are mapped to numeric embeddings; the model does not operate purely on raw bytes without vectorization.
・It parses the text into a grammatical syntax tree and feeds only the tree's root node into the network.
Incorrect. LLMs do not require a parsed syntax tree; they operate over token sequences.
Explanation
Tokenization splits input into tokens (often sub-word units), and each token is embedded into a vector, which is why longer text consumes more of the context budget.
▶ Try 10 free questions (graded)
Measure your readiness with a full mock exam
All questions · full explanations · lifetime access
Enroll(33 USD)