Skip to content
Practice tests · 24 items

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.

Configure a test
Topic
Difficulty
Questions
10 in this pool · about 7 min
Reveal answers
Sign in to startFree account required · retakes favour new items

Sample items with answers

easy · sample
An agent is too expensive. Which change should usually come first?
Fine-tune a smaller model on the agent's past production traces so each call is cheaper
✓Remove steps that never change the outcome and trim what tools return
Switch every step to the cheapest model the provider offers
Train the agent with reinforcement learning on its failures

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.

easy · sample
Why does input usually dominate the cost of a long agent run?
✓Each step re-reads the growing history and tool results
Output tokens are always free with every major provider
System prompts are billed several times per request by most providers, once per tool
Tools charge per token of their own output

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: