Home / NVIDIA Certified Associate: Generative AI LLMs (NCA-GENL) / Mock exam
NVIDIA Certified Associate: Generative AI LLMs (NCA-GENL) Exam-style mock test

NVIDIA NCA-GENL Practice Exams — Generative AI LLMs Associate|Practice test

Full explanations Exam format Pass line 70%
33 USD One-time · lifetime access
Enroll →

Sample questions

Example1 · Core Machine Learning and AI Knowledge
A bank trains a loan-default classifier that scores 0.99 accuracy on its training rows but only 0.62 on a held-out month of applications. The feature set includes an internal 'account_closed_flag' set after defaults are confirmed. What is the most likely diagnosis?
✓The model overfits and a leaked future feature inflates training scores
Correct. The large train-to-holdout gap signals overfitting, and a flag set only after a default is known leaks the target into training.
・The model underfits because the training data is far too small
Incorrect. Underfitting would depress training accuracy too, but training accuracy here is near perfect.
・The learning rate is too low for the optimizer to converge at all
Incorrect. A tiny learning rate would slow or stall training, yet training accuracy is already extremely high.
・The evaluation month simply contains far fewer labeled samples
Incorrect. Fewer samples add variance but do not explain a near-perfect fit that collapses on unseen data.
Explanation
A wide gap between training and held-out accuracy is the hallmark of overfitting, and a feature populated only after the outcome is known causes target leakage that cannot generalize.
Example2 · Software Development
A developer builds the retrieval step of a loan-FAQ assistant. import faiss, numpy as np index = faiss.IndexFlatIP(dim) index.add(doc_vecs) scores, ids = index.search(query_vec, k=5) What role does this FAISS index play in the RAG pipeline?
・It fine-tunes the base language model weights
Incorrect. FAISS performs vector search; it does not update any model weights.
・It renders the final answer as HTML for the UI
Incorrect. Rendering output is a UI concern handled elsewhere, not by the similarity index.
✓It returns the top-k nearest document vectors
Correct. The index stores document vectors and returns the top-k most similar ones for each query vector, which is the retrieval step.
・It tokenizes the raw PDF text before embedding
Incorrect. Tokenization and embedding happen before vectors reach FAISS.
Explanation
A vector database or index such as FAISS provides fast nearest-neighbor search over embeddings, supplying the retrieved context in a RAG system.
Example3 · Experimentation
A bank prepares data to align its assistant's tone with RLHF. Labelers are shown a prompt and two candidate replies. What is the primary artifact they should produce for reward-model training?
✓A preference judgment of which reply is better
Correct. RLHF reward models learn from human preference comparisons that indicate which response is preferred.
・A guess of each reply's exact token count
Incorrect. Token counts are mechanical and carry no human preference signal for alignment.
・A translation of both replies into French
Incorrect. Translating replies changes the data and does not express a preference between them.
・A compressed ZIP archive of the prompts
Incorrect. Archiving files is storage housekeeping, not preference labeling.
Explanation
RLHF data preparation centers on collecting human preference comparisons (which response is better) to train a reward model that guides alignment.
Example4 · Data Analysis and Visualization
A readmission classifier is evaluated on a dataset where only 4% of patients are actually readmitted. A colleague reports 96% accuracy from a model that predicts no one is readmitted. Which statistical metric better reveals that this model is useless for the rare positive class?
・Plain accuracy computed over all patients
Incorrect. Plain accuracy is exactly what the imbalance inflates to a misleading 96%.
・The total number of rows in the dataset
Incorrect. Row count describes dataset size, not predictive performance on the rare class.
・The file size of the saved model weights
Incorrect. Model file size is unrelated to how well the rare class is detected.
✓Recall on the positive readmitted class
Correct. Recall on the positive class exposes that no true readmissions are being caught.
Explanation
Under class imbalance, accuracy misleads; recall (and precision) on the minority class reveals true performance.
Example5 · Trustworthy AI
A patient-facing medical chatbot sometimes drifts into giving unsafe dosage advice outside its approved scope. The team wants to constrain the topics and enforce safety rules on inputs and outputs without retraining. Which NVIDIA technology is designed for this role?
✓NeMo Guardrails to constrain inputs and outputs
Correct. NeMo Guardrails enforces topic and safety rules on model inputs and outputs.
・A larger embedding dimension for the retriever
Incorrect. Expanding embedding dimension affects retrieval quality, not safety enforcement.
・A faster GPU to raise inference throughput
Incorrect. A faster GPU raises speed but does not constrain unsafe content.
・A brighter color theme for the chat window
Incorrect. A color theme is cosmetic and provides no safety guardrails.
Explanation
NVIDIA NeMo Guardrails lets teams define programmable rails that bound topics and enforce safety on a conversation.
Example6 · Core Machine Learning and AI Knowledge
A hospital data science team trains a readmission-risk classifier and reports strong accuracy from a single split, but the clinical lead worries the score only reflects that one partition: model.fit(X_train, y_train) acc = model.score(X_test, y_test) # one split only The team wants an estimate of how the model generalizes across the whole patient population before deployment. Which technique directly addresses this concern?
・Raise the learning rate so the optimizer converges on the ward data much faster
Incorrect. A larger learning rate changes optimization speed, not how generalization is estimated.
・Add more hidden layers until the training accuracy on the ward reaches one
Incorrect. Adding layers to reach perfect training accuracy signals overfitting rather than better generalization.
・Report only the accuracy measured on the original ward training split
Incorrect. Reusing the training split hides overfitting instead of revealing how the model generalizes.
✓k-fold cross-validation across the full dataset
Correct. k-fold cross-validation rotates every record through validation, giving a stable generalization estimate.
Explanation
Cross-validation partitions the data into folds so each record serves as validation once, producing a generalization estimate that a single split cannot.
Example7 · Core Machine Learning and AI Knowledge
A merchandising team predicts whether a shopper will return an item. They have raw columns for order timestamp and delivery timestamp, and a colleague proposes deriving a new input: df['days_to_deliver'] = (df['delivered_at'] - df['ordered_at']).dt.days What kind of machine-learning activity does creating this derived column represent?
✓Feature engineering, turning raw fields into a more predictive input
Correct. Deriving a meaningful signal such as delivery duration from raw fields is a textbook feature-engineering step.
・Cross-validation, since two dated columns are now being compared
Incorrect. Cross-validation partitions data to estimate generalization; it does not create new columns.
・Hyperparameter tuning, because a new model setting was introduced
Incorrect. Hyperparameter tuning adjusts training settings, not the contents of the dataset.
・Regularization, because an extra column shrinks the model weights
Incorrect. Regularization penalizes large weights during training; adding a column does not shrink anything.
Explanation
Feature engineering transforms raw fields into inputs that carry more predictive signal, such as converting two timestamps into an elapsed-days value.
Example8 · Core Machine Learning and AI Knowledge
Two candidate models rank products for a storefront's search results, and the team logs their scores on the same held-out set of queries: model_A: precision_at_10 = 0.71, recall_at_10 = 0.44 model_B: precision_at_10 = 0.58, recall_at_10 = 0.69 Stakeholders cannot agree which is better by eyeballing both numbers. Which approach gives a principled single comparison?
・Pick whichever one of the two models finished training in the shorter time
Incorrect. Training speed is an operational concern, not a measure of ranking quality.
✓Combine the metrics into an F-style score aligned to the business goal
Correct. Collapsing precision and recall into a goal-weighted combined score lets the team compare models on one agreed number.
・Choose the model whose name appears first in the experiment log
Incorrect. Log ordering is arbitrary and carries no information about model quality.
・Trust precision alone and ignore how many relevant items were missed
Incorrect. Precision alone hides the many relevant items a low-recall model fails to surface.
Explanation
When two models trade precision for recall, a goal-weighted combined score such as an F-measure converts the trade-off into a single comparable number.
Example9 · Core Machine Learning and AI Knowledge
A team fits a gradient-boosted model to flag fraudulent checkout attempts and watches the two curves below: train_auc: 0.70 -> 0.88 -> 0.97 -> 0.996 valid_auc: 0.69 -> 0.84 -> 0.82 -> 0.78 Validation performance started falling while training performance kept climbing. What does this pattern indicate?
・The model is underfitting and needs far fewer trees
Incorrect. Underfitting shows poor scores on both curves, not a high and rising training score.
・The validation set is simply larger than the training set
Incorrect. Set sizes do not explain a training score that improves while validation degrades.
・The learning rate is already optimal and should not change
Incorrect. A diverging validation curve is evidence something is wrong, not that settings are optimal.
✓The model is overfitting the training checkout records
Correct. Rising training score with falling validation score is the classic signature of overfitting.
Explanation
A training score that keeps improving while the validation score declines is the defining signature of overfitting to the training data.
Example10 · Core Machine Learning and AI Knowledge
A plant's reliability team builds a tabular model that predicts bearing failure from vibration, temperature, and runtime columns. One column, 'maintenance_ticket_opened', is written only after a technician has already confirmed the failure. The model scores almost perfectly in testing but is useless in production. What has gone wrong with the feature engineering?
・The learning rate for the optimizer was set far too low during fitting
Incorrect. A low learning rate slows training but would not produce near-perfect scores that fail only after deployment.
✓A leaking feature encodes the outcome itself
Correct. A column recorded only after the failure is known leaks the target, so test accuracy is inflated and collapses in production.
・The vibration column was measured in hertz rather than in revolutions per minute
Incorrect. A unit change rescales a sensor column but does not explain near-perfect scores that vanish in production.
・The model simply needs a few more boosting rounds to finish converging properly
Incorrect. More boosting rounds cannot fix a feature that silently reveals the answer the model is meant to predict.
Explanation
Target leakage occurs when a feature carries information unavailable at prediction time; such a feature must be dropped from the training set.
Example11 · Core Machine Learning and AI Knowledge
An engineer validates a model that flags defective castings from daily production batches, where each row carries a timestamp. The code below is proposed for estimating generalization. from sklearn.model_selection import KFold kf = KFold(n_splits=5, shuffle=True) for tr, va in kf.split(X): fit_and_score(X[tr], X[va]) Why is this validation unsuitable for this time-ordered production data?
✓Shuffling mixes later batches into training, so the model is scored on its own future records
Correct. Shuffling destroys time order and lets future batches train the model, producing an optimistic, leaked estimate.
・KFold cannot accept a NumPy array and must instead be handed a Pandas frame of the data
Incorrect. KFold works on NumPy arrays directly, so the input type is not the problem here.
・Five folds is always far too few to estimate variance for any realistic manufacturing dataset
Incorrect. Five folds is a common, reasonable choice; the flaw is shuffling time-ordered rows, not the fold count.
・The loop must call fit before the split or the folds will all contain identical rows
Incorrect. KFold is designed to split before fitting; calling fit first is not how the API is used.
Explanation
For time-ordered data, shuffled k-fold leaks future observations into training; a forward-chaining or time-based split preserves the temporal order.
Example12 · Core Machine Learning and AI Knowledge
A city permits office predicts whether a building-permit application will need a second review. The raw data holds a submission timestamp, a department code string, and a fee amount. Before a traditional model can use these, which feature-engineering step is the most appropriate first move?
・Feed the raw timestamp string straight into the model as free text
Incorrect. A raw timestamp string is not a usable numeric feature and carries no learnable structure on its own.
・Drop every column except the fee, since numbers train fastest
Incorrect. Discarding the categorical and temporal signal throws away information that likely drives whether a second review is needed.
・Replace each value with a random integer to protect applicant privacy
Incorrect. Randomizing values destroys the relationship between inputs and the target, so the model cannot learn anything useful.
✓Derive numeric parts from the timestamp and one-hot encode the department code
Correct. Splitting the timestamp into numeric parts such as month or weekday and one-hot encoding the categorical code gives the model structured, learnable inputs.
Explanation
Feature engineering turns raw timestamps and category strings into structured numeric and encoded inputs that a traditional model can actually learn from.
Example13 · Core Machine Learning and AI Knowledge
A statistics office evaluates a model that forecasts next-quarter unemployment from this quarter's indicators. A junior analyst proposes shuffling all historical quarters together and using plain k-fold cross-validation. Why is this validation choice flawed for this task?
・K-fold always needs at least ten folds, and quarters are too few
Incorrect. There is no fixed minimum of ten folds; the real problem is the temporal structure of the data.
✓Shuffling lets future quarters train a model scored on earlier ones
Correct. For time-ordered data, random shuffling trains on future quarters and tests on past ones, leaking information a forecaster would never have; time-series splits respect chronology.
・Cross-validation cannot be used for regression targets of any kind
Incorrect. Cross-validation applies to regression as well as classification, so the target type is not the issue.
・The folds must each contain exactly the same number of rows or scores are void
Incorrect. Folds need not be exactly equal in size for cross-validation to be valid.
Explanation
When observations are ordered in time, validation must preserve chronology; shuffling leaks future information and inflates the forecast score unrealistically.
Example14 · Core Machine Learning and AI Knowledge
A media platform predicts whether a newly uploaded article will be flagged by human moderators. The training table has a 'moderator_decision_time' column that is filled in only once a moderator has finished reviewing the article. A model using it scores near-perfectly offline yet is worthless at upload time. What is the feature-engineering flaw?
・The optimizer used a learning rate that was configured far too low
Incorrect. A low learning rate would slow fitting, but the model already scores near-perfectly offline.
・The training set was simply too small to represent future uploads
Incorrect. Too little data raises variance but does not explain an offline score that is useless live.
✓A column populated only after the label exists leaks the outcome
Correct. 'moderator_decision_time' is written only after review, so it leaks the target and is unavailable at prediction time.
・The validation split accidentally held out too few positive rows
Incorrect. A thin positive class affects metrics, not the fact that a future-only field is unavailable at upload.
Explanation
A feature that only exists after the label is known leaks the target and cannot be computed when a real prediction is needed, which is why offline scores collapse in production.
Example15 · Core Machine Learning and AI Knowledge
A moderation team evaluates a toxic-comment classifier on comments that arrive in time order. A junior engineer proposes the split below. from sklearn.model_selection import train_test_split X_tr, X_te, y_tr, y_te = train_test_split( X, y, test_size=0.2, shuffle=True, random_state=0) Why is this validation design misleading for this data?
・A twenty-percent test share is always too small for text
Incorrect. A 20% test size is reasonable; the leakage comes from shuffling time-ordered data, not the ratio.
・random_state should be left unset so the split stays random
Incorrect. Fixing random_state only makes the split reproducible and is not the source of the leakage.
・stratify must be set or the function raises a runtime error
Incorrect. stratify is optional and its absence does not raise an error; temporal shuffling is the real problem.
✓Shuffling lets future comments train a model scored on the past
Correct. Random shuffling mixes later comments into training, so the model is tested on periods it effectively saw, inflating the score.
Explanation
For time-ordered data a chronological split (train on earlier, test on later) avoids leaking future information that random shuffling would otherwise introduce.
▶ Try 10 free questions (graded)
Measure your readiness with a full mock exam
All questions · full explanations · lifetime access
Enroll(33 USD)