Quiz 4 Question 9 of 20

A developer is building an agent that calls an external deployment MCP tool. Occasionally the deployment tool returns a transient 503 Service Unavailable error. Other times it returns a 400 Bad Request indicating a permanent configuration error. The developer wants to retry transient failures but immediately escalate permanent errors without retrying. Which implementation strategy correctly handles both cases?

Select an answer to reveal the explanation.

Motivation