AI Cloud Architect

Resilience testing your agents on Amazon Bedrock AgentCore

AWSBlog post by Richard WhitworthAWS Architecture Blog

When an AI agent's tools fail or return corrupted data, does it fail safe or confidently fabricate an answer? Learn how to inject tool-level faults (cancelled calls, corrupted responses, stripped fields) into a Strands agent on Amazon Bedrock AgentCore using AWS Fault Injection Service, and build the observability to tell a safe failure from a silent one.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Shows how to inject tool-level faults into a Strands agent on AgentCore using AWS FIS, and how to tell a safe failure from a silent one.

Who it is for

Teams running Strands agents on Bedrock AgentCore that need to test how agents handle failing or corrupted tool results.

Key points

  • AWS says a prompt with failure-handling instructions made the agent decline instead of answering from training data in its test runs.
  • Fault injection is controlled by SSM parameters read on each invocation, with a 10-second cache.
  • Infrastructure error metrics stayed at 0 during tool faults, so availability monitoring alone misses these failures.
  • Pydantic output validation with EMF logs is suggested as a mitigation; the post notes structured outputs do not check tool results.