All Oracle exams
Free Oracle Cloud Infrastructure 2026 Generative AI Professional practice test: 30 questions with answers
30 original questions for Oracle Cloud Infrastructure 2026 Generative AI Professional, drawn from every topic area. Answer each one to see whether you got it right and why. No sign-up.
- Free questions
- 30
- Full bank
- 112 questions
Oracle Cloud Infrastructure 2026 Generative AI Professional exam guide: topics, cost and format
All 30 Oracle Cloud Infrastructure 2026 Generative AI Professional questions with answers
The same questions as the test above, grouped by exam topic. Open any question to see the answer and explanation.
Oracle Cloud Infrastructure Generative AI Service (6 questions)
Question 1
Which OCI Generative AI option provides dedicated capacity for hosting a model with predictable performance for a production workload?
- AA local laptop with a GPU, which is used only for exploring prompts during development
- BOn-demand inference with no reserved capacity, which shares the service pool with other customers
- CA free trial account with no reserved capacity, which is intended only for short experiments
- DDedicated AI clusters, which provide reserved capacity for hosting models
Show answer and explanationHide answer
Correct answer: DDedicated AI clusters provide reserved capacity for predictable performance in production. On-demand inference shares capacity, and trial or laptop environments are not production hosting.
Question 2
Which OCI feature controls who can create, manage and use generative AI resources in a compartment?
- AIAM policies that grant groups specific permissions on the Generative AI resources in a compartment
- BA public bucket that anyone with the link can read, which stores the model artefacts for the team
- CA shared root password that all administrators use to log in to the console for every task
- DA static IP address allowlist that is applied to the developer's laptop as the only control
Show answer and explanationHide answer
Correct answer: AIAM policies grant groups permissions on resources in compartments, which is how access is controlled. Public buckets, shared root passwords and laptop allowlists are poor controls.
Question 3
Which OCI component is used to store and organise resources so that access and billing can be managed for a team?
- AA boot volume, which holds the operating system image used to start a compute instance
- BA subnet, which is a range of IP addresses used to route traffic within a virtual network
- CA compartment, which groups resources so that access and cost can be managed for them
- DA load balancer listener, which accepts incoming connections on a configured port for a service
Show answer and explanationHide answer
Correct answer: CCompartments group resources for access control and cost management. Subnets, boot volumes and listeners are networking or compute components.
Question 4
Which Oracle Database capability supports storing vectors so that similarity search can be run alongside relational data?
- AOracle Database 23ai with the AI Vector Search capability for storing and querying embeddings
- BA flat text file stored in a shared folder that is scanned line by line for each user request
- CA printed index kept in a binder beside the server rack for manual lookup by the operators
- DA spreadsheet with one row per document, which is sorted by hand each time a user asks
Show answer and explanationHide answer
Correct answer: AOracle Database 23ai with AI Vector Search stores and queries embeddings alongside relational data. Text files, printed indexes and spreadsheets do not provide vector search.
Question 5
Which TWO are reasonable reasons to choose dedicated AI clusters over on-demand inference? (Choose two.)
- AA production workload needs predictable latency and throughput that shared capacity cannot guarantee
- BThe team wants to avoid all access control on the model endpoints, which dedicated clusters allow
- CThe workload is a short experiment that runs only once a year with a very small number of users
- DHosting a custom fine-tuned model that requires reserved capacity for its serving endpoint
- EThe organisation wants the model to be hosted on the developer's personal laptop for convenience
Show answer and explanationHide answer
Correct answer: A, DPredictable performance for production and hosting a custom fine-tuned model that needs reserved capacity are sound reasons. Removing access control, one-off experiments and laptop hosting are not.
Question 6
Which OCI service component manages the lifecycle of a deployed model endpoint, such as scaling or updating it?
- AA manually edited spreadsheet that records the models' names and the dates they were last used
- BA static file that lists the models installed on a laptop used by the developer for testing only
- CThe model endpoint configuration within the generative AI service, which is managed through the console or the API
- DA printed guide that describes the models' colours and the logos used in the product brochures
Show answer and explanationHide answer
Correct answer: CEndpoint configuration in the generative AI service manages scaling and updates through the console or API. Laptop files, spreadsheets and printed guides do not manage endpoints.
Responsible AI and Governance (6 questions)
Question 7
Which practice helps reduce the risk that a generative AI application exposes personal data in its responses?
- AAdding all customer records to the prompt so that the model can answer questions about any customer
- BFiltering personal data from retrieved context and applying access controls to the data sources
- CStoring every user prompt and response in a public bucket so that the team can review them
- DDisabling access controls on the knowledge base so that the model can always find the data it needs
Show answer and explanationHide answer
Correct answer: BFiltering personal data and applying access controls limit exposure through responses. Adding all records, public storage and disabled access controls each increase exposure.
Question 8
Which control helps detect harmful content in the responses of a generative AI application before it reaches a user?
- ARemoving the system prompt that sets the assistant's rules, so the model is less constrained
- BShowing the raw response directly to the user without any checks, since the model is trusted
- CRaising the temperature so that the model avoids producing repeated harmful phrases
- DAn output safety filter that classifies responses and blocks or flags harmful content
Show answer and explanationHide answer
Correct answer: DAn output safety filter checks responses and blocks or flags harmful content before it is shown. Unchecked output, higher temperature and removed rules each allow harm through.
Question 9
Which statement about bias in generative AI systems is most accurate?
- ABias can arise from training data, prompts and retrieval sources, and it should be tested across groups
- BBias is eliminated automatically once a model has been fine-tuned on any dataset the team chooses
- CBias only affects image generation models and never affects text-based language models at all
- DBias is a matter of the user's opinion, so it cannot be measured or tested in any real system
Show answer and explanationHide answer
Correct answer: ABias can enter through training data, prompts and retrieval sources and should be tested across groups. The other statements are inaccurate.
Question 10
Which TWO are appropriate uses of human review in a generative AI application? (Choose two.)
- AReviewing high-impact outputs, such as medical or legal advice, before they reach users
- BReviewing every low-risk draft text generated for internal use before it is saved to a file
- CRemoving human review entirely to save cost, because the model has passed its evaluation tests
- DEscalating uncertain or flagged responses to a person for a decision
- EHiding the fact that a human reviewed the response so that users trust the model more directly
Show answer and explanationHide answer
Correct answer: A, DHuman review of high-impact outputs and escalation of uncertain responses are sound uses. Removing review after tests, reviewing every low-risk draft and hiding reviews are not appropriate in the way described.
Question 11
Which practice helps detect that a generative AI model's behaviour has drifted in production?
- ATurning off logging so that the team does not see every small variation in the model's outputs
- BAssuming the model is unchanged because it was approved at launch and has not been updated since
- CMonitoring output quality and safety metrics over time against a baseline, with alert thresholds
- DReading only the first answer each day and assuming the rest of the answers follow the same pattern
Show answer and explanationHide answer
Correct answer: CMonitoring quality and safety against a baseline with alerts detects drift. Assumptions, disabled logs and sampling only the first answer each miss it.
Question 12
Which practice supports transparency when a generative AI assistant is used by customers?
- ATelling users they are interacting with an AI system and explaining its limitations
- BPresenting the assistant as a human agent so that customers feel more comfortable with the chat
- CHiding the use of retrieval so that the answers appear to come only from the model's knowledge
- DRemoving any references to sources so that the answers look cleaner and more confident to readers
Show answer and explanationHide answer
Correct answer: ADisclosing AI use and explaining limitations supports transparency. Pretending to be human, hiding retrieval and removing sources each mislead users.
Prompt Engineering and Fine-Tuning Methodologies (6 questions)
Question 13
Which prompting technique supplies a few worked examples in the prompt so that the model follows the same format for a new input?
- AFew-shot prompting, which places examples of the desired input and output in the prompt
- BZero-shot prompting, which gives the instruction alone with no examples of the expected output
- CGradient clipping, which limits the size of weight updates during the training of the model
- DBatch inference, which processes many prompts together in a scheduled job overnight
Show answer and explanationHide answer
Correct answer: AFew-shot prompting uses examples in the prompt to guide format and style without retraining. Zero-shot has no examples, and clipping and batch inference are unrelated.
Question 14
A team needs a model to consistently follow a specialised output style across thousands of labelled examples. Which approach is most appropriate?
- AUsing a larger context window so that the model can read more of the examples on each call
- BAdding a longer system prompt to every request, without any training on the labelled examples
- CIncreasing the temperature so that the model explores more styles at random for each answer
- DFine-tuning the model on the labelled examples so that the style is learned in its weights
Show answer and explanationHide answer
Correct answer: DFine-tuning on many labelled examples teaches a consistent style in the model's weights. Longer prompts, higher temperature and bigger context help less consistently.
Question 15
Which fine-tuning method updates only a small set of added parameters while keeping most of the base model's weights frozen?
- AQuantisation at inference time, which reduces the numeric precision of the weights for speed
- BFull retraining from random initialisation, which discards all of the original pre-trained weights
- CParameter-efficient fine-tuning, such as T-Few or LoRA-style adapters
- DDistillation into a smaller student model, which copies the outputs of the teacher model directly
Show answer and explanationHide answer
Correct answer: CParameter-efficient methods such as T-Few or adapter-based fine-tuning update a small set of parameters. Full retraining, quantisation and distillation work differently.
Question 16
Which problem is most likely when a fine-tuned model performs very well on its training data but poorly on new data?
- AUnderfitting, where the model fails to learn the patterns even in the training data
- BOverfitting, where the model memorises training examples instead of generalising
- CTokenisation drift, where token counts change between model versions and break the prompts
- DLatency degradation, where responses take longer to return to the user when load increases
Show answer and explanationHide answer
Correct answer: BStrong training performance with weak generalisation is overfitting. Underfitting, tokenisation drift and latency are different problems.
Question 17
Which practice most improves the evaluation of a fine-tuned model before it is deployed?
- AEvaluating the model only on the same examples used for fine-tuning to confirm the training worked
- BHolding out a representative test set that the model never saw during fine-tuning
- CAsking the model to rate its own answers and accepting the self-assessment as the final result
- DMeasuring only how fast the model responds, since accuracy is assumed to be already known
Show answer and explanationHide answer
Correct answer: BA held-out test set that the model did not see during fine-tuning measures generalisation. Evaluating on training data, self-rating and speed-only tests each give misleading results.
Question 18
Which THREE are good practices when writing prompts for an LLM application? (Choose three.)
- AGiving clear instructions about the task, the expected format and any constraints
- BProviding relevant context and examples when they help the model understand the task
- CAsking the model to check its own answer against the stated requirements before responding
- DLeaving out the output format so that the model is free to choose a style for each answer
- EMixing unrelated tasks into one prompt so that the model handles everything in one request
Show answer and explanationHide answer
Correct answer: A, B, CClear instructions, relevant context and self-checks against requirements improve output. Leaving the format open and mixing unrelated tasks each reduce reliability.
Retrieval-Augmented Generation (6 questions)
Question 19
In a retrieval-augmented generation system, what is the main role of the retriever?
- ATo find the document chunks most relevant to the user's query and supply them to the model
- BTo train the language model's weights on the company's private documents during each request
- CTo encrypt the user's query before it is sent to the language model for processing
- DTo store the final answer in a database so that it can be shown to the user later
Show answer and explanationHide answer
Correct answer: AThe retriever finds relevant chunks for the query, which the model then uses to ground its answer. Training, encryption and answer storage are different functions.
Question 20
Why is chunk size an important design choice in a retrieval-augmented generation pipeline?
- AChunk size determines the number of GPUs used to train the model during its pre-training phase
- BChunk size has no effect on retrieval quality, so it can be set to any value the team likes
- CChunk size only affects the colour of the user interface that displays the retrieved passages
- DChunks that are too large dilute relevance and fill the context, while chunks that are too small lose context
Show answer and explanationHide answer
Correct answer: DChunk size trades relevance against context: large chunks dilute relevance, and small chunks lose surrounding meaning. The other options are incorrect.
Question 21
Which measure best evaluates whether a retrieval-augmented answer is grounded in the retrieved sources?
- ACounting the number of words in the answer and comparing it with the length of the user's question
- BChecking that each claim in the answer can be traced to a passage in the retrieved context
- CMeasuring how quickly the model returned the answer after the user pressed the send button
- DCounting how many documents exist in the knowledge base regardless of whether they were retrieved
Show answer and explanationHide answer
Correct answer: BGroundedness is shown when each claim can be traced to retrieved passages. Word counts, latency and corpus size do not measure grounding.
Question 22
Which technique improves retrieval quality by combining semantic similarity search with keyword matching?
- APure random sampling of documents, which selects passages at random from the whole corpus
- BHybrid search, which combines vector similarity with keyword-based retrieval
- CBatch normalisation, which rescales the activations of the layers inside the neural network
- DModel quantisation, which reduces the precision of the weights to speed up the inference step
Show answer and explanationHide answer
Correct answer: BHybrid search combines vector similarity with keyword matching for better recall and precision. Random sampling, batch normalisation and quantisation are unrelated to retrieval quality.
Question 23
Which TWO are good practices for keeping a retrieval-augmented generation knowledge base current? (Choose two.)
- ARe-indexing documents when their source content changes, with a defined refresh schedule
- BKeeping outdated versions of every document indexed so that the old answers remain available
- CRecording the source and version of each chunk so that answers can be traced back correctly
- DDeleting the index every year and rebuilding it from memory without any source records at all
- EStoring the knowledge base only on the laptop of the developer who built the first version
Show answer and explanationHide answer
Correct answer: A, CRe-indexing on change with a refresh schedule and recording source and version keep answers current and traceable. Keeping outdated versions, memory-based rebuilds and personal storage each undermine accuracy.
Question 24
Which technique improves answer quality when a user's question is ambiguous or uses different wording from the documents?
- AIgnoring the question entirely and returning the first document in the knowledge base every time
- BQuery rewriting, which reformulates the user's question before retrieval to match the documents better
- CIncreasing the chunk size to the entire corpus so that every possible wording is covered at once
- DRemoving the metadata from the documents so that the retriever is not biased by any labels at all
Show answer and explanationHide answer
Correct answer: BQuery rewriting reformulates the question to improve retrieval. Returning arbitrary documents, huge chunks and removed metadata each reduce relevance.
Fundamentals of Large Language Models and Architecture (6 questions)
Question 25
Which component of a transformer-based LLM allows each token to weigh the relevance of other tokens in the same sequence?
- AThe learning rate schedule, which controls how quickly the model's weights change during training
- BThe tokenizer, which splits input text into token IDs before the model processes them
- CThe softmax output layer, which converts the final scores into probabilities over the vocabulary
- DThe self-attention mechanism, which computes weighted relationships between tokens in the sequence
Show answer and explanationHide answer
Correct answer: DSelf-attention computes weighted relationships between tokens, which lets the model use context across the sequence. The tokenizer, output layer and learning rate schedule have different roles.
Question 26
What is the main reason that a context window limit matters when designing a generative AI application?
- AThe limit sets the number of users that can call the model at the same time on the service
- BInput and output tokens together must fit within the limit, so long documents may need chunking or retrieval
- CThe limit determines the programming language in which the prompt must be written for the model
- DThe limit controls how often the model's weights are updated during the service's normal operation
Show answer and explanationHide answer
Correct answer: BPrompt and response tokens share the context window, so long inputs must be chunked or retrieved selectively. The other options describe unrelated limits.
Question 27
Which term describes a numeric vector representation of text that captures semantic meaning, used for similarity search?
- AAn embedding, which is a vector that represents the meaning of a piece of content
- BA token, which is a unit of text that the model reads and generates one at a time
- CA checkpoint, which is a saved snapshot of a model's weights at a point in training
- DA temperature setting, which controls how varied the model's sampled outputs are
Show answer and explanationHide answer
Correct answer: AEmbeddings are vectors that capture semantic meaning and support similarity search. Tokens, checkpoints and temperature are different concepts.
Question 28
What does the temperature parameter control during text generation?
- AThe number of GPUs that are allocated to the model endpoint for each request at runtime
- BThe maximum number of tokens that the model is allowed to generate in a single response
- CThe randomness of sampling, with lower values producing more deterministic outputs
- DThe length of the training dataset that the model used during its original pre-training
Show answer and explanationHide answer
Correct answer: CTemperature controls sampling randomness, where lower values make outputs more deterministic. Output length, GPU allocation and training data length are different settings.
Question 29
Which TWO statements about LLM hallucinations are correct? (Choose two.)
- AHallucinations are fluent and confident outputs that are not supported by the source or the facts
- BGrounding the model in retrieved sources and requiring citations can reduce hallucinations
- CHallucinations disappear entirely when the temperature is raised to its highest possible value
- DHallucinations occur only in models that were trained on images and never in text models
- EHallucinations can be fully eliminated by a single prompt that says the model must never be wrong
Show answer and explanationHide answer
Correct answer: A, BHallucinations are confident but unsupported outputs, and grounding with citations reduces them. Raising temperature increases them, and no single prompt eliminates them.
Question 30
Which statement about the pre-training and fine-tuning stages of an LLM is accurate?
- APre-training and fine-tuning are the same process, differing only in the name given to each training run
- BFine-tuning is always performed first and pre-training is an optional step that can be skipped entirely
- CPre-training learns general language patterns from large corpora, and fine-tuning adapts the model to specific tasks
- DPre-training uses only labelled examples for one narrow task, while fine-tuning uses no labelled data at all
Show answer and explanationHide answer
Correct answer: CPre-training learns general patterns from large corpora, and fine-tuning adapts the model to tasks or styles. The reversed and conflated statements are incorrect.