
Answer-first summary for fast verification
Answer: Maximum length of generated output tokens
**Explanation:** The **maxTokens** parameter in Amazon Bedrock controls the maximum number of tokens that can be generated in the model's output (completion). - **Option B is correct**: It sets the maximum length of generated output tokens. - **Option A is incorrect**: Input length is typically controlled by other parameters or model constraints, not maxTokens. - **Option C is incorrect**: maxTokens only controls the output tokens, not the combined input+output length. - **Option D is incorrect**: Vocabulary size is a fixed property of the model, not a configurable parameter. Setting maxTokens to 256 ensures that the generated response will not exceed 256 tokens, which is useful for controlling response length and managing costs.
Author: Jin H
Ultimate access to all questions.
No comments yet.
A developer using Bedrock sets the maxTokens parameter to 256. What does this configuration control?
A
Maximum number of input words allowed
B
Maximum length of generated output tokens
C
Total size of both prompt and completion combined
D
Model's vocabulary size