Home › Certifications › NVIDIA NCA Gen AI LLMs › Software Development — Python, Frameworks and Orchestration
36 multiple-choice questions and 9 flashcards on Software Development — Python, Frameworks and Orchestration, about 12% of the NVIDIA NCA Gen AI LLMs bank. Every one carries a written rationale.
Software Development — Python, Frameworks and Orchestration is one of 8 chapters in CoStudy's NVIDIA NCA Gen AI LLMs bank, and it holds 36 of the bank's 310 multiple-choice questions — roughly 12% of the total. That proportion is not arbitrary: chapters follow the certifying body's published exam outline, and the number of questions in each is set by that domain's published weight, so the share of your practice time this chapter takes matches the share of the real exam it accounts for.
Studying by chapter is worth doing once you have a diagnostic score. A single overall percentage tells you whether you are close; it does not tell you which domain is dragging. Working a weak chapter in isolation, and re-testing it in isolation, is the fastest way to move a score that has stalled — and it is why the mock exams in CoStudy report by domain rather than as one number.
9 questions drawn from this chapter, with the full rationale shown — the controlling principle behind the right answer, and why each wrong option tempts and fails.
The clearest distinction between a chain and an agent is that an agent:
Answer: D — Decides at runtime which tool to invoke and when to stop
D) Correct — the defining property is model-driven control flow: the agent selects actions and termination. A) Hardware placement is orthogonal to both patterns. B) Agents are general and RAG can be built as a plain chain. C) Many capable instruct models call tools well without task-specific fine-tuning.
The PRIMARY job of a collate function in a PyTorch DataLoader for LLM fine-tuning is to:
Answer: B — Pad variable-length examples into a batched, masked tensor
B) Correct — collation turns a list of per-example dicts into padded tensors with the matching attention mask and label mask. A) Shuffling is the sampler's responsibility. C) Loss is computed by the model or training loop. D) Tokenization normally happens in the dataset map step before collation.
A team exports a decoder LLM to ONNX and finds outputs diverge from PyTorch only for long prompts. The MOST likely cause is:
Answer: B — The graph was traced at fixed sequence length, not dynamic axes
B) Correct — tracing without dynamic axes bakes in the example shape, so longer sequences are silently mishandled. A) Attention decomposes into standard ONNX operators. C) Tokenizers are normally external, which affects nothing about long-prompt numerics. D) ONNX preserves the exported precision; INT8 is an explicit choice.
A batch of prompts of very different lengths is passed to a decoder-only model for generation. To get correct results the developer must MOST importantly:
Answer: A — Use left padding and pass the attention mask
A) Correct — decoder-only generation continues from the last position, so pads must sit on the left, and the mask keeps them out of attention. B) Length sorting is a throughput optimization and does not fix correctness. C) Truncation discards prompt content and still leaves length differences unhandled. D) Disabling the cache slows generation without addressing where the padding sits.
Which practice BEST supports experiment reproducibility during fine-tuning?
Answer: A — Record the random seed, data snapshot hash and full config per run
A) Correct — seed, data version and config together let a run be recreated; any one alone is insufficient. B) A score without the recipe cannot be reproduced. C) A shared directory overwrites artifacts and destroys the audit trail. D) Ad-hoc notebook edits leave no record of what produced which result.
Which artifact should NOT be committed directly to a Git repository for an LLM application?
Answer: B — Multi-gigabyte model checkpoint binaries used at inference
B) Correct — large binaries bloat history irrecoverably; use a model registry or an LFS-style pointer instead. A) Lock files are small text and belong in the repo. C) Dockerfiles are source and must be versioned. D) Tests are source code and belong with the project.
A CI pipeline for an LLM application should run which check on every pull request WITHOUT calling the live model provider?
Answer: D — Unit tests of prompt assembly against mocked responses
D) Correct — deterministic logic around the model is exactly what mocks make fast, cheap and reliable in CI. A) Human evaluation cannot gate a per-PR pipeline. B) Load tests belong to a scheduled stage, not every commit. C) Retraining is far too slow and expensive for PR gating.
A developer wants the fastest path from a model name on the Hugging Face Hub to a working sentiment classifier in three lines of Python. The MOST appropriate Transformers API is:
Answer: A — The pipeline() factory, which bundles tokenizer and model
A) Correct — pipeline() is the high-level abstraction that wires tokenization, model inference and label mapping together for a task. B) Works but is the lower-level path: you must map logits to labels yourself, so it is not the fastest. C) Trainer is for training/evaluation loops over datasets, not ad-hoc inference. D) torch.load() bypasses the Hub config and tokenizer entirely and is the most manual option.
A LangGraph workflow must resume after a crash without replaying expensive tool calls. The feature that MOST directly enables this is:
Answer: D — State checkpointing persisted after each node transition
D) Correct — durable checkpoints of graph state allow resumption from the last completed node. A) Callbacks observe execution but store no recoverable state. B) Context size does not persist anything across a process restart. C) Determinism helps testing but does not save progress.
4 cards from the 9 in this chapter.
Why are containers the standard delivery unit for GPU AI workloads, and what extra component is required over a normal container?
A container pins the framework, CUDA runtime, libraries, and Python dependencies into one immutable image, so the environment that passed testing is the environment that runs in production. GPU workloads additionally need the NVIDIA container toolkit and a compatible host driver to expose the devices — the driver stays on the host and is not inside the image.
Why must a tokenizer always be loaded from the same checkpoint as its model?
The model's embedding matrix is indexed by token IDs from a specific vocabulary. A mismatched tokenizer produces IDs that map to unrelated embeddings and special tokens the model never saw, so the output is fluent-looking nonsense rather than an obvious error — a failure that is easy to ship undetected.
What problem does LangGraph solve that a linear LangChain chain does not?
A linear chain runs a fixed forward sequence. LangGraph models the application as a directed graph of nodes with explicit shared state, so it supports cycles, conditional branching, retries, human-in-the-loop pauses, and checkpointed resumption — the control flow an agent needs when it must loop between planning, tool calls, and reflection.
What is the NVIDIA NGC catalog and what kinds of artifacts does it host?
NGC is NVIDIA's hub for GPU-optimized AI software. It hosts containers for frameworks and inference servers, pretrained models, Helm charts, and SDKs, all built and tested against specific CUDA and driver stacks so a pull-and-run gives a known-good environment.
These are a sample. The full Software Development — Python, Frameworks and Orchestration chapter runs 45 items with per-chapter progress tracking, on the web and in the iOS app.
Open NVIDIA NCA Gen AI LLMs in CoStudy →