Skill 5.2.2

Diagnose and resolve FM integration issues to identify and fix API integration problems specific to GenAI services (for example, by using error logging, request validation, response analysis)

Key Concepts

Common Bedrock errors are ValidationException (malformed request, unsupported parameter, conversation not alternating roles, input too long), AccessDeniedException (missing IAM permission, unsupported Region, denied by a policy or SCP, or model access not available), ResourceNotFoundException (wrong model ID or ARN), ThrottlingException (quota exceeded), ModelTimeoutException and ServiceUnavailableException. Some models must be called through an inference profile ID rather than the base model ID.

Error logging records the error code, request ID, model ID and request size. Request validation against a schema before calling catches format errors early. Response analysis checks stop reasons, empty content, guardrail interventions and unexpected formats.