Home › Certifications › NVIDIA NCA Gen AI LLMs › Transformer Architecture and LLM Fundamentals
45 multiple-choice questions and 22 flashcards on Transformer Architecture and LLM Fundamentals, about 15% of the NVIDIA NCA Gen AI LLMs bank. Every one carries a written rationale.
Transformer Architecture and LLM Fundamentals is one of 8 chapters in CoStudy's NVIDIA NCA Gen AI LLMs bank, and it holds 45 of the bank's 310 multiple-choice questions — roughly 15% 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.
10 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.
Transformer self-attention computes:
Answer: A — softmax(QKᵀ/√d_k)V
A) Correct — scaled dot-product attention: Q · Kᵀ → scale by √d_k → softmax → weight V. B) Wrong operation. C) CNNs, not transformers. D) RNNs.
Which statement about Mixture-of-Experts (MoE) transformers is correct?
Answer: A — A router activates only a few expert FFNs per token
B) That describes dense models. A) Correct — sparse routing activates a small subset of experts per token, giving a high total parameter count at much lower per-token compute. C) Attention layers remain. D) MoE works fine with decoders such as Mixtral.
ReAct pattern alternates between:
Answer: C — Thought, Action (tool call), and Observation (result)
A) Those are training stages. C) Correct — ReAct loops: the model thinks, chooses an action, executes it, observes the result, and continues until the goal is met. Foundation of agents. B/D) Unrelated.
'Lost in the middle' problem in LLMs:
Answer: D — Mid-context information is attended to less than ends
A) Unrelated. D) Correct — Liu et al. (2023) showed a serial-position effect: models use information at the start and end of the context far better than material in the middle. Mitigate by structuring prompts, summarizing and reranking. B/C) Not the phenomenon.
GPT-style models use which transformer variant?
Answer: C — Decoder-only stack, autoregressive with causal masking
A) BERT-style. C) Correct — GPT uses a decoder-only stack with causal masking, generating one token at a time. B) T5, BART. D) Not a transformer variant.
Layer normalization in modern transformers is typically applied:
Answer: A — Before attention and before the FFN, called Pre-LN
B) Insufficient for stability. A) Correct — Pre-LN is the de facto choice in GPT/Llama-style stacks and trains more stably than Post-LN. C) That is too late to help. D) The softmax is not normalized this way.
Rotary Position Embeddings (RoPE) primarily encode position information by:
Answer: A — Rotating query and key vectors by position-dependent angles
B) That is the original absolute scheme used by GPT-2. A) Correct — RoPE applies a position-dependent rotation to Q and K, giving relative-position behavior in the dot product. C) Sinusoidal encoding is a different scheme. D) Not how RoPE works.
FlashAttention improves performance primarily by:
Answer: C — Tiling attention in on-chip SRAM to cut HBM traffic
A) That is Linformer-style approximation. C) Correct — FlashAttention is exact but I/O-aware, tiling and recomputing scores in fast on-chip SRAM to reduce HBM reads and writes. B) A different research direction. D) Quantized attention is separate work.
A support assistant must produce consistent, factual answers to identical policy questions. The BEST decoding configuration is:
Answer: B — A low temperature with greedy or near-greedy selection
B) Correct — flattening randomness maximizes reproducibility and factual adherence for policy answers. A) A near-default sampling setup introduces run-to-run variation this use case cannot tolerate. C) Raising temperature further increases diversity and hallucination risk. D) Adding high temperature to beam search reintroduces the variability beam search was meant to reduce.
Which architecture choice is associated with Llama-style models?
Answer: C — RoPE, RMSNorm, SwiGLU, and a decoder-only stack
A) That is original GPT-2 style. C) Correct — the Llama family uses RoPE positions, RMSNorm, SwiGLU activations and a decoder-only stack. B) That describes BERT-ish models. D) Mixes unrelated choices.
4 cards from the 22 in this chapter.
Why use multiple attention heads instead of one wide attention operation?
Each head projects into its own lower-dimensional subspace, so different heads can specialize on different relationships — syntactic dependency, coreference, positional locality — in parallel. Their outputs are concatenated and linearly projected, giving the layer several distinct relational views at the same total compute cost as one wide head.
Position bias / 'Lost in the middle'?
LLMs attend more to start + end of context. Important info in middle may be ignored. Mitigate: structure prompts, reranking.
Zero-shot vs Few-shot prompting?
Zero-shot: task description only. Few-shot: include 2-10 examples in prompt to demonstrate format.
Contrast greedy decoding, beam search, top-k, and top-p sampling.
Greedy takes the single highest-probability token each step — fast but repetitive. Beam search keeps several partial sequences and picks the best total likelihood, favoring fluent but generic text. Top-k samples from the k most probable tokens. Top-p, or nucleus sampling, samples from the smallest set of tokens whose cumulative probability exceeds p, so the candidate pool adapts to how confident the model is.
These are a sample. The full Transformer Architecture and LLM Fundamentals chapter runs 67 items with per-chapter progress tracking, on the web and in the iOS app.
Open NVIDIA NCA Gen AI LLMs in CoStudy →