Courseiva

AIF-C01 Fundamentals of Generative AI Practice Question

A developer is explaining how a large language model generates text so that a business stakeholder understands why the same prompt can yield different answers. Which description accurately captures the generation process?

⚠ Common exam trap

The trap here is assuming the model stores and retrieves whole sentences, when it actually predicts one token at a time from probability distributions over its vocabulary.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

The model predicts a probability distribution over the next token, samples from it, and appends the chosen token to repeat the process.

Text generation is autoregressive and probabilistic. At each step the model computes a distribution over the next token conditioned on everything before it, a token is sampled according to settings such as temperature and top-p, and the sequence grows one token at a time. Stochastic sampling is why identical prompts can yield different outputs, and why temperature changes affect variability.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    The model queries an external search index and paraphrases the top-ranked web page for the prompt.

    Why it's wrong here

    A base language model does not perform live web searches unless it is explicitly wired to a retrieval or browsing tool. Its output comes from parameters learned during training, not from fetching pages at inference time. This misconception would cause the stakeholder to attribute factual errors to bad search results rather than to the model's internal probabilistic generation.

  • ✗

    The model searches a stored database of previously written sentences and returns the closest exact match to the prompt.

    Why it's wrong here

    Language models do not retrieve stored sentences from a database of prior text. They compute probability distributions over tokens from learned parameters. This misconception leads stakeholders to expect deterministic, lookup-style behavior and to be surprised when paraphrased or novel wording appears, which undermines their ability to reason about output variability and evaluation.

  • ✓

    The model predicts a probability distribution over the next token, samples from it, and appends the chosen token to repeat the process.

    Why this is correct

    Generation is autoregressive: given the prompt and tokens produced so far, the model outputs a probability distribution over the vocabulary, a token is selected according to the sampling strategy, and that token is appended before the next prediction. Because sampling is stochastic, the same prompt can produce different completions, which explains the variability the stakeholder observed.

  • ✗

    The model compiles the prompt into a set of if-then rules that deterministically map keywords to canned responses.

    Why it's wrong here

    There is no rule compilation step and no keyword-to-response mapping. The model's behavior emerges from numerical weights applied to token embeddings and attention operations. Describing it as a rules engine would wrongly imply fully predictable output and would mislead the stakeholder about why identical prompts can diverge, since rule engines are deterministic.

About these practice questions

Courseiva writes every AIF-C01 question from scratch — 862 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Amazon Web Services exam blueprint

This AIF-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AIF-C01 exam.