Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free NVIDIA Generative AI LLMs NCA-GENL Exam Questions

Last updated: · 15 practice questions with answers and explanations

Page: 1 / 10 Total 95 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Fundamentals of Machine Learning and Neural Networks

Skill tested: Relates autoregressive training objectives to next-token generation and inference behavior.

A research team is reviewing why a decoder-only language model can continue a prompt with coherent text. During training, each example is tokenized into a sequence, and the model receives preceding tokens while predicting later tokens. The team must distinguish this learning objective from masked-token reconstruction because it plans to reproduce the model's inference setup for a small domain-specific experiment. Which training objective best matches the described generation behavior?

Correct Answer: A. Predict the next token from the preceding context using a causal attention mask.
Explanation:

A decoder-only autoregressive model is trained to assign probabilities to the next token given earlier tokens. A causal attention mask prevents a position from using future tokens, aligning training with left-to-right generation at inference. Masked-token prediction usually uses bidirectional context and is not the described objective. Sequence classification predicts labels rather than continuations, while reconstructing from a pooled vector does not specify the token-by-token conditional generation objective.

Question 2

New Single answer

Topic: Prompt Engineering

Skill tested: Structures prompts with explicit constraints and output schemas to improve response consistency.

A financial operations team uses a language model to extract invoice fields from user-provided text. The current prompt asks the model to "summarize the invoice," so responses vary in format and sometimes include unsupported assumptions. Downstream software requires the same five fields for every record, and it must distinguish missing information from a value of zero. The team cannot change the model or add a separate extraction model. Which prompt revision is the best first step?

Correct Answer: D. Provide a few varied examples and require a specified JSON schema with explicit missing-value rules.
Explanation:

A schema plus explicit instructions for absent fields directly addresses format variation and ambiguity about missing values. A small set of representative examples can further demonstrate the intended mapping without changing the model. Long free-form reasoning does not guarantee machine-readable output and may increase unsupported detail. Higher temperature generally adds variation, and asking downstream code to extract fields from prose preserves the original inconsistency rather than solving it.

Question 3

New Multiple answers

Topic: Alignment

Skill tested: Combines supervised instruction tuning and preference feedback to improve safe assistant behavior.

A public-service chatbot answers questions about eligibility for assistance programs. It is often helpful but occasionally invents rules and responds inappropriately to hostile requests. The organization has a curated set of safe, accurate example conversations and a separate collection of human comparisons between alternative responses. It can fine-tune the model, but it cannot rely on a runtime policy filter as its only safeguard. Which two actions are the most appropriate? Select TWO.

Correct Answer: C. Use the human response comparisons to train or optimize toward preferred responses.; D. Supervise fine-tuning on the curated examples that demonstrate accurate, safe responses.
Explanation:

Supervised fine-tuning on carefully curated demonstrations teaches the model examples of the desired behavior. Human comparisons provide preference information that can support preference optimization, improving the likelihood of responses judged more helpful and appropriate. Temperature controls sampling variability; it does not align the underlying behavior or reliably reduce hallucinations. Frequency-only training can reinforce poor responses, and removing system instructions weakens rather than strengthens behavioral safeguards.

Question 4

New Single answer

Topic: Data Analysis and Visualization

Skill tested: Uses stratified evaluation plots to identify subgroup performance gaps in model outputs.

An analytics group evaluates a support assistant on a test set containing several product categories. Overall accuracy improved after a model update, but customer complaints increased for one low-volume category. The team has per-example correctness labels, category labels, and confidence scores for both model versions. A single aggregate score is no longer sufficient, and stakeholders need a visual diagnosis before deciding whether to roll back. Which analysis is most useful first?

Correct Answer: C. Compare per-category accuracy for both versions, showing sample counts and uncertainty.
Explanation:

A per-category comparison can reveal whether the low-volume category regressed despite an aggregate improvement. Showing sample counts and uncertainty is important because estimates from small subgroups are less stable than estimates from large ones. Overall accuracy conceals subgroup behavior, while an unstratified confidence histogram cannot identify which category or correctness outcomes changed. A prompt word cloud describes vocabulary frequency, not model performance.

Question 5

New Multiple answers

Topic: Experimentation

Skill tested: Controls decoding settings and repeated trials when evaluating stochastic LLM responses.

A product team is comparing two prompt templates for a summarization assistant. Responses are generated with sampling, and an initial run suggests that template X is better, but the prompts were evaluated on different documents and at different temperatures. The team has a fixed inference budget and wants evidence that distinguishes a prompt effect from input and sampling variation. Which TWO changes are the strongest next steps? Select TWO.

Correct Answer: D. Repeat generations where appropriate and report variability alongside the chosen quality metric.; E. Evaluate both templates on the same held-out documents using matched decoding settings.
Explanation:

Using the same held-out documents and matched decoding settings makes the comparison controlled: differences are less likely to result from input composition or configuration. Repeated trials can expose variability from stochastic generation, so the team should report dispersion or uncertainty rather than relying on one run. Different metrics prevent a like-for-like comparison. Selecting examples after seeing outputs introduces selection bias, and changing temperature for only one template confounds the prompt comparison.

Question 6

New Single answer

Topic: Data Preprocessing and Feature Engineering

Skill tested: Prepares instruction-tuning examples with consistent text normalization and boundary-safe splitting.

A small team is assembling instruction-tuning data from support tickets. Its raw files include duplicate records, inconsistent line endings, and long conversations that must be split to fit the model's context limit. Some examples contain sensitive customer identifiers, while the training pipeline concatenates examples into token sequences. The team wants to reduce leakage and preserve meaningful conversational structure without altering the meaning of valid text. Which preprocessing plan is best?

Correct Answer: B. Deduplicate and normalize line endings, redact identifiers, then split conversations at message boundaries before tokenization.
Explanation:

Deduplication reduces repeated examples, line-ending normalization makes formatting more consistent, and redaction addresses sensitive identifiers before the data is reused. Splitting at message boundaries preserves conversational structure better than arbitrary offsets, and tokenization can then be applied consistently to the prepared examples. Arbitrary token splitting may cut through messages or control markers. Removing punctuation changes meaning, while merging tickets risks losing boundaries between independent conversations.

Question 7

New Single answer

Topic: Experiment Design

Skill tested: Designs a controlled LLM comparison with a prespecified metric and representative evaluation set.

A team plans to compare a base model with a fine-tuned version for technical question answering. The fine-tuned model appears more fluent in a handful of demonstrations, but the product requirement is factual accuracy on unseen questions. Only one evaluation cycle is available before a release decision, and the team must avoid tuning decisions based on the final evaluation results. What should it do?

Correct Answer: D. Create a representative held-out set, define an accuracy-focused rubric in advance, and evaluate both models identically.
Explanation:

A representative held-out set supports measurement on questions not used to train or tune the model. Prespecifying an accuracy-focused rubric prevents the team from changing success criteria after seeing results, and identical evaluation conditions make the comparison fair. Reusing demonstrations measures memorization or familiarity rather than generalization. Different test collections confound model and dataset effects. Fluency alone is not a reliable proxy for factual correctness.

Question 8

New Single answer

Topic: Software Development

Skill tested: Implements resilient LLM application boundaries with validation, timeouts, and controlled error handling.

A Python service calls an LLM endpoint to classify incoming records. Under load, requests occasionally time out, and malformed model output can cause the entire worker process to fail. The service must remain available, avoid accepting invalid classifications, and preserve enough diagnostic information for operators without logging sensitive request content. Which implementation approach best meets these requirements?

Correct Answer: A. Set a request timeout, validate the response against an allowed schema, and log sanitized error metadata.
Explanation:

A bounded timeout prevents stalled calls from consuming workers indefinitely. Schema validation stops malformed or unexpected model output from entering downstream systems, while sanitized error metadata gives operators useful diagnostics without exposing sensitive content. Indefinite waits harm availability, and silently substituting a successful default hides failures and can corrupt decisions. Unlimited immediate retries can amplify load, and logging full payloads creates avoidable privacy and security risk.

Question 9

New Single answer

Topic: Python Libraries for LLMs

Skill tested: Uses Hugging Face tokenizers and model loading consistently for causal language model inference.

An engineer is prototyping local inference with a causal language model from Hugging Face Transformers. The tokenizer and model are loaded from the same pretrained checkpoint, but generation returns an error because the tokenizer does not define a padding token. The application batches prompts of different lengths and must preserve the checkpoint's existing vocabulary rather than adding and training a new token. What is the most appropriate adjustment?

Correct Answer: D. Set the tokenizer's padding token to its existing end-of-sequence token and use consistent padding configuration.
Explanation:

For many decoder-only checkpoints, an existing special token such as the end-of-sequence token can be configured as the padding token for batching, avoiding a vocabulary or embedding change. The tokenizer and model must still be used consistently, and generation settings should account for the selected padding side where relevant. Adding a new token without resizing the model embeddings can cause an index mismatch. Removing special tokens or using hidden states as token IDs is not a valid tokenizer configuration.

Question 10

New Multiple answers

Topic: LLM Integration and Deployment

Skill tested: Secures LLM application deployment through secret management and input-output boundary controls.

A company is deploying an internal assistant that calls a hosted model API. The application runs in containers on a shared platform and handles confidential employee questions. The platform team needs to prevent credential exposure, reduce the risk of prompt-injection-driven data disclosure, and keep the model provider from receiving more information than needed. The model API contract and application behavior can be changed, but the team cannot host the model itself. Which TWO controls best address these requirements? Select TWO.

Correct Answer: C. Store API credentials in a managed secret mechanism and restrict access to the workload identity.; D. Minimize and redact sensitive context before sending requests, and validate outputs before acting on them.
Explanation:

Managed secret storage with least-privilege workload access limits credential exposure and makes rotation safer than embedding keys in images. Minimizing and redacting context reduces unnecessary disclosure to the hosted provider; validating outputs before triggering actions helps contain prompt-injection or malformed-response risks. Sending all history and documents violates data minimization. Container-image secrets can be extracted from image access, and treating retrieved text as higher-priority instructions undermines application controls.

Question 11

New Single answer

Topic: Fundamentals of Machine Learning and Neural Networks

Skill tested: Diagnoses overfitting by interpreting training and validation loss behavior.

A team fine-tunes a pretrained language model on a relatively small set of domain documents. Across training, training loss continues to fall, while validation loss falls initially and then rises for several checkpoints. The team wants to retain the checkpoint that generalizes best and has enough training examples to evaluate multiple saved checkpoints. Which action is most appropriate?

Correct Answer: A. Select the checkpoint with the lowest validation loss and consider early stopping at that point.
Explanation:

The divergence between decreasing training loss and rising validation loss is a common sign that later training is overfitting the training set. Selecting the checkpoint with the best validation performance, with early stopping if appropriate, uses held-out evidence to favor generalization. The final checkpoint may perform worse on unseen data despite lower training loss. Equal train and validation loss is not a required goal, and discarding validation evidence leaves selection dependent on subjective samples.

Question 12

New Multiple answers

Topic: Prompt Engineering

Skill tested: Uses retrieval-grounded instructions and uncertainty handling to reduce unsupported answers.

A legal operations group uses a language model to answer internal questions from a collection of approved policy documents. The model sometimes combines facts from unrelated documents or fills gaps with plausible but unsupported claims. The system already retrieves a small set of relevant passages for each query, and policy staff require answers to be traceable to those passages. Which TWO prompt-design changes most directly address the problem? Select TWO.

Correct Answer: A. Ask the model to cite the supplied passage identifiers for claims it makes.; D. Instruct the model to answer only from supplied passages and to state when they do not support an answer.
Explanation:

A grounding instruction constrains the response to the retrieved evidence and defines a safe behavior when evidence is insufficient. Requiring passage identifiers makes claims more traceable and helps reviewers detect unsupported statements. Inviting general knowledge reintroduces the very source of ungrounded claims the team wants to control. Removing evidence eliminates the intended retrieval support, and temperature changes do not reliably enforce factual grounding or citations.

Question 13

New Single answer

Topic: Alignment

Skill tested: Applies human review and targeted evaluation to detect harmful or biased model behavior.

A hiring-support prototype summarizes candidate-provided materials for recruiters. A review finds that summaries describe similar qualifications differently across demographic groups, although the aggregate helpfulness score is high. The team has access to consented evaluation examples and qualified reviewers, but it must not use demographic attributes to make individual hiring decisions. What is the most appropriate next step before expanding the pilot?

Correct Answer: D. Conduct a targeted, privacy-conscious subgroup evaluation with human review and mitigate identified disparities before deployment.
Explanation:

A high aggregate score can conceal materially different behavior across groups. A targeted evaluation using appropriate, consented examples and qualified human review can characterize the disparity, after which the team should mitigate and re-evaluate before broadening deployment. Confidence scores are not a substitute for fairness analysis or human oversight. Adding demographic labels to individual prompts risks amplifying differential treatment, while releasing without addressing the observed gap ignores a relevant harm signal.

Question 14

New Single answer

Topic: Data Analysis and Visualization

Skill tested: Visualizes token-length distributions to guide context-window and truncation decisions.

An engineering team is preparing a corpus of customer conversations for fine-tuning. A fixed context limit means some examples will be truncated, but the team wants to avoid selecting a cutoff based on a few unusually long records. It has already tokenized the examples with the intended model tokenizer and needs to choose a practical maximum sequence length while quantifying the share of data that would be truncated. Which analysis should it perform?

Correct Answer: A. Plot a token-length distribution or cumulative percentile curve and estimate truncation rates at candidate limits.
Explanation:

Token counts from the intended tokenizer directly represent the sequence lengths the model will process. A distribution or cumulative percentile curve shows how much data falls below candidate limits, allowing an informed tradeoff between coverage and context length. Character counts are not equivalent to token counts and can vary substantially with language and text content. Vocabulary frequency and file count do not describe sequence-length distributions or truncation impact.

Question 15

New Multiple answers

Topic: Experimentation

Skill tested: Uses ablation and reproducible configuration tracking to identify effective fine-tuning changes.

A machine-learning engineer has tested several changes to a fine-tuning pipeline: a different learning rate, an added data-cleaning step, and a prompt-format change. The newest run performs better on one benchmark, but all three changes were introduced together and the run configuration was not fully recorded. The team must determine which change contributed to the result and make the comparison reproducible. Which TWO actions are most appropriate? Select TWO.

Correct Answer: A. Record code, data version, hyperparameters, prompt format, random seeds, and evaluation configuration for each run.; E. Repeat the baseline and test changes individually or in a controlled factorial design, keeping other factors fixed.
Explanation:

Ablation or a controlled factorial design isolates the effects of individual changes and can reveal interactions, unlike a single run that changes several factors at once. Recording the exact code, data, configuration, seeds, and evaluation setup makes the experiment reproducible and the comparison auditable. Attributing a combined effect to one guessed cause is not supported by the evidence. Changing the benchmark post hoc introduces bias, and training loss alone does not establish downstream performance.