AIP-C01 · Question #46
AIP-C01 Question #46: Real Exam Question with Answer & Explanation
The correct answer is C: Configure an AWS Lambda function to fetch routing configurations from the AWS AppConfig. Option C is the correct solution because AWS AppConfig is designed for real-time, validated, centrally managed configuration changes with safe rollout, immediate propagation, and rollback support--exactly matching the company's requirements. By storing routing rules, cost thresho
Question
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?
Options
- ADeploy an AWS Lambda function that uses environment variables to store routing rules and
- BDeploy Amazon API Gateway REST API request transformation templates to implement routing
- CConfigure an AWS Lambda function to fetch routing configurations from the AWS AppConfig
- DUse AWS Lambda authorizers for an Amazon API Gateway REST API to evaluate routing rules
Explanation
Option C is the correct solution because AWS AppConfig is designed for real-time, validated, centrally managed configuration changes with safe rollout, immediate propagation, and rollback support--exactly matching the company's requirements. By storing routing rules, cost thresholds, regulatory constraints, and A/B testing logic in AWS AppConfig, the company can switch between Amazon Bedrock foundation models without redeploying Lambda code. AppConfig supports feature flags, dynamic configuration updates, JSON schema validation, and staged rollouts, which are essential for safely managing complex and frequently changing routing logic. Using the AWS AppConfig Agent, Lambda functions can retrieve cached configurations efficiently, ensuring low latency even under thousands of concurrent requests. This approach allows the Lambda function to apply proprietary business logic--such as user tier, transaction value, Region compliance, and real-time cost metrics--before selecting the appropriate FM.
Topics
Community Discussion
No community discussion yet for this question.