AIF-C01 practice question 6 of 25

A company wants to use a large language model (LLM) on Amazon Bedrock for sentiment analysis. The company wants to know how much information can fit into one prompt. Which consideration will inform the company's decision?

Full set: 397 questions

Domain Explain modeling in AI/ML

Answer options
A: Temperature
B: Context window Correct answer
C: Batch size
D: Model size
Correct Answer:
B. Context window
Explanation

The context window refers to the maximum number of tokens (which can be words, parts of words, or characters) that a large language model (LLM) can process at one time. This includes both the user's input prompt and the model's generated response. Therefore, the size of the context window directly determines how much information, such as a lengthy customer review for sentiment analysis, can be submitted in a single prompt. Different models available through Amazon Bedrock have different context window sizes, making this the critical consideration for the company's question.

Why Incorrect

A. Temperature is an inference parameter that controls the randomness and creativity of the model's output, not the amount of input it can process.
C. Batch size refers to the number of separate prompts processed in parallel during inference, which improves throughput but does not affect the size of a single prompt.
D. Model size, measured in parameters, relates to the model's overall complexity and capability but is not the direct measure of its input length capacity.

References

1. Official Vendor Documentation: Amazon Bedrock User Guide

"Base models in Amazon Bedrock". In the descriptions for each foundation model

the documentation specifies the maximum context length. For example

for Anthropic's Claude models

it states

"Maximum context window: 200

000 tokens." This directly links the term "context window" to the maximum input size.

2. Official Vendor Documentation: AWS

"Prompt Engineering Guidelines" documentation. In the "Prompt basics" section

it explains

"The length of the context window varies by model. The context window is the text that the model considers before it generates more text." This confirms that the context window is the key factor for how much information can be included.

3. University Courseware: Stanford University

CS324 - Large Language Models

Lecture 2: "Capabilities". The lecture notes define "context length" (or context window) as a fundamental property of transformer models that limits the maximum length of the input sequence the model can handle.

Scroll to Top