D5: LLM Fundamentals
Claude Certified Developer – Foundations exam practice questions · 10 flashcards
Question
How does an LLM generate text?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 LLM Fundamentals practice questions and answers
- How does an LLM generate text?By predicting the next token repeatedly, each based on everything before it.
- In LLM terms, what is a token?A chunk of text (roughly 3–4 characters of English) that models read and generate; billing and limits use tokens.
- What is the context window?The total tokens the model can consider at once: system prompt, messages, tool definitions and output.
- What is sampling?Choosing each next token from the probability distribution, influenced by temperature.
- Why are LLM outputs non-deterministic?Sampling introduces randomness; even low temperature doesn't guarantee identical outputs.
- How do you make outputs more consistent?Lower temperature, clear instructions, examples, structured outputs and validation.
- Do models know events after their training cutoff?No, unless given via context, retrieval or tools like web search.
- Why can LLMs hallucinate?They generate plausible text from patterns, not verified lookup.
- Why does input length affect cost and latency?More tokens mean more processing and higher input charges.
- What happens when the context window is exceeded?The request fails or context must be trimmed/compacted.