Course menuAIF-C01

Exams / AIF-C01 / Choosing FMs and inference parameters / Question 6

AIF-C01 practice question: Choosing FMs and inference parameters (6 of 7)

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.

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

A tax advisory firm's assistant sends the same 40-page tax guide, followed by a short customer question, to a model on Amazon Bedrock thousands of times a day.

Responses are slow and input costs are high. The guide changes only once a year.

Which feature addresses BOTH problems with the least change?

Choose one answer.

  1. A. Prompt caching, with the unchanging tax guide placed first in the prompt
  2. B. A higher temperature, so the model processes the guide more quickly
  3. C. Continued pre-training on the guide, repeated for every customer question
  4. D. A larger maximum response length, so fewer separate requests are needed
Show the answer and explanation

Answer: A

  • A. Right: Correct. Prompt caching reuses the processed prefix of a prompt, so the unchanging guide does not need to be processed again. That lowers latency and input cost, provided the guide comes before the variable question. Learn more: Prompt caching for faster model inference (opens in a new tab)
  • B. Wrong: Temperature controls randomness in the output. It does not change how fast the model reads input or how many input tokens are billed.
  • C. Wrong: Customization runs as a training job, which would be slow and costly if repeated for every question. It is not a per-request feature.
  • D. Wrong: A longer response limit only permits longer replies. It does not reduce the size of the guide sent with each request, and it adds output tokens.

Explanation

Prompt caching on Amazon Bedrock stores a contiguous prefix of the prompt, such as a long document or system prompt, so repeated requests reuse it. Cached tokens are billed at a lower read rate and reduce latency. The cache needs a stable prefix, so the static guide must come before the customer question. Cache entries expire after a time-to-live, five minutes by default for most models, which resets on each hit.

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 Choosing FMs and inference parameters? The 5 full-length practice sets have 11 more Choosing FMs and inference parameters questions, 325 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets