A GenAI application's inference bill keeps rising. Which two are AI-specific cost drivers to monitor and optimize? (Select TWO.)
- Exam domain
- Operating, Monitoring, and Securing ML and AI Solutions24% of the exam
- Difficulty
- Medium
- In this mock
- 21 questions on this domainPractise this domain
Why the exam asks this
Task 4.2: Optimize and manage ML and AI infrastructure costs and performance.
Objective in the exam guide: Skill 4.2.10: Monitor AI-specific cost patterns (for example, token usage optimization, embedding computation costs, vector database storage optimization).
GenAI bills grow along different lines than classic ML. Knowing where the money goes is the first step in controlling it.
Why A and E are the answers
A multiple-response question. Choose two. There is no credit for picking only some of them.
Embedding computation and vector store storage as content grows
Token usage per request, including long prompts and outputs
Tokens drive model cost, and embeddings plus vector storage grow with content.
Remember: GenAI cost lives in tokens, embeddings and vector storage.
How it works
Foundation model inference is billed by tokens, so long prompts and outputs drive cost.
RAG adds embedding cost for every document embedded, and storage cost for the vector store.
Each driver has its own fixes: trimming and caching for tokens, incremental embedding for documents.
Clues in the question
The words that point to the answer, and what each one tells you.
- Inference bill keeps rising
- Look at GenAI-specific drivers.
In detail
- Prompt trimming, caching and smaller models reduce token cost.
- Re-embedding only changed documents controls embedding cost.
Side by side with look-alikes
| Driver | Fix |
|---|---|
| Tokens per request | Trim prompts, cache, smaller models |
| Embedding computation | Embed only changed content |
| Vector storage | Remove stale vectors, smaller dimensions |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Embedding computation and vector store storage as content growsRight
Tokens drive model cost, and embeddings plus vector storage grow with content.
B. The color of the dashboardWrong
Unrelated to cost.
C. The number of engineers on the teamWrongMost tempting
Staffing is not an inference cost.
Why it tempts: Staff cost is real spending. But it is not part of the inference bill.
D. The AWS console language settingWrong
Unrelated to cost.
E. Token usage per request, including long prompts and outputsRight
Tokens drive model cost, and embeddings plus vector storage grow with content.
In practice
- Track tokens per request and embedding jobs as cost metrics.
Use case
An illustrative scenario, not a real incident.
A team finds that re-embedding all documents nightly costs more than inference, and switches to embedding only changed files.
See how it works
xychart-beta x-axis ["Model tokens", "Embeddings", "Vector storage", "Other"] y-axis "Share of cost (%)" 0 --> 70 bar [60, 22, 12, 6]
How to read this chart
- Each bar is one part of the monthly GenAI bill.
- Model tokens are the largest share, then embedding work.
- Optimizing the largest bars first gives the biggest savings.