Courseiva

CCNA LLM Fundamentals Questions

34 of 109 questions · Page 2/2 · LLM Fundamentals · Answers revealed

76
MCQmedium

A team is implementing a RAG pipeline in OCI. They have a large collection of PDF documents. After chunking and embedding the documents, retrieval quality is poor. Which step is MOST likely the root cause?

A.The retrieval step uses greedy decoding
B.The chunk size is too large, causing each chunk to contain multiple topics
C.The embedding model is a generation model, not an embedding model
D.Cosine similarity is not appropriate for comparing embeddings
AnswerB

Large chunks dilute the semantic focus, making it hard for the retriever to find passages relevant to a specific query.

Why this answer

Chunking strategy (size and overlap) directly affects how well the retrieval step can find relevant passages. Too large or poorly split chunks can dilute semantic meaning.

77
Multi-Selecteasy

Which TWO of the following are advantages of using Byte-Pair Encoding (BPE) tokenization compared to word-level tokenization?

Select 2 answers
A.Guaranteed lossless encoding of all Unicode characters
B.Smaller vocabulary size
C.Fixed token length for every input
D.Faster inference due to reduced sequence length
E.Ability to handle out-of-vocabulary words by decomposing them into known subword tokens
AnswersB, E

BPE learns a limited set of subword units, which reduces the vocabulary size compared to storing every possible word.

Why this answer

BPE reduces vocabulary size by representing words as subword units, and it can handle out-of-vocabulary words by breaking them into known subwords. Fixed-length tokens and losslessness are not advantages of BPE.

78
MCQhard

A research team is comparing two LLMs for a translation task. Model A uses greedy decoding, Model B uses beam search with width=5. Both models are otherwise identical. Which statement about their outputs is MOST likely true?

A.Model A will have higher BLEU scores than Model B
B.Model B will generally produce more fluent and accurate translations
C.Model A will produce more diverse translations
D.Model B will have lower latency than Model A
AnswerB

Beam search explores multiple paths and picks the best sequence, often improving fluency and accuracy over greedy decoding.

Why this answer

Beam search considers multiple candidate sequences and selects the one with the highest overall probability, which often results in more fluent and accurate translations than greedy decoding, but at higher computational cost.

79
MCQmedium

Which of the following best describes the difference between pre-training and fine-tuning?

A.Pre-training uses labeled data; fine-tuning uses unlabeled data
B.Pre-training learns general language representations; fine-tuning adapts to a specific task
C.Fine-tuning requires more data than pre-training
D.Pre-training is done on a single task; fine-tuning is done on multiple tasks
AnswerB

This accurately describes the two stages.

Why this answer

Pre-training is the initial phase where a model learns general language patterns from a large corpus. Fine-tuning adapts the pre-trained model to a specific task using a smaller labeled dataset.

80
MCQmedium

A practitioner wants to generate embeddings for a set of legal documents to enable semantic search. Which type of model should they use?

A.An embedding model like Cohere Embed
B.A large language model fine-tuned for classification
C.A vision transformer model
D.A generative LLM like Cohere Command
AnswerA

Embedding models output dense vectors that capture semantic meaning, suitable for similarity search.

Why this answer

Embedding models (e.g., Cohere Embed, OpenAI text-embedding-ada) are specialized to produce dense vector representations. Generation models (like GPT) produce text, not embeddings.

81
Multi-Selecthard

A team is evaluating two LLMs for a summarization task. Model X has a BERTScore of 0.85, Model Y has a BERTScore of 0.82. However, human evaluators prefer Model Y. Which TWO reasons could explain this discrepancy?

Select 2 answers
A.BERTScore is based on BERT embeddings, which may not fully capture summary-specific qualities like conciseness or readability
B.BERTScore uses precision only, so it misses recall aspects
C.Human evaluators were not given clear criteria for evaluation
D.Model Y was fine-tuned on a different dataset, causing distribution shift
E.Model X overfits to the reference summaries, achieving high BERTScore but poor general quality
AnswersA, E

BERTScore measures semantic similarity but may not reflect human preferences for style.

Why this answer

BERTScore correlates with human judgment but is not perfect; it may favor certain styles. Additionally, BERTScore may be inflated if the reference summaries are similar to the model's training data.

82
MCQmedium

A company wants to build a customer service chatbot that answers questions about their internal policy documents. The documents are updated monthly, and the team cannot afford to retrain a model each time. Which approach is MOST appropriate?

A.Train a custom model from scratch on the policy documents each month
B.Use Retrieval-Augmented Generation (RAG) with the policy documents indexed in a vector store
C.Use a larger foundation model with a longer context window and paste all documents into each prompt
D.Fine-tune a base LLM on the policy documents monthly
AnswerB

RAG retrieves relevant document chunks at query time, ensuring the chatbot always answers from the latest uploaded documents without any model retraining.

Why this answer

RAG (Retrieval-Augmented Generation) allows the LLM to retrieve relevant document sections at inference time, so knowledge stays current without retraining. The other options either require expensive retraining for each update or lack document grounding.

83
MCQhard

A developer is using OCI Generative AI for a question-answering system. The model frequently provides outdated information because the training data cutoff is over a year old. Which approach would most effectively address this issue?

A.Implement a Retrieval-Augmented Generation (RAG) pipeline that retrieves up-to-date documents from an external knowledge base
B.Increase the context window to include more of the user's prompt
C.Fine-tune the model on a dataset that includes recent information up to today
D.Switch to a larger model that has a more recent knowledge cutoff
AnswerA

RAG allows the model to access current information dynamically, solving the cutoff problem.

Why this answer

Retrieval-Augmented Generation (RAG) directly addresses the problem of stale training data by dynamically retrieving current documents from an external knowledge base at inference time. This allows the model to generate answers grounded in up-to-date information without requiring retraining or a larger model, making it the most effective and practical solution for a question-answering system.

Exam trap

The 1Z0-1127 exam often tests the misconception that simply increasing model size or context length can solve knowledge staleness, when in fact only retrieval-based methods like RAG provide a scalable, real-time solution to keep answers current without retraining.

How to eliminate wrong answers

Option B is wrong because increasing the context window only allows the model to process more of the user's prompt, but it does not inject new or recent information into the model's responses — the model's parametric knowledge remains frozen at its training cutoff. Option C is wrong because fine-tuning on recent data up to today would require a new, curated dataset and significant compute resources, and the model would still be limited to the knowledge in that dataset; moreover, fine-tuning is not a real-time solution and cannot adapt to information that changes after the fine-tuning process. Option D is wrong because switching to a larger model with a more recent knowledge cutoff only shifts the staleness problem forward in time — the model will still eventually become outdated, and it does not provide a mechanism to access live or continuously updated information.

84
MCQeasy

Which of the following is a primary limitation of large language models that can lead to generating factually incorrect information?

A.Bias in training data
B.Hallucinations
C.Context window limitation
D.Knowledge cutoff
AnswerB

Hallucinations occur when the model generates content that is not factually accurate or grounded in the training data.

Why this answer

Hallucinations are a primary limitation of large language models because they cause the model to generate text that is factually incorrect, nonsensical, or not grounded in the training data. This occurs due to the probabilistic nature of token prediction, where the model prioritizes fluency and coherence over factual accuracy, especially when the prompt lacks sufficient context or the model is asked to recall specific facts not well-represented in its training.

Exam trap

The 1Z0-1127 exam often tests the distinction between hallucinations and other limitations like bias or context windows, so the trap here is that candidates confuse 'bias in training data' with factual inaccuracy, when bias is about systematic prejudice, not random or confident fabrication of false facts.

How to eliminate wrong answers

Option A is wrong because bias in training data leads to skewed or prejudiced outputs, not necessarily factually incorrect information; it affects fairness and representation rather than factual accuracy. Option C is wrong because context window limitation restricts the amount of input the model can process at once, which can cause loss of context but does not directly cause the generation of factually incorrect information—it may lead to incomplete or irrelevant responses. Option D is wrong because knowledge cutoff refers to the date after which the model has no training data, meaning it cannot answer about events after that date, but it does not cause the model to fabricate facts; it simply limits the temporal scope of knowledge.

85
MCQmedium

A data scientist is evaluating two LLMs for a summarization task. Model X scores 45 on ROUGE-L, while Model Y scores 42. However, in human evaluation, Model Y is preferred 60% of the time. What is the most likely explanation?

A.Human evaluators are biased and cannot be trusted for objective assessment
B.Model Y overfits to the training data, causing poor generalisation
C.ROUGE-L measures lexical overlap, which may not capture the semantic quality that humans value
D.ROUGE-L is not a reliable metric for summarization because it only measures recall
AnswerC

ROUGE relies on n-gram overlap; Model Y might produce more concise or coherent summaries that humans prefer but that share fewer exact n-grams with the reference.

Why this answer

ROUGE-L measures the longest common subsequence (LCS) between generated and reference summaries, focusing on lexical (word-level) overlap. It does not assess semantic meaning, fluency, or factual correctness. Human evaluators often prefer summaries that are coherent and capture key ideas, even if they use different wording, which explains why Model Y can score lower on ROUGE-L but be preferred 60% of the time.

Exam trap

The 1Z0-1127 exam often tests the distinction between lexical metrics (like ROUGE) and semantic quality, trapping candidates who assume higher automated scores always indicate better performance without considering human preferences.

How to eliminate wrong answers

Option A is wrong because human evaluators are not inherently biased in this context; their preference reflects subjective quality (e.g., coherence, relevance) that automated metrics may miss. Option B is wrong because overfitting would typically cause poor performance on unseen data, but here Model Y performs worse on ROUGE-L yet is preferred by humans, suggesting it generalizes better in terms of human-perceived quality. Option D is wrong because ROUGE-L measures both precision and recall via the F1-score of the LCS, not just recall; the issue is its reliance on lexical overlap, not a limitation to recall.

86
MCQhard

In the self-attention mechanism, what is the role of the 'scaling factor' (division by sqrt(d_k)) in the softmax computation?

A.To make the attention mechanism translation invariant
B.To prevent the softmax from saturating and producing small gradients
C.To increase the variance of attention scores
D.To ensure the sum of attention weights equals 1
AnswerB

Scaling avoids large values that cause softmax saturation.

Why this answer

Scaling prevents the dot products from growing too large in magnitude, which would push softmax into regions with extremely small gradients.

87
MCQeasy

What is the primary purpose of the self-attention mechanism in a Transformer model?

A.To generate token embeddings in parallel
B.To reduce the dimensionality of token embeddings
C.To encode positional information of tokens
D.To compute a weighted sum of all token representations based on pairwise relevance
AnswerD

Self-attention computes attention scores between all pairs and aggregates information.

Why this answer

Self-attention allows each token to attend to every other token in the sequence, capturing contextual relationships regardless of distance.

88
MCQhard

A developer is implementing a text generation pipeline and wants to produce diverse, creative outputs. They set temperature=1.2, top_k=50, and top_p=1.0. What is the MOST likely effect of this combination?

A.The output will be identical to greedy decoding because top_p=1.0 disables sampling
B.The output will be mostly factual because top_k filters out unlikely tokens
C.The output will be diverse and creative, but may occasionally be incoherent or off-topic
D.The output will be highly deterministic and repetitive
AnswerC

High temperature increases randomness, and the relaxed cutoffs allow less likely tokens, yielding creative but sometimes nonsensical outputs.

Why this answer

Temperature >1 flattens the probability distribution, making low-probability tokens more likely. top_k=50 restricts to top 50 tokens, but top_p=1.0 imposes no cumulative probability cutoff. The combination yields diverse but potentially incoherent outputs.

89
Multi-Selecteasy

Which TWO of the following sampling strategies introduce randomness into text generation?

Select 2 answers
A.Beam search
B.Greedy decoding
C.Temperature sampling
D.Top-k sampling
E.Top-p (nucleus) sampling
AnswersD, E

Correct — Top-k sampling randomly samples from the k most probable tokens.

Why this answer

Top-k sampling and top-p (nucleus) sampling introduce randomness by sampling from a restricted token set. Temperature modifies the probability distribution and controls randomness but is a generation parameter, not a standalone sampling strategy. Greedy decoding and beam search are deterministic or near-deterministic.

90
MCQhard

An ML engineer is selecting a pre-trained model for a code generation task. The model must be able to generate syntactically correct code in multiple programming languages. Which model family is BEST suited for this task?

A.Meta Llama (Code Llama variant)
B.BERT
C.Cohere Command
D.Mistral
AnswerA

Code Llama is a variant of Llama fine-tuned on code, making it well-suited for code generation across languages.

Why this answer

Models like Code Llama (a variant of Llama) are specifically fine-tuned on code and are known for strong code generation capabilities. While other models can generate code, Code Llama is the best fit among the options.

91
MCQhard

A researcher is evaluating two LLMs for a summarization task. Model A achieves a ROUGE-L score of 0.45 and a BERTScore of 0.92. Model B achieves a ROUGE-L score of 0.50 and a BERTScore of 0.88. Which model is likely better for producing summaries that are semantically faithful to the source, even if not using the exact same words?

A.Neither model is acceptable because ROUGE-L is below 0.6
B.Both are equally good because the scores are close
C.Model B because ROUGE-L is higher
D.Model A because BERTScore is higher
AnswerD

Higher BERTScore suggests better semantic alignment with the source, which is more important for faithfulness.

Why this answer

BERTScore measures semantic similarity using contextual embeddings, while ROUGE-L measures n-gram overlap. Higher BERTScore indicates better semantic faithfulness even without exact phrase matches.

92
MCQmedium

A data scientist wants to compare the semantic similarity between two sentences generated by an LLM. Which evaluation metric is most suitable for this purpose?

A.ROUGE-L
B.BLEU
C.BERTScore
D.Perplexity
AnswerC

BERTScore uses contextual embeddings to evaluate semantic similarity.

Why this answer

BERTScore computes cosine similarity between contextual embeddings, capturing semantic meaning better than surface-level n-gram metrics.

93
Multi-Selectmedium

Which TWO of the following are characteristics of decoder-only models like GPT? (Select TWO)

Select 2 answers
A.They process input through an encoder and a decoder
B.They use bidirectional self-attention
C.They use masked self-attention to prevent attending to future tokens
D.They are ideal for tasks requiring full bidirectional context like NER
E.They are typically used for generative tasks like text completion
AnswersC, E

Masked self-attention ensures each token only attends to previous tokens.

Why this answer

Decoder-only models use masked self-attention (causal) and generate tokens left-to-right. They cannot use bidirectional context because future tokens are masked.

94
MCQeasy

Which tokenization algorithm is commonly used in models like GPT and BERT and builds tokens by merging the most frequent pairs of characters or subwords iteratively?

A.WordPiece
B.SentencePiece
C.Unigram tokenization
D.Byte-Pair Encoding (BPE)
AnswerD

BPE is the algorithm that iteratively merges the most frequent byte pairs to build a subword vocabulary.

Why this answer

Byte-Pair Encoding (BPE) is a subword tokenization method that starts with individual characters and merges the most frequent pairs iteratively until a vocabulary size is reached.

95
Multi-Selectmedium

A machine learning engineer is designing a RAG pipeline in OCI to improve the accuracy of an LLM-based FAQ bot. Which TWO components are essential for the retrieval phase? (Select TWO.)

Select 2 answers
A.Document chunking
B.Tokenization before the generation step
C.Text generation model
D.A reranker model
E.Embedding model to convert chunks into vectors
AnswersA, E

Documents must be split into chunks for effective retrieval.

Why this answer

Document chunking is essential because it breaks large documents into smaller, manageable pieces that can be individually indexed and retrieved. Without chunking, the retrieval phase would either miss relevant context or return overly large documents that exceed the LLM's context window, reducing accuracy.

Exam trap

The 1Z0-1127 exam often tests the distinction between retrieval-phase components (chunking and embeddings) and generation-phase components (tokenization and the LLM itself), leading candidates to mistakenly include reranking as essential when it is only an optional refinement.

96
MCQmedium

A team is evaluating two embedding models for a similarity search task. Model A has a higher BERTScore on a reference dataset. Model B has a lower perplexity on the same dataset. Which model is likely better for retrieval?

A.Both are equally good for retrieval
B.Model A, because BERTScore directly measures semantic similarity of embeddings
C.Model B, because lower perplexity indicates better language modeling, which improves retrieval
D.Neither metric is relevant for retrieval tasks
AnswerB

BERTScore is a semantic similarity metric that evaluates the quality of embeddings for capturing meaning, which is crucial for retrieval.

Why this answer

For retrieval tasks, embedding quality is best measured by semantic similarity metrics like BERTScore, which correlate with how well embeddings capture meaning. Perplexity measures language model fluency, not embedding quality.

97
MCQeasy

Which component of the Transformer architecture allows each token to consider the relevance of every other token in the input sequence?

A.Multi-head attention
B.Self-attention
C.Feed-forward network
D.Positional encoding
AnswerB

Self-attention directly computes relevance weights between every pair of tokens in the input.

Why this answer

Self-attention computes attention scores between all pairs of tokens, enabling the model to capture dependencies across the entire sequence.

98
Multi-Selecthard

A data scientist is evaluating an LLM's performance on a summarization task. They observe that the model produces fluent summaries but often misses key information. Which TWO metrics would best capture this issue? (Select TWO.)

Select 2 answers
A.BLEU score
B.Perplexity
C.Human evaluation with a rubric for completeness
D.ROUGE-L
E.BERTScore
AnswersC, D

Human judgment can directly assess whether key information is included.

Why this answer

ROUGE-L measures recall of the longest common subsequence, capturing information coverage. Human evaluation can assess completeness. BLEU emphasizes precision and fluency.

BERTScore measures semantic similarity but not directly the presence of key points. Perplexity measures model confidence, not recall.

99
MCQhard

A developer notices that an LLM-based question-answering system sometimes provides answers that are correct but from an outdated version of the knowledge base. The system uses RAG with a vector database updated daily. What is the MOST likely root cause?

A.The retrieval top-k parameter is set too high
B.The chunking strategy splits documents into too-small pieces
C.The embedding model was not re-run on the updated documents, so the index contains old embeddings
D.The LLM's training data has a knowledge cutoff date
AnswerC

If the vector database is updated but embeddings are not recomputed, the index still matches old chunks, causing retrieval of outdated information.

Why this answer

The core issue is that the vector database index still contains old embeddings. Even though the knowledge base documents are updated daily, if the embedding model is not re-run on those updated documents, the vector representations in the index remain stale. When the RAG system retrieves, it fetches these outdated embeddings, leading to correct but outdated answers.

This is a classic index synchronization problem in RAG pipelines.

Exam trap

Oracle OCI GenAI exams often test the distinction between retrieval-side issues (index staleness) and model-side issues (knowledge cutoff), so candidates mistakenly pick D because they confuse the LLM's training cutoff with the freshness of the vector database index.

How to eliminate wrong answers

Option A is wrong because a high top-k parameter would retrieve more documents, potentially including both old and new versions, but it does not cause the system to systematically favor outdated content; it would increase recall, not introduce staleness. Option B is wrong because chunking into too-small pieces might reduce context or cause fragmentation, but it does not inherently cause the system to retrieve outdated information; the chunks themselves would still reflect the current document content if embeddings are updated. Option D is wrong because the LLM's training data cutoff date affects the model's parametric knowledge, not the retrieval from the vector database; the RAG system is designed to overcome this by retrieving fresh documents, so the cutoff date is irrelevant to the index staleness problem.

100
MCQmedium

A developer is building a code generation assistant and needs to ensure the LLM follows a specific output format (e.g., JSON). Which approach is MOST effective for achieving format adherence without retraining?

A.Lower the temperature to 0 to reduce output variability
B.Provide a few-shot example of the desired JSON format in the prompt
C.Fine-tune the model on a dataset of JSON code examples
D.Increase the context window to include more code context
AnswerB

In-context learning (few-shot) guides the model to mimic the provided format without retraining.

Why this answer

Few-shot prompting—providing explicit examples of the desired JSON format in the prompt—directly guides the LLM's output structure without requiring retraining. This technique leverages in-context learning, where the model infers the required schema from the examples, making it the most effective and efficient method for format adherence.

Exam trap

A common misconception in the Oracle OCI GenAI exam is that lowering temperature or increasing context window can enforce output format, but these parameters only affect randomness or input length, not structural adherence.

How to eliminate wrong answers

Option A is wrong because lowering temperature to 0 reduces randomness but does not enforce a specific output format; the model may still produce valid JSON with varying structures or deviate entirely. Option C is wrong because fine-tuning requires retraining the model on a dataset, which is costly, time-consuming, and contradicts the constraint of 'without retraining.' Option D is wrong because increasing the context window provides more input context but does not constrain the output format; the model may still generate malformed or non-JSON responses.

101
MCQmedium

A developer wants to compare two sentences for semantic similarity using embeddings. Which distance or similarity metric is most commonly used for dense vector representations?

A.Cosine similarity
B.Jaccard similarity
C.Manhattan distance
D.Euclidean distance
AnswerA

Cosine similarity is the standard metric for comparing embedding vectors because it focuses on orientation, not magnitude.

Why this answer

Cosine similarity measures the cosine of the angle between two vectors, is commonly used for comparing embedding vectors, and ranges from -1 to 1, where 1 indicates identical direction.

102
MCQeasy

What is the primary purpose of the self-attention mechanism in a transformer model?

A.To reduce the number of parameters in the model
B.To convert tokens into fixed-length vectors
C.To ensure the model is autoregressive
D.To process tokens in parallel while modeling long-range dependencies
AnswerD

Self-attention enables parallelization by computing attention scores between all token pairs simultaneously, and its receptive field covers the entire sequence.

Why this answer

The self-attention mechanism allows each token in the input sequence to attend to every other token, computing a weighted sum of their representations. This enables the model to capture long-range dependencies directly without the sequential processing constraints of RNNs, and because the attention scores for all tokens can be computed simultaneously, the mechanism supports parallel processing of the entire sequence.

Exam trap

The 1Z0-1127 exam often tests the distinction between the self-attention mechanism's core function (parallel processing and long-range dependencies) and other transformer components like embeddings or causal masking, leading candidates to confuse the purpose of self-attention with the overall autoregressive nature of the decoder.

How to eliminate wrong answers

Option A is wrong because self-attention actually increases the number of parameters (through query, key, and value projection matrices) rather than reducing them. Option B is wrong because converting tokens into fixed-length vectors is the role of the embedding layer, not the self-attention mechanism. Option C is wrong because self-attention itself is not autoregressive; autoregressive behavior in transformers is enforced by causal masking (masking future tokens) during decoding, not by the self-attention mechanism itself.

103
Multi-Selecteasy

A developer is comparing different foundation models for a text completion API on OCI. Which TWO of the following are model families available through OCI Generative AI service? (Choose two.)

Select 2 answers
A.OpenAI GPT
B.BERT
C.Meta Llama
D.Cohere Command/Embed
E.Mistral
AnswersC, D

Meta Llama models are available on OCI.

Why this answer

OCI Generative AI offers models including Cohere Command/Embed and Meta Llama. Mistral and GPT are not mentioned in the context of OCI's available models, and BERT is an encoder-only model not typically offered as a generation model.

104
Multi-Selectmedium

A team wants to reduce hallucinations in their LLM-powered question-answering system. Which TWO techniques are most effective?

Select 2 answers
A.Implementing RAG to retrieve relevant documents
B.Switching to a smaller model
C.Using a lower temperature (e.g., 0) for more deterministic outputs
D.Using a larger context window
E.Increasing the temperature to 1.5
AnswersA, C

RAG grounds answers in retrieved facts.

Why this answer

RAG provides factual grounding, and reducing temperature makes outputs more deterministic, reducing fabricated details.

105
MCQmedium

An organization wants to deploy an LLM for legal document analysis where accuracy is critical, and the model must not reference any external data outside the provided legal corpus. Which approach BEST satisfies these requirements?

A.Use a decoder-only model with zero-shot prompting
B.Use a fine-tuned encoder-only model for classification only
C.Use a large foundation model with a high temperature setting
D.Use RAG with a vector store containing only the legal documents, and set the retriever to return a fixed number of chunks with high similarity threshold
AnswerD

RAG ensures answers are grounded in the provided legal corpus; similarity threshold can prevent retrieval of irrelevant chunks.

Why this answer

RAG can ground generation in a curated corpus, and with strict retrieval settings (e.g., only retrieving from the legal corpus), the model will not use any outside knowledge, reducing hallucinations.

106
MCQmedium

Which of the following sampling strategies selects tokens based on a cumulative probability threshold from the highest probability tokens?

A.Top-p (nucleus) sampling
B.Top-k sampling
C.Greedy decoding
D.Temperature sampling
AnswerA

Top-p selects the smallest set of tokens whose cumulative probability exceeds p.

Why this answer

Top-p (nucleus) sampling cuts off the tail of the probability distribution where cumulative probability exceeds p, allowing dynamic vocabulary size.

107
Multi-Selecthard

A machine learning engineer is evaluating the performance of a translation model using BLEU score. Which THREE statements about BLEU are correct? (Choose three.)

Select 3 answers
A.BLEU includes a brevity penalty to penalize outputs that are too short
B.BLEU computes n-gram precision up to a maximum n (usually 4)
C.BLEU correlates well with human judgment at the corpus level
D.BLEU measures recall of n-grams by comparing the output to the reference
E.BLEU is a recall-oriented metric
AnswersA, B, C

The brevity penalty prevents short outputs from achieving artificially high scores.

Why this answer

BLEU is a precision-based metric (not recall). It uses modified n-gram precision with a brevity penalty. It correlates reasonably well with human judgment at the corpus level but has known limitations such as not capturing semantic equivalence.

108
MCQmedium

A data scientist is fine-tuning a Llama 2 7B model on a custom dataset using OCI Data Science. After training, the model generates fluent but factually incorrect statements about the new domain. Which post-training technique would BEST address this issue without retraining?

A.Decrease the temperature to 0.1
B.Switch to a larger model like Llama 2 70B
C.Apply top-p sampling with p=0.9
D.Use a retrieval-augmented generation (RAG) pipeline
AnswerD

RAG retrieves relevant documents and feeds them as context, reducing hallucinations by grounding responses in verified sources.

Why this answer

RAG retrieves factual information from an external knowledge base to ground the generation, reducing hallucinations. The other options do not address factual accuracy.

109
MCQeasy

Which component of the Transformer architecture allows the model to weigh the importance of different tokens in the input sequence when generating each output token?

A.Feed-forward neural network
B.Multi-head attention
C.Self-attention mechanism
D.Positional encoding
AnswerC

The self-attention mechanism computes attention scores between each token and every other token, allowing the model to focus on relevant parts of the input.

Why this answer

The self-attention mechanism computes attention scores between all pairs of tokens, enabling the model to dynamically focus on relevant parts of the input. Positional encoding adds order information, multi-head attention runs multiple attention heads in parallel, and the feed-forward network processes each position independently.

← PreviousPage 2 of 2 · 109 questions total

Ready to test yourself?

Try a timed practice session using only LLM Fundamentals questions.