Concept · Builds on SAA-C03
Cost tools, tags and spending limits
Tag everything, activate the tags, then watch spend with Cost Explorer and Budgets. Use inference profiles to split Bedrock costs.
You know from Solutions Architect Associate
- AWS Budgets alerts on cost or usage, on actual or forecast spend, and can run actions.
- Budgets alert and act. They do not cap spend on their own.
- Cost Explorer shows spend by service, account or tag.
Which team spent it?
- Cost allocation tags and Cost Explorer
Warn me before we overspend
- AWS Budgets alerts
Act when the limit is passed
- Budget actions
Bedrock cost per application
- Application inference profile
Idle resources
- Trusted Advisor
| Question | Tool |
|---|---|
| Which team spent it? | Cost allocation tags and Cost Explorer |
| Warn me before we overspend | AWS Budgets alerts |
| Act when the limit is passed | Budget actions |
| Bedrock cost per application | Application inference profile |
| Idle resources | Trusted Advisor |
IAM principal attribution
- Gives
- Billed dollars per user or role
- Grain
- Per usage type per day
Application inference profile
- Gives
- Billed dollars per tagged profile
- Grain
- Per usage type per day
Request metadata plus logs
- Gives
- Token counts per call
- Grain
- Per request
| Bedrock method | Gives | Grain |
|---|---|---|
| IAM principal attribution | Billed dollars per user or role | Per usage type per day |
| Application inference profile | Billed dollars per tagged profile | Per usage type per day |
| Request metadata plus logs | Token counts per call | Per request |
What it is
Cost allocation tags are how you answer who spent this. Tag the SageMaker AI resources you create: domains, training and processing jobs, endpoints and models. Then activate the tag keys in the Billing and Cost Management console. Tags are not retroactive, and they can take up to 24 hours to appear in Cost Explorer and Cost and Usage Reports. Cost Explorer then groups cost by tag, service or usage type and forecasts the trend. A cost budget filtered by tag gives each team its own alert, and a budget action can apply an IAM policy or stop instances when a limit is passed.
What it is
Bedrock has its own ways to attribute cost. An application inference profile wraps one model, carries your tags, and you call it by ARN in place of the model ID. Its tags reach Cost Explorer as billed dollars per day, which suits per-application cost. IAM principal attribution gives billed dollars per user or role with no extra setup. For per-request detail, send request metadata on each call and read token counts from model invocation logs.
What it is
AWS Trusted Advisor checks the account for cost savings, such as idle or underused resources, and for service quotas. Most of its checks need a Business or higher AWS Support plan. The Billing and Cost Management console holds invoices, payment settings and the tag activation page.
Remember
- Tag domains, jobs and endpoints, then activate the tags in Billing.
- Tags are not retroactive and can take up to 24 hours to show.
- Budgets filtered by tag give per-team alerts. Budget actions can respond.
- Application inference profile: tagged Bedrock cost per application.
Remember
- Per-prompt detail needs request metadata plus invocation logs.
- Trusted Advisor flags idle resources and quota use.
On the exam
- “Show Bedrock cost per application” points to application inference profiles with cost allocation tags.
- “Alert a team at 80 percent of its ML budget” points to an AWS Budgets cost budget filtered by tag.
- “Tags are applied but do not appear in Cost Explorer” points to activating them as cost allocation tags.
- “Find underused resources and quota use” points to Trusted Advisor.
Do not mix it up with
- Purchasing options for ML infrastructureSteady use earns a Savings Plan, interruptible training earns Spot, and a must-have capacity needs a reservation.
- FM inference costs and token monitoringWork out cost from tokens, choose the model tier and buying mode by traffic shape, and count tokens by tag.
- Capacity, quotas and throttlingQuotas cap how much you can run, throttling caps how fast you can call, and capacity errors mean the Region has none to give.
In this task · 4.2
- Inference instance families
- Inference Recommender and right-sizing
- CloudWatch metrics and dashboards for ML
- Logs and tracing to troubleshoot ML systems
- Capacity, quotas and throttling
- Cost tools, tags and spending limits
- Purchasing options for ML infrastructure
- FM inference costs and token monitoring
- Reducing FM usage cost