All NVIDIA exams
Free NCP-GENL practice test: 30 questions with answers
30 original questions for NVIDIA-Certified Professional: Generative AI LLMs, 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
- 100 questions
- Real exam
- 120 min
- Passing score
- Pass/fail
All 30 NCP-GENL questions with answers
The same questions as the test above, grouped by exam topic. Open any question to see the answer and explanation.
Inference Optimization (3 questions)
Question 1
Which technique stores the key and value tensors from earlier tokens so that each new token does not recompute them?
- AGradient accumulation
- BDropout at inference time
- CKV cache
- DLabel smoothing
Show answer and explanationHide answer
Correct answer: CThe KV cache keeps attention keys and values for previously processed tokens, so generation only computes the new token's contribution. Dropout, gradient accumulation and label smoothing are training-time techniques.
Question 2
A serving team wants higher throughput for many concurrent chat requests on one GPU. Which serving strategy is most effective?
- AProcessing one request at a time with batch size fixed at one to keep latency consistent under peak load
- BDisabling the KV cache to save memory so each decode step recomputes keys and values
- CRunning each request on a separate CPU core with its own copy of the model weights
- DContinuous (in-flight) batching that adds new requests to the running batch as slots free up
Show answer and explanationHide answer
Correct answer: DContinuous batching schedules requests dynamically so the GPU stays busy and throughput rises under concurrency. Serial processing and disabling the KV cache reduce throughput, and CPU-only execution is much slower for LLM inference.
Question 3
Which numeric format halves the weight memory of FP16 and is supported natively on recent NVIDIA GPUs for LLM inference?
- AArbitrary-precision decimal
- BFP8
- CFixed 32-bit integers with no scale factor
- DFP64
Show answer and explanationHide answer
Correct answer: BFP8 uses one byte per value, halving memory compared with FP16 and supported natively on recent NVIDIA GPUs such as Hopper and Blackwell. FP64 doubles memory use, and unscaled integers or arbitrary decimals are not standard inference formats.
Core ML and LLM Foundations (3 questions)
Question 4
A team is choosing a decoder-only transformer for text generation. Which component lets each token attend only to earlier tokens during training?
- AMax pooling over the sequence
- BBatch normalization in each block
- CBidirectional cross-attention
- DCausal (masked) self-attention
Show answer and explanationHide answer
Correct answer: DA causal mask sets attention scores for future positions to negative infinity, so each token attends only to itself and earlier tokens. Bidirectional cross-attention belongs to encoder-decoder models, and pooling or batch normalization do not restrict attention order.
Question 5
A model fine-tuned on a large corpus produces fluent text, but its outputs drift from user intent. Which post-training stage is designed to align responses with human preferences?
- AReinforcement learning from human feedback or preference optimization
- BLearning-rate warmup that ramps the step size up at training onset
- CGradient checkpointing that recomputes activations during the backward pass
- DTokenizer vocabulary expansion with new subword merges for code
Show answer and explanationHide answer
Correct answer: ARLHF and related preference-optimization methods adjust the model using ranked human judgments so outputs follow instructions and preferences. Warmup, checkpointing and tokenizer changes address optimization or input representation rather than alignment.
Question 6
Which step in scaled dot-product attention keeps the softmax from saturating when the key dimension is large?
- AMultiplying the scores by the sequence length before softmax normalization
- BDividing the scores by the square root of the key dimension
- CAdding a learned bias term to every query position
- DReplacing softmax with a hard argmax over the key dimension scores
Show answer and explanationHide answer
Correct answer: BDot products grow in magnitude with the key dimension, which pushes softmax into regions with tiny gradients. Dividing by the square root of the key dimension keeps variance stable. The other options do not address this scaling effect.
Retrieval-Augmented Generation (3 questions)
Question 7
A support chatbot must answer from a company's policy documents that change weekly. Which architecture keeps answers current without retraining the model?
- APlacing the documents in a fixed system prompt with no retrieval layer, loaded once at deployment time
- BIncreasing the sampling temperature to 2.0 during decoding so answers vary more across runs
- CRetrieval-augmented generation with a vector index that is refreshed as documents change
- DFine-tuning once a year on a static snapshot of internal policy documents
Show answer and explanationHide answer
Correct answer: CRAG retrieves current passages at query time and supplies them as context, so updating the index updates answers without retraining. A yearly snapshot goes stale, temperature changes randomness rather than knowledge, and a fixed prompt cannot hold a changing corpus.
Question 8
In a RAG pipeline, which component converts text chunks and queries into vectors so that similar meanings can be matched?
- AAn embedding model
- BA reranker that scores final candidate passages
- CA tokenizer with a fixed vocabulary of 50 tokens
- DA learning-rate scheduler
Show answer and explanationHide answer
Correct answer: AAn embedding model maps text to dense vectors that capture semantic similarity, which the vector index uses for retrieval. A reranker scores candidates after retrieval, a tokenizer splits text into tokens, and schedulers affect training only.
Question 9
A RAG system retrieves the right document but the answer still ignores it. Which change is most likely to help?
- AReranking retrieved chunks and placing the most relevant passages at the start of the context with clear instructions to use them
- BSwitching to a model with a smaller context window and a weaker instruction-tuning recipe so fewer passages fit
- CAdding more random documents from an unrelated corpus to the context ahead of the question and instructions
- DLowering the chunk overlap to zero and removing source metadata such as document titles and timestamps from the index
Show answer and explanationHide answer
Correct answer: AReranking and careful context ordering with explicit grounding instructions make the relevant passage more likely to be used. Adding random documents dilutes context, removing metadata loses useful filters, and a smaller window reduces what can be supplied.
Trustworthy AI (3 questions)
Question 10
A deployed assistant occasionally reveals personal data that appeared in its training set. Which combination is the most direct mitigation?
- AData governance review, deduplication, and output filtering for personal identifiers, checked by a privacy evaluation
- BSwitching to a larger batch size during pretraining to smooth gradient noise across the run
- CAdding more transformer layers to the network to increase model depth and total parameter count
- DIncreasing the vocabulary size of the byte-pair encoding tokenizer so that rare personal identifiers are split into fewer tokens
Show answer and explanationHide answer
Correct answer: AReviewing training data, removing duplicated sensitive content, and filtering outputs address memorization and leakage directly, and a privacy evaluation confirms the result. The other changes affect model size or optimization, not leakage.
Question 11
Which technique adds a separate classifier that checks user inputs and model outputs against policy before responses are returned?
- AStep learning-rate decay schedule
- BGuardrails or safety filters
- CGradient norm clipping threshold
- DBeam search decoding with width 4
Show answer and explanationHide answer
Correct answer: BGuardrails and safety classifiers screen inputs and outputs against defined policies, which can block or modify harmful content. Gradient clipping, learning-rate decay and beam search are training or decoding techniques.
Question 12
Which mitigation most directly reduces the risk that an LLM produces harmful content when a user asks for help with something dangerous?
- ARemoving the system prompt so the model has no context and its safety rules
- BTurning on sampling at very high temperature for every reply
- CRefusal and safety tuning combined with an output safety classifier
- DIncreasing the maximum output length so longer completions drift further off topic
Show answer and explanationHide answer
Correct answer: CSafety tuning teaches appropriate refusals, and an output classifier catches harmful responses that slip through. Longer outputs, no system prompt and high-temperature sampling each increase risk.
Evaluation (3 questions)
Question 13
Which two metrics are most useful for judging the retrieval step of a RAG system? (Choose two.)
- ANumber of GPUs used during retrieval
- BRecall at k for relevant passages
- CHit rate or mean reciprocal rank of retrieved passages
- DPerplexity of the generator on the question alone
- EToken count of the final answer
Show answer and explanationHide answer
Correct answer: B, CRecall at k and ranking metrics such as mean reciprocal rank measure whether relevant passages were retrieved and where they appear. Generator perplexity, answer length and hardware count do not measure retrieval quality directly.
Question 14
Which evaluation approach is best for checking whether an LLM's answers are supported by the documents it was given?
- ACounting the number of bullet points in the answer produced by the model
- BChecking the response latency and token throughput
- CMeasuring average word length of each sentence in the generated response batch
- DGroundedness or faithfulness scoring against the provided context
Show answer and explanationHide answer
Correct answer: DGroundedness or faithfulness metrics compare claims in the answer with the supplied evidence to detect unsupported statements. Formatting, word length and latency say nothing about factual support.
Question 15
Which benchmark style best measures an LLM's ability to follow multi-turn instructions with checkable constraints?
- AInstruction-following evaluations with programmatically verifiable constraints
- BRecording GPU temperature and power draw during long multi-turn dialogues
- CMeasuring the number of parameters and reporting peak memory footprint
- DCounting how many words start with the letter A in each reply
Show answer and explanationHide answer
Correct answer: AInstruction-following evaluations check responses against explicit, verifiable constraints such as length or format, which gives objective scores. Parameter counts, letter counts and temperature do not measure instruction following.
Distributed Training (3 questions)
Question 16
A 30B model does not fit into one GPU's memory during training. Which strategy splits the individual weight matrices across GPUs?
- AHyperparameter sweeps
- BEarly stopping
- CTensor parallelism
- DData parallelism with full model replicas
Show answer and explanationHide answer
Correct answer: CTensor parallelism shards matrix multiplications across devices so each holds part of a layer's weights. Data parallelism replicates the full model, which does not solve the memory limit, and sweeps and early stopping do not split weights.
Question 17
Which two statements about pipeline parallelism are correct? (Choose two.)
- AIt requires a separate label set for each layer
- BIt assigns consecutive groups of layers to different devices
- CIt streams micro-batches through the stages so devices stay busy
- DIt replicates the full model on every device
- EIt is the same technique as tokenizer sharding
Show answer and explanationHide answer
Correct answer: B, CPipeline parallelism places contiguous layer stages on different devices and pipelines micro-batches through them to keep devices busy. Full replication describes data parallelism, and tokenizer sharding and per-layer labels are not part of the technique.
Question 18
Which technique shards optimizer states, gradients and parameters across data-parallel workers to lower per-GPU memory?
- AZeRO-style sharding as in fully sharded data parallel
- BDropout scheduling that raises the rate later on
- CFeature hashing into a fixed-width sparse vector
- DRandom search over learning rates and batch sizes per run
Show answer and explanationHide answer
Correct answer: AZeRO and fully sharded data parallel partition training state across workers so each GPU keeps only a slice. Feature hashing, dropout schedules and search methods do not partition memory.
Data Preparation (2 questions)
Question 19
A pretraining corpus contains many near-duplicate documents. Which step most directly reduces the risk of the model memorizing repeated passages?
- ADeduplication using MinHash or exact hashing before training
- BRemoving punctuation marks from the raw text corpus
- CIncreasing the global batch size for data-parallel ranks
- DLowering the maximum context length during pretraining
Show answer and explanationHide answer
Correct answer: ADeduplication removes repeated or near-duplicate text so the model does not over-weight and memorize it. Batch size, context length and punctuation removal do not reduce repetition in the training data.
Question 20
Which tokenizer approach is most common in modern LLMs because it can represent any input string without an unknown-token fallback?
- AByte-level byte-pair encoding
- BRandom hashing of words into a fixed table
- CWhole-word vocabulary lookup
- DCharacter codes limited to ASCII
Show answer and explanationHide answer
Correct answer: AByte-level BPE starts from raw bytes, so any Unicode text can be encoded, and learned merges compress frequent sequences. Word lookup produces unknown tokens for unseen words, while ASCII-only or hashed tables lose information.
Parameter-Efficient Fine-Tuning (2 questions)
Question 21
Which two statements about LoRA are correct? (Choose two.)
- AIt replaces the optimizer with a fixed schedule
- BIt trains low-rank update matrices while keeping the base weights frozen
- CIt reduces trainable parameters and optimizer memory compared with full fine-tuning
- DIt must modify every weight of the base model to work
- EIt only works for encoder models
Show answer and explanationHide answer
Correct answer: B, CLoRA freezes the pretrained weights and learns small low-rank adapters, which cuts trainable parameters and optimizer memory. It is used with decoder models as well, and it still relies on a normal optimizer.
Question 22
A team has limited GPU memory and wants to fine-tune a 70B model. Which combination is most practical?
- AFull fine-tuning in float32 on a single GPU with Adam states
- BTraining from random weight initialization with no pretrained checkpoint loaded
- CFreezing every parameter and fine-tuning nothing in the model
- DQLoRA: 4-bit quantized base weights with LoRA adapters trained on top
Show answer and explanationHide answer
Correct answer: DQLoRA keeps the base model quantized to 4 bits and trains only LoRA adapters, which fits large models onto limited memory. Full float32 fine-tuning needs far more memory, random initialization discards pretraining, and training nothing does not adapt the model.
Prompt Engineering (2 questions)
Question 23
A developer wants a model to reason through a multi-step arithmetic word problem before giving the final number. Which prompting technique fits best?
- ARemoving examples from few-shot prompts and sending the bare question to the model
- BAsking for a one-word answer with no supporting context or explanation from the model
- CChain-of-thought prompting that asks for intermediate reasoning steps
- DZero-token prompting with an empty input that sends a blank string to the model
Show answer and explanationHide answer
Correct answer: CChain-of-thought prompting elicits intermediate steps, which often improves accuracy on multi-step problems. Empty input, removing examples and one-word answers reduce the scaffolding that helps reasoning.
Question 24
Which two practices most reduce the risk that user input overrides the instructions of a deployed LLM application? (Choose two.)
- ASeparating trusted system instructions from untrusted user input
- BValidating user input and filtering model outputs before they are returned
- CPlacing user text in the system role so it is treated as trusted
- DIncreasing the maximum output length
- ECaching every response indefinitely
Show answer and explanationHide answer
Correct answer: A, BKeeping trusted instructions separate from untrusted input, validating what arrives, and checking outputs reduces prompt injection risk. Mixing roles, longer outputs and caching do not defend against injection.
NVIDIA Inference Software (2 questions)
Question 25
Which NVIDIA library compiles LLM graphs into optimized engines with kernels such as fused attention and in-flight batching support?
- ANVIDIA Riva ASR
- BRAPIDS cuML 24
- CNVIDIA cuDF 24
- DTensorRT-LLM
Show answer and explanationHide answer
Correct answer: DTensorRT-LLM builds optimized engines for large language models, including fused attention and in-flight batching. cuDF and cuML target dataframes and classical machine learning, and Riva targets speech services.
Question 26
A team wants to serve several models behind one endpoint with dynamic batching, model versioning and GPU scheduling. Which NVIDIA inference server fits this need?
- ANVIDIA Morpheus Cyber AI Framework
- BNVIDIA Triton Inference Server
- CNVIDIA cuOpt Solver Service
- DNVIDIA NeMo Curator Data Pipeline
Show answer and explanationHide answer
Correct answer: BTriton Inference Server hosts multiple models and frameworks with batching, versioning and GPU scheduling. The other products address cybersecurity analytics, optimization or data curation rather than model serving.
NVIDIA Training Software (2 questions)
Question 27
Which NVIDIA framework provides building blocks for training and customizing large language models, including distributed parallelism and alignment tooling?
- ANVIDIA NeMo
- BNVIDIA Clara
- CNVIDIA Omniverse
- DNVIDIA Jetson SDK
Show answer and explanationHide answer
Correct answer: ANeMo is NVIDIA's framework for training, customizing and aligning generative models, including tensor and pipeline parallelism. Omniverse targets simulation, Jetson is an edge hardware platform and Clara focuses on healthcare imaging.
Question 28
Which NeMo component is used to filter, deduplicate and curate large text datasets before training?
- ANeMo Guardrails
- BNeMo Curator
- CNeMo Retriever
- DNeMo Agent Toolkit
Show answer and explanationHide answer
Correct answer: BNeMo Curator provides scalable pipelines for filtering, deduplication and curation of training data. Guardrails enforce conversation policies, Retriever supports retrieval pipelines, and the agent toolkit builds agent workflows.
Model Customization (2 questions)
Question 29
A company wants a model to follow its brand tone and output JSON schemas reliably. Which customization approach is the most appropriate first step?
- AIncreasing the context window to one million tokens for production prompts at inference time
- BSupervised fine-tuning on curated examples of the desired format and tone
- CDisabling the tokenizer during training and feeding raw byte sequences into the model
- DRandomly sampling outputs and keeping the first one at temperature 1.0 without a filter
Show answer and explanationHide answer
Correct answer: BSupervised fine-tuning on high-quality examples teaches consistent tone and structured output. A longer context does not change behavior by itself, and disabling the tokenizer or random selection break the pipeline.
Question 30
A team has a large set of unlabeled domain documents and wants the model to learn the vocabulary and facts of that domain. Which stage fits best?
- ATraining a new tokenizer from scratch with no model training
- BDeleting the documents after one pass so the corpus stays small and cheap to store
- CContinued pretraining on the domain corpus before instruction tuning
- DPrompt engineering with few-shot examples and no weight updates
Show answer and explanationHide answer
Correct answer: CContinued pretraining on unlabeled domain text adapts the model's knowledge and vocabulary usage, and instruction tuning can follow. Prompting alone does not change weights, and a tokenizer by itself does not teach facts.
Want more NCP-GENL questions?
The full bank has 100 questions with answers and explanations, as a PDF, an online practice exam, or both.
Both formats together. The best value.
Instant access after payment, with 90 days of updates. Checkout is on our store, AIExamCerts.