AWS Certified Generative AI – Professional (AIP-C01) — Question 12

An ecommerce company operates a global product recommendation system that needs to switch between multiple foundation models (FM) in Amazon Bedrock based on regulations, cost optimization, and performance requirements. The company must apply custom controls based on proprietary business logic, including dynamic cost thresholds, AWS Region-specific compliance rules, and real-time A/B testing across multiple FMs. The system must be able to switch between FMs without deploying new code. The system must route user requests based on complex rules including user tier, transaction value, regulatory zone, and real-time cost metrics that change hourly and require immediate propagation across thousands of concurrent requests.
Which solution will meet these requirements?

Answer options

Correct answer: C

Explanation

The correct answer is C because it allows for dynamic routing based on real-time configurations fetched from AWS AppConfig, enabling the system to adapt to changing business logic without new deployments. Option A requires redeploying code to change environment variables, option B does not support dynamic routing based on complex rules, and option D introduces unnecessary complexity by using authorizers instead of directly handling the routing within the Lambda function.