D1: Dynamic Model Selection & Provider Switching
AWS Certified Generative AI Developer – Professional exam practice questions · 10 flashcards
Question
Why design for switching models without code changes?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Dynamic Model Selection & Provider Switching practice questions and answers
- Why design for switching models without code changes?Models evolve quickly; switch for cost/quality/availability without redeploying.
- AppConfig for model selection?Store model ID/parameters as dynamic configuration or feature flags read at runtime.
- Lambda + API Gateway model abstraction?API layer routes requests to configured model/provider.
- Parameter Store for model IDs?Simple runtime lookup of model identifiers per environment.
- Bedrock Converse API for abstraction?Uniform API across providers simplifies switching.
- Inference profiles?Bedrock application/cross-region inference profiles track usage/cost and route across Regions.
- GenAI gateway?Central layer handling routing, auth, quotas, logging, guardrails and provider abstraction.
- Canary switch between models?AppConfig gradual rollout of new model ID with alarms for rollback.
- Prompt compatibility when switching?Re-test prompts; maintain per-model prompt variants in Prompt Management.
- Scenario: switch from model A to model B in production instantly if quality drops. Design?Model ID in AppConfig with feature flag, read by Lambda at runtime.