Course menuAIP-C01

Exams / AIP-C01 / Tuning inference parameters (temperature, top-p, top-k, stop sequences) / Question 1

AIP-C01 practice question: Tuning inference parameters (temperature, top-p, top-k, stop sequences)

Operational Efficiency and Optimization for GenAI Applications A free question from our original AIP-C01 practice exam. Try it, then open the answer to see why each option is right or wrong.

Last verified against current AWS documentation ·How we write our questions

A dental group uses a model on Amazon Bedrock to read patient referral emails and extract the referral number, the appointment date and the insurance amount into a JSON record. A downstream scheduling system rejects any record that does not match the expected format.

The same email often produces slightly different values or wording across runs, so the extracted fields change between two runs of the job. Auditors want the same email to produce the same record each time it is processed.

The extraction must stay on the same model and keep the JSON format, and the output should be as repeatable as the model allows.

Which change meets these requirements?

Choose one answer.

  1. A. Set the temperature to 0 and leave top-p at its default, so the model picks the most likely tokens and the same email gives nearly the same record each run.
  2. B. Raise the temperature to 0.9, run each email three times, and keep the most common value for each field, so that the random variation is removed by voting across the runs.
  3. C. Set top-k to 500 and top-p to 1.0 so that the model considers a wider range of word choices, which gives the extraction more room to find the correct referral number.
  4. D. Remove the JSON format instruction, and add a stop sequence of a closing brace so that the model ends each response early and the record is shorter.
Show the answer and explanation

Answer: A

Explanation

A temperature of 0 makes the model's sampling nearly deterministic, so the same email tends to yield the same extracted record, and the JSON instruction is kept. Higher temperature, wider sampling and format-breaking stop sequences all increase variation or break the schema.

Study

Keep practicing

Answer questions with a score at the end, or practice just this topic with the explanation after each one. No sign-up needed.

Want more on Tuning inference parameters (temperature, top-p, top-k, stop sequences)? The 5 full-length practice sets have 5 more Tuning inference parameters (temperature, top-p, top-k, stop sequences) questions, 375 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets