Optimizing & Tuning Agents practice test
Making an agent cheaper, faster and better in the right order: cutting steps and context, fixing tools, caching and routing, optimising prompts against a metric with DSPy, reinforcement learning with verifiable rewards and GRPO, and distilling routers and small models from production traces, each change proven on held-out tasks. The pool for this topic holds 10 easy, 8 medium and 6 hard items. Each answer comes with its reasoning and a link to the question or concept page it was drawn from.
Sample items with answers
Cutting steps and context is cheap, reversible and attacks the main cost driver: each step re-reading a growing history. Weight changes come last, when a stable task and a trusted grader exist.
Every model call reads the whole context so far, so input grows with each step. Trimming results, clearing history and caching the stable prefix reduce it.
After the test
Recognising a right option is not the same as producing the answer for a panel. For that, work through these: