NCA-GENL domain - 30% of the exam

Core Machine Learning and AI Knowledge

Core Machine Learning and AI Knowledge is 30% of the NCA-GENL exam. These are the objectives it covers, each with practice questions, with every answer explained.

The domain in numbers

112
Practice questions
5
Objectives
89
Medium
23
Hard

Where people go wrong

  • Crediting a BERT variant with another variant's objective

    The wrong answers swap which pre-training change belongs to which model. Span masking is credited to RoBERTa when it belongs to SpanBERT, sentence-order prediction is credited to RoBERTa when it belongs to ALBERT, and a generator with replaced-token detection is credited to XLNet when it belongs to ELECTRA. SpanBERT is also given a next-sentence loss that it drops. The correct pairings are that RoBERTa removes next-sentence prediction, SpanBERT adds a span-boundary objective, and XLNet trains over permuted factorisation orders.

    See it in a sample question
  • Placing tensor parallelism on a slow interconnect

    The wrong answers put tensor parallelism across nodes or treat it like data parallelism. Tensor parallelism runs an all-reduce inside every layer, forward and backward, so it needs the highest bandwidth and belongs on NVLink-connected GPUs within a node. Pipeline parallelism communicates only at layer-group boundaries and belongs across nodes. Data parallelism replicates the full model on every GPU, so it does not cut the memory of holding every layer; pipeline stages do.

    See it in a sample question
  • Applying the wrong remedy to a training failure

    The wrong answers use the fix for one failure on another. Gradient clipping is offered for vanishing gradients, but it bounds exploding gradients and leaves near-zero ones unchanged. For a loss that spikes to NaN, weight decay, a lower learning rate and larger batches are offered, while clipping by global norm is the fix that caps the spike. Heavier weight decay and more dropout are offered for vanishing gradients, yet ReLU, residual connections and batch normalisation are what preserve gradient signal.

    See it in a sample question
  • Confusing centrality measures

    The wrong answers pick a centrality measure that sounds close to the stem. Degree centrality counts direct links, so a router with many links can sit off the main shortest paths. Closeness rewards a low total shortest-path distance to every other node, while betweenness counts how many shortest paths between other pairs pass through a node. Eigenvector centrality rewards links to well-connected neighbours. Bridging routers call for betweenness, and fastest spread calls for closeness.

    See it in a sample question

Objectives in this domain

What to study

The official documents this domain's practice questions cite most.

Sample questions from this domain

Free sampleCore Machine Learning and AI Knowledgehard

RoBERTa modifies BERT's pre-training procedure to improve downstream performance. Which single change in RoBERTa most directly addresses a known limitation in BERT's original self-supervised objective design?

  • AReplacing the WordPiece tokeniser with a byte-pair encoding tokeniser trained on a larger vocabulary, reducing unknown-token frequency.
  • BRemoving the next-sentence prediction (NSP) objective entirely, because empirical results showed NSP did not improve - and sometimes harmed - downstream task performance. Correct
  • CIntroducing a span-level masking strategy in which contiguous spans of tokens are masked together, replacing token-level random masking.
  • DAdding a sentence-order prediction (SOP) objective to replace NSP, training the model to distinguish correct sentence order from swapped sentence order.
Distinguish RoBERTa's removal of the NSP objective from other BERT-variant improvements such as SpanBERT masking and ALBERT's SOP. BERT's next-sentence prediction trains the model on pairs of sentences drawn either consecutively from a document or from different documents, with a binary label. RoBERTa's authors demonstrated that this objective is problematic: the model can solve it by detecting topic shift (different documents) rather than learning genuine discourse coherence. Removing NSP and training on full document streams instead improved performance on GLUE, SQuAD, and RACE, confirming NSP was a net-negative design choice in the original BERT objective.

Why A is wrong: RoBERTa does adopt byte-pair encoding, but this is a tokenisation engineering choice. It does not address a fundamental limitation of BERT's self-supervised objectives (MLM and NSP), which is the core concern of the question.

Why B is correct: NSP was introduced in BERT to help sentence-pair tasks, but RoBERTa's authors found that models trained without NSP matched or exceeded BERT on benchmarks. NSP mixes documents and encourages the model to exploit topic differences rather than genuine inter-sentence reasoning, making it a flawed objective. Removing it is the primary objective-level improvement.

Why C is wrong: Span masking is the strategy introduced in SpanBERT, not RoBERTa. Attributing it to RoBERTa is a plausible confusion given both are BERT variants, but RoBERTa's key objective change is dropping NSP, not altering the masking granularity.

Why D is wrong: Sentence-order prediction is the replacement strategy used in ALBERT, not RoBERTa. ALBERT found that SOP is a harder and more meaningful objective than NSP. RoBERTa's approach was to remove NSP altogether rather than replace it with a harder variant.

Free sampleCore Machine Learning and AI Knowledgehard

A team scales a single transformer layer across 8 GPUs using Megatron-style tensor parallelism, sharding the weight matrices of the feed-forward and attention blocks. During profiling they find that the all-reduce communication between shards dominates wall-clock time once they cross a single server boundary. Given how tensor parallelism communicates, what is the most defensible explanation for the steep cost after crossing that boundary?

  • ATensor parallelism synchronises only once per training step at the optimiser update, so crossing nodes adds a single extra collective that scales with model size.
  • BTensor parallelism requires an all-reduce on activations within every forward and backward pass of each layer, so placing shards across slower inter-node links multiplies that per-layer synchronisation over the lower-bandwidth interconnect. Correct
  • CTensor parallelism transfers full layer weights between GPUs on every microbatch, so the cost rises because weight tensors are larger than activation tensors.
  • DTensor parallelism uses point-to-point sends between consecutive pipeline stages, so spanning nodes increases the bubble created by stage-to-stage handoffs.
Explain that Megatron tensor parallelism communicates activations via all-reduce inside each layer, making it sensitive to the bandwidth of the link the shards span. In Megatron tensor parallelism, the column-parallel and row-parallel splits of the feed-forward and attention weights require all-reduce collectives on activations during both the forward and backward pass of every layer. Because this synchronisation happens many times per step, the strategy is best kept within a single node's high-bandwidth NVLink domain; spreading shards across slower inter-node links inflates the cost dramatically.

Why A is wrong: Tempting because once-per-step synchronisation describes data parallelism, but tensor parallelism communicates multiple times per layer per pass, which is why it is far more sensitive to interconnect speed.

Why B is correct: Correct: tensor parallelism injects collective communication inside each layer, so the high frequency of all-reduces makes it sensitive to the bandwidth of the link the shards span, which drops sharply between nodes.

Why C is wrong: Tempting because moving weights sounds expensive, but tensor parallelism keeps each weight shard resident on its GPU and communicates activations, not full weight matrices, between shards.

Why D is wrong: Tempting because pipeline bubbles are a real cost, but point-to-point stage handoffs and bubbles describe pipeline parallelism; tensor parallelism relies on all-reduce collectives within a layer.

Free sampleCore Machine Learning and AI Knowledgemedium

A practitioner is training a large language model from scratch and notices that gradients in the earliest layers are effectively zero after several epochs. Which technique most directly addresses this problem?

  • AApply gradient clipping with a threshold of 1.0 to prevent excessively large gradient values.
  • BReduce the number of hidden layers so the backpropagation path is shorter.
  • CIncrease the weight initialisation scale so initial activations are larger at training start.
  • DReplace saturating activation functions with ReLU and introduce residual skip connections. Correct
Explain how residual connections and non-saturating activations address the vanishing gradient problem in deep neural network training. Vanishing gradients occur when repeated multiplication of partial derivatives during backpropagation drives gradients toward zero, preventing weight updates in early layers. Using ReLU instead of sigmoid or tanh avoids the saturation regions where the derivative collapses. Residual skip connections, introduced in ResNet architectures, add the input of a block directly to its output, creating an additive gradient path that bypasses the multiplicative chain and allows gradients to flow unimpeded to early layers regardless of network depth.

Why A is wrong: Tempting because gradient clipping is a common training stability tool, but it is designed to prevent exploding gradients, not vanishing ones. Clipping a near-zero gradient has no effect on the underlying vanishing gradient problem caused by repeated multiplication of small values through many layers.

Why B is wrong: Tempting because fewer layers means fewer multiplications during backpropagation, which would reduce gradient vanishing. However, reducing depth sacrifices model capacity, and the standard industry approach is to preserve depth while using architectural features that maintain gradient magnitude, not to shrink the model.

Why C is wrong: Tempting because poor weight initialisation can exacerbate vanishing gradients early in training. However, simply increasing the initialisation scale without a principled scheme such as He or Xavier initialisation risks pushing activations into saturation, and does not solve the structural problem once training has progressed past the early epochs where the symptom is now observed.

Why D is correct: Saturating activations such as sigmoid compress gradients toward zero in their saturation regions. ReLU has a gradient of exactly 1 in the positive region, preventing compression. Residual connections provide a direct gradient path to earlier layers, bypassing the multiplicative chain, which is the primary architectural solution to vanishing gradients in deep networks.

Free sampleCore Machine Learning and AI Knowledgemedium

A network engineer analyses a communications graph to find the routers whose removal would most disrupt traffic, because a large share of shortest paths between other router pairs passes through them. Which centrality measure most directly identifies these critical bridging routers?

  • ADegree centrality, which scores a node by the raw count of edges directly attached to it.
  • BCloseness centrality, which scores a node by the inverse of its average shortest-path distance to all others.
  • CBetweenness centrality, which scores a node by the fraction of all-pairs shortest paths that run through it. Correct
  • DEigenvector centrality, which scores a node higher when it is connected to other high-scoring nodes.
Use betweenness centrality to find bridging nodes that carry a large share of all-pairs shortest paths. Betweenness centrality is defined as the sum over all node pairs of the fraction of their shortest paths that pass through a node, so it directly quantifies a node's role as a traffic bottleneck whose removal fragments path connectivity.

Why A is wrong: Degree centrality is tempting because well-connected routers often matter, but a router can have many local links yet sit off the main shortest paths, so a high degree does not guarantee that removing it disrupts cross-network traffic.

Why B is wrong: Closeness centrality rewards nodes that can reach everything quickly and uses shortest paths, which makes it look applicable, but it measures a node's own proximity rather than how many paths between other nodes depend on it.

Why C is correct: Betweenness centrality counts, for every pair of other nodes, the proportion of shortest paths passing through a given node, so it precisely measures how much traffic must route through a node and flags the bridging routers whose loss is most disruptive.

Why D is wrong: Eigenvector centrality captures influence through well-connected neighbours and resembles PageRank, so it is plausible, but it reflects prestige among neighbours rather than the bridging role of carrying shortest-path traffic between separate parts of the network.

Other domains in this exam

See also the NCA-GENL cert hub, the study guide, and the cheat sheet.

Examworthy is not affiliated with or endorsed by NVIDIA. Original, blueprint-aligned practice material only.