D2: Token-Based Pricing
AWS Foundational AI Practitioner exam practice questions · 10 flashcards
Question
How is on-demand GenAI inference priced?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Token-Based Pricing practice questions and answers
- How is on-demand GenAI inference priced?Per input token and per output token; output tokens usually cost more.
- How do long prompts affect cost?More input tokens increase cost per request.
- How does output length affect latency?Models generate tokens sequentially, so longer outputs take longer.
- Ways to reduce token cost?Concise prompts, limit max output tokens, use smaller models, prompt caching, batch inference.
- Why does RAG add token cost?Retrieved chunks are added to the prompt, increasing input tokens.
- How does prompt caching cut cost?Repeated prompt prefixes are cached, charging less for cached tokens and reducing latency.
- Batch inference pricing vs on-demand?Batch is typically about 50% cheaper but asynchronous.
- How do conversation histories affect cost?Each turn resends history, so long chats grow input tokens.
- Image model pricing basis?Typically per image generated, varying by resolution/quality.
- Which tools track GenAI spend?AWS Cost Explorer and AWS Budgets.