NCA-GENL domain - 14% of the exam

Data Analysis and Visualization

Data Analysis and Visualization is 14% of the NCA-GENL exam. These are the objectives it covers, each with practice questions, with every answer explained.

The domain in numbers

79
Practice questions
5
Objectives
32
Easy
47
Medium

Where people go wrong

  • Fitting the scaler on held-out data

    The wrong answers fit or refit StandardScaler statistics on data the model is meant not to have seen: on the combined training and test sets, on the test split alone, or on each split with its own mean and standard deviation. Each choice sounds efficient or symmetric, and each lets held-out information shape preprocessing, so evaluation scores come out optimistic. The correct answer fits the scaler on the training split only and reuses those fixed parameters, unchanged, to transform the validation and test splits.

    See it in a sample question
  • Crediting dask-cuDF with compression or spillover

    The wrong answers explain how dask-cuDF handles data larger than one GPU by pointing at compression, CUDA unified memory, conversion to cuPy arrays, or changes to numeric precision and memory layout. None of these is what dask-cuDF does. It splits the frame into partitions, each a cuDF DataFrame, and schedules them lazily across workers or GPUs, so the full dataset never has to sit in one GPU's memory at once.

    See it in a sample question
  • Speeding up transfers instead of removing them

    The wrong answers make the host-to-device copy cheaper instead of removing it: pinned memory, more CPU workers, larger batches, chunked transfers or memory-mapped files. Others shrink the model or route GPU data through pandas, NumPy or a host Parquet buffer. While parsing, tokenisation and normalisation run on the CPU, the GPU idles and the PCIe copy remains. The correct answers keep data on the device: read files with cudf.read_csv, run preprocessing on the GPU, and hand columns to PyTorch through DLPack or the CUDA array interface.

    See it in a sample question
  • Using softmax where labels are independent

    The wrong answers pair softmax with a multi-label task, put sigmoid on a mutually exclusive one, or mix softmax with binary cross-entropy. Softmax forces class probabilities to compete and sum to one, so it cannot mark several labels true together. Multi-label classification uses an independent sigmoid per label with binary cross-entropy, thresholded label by label. Single-label multi-class classification uses softmax with cross-entropy.

    See it in a sample question
  • Scoring NER with token-level measures

    The wrong answers reach for token-level measures to judge an NER system: token accuracy, reweighted or macro-averaged token metrics, precision alone, or loss. The O tag dominates the tokens, so these stay high while whole entities are missed or their boundaries are wrong. Entity-level F1 scores a prediction as correct only when both the span boundaries and the entity type match the gold annotation, so it reflects what extraction pipelines consume.

    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 sampleData Analysis and Visualizationeasy

A practitioner fits a StandardScaler on the training split, transforms the training data, and then needs to prepare the held-out test split for evaluation. Which action correctly preserves the integrity of the evaluation?

  • ARefit a fresh StandardScaler on the test split and transform the test data with those new test-derived statistics.
  • BFit one StandardScaler on the combined training and test data and apply it to both splits together.
  • CSkip scaling the test split because the model has already learned the appropriate weights from scaled training data.
  • DReuse the scaler already fitted on the training split to transform the test data with the training-derived statistics. Correct
Fit preprocessing transformers on training data only and apply the learned statistics to the test split to avoid leakage. A preprocessing transformer learns parameters such as mean and standard deviation from the data it is fitted on. Fitting only on training data and reusing those parameters for the test split keeps the test set unseen, preventing information leakage that would otherwise inflate the reported performance.

Why A is wrong: Refitting on the test split is tempting because it scales the test data to a clean mean and variance, but it lets test statistics influence preprocessing, producing inconsistent transforms and an unrealistic evaluation.

Why B is wrong: Combining both splits before fitting feels efficient, but it leaks information from the test set into preprocessing, inflating measured performance and breaking the separation the test split exists to guarantee.

Why C is wrong: Leaving the test data unscaled seems harmless since the model is already trained, but the model expects scaled inputs; feeding raw-magnitude test features produces a train-test mismatch and degraded predictions.

Why D is correct: The scaler must learn its mean and standard deviation only from training data and then apply those fixed statistics to the test data, so the evaluation reflects how the model will see genuinely unseen inputs at deployment.

Free sampleData Analysis and Visualizationmedium

A data scientist loads a 50 GB CSV into a cuDF DataFrame on a single GPU that has only 16 GB of VRAM. After the load step fails with an out-of-memory error, a colleague suggests wrapping the workflow with dask-cuDF instead. Which of the following best explains why dask-cuDF resolves this limitation?

  • Adask-cuDF compresses the CSV on disk before loading, reducing the in-memory footprint to a fraction of the original file size so the data fits within a single GPU's VRAM.
  • Bdask-cuDF offloads the overflow portion of the DataFrame to CPU RAM using unified memory, transparently extending the effective VRAM capacity without any partitioning or multi-GPU coordination.
  • Cdask-cuDF converts the cuDF DataFrame into a cuPy array internally, which uses a more memory-efficient storage format that can hold 50 GB of tabular data within 16 GB of VRAM.
  • Ddask-cuDF splits the dataset into partitions that are each processed by a cuDF DataFrame, enabling out-of-core and multi-GPU execution so the full dataset need not reside in one GPU's memory at once. Correct
Understand how dask-cuDF enables out-of-core and multi-GPU scaling when a dataset exceeds single-GPU memory capacity. cuDF is a single-GPU DataFrame library with a pandas-like API. When a dataset exceeds available VRAM, dask-cuDF is used to partition the data into smaller chunks, each represented as a cuDF DataFrame. Dask schedules these partitions across multiple GPUs or executes them sequentially, allowing the total dataset size to far exceed single-GPU memory. This is the core architectural reason for combining Dask with cuDF rather than using cuDF alone.

Why A is wrong: Tempting because compression does reduce data size, but dask-cuDF does not apply compression to the source file. It partitions the data across multiple GPUs or processes data in chunks, not by compressing the input.

Why B is wrong: Tempting because CUDA unified memory does allow CPU-GPU overflow in some configurations, but that is a low-level CUDA feature, not what dask-cuDF provides. dask-cuDF works through partitioned, distributed execution across multiple GPUs or workers.

Why C is wrong: Tempting because cuPy and cuDF both operate on GPU memory, but cuPy arrays are not more memory-efficient for tabular data. dask-cuDF does not convert DataFrames to cuPy arrays to solve memory limits; it partitions the workload across workers.

Why D is correct: Correct. Dask orchestrates lazy, partitioned execution; each partition is a cuDF DataFrame handled by one GPU. This out-of-core scaling is the primary motivation for using dask-cuDF when a dataset exceeds single-GPU VRAM.

Free sampleData Analysis and Visualizationmedium

A team's GPU pipeline loads a CSV into pandas first, cleans it, then calls cudf.DataFrame.from_pandas to move it onto the GPU for the heavy aggregation work. The cleaning and aggregation are both fast, but end-to-end the pipeline is barely quicker than an all-CPU version. Profiling attributes most of the wall-clock time to the from_pandas call and the initial CSV read. What is the most effective redesign to capture the GPU benefit?

  • AKeep the pandas read but call from_pandas inside a loop over smaller row chunks so each transfer is smaller and the copies overlap with parsing.
  • BConvert the cleaned pandas frame to a NumPy array first and pass that to cudf.DataFrame, since array transfers are faster than DataFrame transfers.
  • CPin the host DataFrame in page-locked memory before from_pandas so the transfer reaches full PCIe bandwidth and the copy time disappears.
  • DRead the CSV directly with cudf.read_csv so parsing and the resulting frame live on the GPU, removing the separate host parse and the host-to-device copy. Correct
Eliminate redundant host parsing and host-to-device copies by reading data directly into cuDF rather than parsing in pandas and transferring with from_pandas. When the CSV parse happens in pandas and the frame is then copied to the GPU, the pipeline pays a slow host parse plus a full PCIe transfer; cudf.read_csv parses on the GPU and produces a device-resident frame in one step, removing both bottlenecks the profile flagged.

Why A is wrong: Tempting because chunking can pipeline some work, but it still pays the full pandas parse cost and the same total bytes transferred over PCIe; splitting the copy does not remove the host parse that dominates the profile.

Why B is wrong: Tempting because raw arrays sound lighter, but the conversion still copies the same data to the device and loses column dtypes and labels; it does not avoid the host CSV parse, which is the larger cost here.

Why C is wrong: Tempting because pinned memory genuinely speeds host-to-device copies, but it only shrinks the transfer portion and does nothing for the slow pandas CSV parse, so a large share of the wall-clock time remains.

Why D is correct: Correct: reading straight into cuDF parses on the GPU and avoids both the slow pandas CSV parse and the explicit from_pandas host-to-device transfer, eliminating the two dominant costs the profile identified.

Free sampleData Analysis and Visualizationmedium

A team builds a classifier that tags support emails with any number of applicable labels at once, such as billing, technical, and urgent, where a single email can carry several of these simultaneously. They add a linear head on top of a transformer encoder. Which output activation and loss combination correctly models this task?

  • AA sigmoid applied independently to each label logit with binary cross-entropy loss, thresholding each label separately Correct
  • BA softmax over the label set with categorical cross-entropy loss, taking the single highest-probability label as the prediction
  • CA softmax over the label set with binary cross-entropy loss, mixing the activation and the loss to allow multiple labels
  • DA linear output with mean squared error loss, regressing each label towards zero or one and rounding the values at inference
Use per-label sigmoid activation with binary cross-entropy for multi-label text classification where several labels can be true at once. Multi-label classification differs from single-label classification because each example can belong to several classes at the same time. This requires independent per-label probabilities, which a sigmoid produces by squashing each logit individually into the zero-to-one range without any cross-label normalisation. Binary cross-entropy then scores each label independently against its own target. A softmax, by contrast, normalises across all labels so the probabilities sum to one, which structurally prevents two labels being simultaneously confident, and pairing softmax with binary cross-entropy mixes incompatible assumptions. Mean squared error treats the problem as regression and is a poor fit for probabilistic classification. Per-label sigmoid with binary cross-entropy is the standard multi-label head.

Why A is correct: Multi-label classification treats each label as an independent binary decision, so a per-label sigmoid with binary cross-entropy lets several labels be active at once and each label is thresholded on its own probability, which matches an email carrying multiple labels.

Why B is wrong: Softmax with categorical cross-entropy is the right choice for single-label classification, which makes it tempting, but softmax forces the probabilities to sum to one and so cannot express several independent labels being true simultaneously.

Why C is wrong: This pairing looks like a compromise that allows multiple labels, but a softmax still couples the outputs into one normalised distribution while binary cross-entropy expects independent per-label probabilities, so the activation and loss are mismatched.

Why D is wrong: Treating the labels as a regression target seems to give independent outputs, but mean squared error is poorly suited to probabilistic classification, converges more slowly, and is not the conventional choice for a multi-label head.

Free sampleData Analysis and Visualizationmedium

A medical NER system is evaluated on held-out clinical notes. The team observes high token-level accuracy but poor performance in downstream information extraction. Which evaluation metric would best reveal the root cause?

  • AToken-level micro-averaged F1, which weights each token equally regardless of entity membership
  • BEntity-level F1 (span-level precision and recall), where a prediction counts as correct only when both the span boundaries and entity type match the gold annotation Correct
  • CPer-class precision computed separately for each BIO tag, averaged across B- and I- tag types
  • DMatthews Correlation Coefficient computed over the full token label distribution including O tags
Explain why entity-level span F1 is the appropriate NER metric when downstream extraction quality matters, rather than token-level accuracy. In clinical NER, O-tagged tokens typically outnumber entity tokens by a wide margin. Metrics that weight each token equally, including token accuracy and token-level F1, are dominated by correctly labelled O tokens and give an optimistic picture even when entity boundaries are wrong. Entity-level F1 requires the predicted span to match the gold span exactly in both position and type before counting as a true positive. This strict criterion aligns the metric with downstream needs: an information extraction pipeline that receives a drug name with one token missing will fail just as surely as one that receives a completely incorrect label. Entity-level F1 is the standard metric in shared tasks such as CoNLL-2003 and clinical NLP challenges for this reason.

Why A is wrong: Token accuracy and token-level F1 are both inflated by the large proportion of O-tagged tokens in clinical text. They can appear strong even when the model misses entire entity spans, which is exactly the disconnect the team is seeing.

Why B is correct: Entity-level F1 scores a prediction as correct only if every token in the predicted span matches the gold span exactly, including boundaries and type. This directly measures whether complete, correctly bounded entities are recovered, which is what information extraction pipelines consume. A model with high token accuracy can still score low on entity F1 by consistently getting span endpoints wrong.

Why C is wrong: Computing precision per BIO tag variant (B-DRUG, I-DRUG, B-CONDITION, etc.) is overly granular and still does not reflect whether the full entity span was recovered correctly. It is tempting because it goes beyond flat accuracy, but entity-level span matching is what downstream extraction requires.

Why D is wrong: MCC is a useful single-number metric for binary or multi-class token problems, but including the dominant O class masks span-level errors. It does not address whether full entity spans are correctly recovered, so it would not diagnose the disconnect between token accuracy and extraction quality.

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.