Courseiva

AIF-C01 Fundamentals of Generative AI Practice Question

A developer sets a low temperature value when calling a foundation model through Amazon Bedrock for a use case that extracts structured fields from invoices. A colleague argues that lowering temperature reduces hallucination and guarantees correct extraction. How should the developer respond?

⚠ Common exam trap

The trap here is equating low temperature with factual accuracy, when the parameter only makes sampling more deterministic and can consistently reproduce the same error.

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

✓

Lowering temperature makes sampling more deterministic, which improves consistency but does not guarantee factual correctness or eliminate hallucination.

Temperature governs the randomness of token sampling, so lowering it makes outputs more deterministic and repeatable. Determinism is not the same as correctness: a model can consistently produce the same wrong field value, and hallucinations can persist even at very low temperature. Accurate extraction therefore still depends on model capability, prompt design, and validation logic.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Lowering temperature forces the model to retrieve the correct field values from the invoice image before generating text.

    Why it's wrong here

    Temperature affects sampling during text generation and has no influence on whether the model correctly perceives input content. It cannot trigger a retrieval step or improve extraction accuracy on its own. Extraction quality depends on model capability, input quality, and prompt design rather than the sampling parameter.

  • ✗

    Lowering temperature disables the model's ability to generate any text that was not present in its training data.

    Why it's wrong here

    No sampling setting prevents a model from producing novel token sequences; generation always composes tokens according to learned distributions. Temperature only shifts how sharply those distributions are sampled. Claiming it eliminates novel output misrepresents how decoding works and would give the developer false confidence.

  • ✓

    Lowering temperature makes sampling more deterministic, which improves consistency but does not guarantee factual correctness or eliminate hallucination.

    Why this is correct

    Temperature scales the randomness of token sampling; a low value makes the model favor high-probability tokens so outputs become more repeatable. However, if the model's learned associations are wrong or the input is ambiguous, the deterministic output can still be incorrect. Consistency and accuracy are distinct properties, so the colleague's guarantee claim is unfounded.

  • ✗

    Lowering temperature guarantees the response will conform to the requested JSON schema without any prompt instructions.

    Why it's wrong here

    Schema conformance depends on prompt instructions, model capability, and any structured output features the API offers, not on temperature. A low temperature can make formatting more consistent, but it does not enforce a schema, so malformed output remains possible. The developer still needs explicit formatting guidance and validation.

About these practice questions

One of 862 original AIF-C01 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.