A TensorFlow model on an Agent Platform endpoint must serve faster at lower cost. The team accepts a small precision impact. Which option targets this directly?
- Exam domain
- Serving and scaling models~20% of the exam
- Difficulty
- Hard
- In this mock
- 10 questions on this domainPractise this domain
Why the exam asks this
Serving and scaling models: Scaling online model serving.
Objective in the exam guide: Tuning ML models for training and serving in production (e.g., simplification techniques, optimizing the ML solution for increased performance, latency, memory, and throughput).
Serving cost compounds over time. The exam checks optimization levers.
Why D is the answer
Use the optimized TensorFlow runtime with model compression optimization
The optimized TensorFlow runtime can use quantization and weight pruning to run models faster, with a small impact on precision.
How it works
The optimized TensorFlow runtime can serve some models faster and at lower cost than standard containers.
Model compression uses quantization and weight pruning, with a small precision impact.
XLA precompilation can merge operations into larger kernels.
Clues in the question
The words that point to the answer, and what each one tells you.
- Accepts a small precision impact
- Compression techniques.
In detail
- XLA precompilation is another optional optimization in this runtime.
- Measure accuracy after enabling compression.
Side by side with look-alikes
| Option | Speeds serving? |
|---|---|
| Optimized runtime with compression | Yes |
| More epochs | No |
| Move training data | No |
| Disable logging | Marginal, and loses visibility |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Increase the training epoch countWrongMost tempting
Epochs change training, not serving speed.
Why it tempts: More training can improve accuracy. But it does not make serving faster.
B. Move the training data to another regionWrong
Training data location does not change serving.
C. Disable request loggingWrong
Logging overhead is small and losing logs hurts monitoring.
D. Use the optimized TensorFlow runtime with model compression optimizationRight
The optimized TensorFlow runtime can use quantization and weight pruning to run models faster, with a small impact on precision.
In practice
- Compare latency and accuracy on the same test set before and after.