Skip to content

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.

x
0/65
  1. Question 1

    Domain 1: LLM Architecture · Task 1.1

    Many modern LLMs replace LayerNorm with RMSNorm. What does RMSNorm drop?

  2. Question 2

    Domain 1: LLM Architecture · Task 1.3

    A code model uses RoPE. How does RoPE encode position?

  3. Question 3

    Domain 1: LLM Architecture · Task 1.6

    A team needs fill-in-the-middle code completion (insert code between a prefix and a suffix). What must the model support?

  4. Question 4

    Domain 1: LLM Architecture · Task 1.5

    A team serves a 34B code model in FP8. Roughly how much memory do the weights need?

  5. Question 5

    Domain 2: Prompt Engineering · Task 2.1

    A code-review bot must flag security issues in diffs. Which few-shot set teaches it BEST?

  6. Question 6

    Domain 2: Prompt Engineering · Task 2.2

    A coding agent must fix a failing test: read the error, edit code, rerun tests and repeat. Which pattern describes this loop?

  7. Question 7

    Domain 2: Prompt Engineering · Task 2.3

    A code-completion service samples five suggestions per request to show users options. Which setting is appropriate?

  8. Question 8

    Domain 2: Prompt Engineering · Task 2.4

    An IDE agent calls tools such as run_tests(path) and edit_file(path, patch). How should tools be described to the model?

  9. Question 9

    Domain 2: Prompt Engineering · Task 2.5

    A documentation assistant must answer questions about a private SDK released last month. What's the best FIRST approach?

  10. Question 10

    Domain 2: Prompt Engineering · Task 2.6

    A code assistant sometimes suggests functions that don't exist in the library version the user has. Which mitigation targets this?

  11. Question 11

    Domain 2: Prompt Engineering · Task 2.7

    Several teams use the same code-review prompt but tweak it locally, and quality diverges. What should the platform team do?

  12. Question 12

    Domain 2: Prompt Engineering · Task 2.4

    A team wants the model to output a unified diff that applies cleanly. Which technique raises the share of valid patches MOST?

  13. Question 13

    Domain 3: Data Preparation · Task 3.1

    A team builds a code pretraining corpus from public repositories. Which filtering step is essential for legal reasons?

  14. Question 14

    Domain 3: Data Preparation · Task 3.2

    Many repositories vendor the same libraries. What does removing these near-duplicate files achieve for a code model?

  15. Question 15

    Domain 3: Data Preparation · Task 3.3

    A code tokenizer splits runs of spaces into many single-space tokens, inflating Python sequences. What helps?

  16. Question 16

    Domain 3: Data Preparation · Task 3.4

    A team builds an SFT set of coding tasks from an LLM. How can it check solution quality automatically?

  17. Question 17

    Domain 3: Data Preparation · Task 3.5

    A 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?

  18. Question 18

    Domain 3: Data Preparation · Task 3.6

    A team indexes a monorepo for code search with RAG. Which chunking strategy suits code?

  19. Question 19

    Domain 4: Model Optimization · Task 4.1

    A code assistant serves 16K-token repository contexts. Which statement about memory at long context is correct?

  20. Question 20

    Domain 4: Model Optimization · Task 4.1

    A team moves a 7B model from MHA (32 KV heads) to GQA with 8 KV heads. How does KV cache per token change?

  21. Question 21

    Domain 4: Model Optimization · Task 4.2

    A team quantizes weights to INT4 but keeps activations in FP16 (W4A16). Which phase benefits MOST?

  22. Question 22

    Domain 4: Model Optimization · Task 4.2

    After FP8 quantization, a team must confirm the model still works for code. What should it measure?

  23. Question 23

    Domain 4: Model Optimization · Task 4.3

    A 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?

  24. Question 24

    Domain 4: Model Optimization · Task 4.4

    A TensorRT-LLM server was launched with max_batch_size 8, and it now needs 64 concurrent requests. What must happen?

  25. Question 25

    Domain 4: Model Optimization · Task 4.4

    Why does TensorRT-LLM use fused attention kernels such as FlashAttention-style implementations and XQA?

  26. Question 26

    Domain 4: Model Optimization · Task 4.5

    A code assistant often regenerates text already present in the prompt, such as edited file contents. Which speculative method exploits this cheaply?

  27. Question 27

    Domain 4: Model Optimization · Task 4.5

    Speculative decoding speeds up a code model at batch 1 but slows it at batch 128. What should the team do?

  28. Question 28

    Domain 4: Model Optimization · Task 4.6

    Autocomplete must return suggestions within 150 ms end to end. Which configuration focus is RIGHT?

  29. Question 29

    Domain 4: Model Optimization · Task 4.6

    A 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?

  30. Question 30

    Domain 5: Fine-Tuning · Task 5.1

    A company wants its code assistant to follow internal coding conventions, which are stable and well documented with thousands of examples. Which approach fits BEST?

  31. Question 31

    Domain 5: Fine-Tuning · Task 5.2

    In QLoRA, which data type stores the frozen base-model weights?

  32. Question 32

    Domain 5: Fine-Tuning · Task 5.2

    A team increases LoRA rank from 8 to 256 on a small dataset, and validation loss gets worse. Why?

  33. Question 33

    Domain 5: Fine-Tuning · Task 5.3

    A team adapts a general model to a proprietary programming language with 3B tokens of code. Which approach fits?

  34. Question 34

    Domain 5: Fine-Tuning · Task 5.4

    A team uses unit-test pass/fail as the reward for RL on coding problems. What is this an example of?

  35. Question 35

    Domain 5: Fine-Tuning · Task 5.4

    During RL with test-based rewards, the model learns to edit tests so they always pass. What is this, and a mitigation?

  36. Question 36

    Domain 5: Fine-Tuning · Task 5.5

    A team fine-tunes on code and wants to detect forgetting of general reasoning. What should it monitor?

  37. Question 37

    Domain 5: Fine-Tuning · Task 5.6

    Which NVIDIA framework provides scalable training recipes (pretraining, SFT, PEFT) built on Megatron-Core for LLMs?

  38. Question 38

    Domain 6: Evaluation · Task 6.1

    A team generates n = 20 samples per problem to estimate pass@5. Why sample more than five?

  39. Question 39

    Domain 6: Evaluation · Task 6.2

    A team wants a coding benchmark that resists contamination because problems are added after model cut-offs. Which fits?

  40. Question 40

    Domain 6: Evaluation · Task 6.3

    A team uses an LLM judge to rate code-review comments, and wants evidence the judge agrees with senior engineers. What should it compute?

  41. Question 41

    Domain 6: Evaluation · Task 6.4

    A coding agent completes 70% of tasks but uses 40 steps on average where 10 should suffice. Which agent metric captures this?

  42. Question 42

    Domain 6: Evaluation · Task 6.5

    A team's code model fails mostly on tasks involving async functions. What does slicing results by task type reveal?

  43. Question 43

    Domain 7: GPU Acceleration and Optimization · Task 7.1

    Why does mixed-precision training with Adam still keep an FP32 master copy of the weights?

  44. Question 44

    Domain 7: GPU Acceleration and Optimization · Task 7.2

    A team trains a model whose single layer is too large for one GPU's memory. Which parallelism is required?

  45. Question 45

    Domain 7: GPU Acceleration and Optimization · Task 7.2

    Megatron's tensor parallelism splits the MLP's first matrix by columns and the second by rows. Why?

  46. Question 46

    Domain 7: GPU Acceleration and Optimization · Task 7.3

    A team using ZeRO-3 sees training slow down a lot compared with ZeRO-2. What is the likely reason?

  47. Question 47

    Domain 7: GPU Acceleration and Optimization · Task 7.4

    A team trains in FP8 and sees a slow loss divergence that BF16 doesn't show. Which step is reasonable?

  48. Question 48

    Domain 7: GPU Acceleration and Optimization · Task 7.5

    Which NCCL algorithm choice is typically better for latency with small messages at large scale?

  49. Question 49

    Domain 7: GPU Acceleration and Optimization · Task 7.6

    A profile shows thousands of tiny CUDA kernels from an unfused optimizer step. Which change helps MOST?

  50. Question 50

    Domain 7: GPU Acceleration and Optimization · Task 7.6

    A matmul kernel shows high arithmetic intensity and reaches near-peak FLOPs in Nsight Compute. How should the team classify it?

  51. Question 51

    Domain 7: GPU Acceleration and Optimization · Task 7.7

    A multi-node job's ranks report different parameter shapes and hang at the first collective. What is the MOST likely cause?

  52. Question 52

    Domain 8: Model Deployment · Task 8.1

    A team needs to serve a model architecture that TensorRT-LLM doesn't support yet, while keeping an OpenAI-compatible API. What can NIM offer?

  53. Question 53

    Domain 8: Model Deployment · Task 8.2

    A team containerizes a code-assistant service. Which practice makes builds reproducible?

  54. Question 54

    Domain 8: Model Deployment · Task 8.3

    A team shares one GPU cluster among research, CI evals and production, with quotas and fractional GPUs. Which NVIDIA platform supports this?

  55. Question 55

    Domain 8: Model Deployment · Task 8.4

    A code-review bot runs on every pull request, but reviews can take a minute and nobody waits interactively. Which serving approach fits?

  56. Question 56

    Domain 8: Model Deployment · Task 8.5

    A 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?

  57. Question 57

    Domain 8: Model Deployment · Task 8.6

    A documentation RAG service sees the same popular questions thousands of times a day. Which optimization cuts cost MOST?

  58. Question 58

    Domain 9: Production Monitoring and Reliability · Task 9.1

    A 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?

  59. Question 59

    Domain 9: Production Monitoring and Reliability · Task 9.2

    A 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?

  60. Question 60

    Domain 9: Production Monitoring and Reliability · Task 9.3

    An agent's tool calls fail intermittently, and the team must see which tool and arguments failed. What should be captured?

  61. Question 61

    Domain 9: Production Monitoring and Reliability · Task 9.4

    Over three months, code-assistant prompts shift from Python to Rust as the company migrates. Which monitoring approach detects this?

  62. Question 62

    Domain 9: Production Monitoring and Reliability · Task 9.6

    A team retrains its code model monthly from accepted suggestions. Which safeguard is essential before each new version serves users?

  63. Question 63

    Domain 10: Safety, Ethics, and Compliance · Task 10.3

    A coding agent can run shell commands. Which control limits damage if it's tricked by a prompt injection in a README?

  64. Question 64

    Domain 10: Safety, Ethics, and Compliance · Task 10.5

    A code assistant occasionally reproduces long verbatim snippets from GPL-licensed code. Which control addresses the licensing risk?

  65. Question 65

    Domain 10: Safety, Ethics, and Compliance · Task 10.1

    Which 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.