A dashboard assistant answers the same ten morning questions for every manager, and each answer takes six seconds. How do you make those answers feel instant?
- Exam domain
- Operational Efficiency and Optimization for GenAI Applications12% of the exam
- Difficulty
- Medium
- In this mock
- 12 questions on this domainPractise this domain
Why the exam asks this
Task 4.2: Optimize application performance.
Objective in the exam guide: Skill 4.2.1: Create responsive AI systems to address latency-cost tradeoffs (for example, by using pre-computation to perform predictable queries, parallel requests for complex workflows, response streaming).
Users judge an assistant by how fast it feels. Professionals should know every latency lever, including avoiding the model call entirely when the question is predictable.
Why D is the answer
Pre-compute the predictable answers on a schedule and serve them from storage
Predictable queries can be answered ahead of time, so users get stored answers with no model wait.
Remember: If you know the question in advance, answer it in advance.
How it works
When the same questions recur at predictable times, their answers can be generated ahead of time.
Serving a stored answer is near-instant and avoids model cost at peak time.
Other latency levers include streaming, running independent model calls in parallel and choosing a faster model.
Clues in the question
The words that point to the answer, and what each one tells you.
- Same ten morning questions
- Predictable queries: pre-compute.
In detail
- Pre-computation, streaming, parallel requests and choosing faster models are all latency tools.
- Pre-computation trades a little freshness for speed.
Side by side with look-alikes
| Lever | Best for |
|---|---|
| Pre-computation | Predictable questions |
| Streaming | Long answers to new questions |
| Parallel requests | Independent sub-tasks |
| Faster model | Every request |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Switch to the largest model availableWrongMost tempting
Larger models are usually slower, not faster.
Why it tempts: Bigger feels like better in every way. But larger models are usually slower, so answers would take even longer.
B. Raise the maximum output lengthWrong
Longer outputs take longer to generate.
C. Ask managers to waitWrong
Waiting is the problem, not a fix.
D. Pre-compute the predictable answers on a schedule and serve them from storageRight
If you know the question in advance, answer it in advance.
In practice
- Refresh pre-computed answers when their source data changes.
- Show when each answer was generated.
Use case
An illustrative scenario, not a real incident.
A finance team pre-computes the ten daily briefing answers at 6 a.m., and managers see them instantly at 9.
See how it works
xychart-beta x-axis ["Live model call", "Streaming", "Pre-computed"] y-axis "Seconds" 0 --> 7 bar [6, 0.7, 0.1]
How to read this chart
- A live call makes the manager wait for the full answer.
- Streaming shows the first words quickly, but the answer still takes six seconds to finish.
- A pre-computed answer is ready before anyone asks.