Skip to main content

What are common failure modes of agents, and how do you guard against them?

Agents and tools · Intermediate 3

Short answer

Agents loop on the same action, pick the wrong tool or wrong arguments, stop too early or never stop, run up cost, and take risky actions they should not. Guards: a step and spend limit, detecting repeated calls, strict tool schemas, least-privilege permissions, human approval for irreversible actions, and full logging.

Deeper answer

Most failures compound: one wrong tool result leads to a confident wrong plan. Logging every step lets you find where it went off course. Evaluating agents means checking not just the final answer but the path: did it use the right tools, how many steps, how much it cost.

Security belongs here too. An agent that reads untrusted content and can act, such as sending email or changing records, is exposed to prompt injection. OWASP calls the related risk excessive agency: limit what tools can do, and keep a person in the loop for actions with real consequences.

What a strong answer covers

Answer it out loud in the mock interview about 1.5 min

Follow-ups to expect

Common mistakes

Learn it

How agents fail

Today's AI turns are used

Lessons, roadmaps, videos, practice cards and the code playground stay free with your account, with no limit.