AIF-C01 practice question: Prompt engineering (2 of 4)
Applications of Foundation Models A free question from our original AIF-C01 practice exam. Try it, then open the answer to see why each option is right or wrong.
An accounting firm's model answers multi-step tax calculation questions wrong when asked for the final figure directly, even though the inputs are correct. The firm needs repeatable answers.
Which prompting technique is MOST likely to improve accuracy?
Choose one answer.
AA. Ask the model to reason through each step before the final answer
BB. Ask for only the final figure, with no working shown in the reply
CC. Remove the background figures so the model is not distracted by them
DD. Raise the temperature so the model tries more possible answers
B. Wrong: Forcing a bare answer removes the room for intermediate steps, which tends to produce more errors on multi-step problems.
C. Wrong: The needed figures are part of the calculation. Removing them makes correct answers less likely.
D. Wrong: Higher temperature adds randomness, so answers become less consistent. It does not improve step-by-step reasoning, and the firm needs repeatable results.
Explanation
Chain-of-thought prompting guides the model through intermediate reasoning before it gives a final answer. AWS's Bedrock blog on advanced prompt engineering describes this step-by-step approach as improving multistep reasoning. The other options either remove needed information or add randomness.
Want more on Prompt engineering? The 5 full-length practice sets have 20 more Prompt engineering questions, 325 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets →