nerdexam
Amazon

AIF-C01 · Question #96

A company wants to use a large language model (LLM) on Amazon Bedrock for sentiment analysis. The company needs the LLM to produce more consistent responses to the same input prompt. Which…

The correct answer is A. Decrease the temperature value. The temperature parameter in a large language model (LLM) controls the randomness of the model's output. A lower temperature value makes the output more deterministic and consistent, meaning that the model is less likely to produce different results for the same input prompt.

Submitted by yousef_jo· Mar 30, 2026

Question

A company wants to use a large language model (LLM) on Amazon Bedrock for sentiment analysis. The company needs the LLM to produce more consistent responses to the same input prompt. Which adjustment to an inference parameter should the company make to meet these requirements?

Options

  • ADecrease the temperature value
  • BIncrease the temperature value
  • CDecrease the length of output tokens
  • DIncrease the maximum generation length

How the community answered

(31 responses)
  • A
    68% (21)
  • B
    10% (3)
  • C
    19% (6)
  • D
    3% (1)

Explanation

The temperature parameter in a large language model (LLM) controls the randomness of the model's output. A lower temperature value makes the output more deterministic and consistent, meaning that the model is less likely to produce different results for the same input prompt.

Topics

#Amazon Bedrock#LLM inference parameters#Temperature parameter#Model response consistency

Community Discussion

No community discussion yet for this question.

Full AIF-C01 Practice