NCP-GENL Practice Exam 6: Software and code assistants
NVIDIA-Certified Professional: Generative AI LLMs. 65 questions. Real exam: 65 single-answer items in 120 minutes (the exam page gives 60–70 questions in two hours). NVIDIA does not publish a passing score; aim for 46+ / 65 (about 71%).
Independent practice questions by Core Concept Learning, written from the public exam guide; not official NVIDIA content.
Study mode: check any answer as you go. Or practise under exam conditions: 120 minutes, answers hidden until you submit.
Question 1
Domain 1: LLM Architecture · Task 1.1Many modern LLMs replace LayerNorm with RMSNorm. What does RMSNorm drop?
Question 2
Domain 1: LLM Architecture · Task 1.3A code model uses RoPE. How does RoPE encode position?
Question 3
Domain 1: LLM Architecture · Task 1.6A team needs fill-in-the-middle code completion (insert code between a prefix and a suffix). What must the model support?
Question 4
Domain 1: LLM Architecture · Task 1.5A team serves a 34B code model in FP8. Roughly how much memory do the weights need?
Question 5
Domain 2: Prompt Engineering · Task 2.1A code-review bot must flag security issues in diffs. Which few-shot set teaches it BEST?
Question 6
Domain 2: Prompt Engineering · Task 2.2A coding agent must fix a failing test: read the error, edit code, rerun tests and repeat. Which pattern describes this loop?
Question 7
Domain 2: Prompt Engineering · Task 2.3A code-completion service samples five suggestions per request to show users options. Which setting is appropriate?
Question 8
Domain 2: Prompt Engineering · Task 2.4An IDE agent calls tools such as run_tests(path) and edit_file(path, patch). How should tools be described to the model?
Question 9
Domain 2: Prompt Engineering · Task 2.5A documentation assistant must answer questions about a private SDK released last month. What's the best FIRST approach?
Question 10
Domain 2: Prompt Engineering · Task 2.6A code assistant sometimes suggests functions that don't exist in the library version the user has. Which mitigation targets this?
Question 11
Domain 2: Prompt Engineering · Task 2.7Several teams use the same code-review prompt but tweak it locally, and quality diverges. What should the platform team do?
Question 12
Domain 2: Prompt Engineering · Task 2.4A team wants the model to output a unified diff that applies cleanly. Which technique raises the share of valid patches MOST?
Question 13
Domain 3: Data Preparation · Task 3.1A team builds a code pretraining corpus from public repositories. Which filtering step is essential for legal reasons?
Question 14
Domain 3: Data Preparation · Task 3.2Many repositories vendor the same libraries. What does removing these near-duplicate files achieve for a code model?
Question 15
Domain 3: Data Preparation · Task 3.3A code tokenizer splits runs of spaces into many single-space tokens, inflating Python sequences. What helps?
Question 16
Domain 3: Data Preparation · Task 3.4A team builds an SFT set of coding tasks from an LLM. How can it check solution quality automatically?
Question 17
Domain 3: Data Preparation · Task 3.5A training blend mixes code, maths and web text. Late in pretraining, a team raises the share of high-quality data. What is this practice called?
Question 18
Domain 3: Data Preparation · Task 3.6A team indexes a monorepo for code search with RAG. Which chunking strategy suits code?
Question 19
Domain 4: Model Optimization · Task 4.1A code assistant serves 16K-token repository contexts. Which statement about memory at long context is correct?
Question 20
Domain 4: Model Optimization · Task 4.1A team moves a 7B model from MHA (32 KV heads) to GQA with 8 KV heads. How does KV cache per token change?
Question 21
Domain 4: Model Optimization · Task 4.2A team quantizes weights to INT4 but keeps activations in FP16 (W4A16). Which phase benefits MOST?
Question 22
Domain 4: Model Optimization · Task 4.2After FP8 quantization, a team must confirm the model still works for code. What should it measure?
Question 23
Domain 4: Model Optimization · Task 4.3A team wants a fast autocomplete model and has a strong 15B code model. Which approach produces a small model that keeps much of its skill?
Question 24
Domain 4: Model Optimization · Task 4.4A TensorRT-LLM server was launched with max_batch_size 8, and it now needs 64 concurrent requests. What must happen?
Question 25
Domain 4: Model Optimization · Task 4.4Why does TensorRT-LLM use fused attention kernels such as FlashAttention-style implementations and XQA?
Question 26
Domain 4: Model Optimization · Task 4.5A code assistant often regenerates text already present in the prompt, such as edited file contents. Which speculative method exploits this cheaply?
Question 27
Domain 4: Model Optimization · Task 4.5Speculative decoding speeds up a code model at batch 1 but slows it at batch 128. What should the team do?
Question 28
Domain 4: Model Optimization · Task 4.6Autocomplete must return suggestions within 150 ms end to end. Which configuration focus is RIGHT?
Question 29
Domain 4: Model Optimization · Task 4.6A benchmark of a code model uses input length 2,000 and output length 200. Production averages input 12,000 and output 50. What is the risk?
Question 30
Domain 5: Fine-Tuning · Task 5.1A company wants its code assistant to follow internal coding conventions, which are stable and well documented with thousands of examples. Which approach fits BEST?
Question 31
Domain 5: Fine-Tuning · Task 5.2In QLoRA, which data type stores the frozen base-model weights?
Question 32
Domain 5: Fine-Tuning · Task 5.2A team increases LoRA rank from 8 to 256 on a small dataset, and validation loss gets worse. Why?
Question 33
Domain 5: Fine-Tuning · Task 5.3A team adapts a general model to a proprietary programming language with 3B tokens of code. Which approach fits?
Question 34
Domain 5: Fine-Tuning · Task 5.4A team uses unit-test pass/fail as the reward for RL on coding problems. What is this an example of?
Question 35
Domain 5: Fine-Tuning · Task 5.4During RL with test-based rewards, the model learns to edit tests so they always pass. What is this, and a mitigation?
Question 36
Domain 5: Fine-Tuning · Task 5.5A team fine-tunes on code and wants to detect forgetting of general reasoning. What should it monitor?
Question 37
Domain 5: Fine-Tuning · Task 5.6Which NVIDIA framework provides scalable training recipes (pretraining, SFT, PEFT) built on Megatron-Core for LLMs?
Question 38
Domain 6: Evaluation · Task 6.1A team generates n = 20 samples per problem to estimate pass@5. Why sample more than five?
Question 39
Domain 6: Evaluation · Task 6.2A team wants a coding benchmark that resists contamination because problems are added after model cut-offs. Which fits?
Question 40
Domain 6: Evaluation · Task 6.3A team uses an LLM judge to rate code-review comments, and wants evidence the judge agrees with senior engineers. What should it compute?
Question 41
Domain 6: Evaluation · Task 6.4A coding agent completes 70% of tasks but uses 40 steps on average where 10 should suffice. Which agent metric captures this?
Question 42
Domain 6: Evaluation · Task 6.5A team's code model fails mostly on tasks involving async functions. What does slicing results by task type reveal?
Question 43
Domain 7: GPU Acceleration and Optimization · Task 7.1Why does mixed-precision training with Adam still keep an FP32 master copy of the weights?
Question 44
Domain 7: GPU Acceleration and Optimization · Task 7.2A team trains a model whose single layer is too large for one GPU's memory. Which parallelism is required?
Question 45
Domain 7: GPU Acceleration and Optimization · Task 7.2Megatron's tensor parallelism splits the MLP's first matrix by columns and the second by rows. Why?
Question 46
Domain 7: GPU Acceleration and Optimization · Task 7.3A team using ZeRO-3 sees training slow down a lot compared with ZeRO-2. What is the likely reason?
Question 47
Domain 7: GPU Acceleration and Optimization · Task 7.4A team trains in FP8 and sees a slow loss divergence that BF16 doesn't show. Which step is reasonable?
Question 48
Domain 7: GPU Acceleration and Optimization · Task 7.5Which NCCL algorithm choice is typically better for latency with small messages at large scale?
Question 49
Domain 7: GPU Acceleration and Optimization · Task 7.6A profile shows thousands of tiny CUDA kernels from an unfused optimizer step. Which change helps MOST?
Question 50
Domain 7: GPU Acceleration and Optimization · Task 7.6A matmul kernel shows high arithmetic intensity and reaches near-peak FLOPs in Nsight Compute. How should the team classify it?
Question 51
Domain 7: GPU Acceleration and Optimization · Task 7.7A multi-node job's ranks report different parameter shapes and hang at the first collective. What is the MOST likely cause?
Question 52
Domain 8: Model Deployment · Task 8.1A team needs to serve a model architecture that TensorRT-LLM doesn't support yet, while keeping an OpenAI-compatible API. What can NIM offer?
Question 53
Domain 8: Model Deployment · Task 8.2A team containerizes a code-assistant service. Which practice makes builds reproducible?
Question 54
Domain 8: Model Deployment · Task 8.3A team shares one GPU cluster among research, CI evals and production, with quotas and fractional GPUs. Which NVIDIA platform supports this?
Question 55
Domain 8: Model Deployment · Task 8.4A code-review bot runs on every pull request, but reviews can take a minute and nobody waits interactively. Which serving approach fits?
Question 56
Domain 8: Model Deployment · Task 8.5A team keeps v1 and v2 of a model live and sends random 50% splits to compare merge-acceptance rates of suggestions. Which strategy is this?
Question 57
Domain 8: Model Deployment · Task 8.6A documentation RAG service sees the same popular questions thousands of times a day. Which optimization cuts cost MOST?
Question 58
Domain 9: Production Monitoring and Reliability · Task 9.1A team must decide whether to ship a risky feature this week. The error budget for the month is already 95% spent. What does SRE practice suggest?
Question 59
Domain 9: Production Monitoring and Reliability · Task 9.2A code assistant's acceptance rate of suggestions drops from 32% to 24% after a release, while latency is unchanged. What kind of signal is this?
Question 60
Domain 9: Production Monitoring and Reliability · Task 9.3An agent's tool calls fail intermittently, and the team must see which tool and arguments failed. What should be captured?
Question 61
Domain 9: Production Monitoring and Reliability · Task 9.4Over three months, code-assistant prompts shift from Python to Rust as the company migrates. Which monitoring approach detects this?
Question 62
Domain 9: Production Monitoring and Reliability · Task 9.6A team retrains its code model monthly from accepted suggestions. Which safeguard is essential before each new version serves users?
Question 63
Domain 10: Safety, Ethics, and Compliance · Task 10.3A coding agent can run shell commands. Which control limits damage if it's tricked by a prompt injection in a README?
Question 64
Domain 10: Safety, Ethics, and Compliance · Task 10.5A code assistant occasionally reproduces long verbatim snippets from GPL-licensed code. Which control addresses the licensing risk?
Question 65
Domain 10: Safety, Ethics, and Compliance · Task 10.1Which framework organizes AI risk management into Govern, Map, Measure and Manage functions?
65 questions unanswered; they count as wrong.
Video walkthrough
Try the exam first, then watch every question worked through.