Courseiva
Fundamentals of Generative AImediumMultiple ChoiceObjective-mapped

AIF-C01 Fundamentals of Generative AI Practice Question

Exhibit

Refer to the exhibit.

```
{
  "modelId": "amazon.titan-text-lite-v1",
  "contentType": "application/json",
  "accept": "application/json",
  "body": {
    "inputText": "Summarize the following meeting notes: ...",
    "textGenerationConfig": {
      "maxTokenCount": 100,
      "stopSequences": [],
      "temperature": 0,
      "topP": 0.9
    }
  }
}
```

A developer is using the Amazon Bedrock InvokeModel API with the above request to summarize meeting notes. The response is a single word repeated many times. Which parameter is MOST likely causing this issue?

⚠ Common exam trap

AWS often tests the misconception that temperature only affects 'creativity' or 'randomness,' when in fact a temperature of 0 causes deterministic argmax selection, which can paradoxically produce repetitive or stuck outputs rather than simply 'less creative' text.

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

temperature set to 0

A temperature of 0 forces the model to always select the highest-probability token at each step, which can lead to repetitive loops if the most likely token repeatedly points back to itself (e.g., the same word). This deterministic behavior eliminates randomness, causing the model to get stuck in a single-word cycle rather than generating diverse or coherent text.

Answer analysis

Option-by-option breakdown

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

  • topP set to 0.9

    Why it's wrong here

    This is a moderate value that should not cause repetition.

  • stopSequences is empty

    Why it's wrong here

    Empty stop sequences are normal.

  • maxTokenCount set to 100

    Why it's wrong here

    Max token count limits length, not repetition.

  • temperature set to 0

    Why this is correct

    Temperature 0 makes output deterministic and prone to repetition.

About these practice questions

One of 619 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 by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.