Claude Certified Architect, Foundations · Test 5 · question 3 of 10
Agent Architecture & Orchestrationeasy
A team deploys an autonomous coding agent built on the Claude Agent SDK. Occasionally an open-ended prompt such as "improve this codebase" makes the agent run for a very long time and generate a large bill. The team wants a hard stop on both the number of tool-use round trips and the dollar cost, and wants the application to be able to detect which limit was hit. What should they do?