D1: Tokens & Context Windows
AWS AI Business Strategist exam practice questions · 10 flashcards
Question
What is a token?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Tokens & Context Windows practice questions and answers
- What is a token?A chunk of text (roughly ¾ of a word in English) that models read and generate; usage is usually priced per token.
- What is a context window?The maximum number of tokens (prompt + history + documents + output) a model can process in one request.
- Symptom that the context window is exceeded?Errors, truncated inputs, or the model 'forgetting' earlier conversation or document content.
- How do token counts affect cost?Most GenAI pricing is per input and output token, so long prompts and outputs cost more.
- How do token counts affect latency?More input and output tokens take longer to process, slowing responses.
- How do you handle documents larger than the context window?Chunk and summarize, or use RAG to retrieve only relevant passages.
- What is the 'lost in the middle' effect?Models may pay less attention to information buried in the middle of very long contexts.
- What is max output tokens?A setting that caps response length, controlling cost and verbosity.
- Business trade-off of larger context windows?More information can be included, but cost and latency increase and relevance may suffer.
- What is prompt caching?Reusing processed prompt prefixes across requests to reduce cost and latency (supported in Amazon Bedrock).