NVIDIA-Certified Associate Generative AI and LLMs (NCA-GENL) Exam-style mock test
NVIDIA NCA-GENL Generative AI and LLMs Practice Exams|Practice test
Full explanations
Exam format
Pass line 70%
33 USD One-time · lifetime access
Enroll →
Sample questions
Example1 · LLM Fundamentals, Transformers, and Architectures
A B2B SaaS company is onboarding its support team to an internal LLM assistant and asks an engineer to explain why transformer models handle long customer tickets better than earlier recurrent models. Which description of the self-attention mechanism best answers this?
・It compresses the entire input ticket into a single fixed-size hidden state that is passed forward token by token during processing
Incorrect. Compressing the sequence into one fixed-size state describes the recurrent bottleneck that transformers were designed to avoid, not self-attention.
✓It lets every token weigh its relevance to all other tokens in the sequence directly, capturing long-range dependencies in parallel
Correct. Self-attention computes pairwise relevance between all tokens, enabling long-range dependency modeling and parallel computation over the sequence.
・It applies a sliding convolutional filter across adjacent tokens to extract local n-gram features from the ticket text one window at a time
Incorrect. Sliding convolutional filters describe CNN-style local feature extraction, which is not how self-attention relates tokens across the whole sequence.
・It stores each previous token in an external memory buffer and retrieves the single most similar token before predicting the next word
Incorrect. Retrieving a single most-similar token from an external buffer is not self-attention, which weighs all tokens simultaneously rather than picking one.
Explanation
Self-attention allows each token to attend to every other token with learned weights, which captures long-range context in parallel and overcomes the sequential bottleneck of RNNs.
Example2 · Prompt Engineering and In-Context Learning
A B2B SaaS company deploys an LLM to classify inbound support tickets into one of eight internal categories. The team's first prompt gives only the task instruction and a ticket, but accuracy on rare categories is poor. They decide to include two labeled example tickets per category directly inside the prompt before the new ticket. Which in-context learning approach are they now using?
・One-shot prompting, because the model receives exactly one additional instruction block appended ahead of the live ticket it must label
Incorrect. One-shot supplies a single demonstration; here multiple labeled examples per category are included, which is few-shot.
✓Few-shot prompting, because several labeled demonstrations are placed in the prompt to steer classification without any weight updates
Correct. Multiple labeled demonstrations embedded in the prompt to guide behavior at inference, with no parameter changes, is few-shot prompting.
・Zero-shot prompting, since the model still relies on its pretrained knowledge and no fine-tuning run is performed on the labeled tickets
Incorrect. Zero-shot provides no demonstrations; adding labeled examples moves beyond zero-shot to few-shot.
・Instruction fine-tuning, because labeled examples are supplied so the model can adjust its parameters toward the eight categories
Incorrect. Including examples in the prompt does not change weights; fine-tuning updates parameters through training, which is not happening here.
Explanation
Placing several labeled demonstrations in the prompt to guide the model at inference time, without updating weights, is few-shot in-context learning.
Example3 · Fine-Tuning, RAG, and Model Adaptation
A B2B SaaS analytics company wants its support assistant to answer questions from a knowledge base that changes several times per week as new release notes are published. The team needs answers to always cite the latest documented behavior. Which adaptation approach best fits this requirement?
・Full fine-tuning of the base model on the knowledge base, repeated after each weekly documentation update to the corpus
Incorrect. Retraining weights on every weekly change is costly and slow, and the model still cannot guarantee it reflects the newest documented behavior.
✓Retrieval-augmented generation that queries the current document index at inference and grounds responses on it
Correct. RAG grounds each answer on the current index at query time, so frequently changing content is reflected immediately without retraining.
・Parameter-efficient LoRA tuning scheduled nightly so the adapter weights slowly absorb the newly published release notes
Incorrect. Adapter tuning still bakes knowledge into weights with a delay and does not provide citeable, always-current grounding.
・Supervised instruction tuning on question-answer pairs regenerated from the knowledge base every weekend by the team
Incorrect. Regenerating QA pairs and tuning weekly lags behind mid-week updates and still risks stale or hallucinated facts.
Explanation
RAG is preferred when the authoritative knowledge changes frequently and answers must reflect the latest documented facts, because retrieval happens at inference time.
Example4 · NVIDIA NeMo, Frameworks, and LLM Development
A healthcare services firm wants to build a clinical note summarizer using large language models and needs an end-to-end framework that covers data curation, distributed training, customization, and deployment with enterprise support. Which NVIDIA offering is the most appropriate single choice for this entire LLM development lifecycle?
・NVIDIA Triton Inference Server, which specializes purely in serving trained models at scale
Incorrect. Triton focuses on inference serving and does not cover data curation, training, or customization of LLMs across the full lifecycle.
✓NVIDIA NeMo framework, which spans data curation, training, customization, and deployment
Correct. NeMo is the end-to-end framework for building, customizing, training, and deploying LLMs, matching every stage the firm requires.
・NVIDIA cuDNN, a low-level library providing GPU primitives for deep neural network operators
Incorrect. cuDNN is a low-level operator library, not an end-to-end LLM development framework.
・NVIDIA RAPIDS, a suite focused on GPU-accelerated tabular data science and analytics pipelines
Incorrect. RAPIDS accelerates tabular data science and analytics, not the full LLM training and customization lifecycle.
Explanation
NeMo is NVIDIA's end-to-end framework covering data curation through deployment, which is exactly what an end-to-end clinical LLM project needs.
Example5 · Evaluation, Deployment, and Responsible AI
A healthcare services firm builds an LLM that drafts discharge-summary paraphrases from clinician notes. The team wants an automated reference-based score that rewards semantic overlap with human-written gold summaries while remaining tolerant of paraphrasing. Which evaluation approach best fits this generation task?
・Report classification accuracy by checking whether each generated summary exactly string-matches its single human gold reference sentence for sentence
Incorrect. Exact string matching is far too strict for free-form summaries and penalizes valid paraphrases that convey identical meaning.
✓Compute ROUGE against the human reference summaries to measure overlap of shared n-grams and longest common subsequences
Correct. ROUGE rewards shared n-gram and longest-common-subsequence overlap with gold references, which suits reference-based evaluation of paraphrased summaries.
・Measure perplexity of the base model on the raw clinician notes and treat a lower perplexity as proof the summaries are clinically accurate
Incorrect. Perplexity reflects the model's fluency on text, not how well a generated summary matches a human reference or is clinically correct.
・Count the average number of output tokens per summary and flag any summary that is longer than the corresponding clinician source note
Incorrect. Output token count is only a length proxy and says nothing about semantic fidelity to the reference summaries.
Explanation
ROUGE is a reference-based overlap metric well suited to summarization, tolerating paraphrase while scoring content overlap; exact match, perplexity, and token counts do not measure semantic fidelity.
Example6 · LLM Fundamentals, Transformers, and Architectures
A machine learning team at a healthcare services firm is reviewing how a transformer encoder processes clinical notes. A junior engineer asks why self-attention is central to the architecture. Which explanation best describes the primary function of the self-attention mechanism?
✓It lets each token weigh and incorporate information from all other tokens in the sequence based on learned relevance scores
Correct. Self-attention computes relevance-weighted combinations of all tokens, letting each position attend to the most relevant context regardless of distance.
・It applies a fixed convolutional filter across the sequence to extract local n-gram features from neighboring clinical terms
Incorrect. Fixed convolutional filters describe CNNs, which capture local windows rather than the global, content-based weighting that self-attention provides.
・It compresses the entire input sequence into a single recurrent hidden state passed sequentially from token to token
Incorrect. Compressing the sequence into a single recurrent hidden state describes RNNs, which transformers were designed to replace to avoid sequential bottlenecks.
・It normalizes token embeddings so that every token contributes an identical, equally weighted signal to the output
Incorrect. Self-attention produces unequal, learned weights precisely so tokens can emphasize relevant context rather than contributing identical signals.
Explanation
Self-attention allows each token to dynamically weigh every other token by learned relevance, capturing long-range dependencies in parallel, which is the defining capability of transformer models.
Example7 · LLM Fundamentals, Transformers, and Architectures
An ML engineer at the retail brand UrbanThread is explaining to teammates why the transformer behind the product-description generator handles long sentences better than their older recurrent model. They focus on the self-attention mechanism. Which statement best describes what self-attention actually does within each transformer layer?
・It compresses the entire input sequence into a single fixed-size hidden vector that every later layer then expands back out into per-token representations before prediction.
Incorrect. Compressing the sequence into one fixed vector describes an encoder bottleneck, not self-attention, which keeps per-token representations throughout.
✓It lets each token compute weighted relationships to every other token in the sequence, so context from distant words directly shapes that token's representation.
Correct. Self-attention scores each token against all others and blends their values by those weights, letting distant context directly inform every token.
・It applies a shared convolutional filter that slides across neighboring tokens to capture local n-gram patterns within a fixed receptive window.
Incorrect. Sliding shared filters over neighbors describes convolution; self-attention is not limited to a fixed local receptive window.
・It processes tokens strictly one after another, passing a recurrent state forward so each token mainly sees the summarized history before it.
Incorrect. Strictly sequential recurrent state passing describes RNNs, the very limitation transformers avoid with parallel all-pairs attention.
Explanation
Self-attention computes relationships between all token pairs and weights their contributions, letting long-range context influence each token's representation without sequential recurrence.
Example8 · LLM Fundamentals, Transformers, and Architectures
During a design review at the retailer UrbanThread, a junior engineer asks why their transformer-based search reranker adds positional encodings to the token embeddings before the first attention block. What is the primary reason positional information must be injected?
✓Because self-attention is permutation-invariant and would otherwise treat the tokens as an unordered set, losing word-order information entirely.
Correct. Raw self-attention has no inherent notion of order, so without positional encodings the model sees a bag of tokens and cannot distinguish word sequences.
・Because the embedding table stores only 512 vectors and positional vectors are needed to extend the effective vocabulary of the model.
Incorrect. Positional encodings describe where tokens sit in the sequence; they do not expand vocabulary size or the embedding table.
・Because gradients through deep attention stacks vanish, and positional signals act as residual shortcuts that stabilize backpropagation during training.
Incorrect. Vanishing gradients are addressed by residual connections and normalization, not by positional encodings.
・Because attention weights must be normalized to sum to one, and positional encodings supply the denominator used in the softmax scaling step.
Incorrect. Softmax normalization is handled by its own scaling and exponentials; positional encodings play no role in that denominator.
Explanation
Self-attention treats inputs as an unordered set, so positional encodings reintroduce the sequence order the model needs to interpret language correctly.
Example9 · LLM Fundamentals, Transformers, and Architectures
UrbanThread's data team wants a model that reads an incoming customer-support email and produces a fluent summarized reply in a different structure than the input. They want an architecture built natively for sequence-to-sequence transduction with separate reading and writing stacks. Which transformer architecture best matches this need?
・An encoder-only architecture that outputs contextual embeddings over the input tokens for downstream classification heads to consume.
Incorrect. Encoder-only models produce embeddings for understanding tasks and do not natively generate a restructured output sequence.
・A decoder-only autoregressive architecture that is pretrained purely on next-token prediction over a single running stream of text.
Incorrect. Decoder-only models generate text but lack a dedicated encoder stack designed for separate source reading in seq2seq transduction.
✓An encoder-decoder architecture where the encoder reads the source and the decoder attends to it while generating the target sequence.
Correct. Encoder-decoder models are purpose-built for transduction: the encoder represents the source and the decoder cross-attends to generate the target.
・A bidirectional masked-language-model architecture trained only to reconstruct randomly masked tokens from their surrounding left and right context.
Incorrect. A masked-LM bidirectional model is an understanding-oriented encoder and is not structured to emit a new generated sequence.
Explanation
Encoder-decoder transformers are designed for sequence-to-sequence tasks like translation and summarization, using an encoder to read the source and a decoder to generate the target.
Example10 · LLM Fundamentals, Transformers, and Architectures
A data science team at a financial services firm is reviewing how a Transformer model processes a client complaint before classifying its sentiment. An engineer asks what the self-attention mechanism actually computes as each token is encoded. Which description best captures the role of self-attention?
・It applies a fixed convolutional filter over neighboring tokens to capture only local word patterns within the sentence.
Incorrect. Convolutions capture fixed local windows; self-attention is not convolutional and is not limited to neighboring tokens.
✓It weighs each token against every other token in the sequence, letting the model blend information based on learned relevance scores.
Correct. Self-attention computes relevance (attention) scores between each token and all others, then blends their representations accordingly.
・It compresses the full input into a single averaged vector that every downstream layer reuses without further interaction.
Incorrect. Averaging into one vector discards positional and relational detail, which is the opposite of what attention preserves.
・It replaces each token with its nearest dictionary synonym so that rare financial terms map to more common vocabulary.
Incorrect. Self-attention does not perform synonym substitution; it reweights contextual representations, not vocabulary.
Explanation
Self-attention lets each token attend to all others in the sequence using learned query-key-value scoring, producing context-aware representations.
Example11 · LLM Fundamentals, Transformers, and Architectures
While debugging a Transformer that summarizes loan agreements, an engineer at a financial services company notices the architecture has no recurrence or convolution. A teammate asks why positional encodings are added to the token embeddings before the first attention layer. What is the main reason?
・They shrink the embedding dimension so attention runs faster on long contracts with thousands of tokens.
Incorrect. Positional encodings do not reduce the embedding dimension and are unrelated to attention speed.
・They encrypt the token order so that sensitive loan data cannot be reconstructed from intermediate activations.
Incorrect. Positional encodings add order information; they provide no encryption or privacy guarantee.
✓They give the model information about token order, since attention alone treats the input as an unordered set.
Correct. Attention is permutation-invariant, so positional encodings inject the sequence order the model would otherwise lack.
・They normalize token embeddings to unit length so that gradient updates remain numerically stable during training.
Incorrect. Length normalization is a separate concern; positional encodings encode position, not vector magnitude.
Explanation
Because self-attention has no inherent notion of order, positional encodings supply the position information needed to distinguish token sequences.
Example12 · LLM Fundamentals, Transformers, and Architectures
A manufacturing distributor builds an LLM assistant that reads purchase-order emails where a part number referenced early in a message is later clarified near the end. An engineer asks why a transformer can connect these distant mentions well. Which explanation best describes the role of the self-attention mechanism here?
・It relies on a fixed-size sliding convolution window that only compares each token with its immediate neighbors on the left and right sides.
Incorrect. Convolutional windows compare local neighbors; self-attention is global and not limited to adjacent tokens.
✓It lets every token weigh its relevance to every other token in the sequence, so distant words can directly influence one another regardless of position.
Correct. Self-attention computes pairwise relevance scores across all tokens, letting distant mentions attend to each other directly.
・It processes tokens strictly one at a time through a recurrent loop, passing a single hidden state forward until the final token is reached.
Incorrect. Sequential recurrence describes RNNs; self-attention processes all positions in parallel, not one hidden state at a time.
・It compresses the whole message into one averaged embedding vector first, then decodes that single summary back into the predicted output tokens.
Incorrect. Averaging into a single vector discards position-specific detail; attention keeps per-token representations and weights them.
Explanation
Self-attention scores the relevance of each token to every other token, enabling long-range dependencies such as a part number clarified far away in the email.
Example13 · LLM Fundamentals, Transformers, and Architectures
A distributor wants to classify incoming supplier messages as 'invoice', 'shipping delay', or 'quote request' by producing a single label from the full text, with no text generation required. Which transformer architecture is the most appropriate starting point for this task?
・A decoder-only autoregressive model that predicts the next token one step at a time to freely generate an open-ended continuation of the message.
Incorrect. Decoder-only models are optimized for generation, not for producing a single fixed classification label.
✓An encoder-only model that reads the full text bidirectionally and produces a pooled representation suited to assigning one category label.
Correct. Encoder-only models read text bidirectionally and yield a pooled representation ideal for classification tasks.
・An encoder-decoder sequence-to-sequence model that first encodes the input and then decodes an entirely new output sequence conditioned on it.
Incorrect. Encoder-decoder models shine at generating new sequences (translation, summarization), which is unnecessary for pure labeling.
・A retrieval-only vector index that stores past messages and returns the nearest stored example without any learned classification layer at all.
Incorrect. A nearest-neighbor index is not a transformer architecture and lacks a learned classifier for defined categories.
Explanation
Encoder-only architectures read the entire input bidirectionally and pool it into a representation well suited to single-label classification.
Example14 · LLM Fundamentals, Transformers, and Architectures
A telecom operator's NLP team is studying why transformer models outperform their older recurrent models when classifying long customer-support transcripts. An engineer asks what the self-attention mechanism fundamentally contributes to the architecture. Which description best captures its role?
・It compresses the entire input sequence into one fixed-length vector before any token-level processing begins downstream
Incorrect. Compressing the sequence into one fixed vector describes an encoder bottleneck, not the self-attention operation itself.
✓It lets each token compute weighted relationships to every other token, capturing context regardless of their distance
Correct. Self-attention weighs each token against all others, so long-range dependencies are captured without regard to positional distance.
・It processes tokens strictly one after another so that each hidden state depends only on the single prior state
Incorrect. Strictly sequential state passing describes recurrent networks, which self-attention was designed to replace for parallelism.
・It applies a fixed convolution window over neighboring tokens to extract purely local n-gram style features
Incorrect. A fixed local window describes convolution, whereas attention spans the whole sequence rather than only neighbors.
Explanation
Self-attention allows every token to attend to every other token with learned weights, enabling long-range context modeling and parallel computation.
Example15 · LLM Fundamentals, Transformers, and Architectures
While reviewing a transformer that summarizes telecom network incident reports, a junior engineer notices positional encodings are added to the token embeddings at the input. She asks why this step is necessary. What is the primary reason positional encoding is included?
・To normalize the embedding magnitudes so that gradients remain numerically stable during the backpropagation updates
Incorrect. Normalizing magnitudes is the job of layer normalization, not positional encoding.
✓To supply order information because self-attention alone treats the input as an unordered set of tokens
Correct. Attention is permutation-invariant, so positional encodings inject the sequence order the model would otherwise lack.
・To reduce the size of the vocabulary so that rare telecom-specific terms map to shared subword units
Incorrect. Vocabulary reduction is handled by subword tokenization, which is unrelated to positional encoding.
・To mask future tokens so the decoder cannot attend to positions that come later in the sequence
Incorrect. Masking future tokens is causal masking in the decoder, a separate mechanism from positional encoding.
Explanation
Self-attention is order-agnostic, so positional encodings are added to give the model information about token position within the sequence.
▶ Try 10 free questions (graded)