Flashcardsfor IT Certifications

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.

Last updated: · Report an error on this page

Show all 10 Tokens & Context Windows practice questions and answers
  1. 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.
  2. What is a context window?
    The maximum number of tokens (prompt + history + documents + output) a model can process in one request.
  3. Symptom that the context window is exceeded?
    Errors, truncated inputs, or the model 'forgetting' earlier conversation or document content.
  4. How do token counts affect cost?
    Most GenAI pricing is per input and output token, so long prompts and outputs cost more.
  5. How do token counts affect latency?
    More input and output tokens take longer to process, slowing responses.
  6. How do you handle documents larger than the context window?
    Chunk and summarize, or use RAG to retrieve only relevant passages.
  7. What is the 'lost in the middle' effect?
    Models may pay less attention to information buried in the middle of very long contexts.
  8. What is max output tokens?
    A setting that caps response length, controlling cost and verbosity.
  9. Business trade-off of larger context windows?
    More information can be included, but cost and latency increase and relevance may suffer.
  10. What is prompt caching?
    Reusing processed prompt prefixes across requests to reduce cost and latency (supported in Amazon Bedrock).