AWS Certified AI Practitioner (AIF-C01) — Question 201

A company wants to add generative AI functionality to its application by integrating a large language model (LLM). The responses from the LLM must be as deterministic and as stable as possible.

Which solution meets these requirements?

Answer options

Correct answer: A

Explanation

Setting the temperature parameter to 0 ensures that the LLM generates the same output for the same input every time, resulting in deterministic responses. The other options do not effectively control the randomness of the LLM's output; using a temperature of 1 increases variability, and modifying the prompt does not guarantee consistent results.