🔥 3-day streak
AWS Certified Generative AI Developer - Professional140 / 166
Question 140 of 166
A financial analytics team runs a customer-facing chatbot on Amazon Bedrock that uses tool-use (function calling) to fetch account balances. In production, roughly 3% of model turns cause the downstream Lambda parser to throw an exception because the model occasionally returns a tool-use block with slightly malformed or extra prose around the JSON arguments. These failures currently return a raw stack trace to the user and are hard to diagnose because there is no correlation between the failing request and the model output that caused it. The team wants to make the application resilient and debuggable without retraining or changing the model. Which approach BEST addresses both the resilience and the diagnosability requirements?
Reviewed for accuracy · Report an issueNext question