Skill 3.1.4
Optimize costs for AI/ML workloads by selecting the appropriate service tier, implementing batching strategies, and designing caching patterns (for example, by using Amazon Bedrock, Amazon SageMaker AI).
Key Concepts
Bedrock service tiers: Standard is the default on-demand tier; Priority gives faster responses at a premium for latency-critical traffic; Flex charges less (about half of Standard) for workloads that tolerate longer response times; and Reserved capacity provides guaranteed tokens per minute for a fixed monthly fee. Batch inference processes large sets of prompts from S3 asynchronously at about 50% of on-demand price. Prompt caching stores repeated prompt prefixes, such as long system prompts or documents, so later requests pay much less for those tokens and return faster. Choosing the smallest model that meets quality targets, model distillation and intelligent prompt routing between models of one family reduce cost further.
SageMaker AI: serverless inference and asynchronous endpoints that scale to zero avoid paying for idle instances; multi-model endpoints and inference components share instances among models; batch transform avoids persistent endpoints; Machine Learning Savings Plans discount steady usage; and Spot instances cut training cost with managed spot training. Application-level caching of identical questions and answers (semantic caching) avoids calling the model at all.