Exam Information
Free practice questions with explanations
NVIDIA NCA-GENL Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 10
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Prompt Engineering
A support team uses an LLM to classify customer emails into exactly one of five categories and return results to a downstream JSON parser. In testing, the model sometimes adds explanatory prose before the JSON, breaking the parser. The team cannot change the model weights and must keep latency low. Which change is the BEST first action?
A. Increase the sampling temperature so the model varies its phrasing less
B. Add a system instruction specifying the exact JSON schema, provide two few-shot examples with no surrounding text, and set a stop sequence at the closing brace
C. Fine-tune the model on 50,000 labelled emails so it learns the output format
D. Lower top-p to 0.1 and raise max tokens to 4096 so the answer is never truncatedCorrect Answer: AExplanationOutput formatting problems are usually solved first with prompt structure: an explicit schema in the system message, few-shot examples that show bare JSON, and a stop sequence to cut off trailing prose. This is cheap and needs no training. Raising temperature increases randomness, which worsens format adherence. Fine-tuning on 50,000 examples is costly and slower to iterate than a prompt fix, violating the cost and timeline constraints. Lowering top-p and raising max tokens does not address the extra prose at all, since truncation was never the cause.
-
2 Question 2 Single choice Data Preprocessing and Feature Engineering
A team is preparing a 40 GB corpus of multilingual support tickets for continued pretraining of a causal LLM. They must remove exact duplicates, drop tickets containing customer card numbers, and produce token sequences compatible with the model's own tokenizer. Two engineers propose different orders. Which pipeline design is correct?
A. Tokenize first, then deduplicate on token IDs, then redact card numbers using regex on token sequences
B. Redact card numbers and deduplicate on normalized raw text first, then tokenize with the target model's tokenizer
C. Tokenize with a generic word-level tokenizer, redact, then re-tokenize with the model tokenizer at training time only
D. Deduplicate after training, because duplicates only affect evaluation metrics and not the learned weightsCorrect Answer: AExplanationRedaction is a pattern match on readable text, so it should run before tokenization, where card digits are still contiguous characters. Deduplication on normalized text catches duplicates regardless of subword splits. Only then is the cleaned corpus tokenized with the exact tokenizer used by the model so IDs match. Regex over token sequences breaks card numbers across subword boundaries. A generic tokenizer produces IDs the model cannot use. Duplicates do bias learned weights by overweighting repeated content, so post-training deduplication is not a fix.
-
3 Question 3 Single choice Alignment
A healthcare chatbot built on an instruction-tuned LLM sometimes gives confident dosage recommendations that conflict with the hospital formulary. The compliance team requires that the model refuse dosage questions and direct users to a pharmacist, and that refusals be auditable. The team wants the change to take effect within a week without retraining from scratch. Which approach best meets these requirements?
A. Add a system prompt that forbids dosage advice and log each refusal with the user turn, the model output, and the policy version identifier
B. Pretrain a new base model on formulary documents so it learns the correct doses
C. Raise the temperature to 0 so the model always gives the same safe answer
D. Remove the chatbot's conversation history so the model cannot reason about prior dosage questionsCorrect Answer: BExplanationA system-level policy instruction combined with application-side logging gives a fast, auditable control that can be versioned and reviewed by compliance. Pretraining a new base model is far outside a one-week window and does not guarantee refusals. Temperature 0 makes output deterministic but does not make an unsafe answer safe. Removing conversation history does not stop a single-turn dosage question from being answered, so it misses the core requirement.
-
4 Question 4 Single choice Data Analysis and Visualization
An ML engineer fine-tunes a 7B model for ticket routing. Validation loss keeps falling, but production accuracy on newly arriving tickets drops sharply after two weeks. The engineer wants a visualization that most directly shows whether the training data distribution has shifted from the data the model now receives. Which visualization is the BEST choice?
A. A line chart of training loss per step across all epochs
B. A side-by-side histogram or density plot of ticket token length and category frequency for the training set versus the most recent production batch
C. A pie chart of the final accuracy score on the held-out test split
D. A scatter plot of learning rate against batch size from the hyperparameter sweepCorrect Answer: BExplanationThe question is about distribution shift between training data and incoming production data, so comparing the two distributions directly is the right visual. Length and category histograms expose shifts quickly and cheaply. Training loss only describes the training run and cannot reveal production drift. The test-split accuracy is already known to be high, which is why production failure is puzzling, and a pie chart of a single number adds nothing. A hyperparameter scatter plot describes the search, not the data.
-
5 Question 5 Single choice Experiment Design
A product team wants to know whether a new retrieval-augmented prompt template improves answer correctness over the current template for an internal Q and A assistant. Labelled gold answers exist for 800 questions. Engineers can run both templates on the same questions. Budget allows one evaluation run per template. Which experiment design is the MOST appropriate?
A. Run each template on a different random sample of 400 questions and compare the averages
B. Run both templates on the same 800 questions, score each answer against the gold answers, and compare paired per-question results with a paired significance test
C. Run only the new template on all 800 questions and compare against last quarter's reported accuracy
D. Ask the engineers who wrote the new template to rate its answers and proceed if they approveCorrect Answer: BExplanationUsing identical questions for both arms and paired analysis removes question difficulty as a confounder and gives a tighter comparison within the single budgeted run per template. Splitting questions into different samples adds variance from question mix. Comparing against last quarter's numbers ignores changes in data, model version and time. Subjective approval by the authors is biased and not a validated experiment.
-
6 Question 6 Single choice Experimentation
An ML engineer runs a structured experiment comparing three LLM candidates on a summarisation benchmark. Each candidate is evaluated with the same prompt, but the engineer notices that results vary noticeably between repeated runs of the same candidate. The team must report a single comparable score per candidate and cannot increase API cost beyond the current budget. Which change is the BEST way to make the comparison reliable?
A. Report only the highest single run score for each candidate
B. Fix sampling parameters such as temperature and seed where supported, keep the evaluation set and prompt fixed, and average several runs per candidate reporting mean and spread
C. Switch to a larger evaluation set of 50,000 examples to average out noise without changing the runs
D. Remove the summarisation metric and rank candidates by the length of their outputsCorrect Answer: BExplanationControlling sampling randomness where the platform allows it, holding inputs constant, and reporting mean and variance over repeated runs is the standard way to make LLM comparisons reproducible. Reporting only the best run inflates scores. A 50,000-example set multiplies cost well beyond budget and does not address run-to-run variance from sampling. Ranking by output length measures verbosity, not summarisation quality.
-
7 Question 7 Single choice Fundamentals of Machine Learning and Neural Networks
A team trains a small transformer language model from scratch on a proprietary corpus. Training loss decreases steadily, but the model's loss on a held-out validation set starts rising after several epochs and generations become repetitive. The team has limited GPU budget and cannot collect more data this month. Which action is the MOST appropriate next step?
A. Increase the learning rate so the optimiser escapes the repetitive region faster
B. Remove the validation set so the model can train on all available data
C. Stop training at the checkpoint with the lowest validation loss and apply regularisation such as dropout or weight decay for the next run
D. Double the number of attention heads without changing any other settingCorrect Answer: DExplanationRising validation loss while training loss falls is overfitting. Early stopping at the best validation checkpoint recovers the best generalising weights at no extra cost, and regularisation addresses the cause in future runs. A higher learning rate tends to destabilise training rather than fix overfitting. Removing the validation set removes the only signal that reveals the problem. More attention heads increases capacity and would likely worsen overfitting on a limited corpus.
-
8 Question 8 Single choice LLM Integration and Deployment
A fintech company serves a 13B parameter LLM behind an internal API. Peak traffic is ten times average, and the model must return the first token within 500 ms for interactive users. Batch jobs also run overnight on the same cluster. Security requires that prompts containing account data never leave the company's VPC. Which deployment design BEST satisfies these constraints?
A. Call a public hosted LLM endpoint over the internet and rely on the provider's contractual data terms
B. Deploy the model inside the VPC on GPU instances behind a load balancer with autoscaling, serving through an inference server that supports dynamic batching for the interactive path and a separate queue for batch jobs
C. Run the model on a single CPU instance and accept higher latency to reduce cost
D. Export the prompts to a shared spreadsheet where analysts query the model manually once per dayCorrect Answer: BExplanationKeeping inference inside the VPC satisfies the data residency rule, while GPU serving with autoscaling handles the tenfold peaks. Dynamic batching improves throughput while helping hold the first-token target, and separating batch work prevents overnight jobs from starving interactive traffic. Public hosted endpoints violate the requirement that prompts stay inside the VPC, regardless of contract terms. A single CPU instance cannot meet a 500 ms first-token target for a 13B model at peak load. Spreadsheets are an insecure and non-functional approach.
-
9 Question 9 Single choice Python Libraries for LLMs
A developer loads a Hugging Face causal language model for a text generation service. Loading with AutoModelForCausalLM.from_pretrained works on a CPU laptop, but on a GPU server the team wants to load the 7B model in half precision to fit in memory and use the device placement that spreads layers across the available GPUs. Which call is the MOST appropriate?
A. AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, device_map="auto")
B. AutoTokenizer.from_pretrained(model_id, device_map="auto")
C. AutoModelForCausalLM.from_pretrained(model_id, load_in_8bit=False, device="cuda:0")
D. pipeline("text-generation", model=model_id, torch_dtype=torch.float16, return_tensors=True)Correct Answer: AExplanationThe from_pretrained method on the causal LM class accepts torch_dtype for half precision and device_map set to auto so Accelerate distributes layers across visible GPUs. The tokenizer class does not load model weights, so device_map there is meaningless. The device keyword is not the correct argument for model loading, which uses device_map. The pipeline helper does not take return_tensors as a model-loading option in this way, and it does not spread a model across GPUs through that call.
-
10 Question 10 Single choice Software Development
A team maintains a Python service that calls an LLM for document summarisation. Each request builds a prompt, calls the model, parses the response, and writes results to a database. The service must be unit-testable without GPUs, swappable between local and hosted models, and able to scale horizontally. Which code design BEST meets these goals?
A. Place all model loading, prompt construction, and database writes inside one large function invoked by a global variable
B. Define a small inference interface with a generate method, implement it separately for the local model and the hosted API, inject the implementation into a summarisation service that holds no global state, and keep prompt building in pure functions
C. Load the model inside each request handler so every request starts with a fresh copy of the weights
D. Hard-code the hosted API key and model name inside each function so changes require editing many filesCorrect Answer: BExplanationAn injected interface lets tests use a fake backend without GPUs and lets the team swap local and hosted models without touching business logic. Stateless services scale horizontally, and pure prompt functions are easy to unit test. Loading weights per request is extremely slow and wastes memory. Hard-coded credentials and scattered model names are a security and maintenance problem, and a large function with global state blocks both testing and scaling.
These are 10 of the 95 questions in the full NCA-GENL pack.
Get All 95 QuestionsGet all 95 questions & answers
Full access options for NVIDIA NCA-GENL
Self-study
PDF Version
- 95 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 95 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 95 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the NCA-GENL Exam (Generative AI LLMs) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.