
Explanation:
Why Option B is correct:
Exponential backoff with jitter: This is a standard AWS best practice for handling transient errors and throttling events. It prevents cascading failures by:
AWS X-Ray tracing: This provides the required distributed tracing capabilities to:
AWS SDK integration: Using the AWS SDK's built-in retry mechanisms ensures proper handling of AWS service-specific errors and throttling patterns.
Why Option A is incorrect:
Fixed delay retry mechanism: A fixed 1-second delay doesn't handle throttling effectively and can lead to:
Limited observability: While CloudWatch provides metrics, it lacks the distributed tracing capabilities needed to:
Key Requirements Addressed by Option B:
Best Practices Implemented:
Ultimate access to all questions.
No comments yet.
A company has a generative AI (GenAI) application that uses Amazon Bedrock to provide real-time responses to customer queries. The company has noticed intermittent failures with API calls to foundation models (FMs) during peak traffic periods.
The company needs a solution to handle transient errors and provide detailed observability into FM performance. The solution must prevent cascading failures during throttling events and provide distributed tracing across service boundaries to identify latency contributors. The solution must also enable correlation of performance issues with specific FM characteristics.
Which solution will meet these requirements?
A
Implement a custom retry mechanism with a fixed delay of 1 second between retries. Configure Amazon CloudWatch alarms to monitor the application’s error rates and latency metrics.
B
Configure the AWS SDK with standard retry mode and exponential backoff with jitter. Use AWS X-Ray tracing with annotations to identify and filter service components.