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 questionsDomain Explain modeling in AI/ML
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.
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.
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.
Keep practicing
Take the free AIF-C01 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other AIF-C01 practice questions
- Question 1A company makes forecasts each quarter to decide how to optimize operations to meet expec…
- Question 2An AI practitioner has a database of animal photos. The AI practitioner wants to automati…
- Question 3A loan company is building a generative AI-based solution to offer new applicants discoun…
- Question 4What are tokens in the context of generative AI models?
- Question 5A company has installed a security camer a. The company uses an ML model to evaluate the …
- Question 7Which option is a benefit of ongoing pre-training when fine-tuning a foundation model (FM…
