AIP-C01 · Question #49
A company uses an AI assistant application to summarize the company's website content and provide information to customers. The company plans to use Amazon Bedrock to give the application access to…
The correct answer is C. Create one AWS CDK application. Configure the application to invoke the Amazon Bedrock FMs. A single AWS CDK application that invokes Amazon Bedrock FMs through a configuration parameter (e.g., an environment variable or CDK context value) is the cleanest solution. Product owners can update the model ID in the CDK configuration and redeploy to either environment…
Question
A company uses an AI assistant application to summarize the company's website content and provide information to customers. The company plans to use Amazon Bedrock to give the application access to a foundation model (FM). The company needs to deploy the AI assistant application to a development environment and a production environment. The solution must integrate the environments with the FM. The company wants to test the effectiveness of various FMs in each environment. The solution must provide product owners with the ability to easily switch between FMs for testing purposes in each environment. Which solution will meet these requirements?
Options
- ACreate one AWS CDK application. Create multiple pipelines in AWS CodePipeline. Configure
- BCreate a separate AWS CDK application for each environment. Configure the applications to
- CCreate one AWS CDK application. Configure the application to invoke the Amazon Bedrock FMs
- DCreate one AWS CDK application for the production environment. Configure the application to
How the community answered
(31 responses)- A13% (4)
- B6% (2)
- C77% (24)
- D3% (1)
Explanation
A single AWS CDK application that invokes Amazon Bedrock FMs through a configuration parameter (e.g., an environment variable or CDK context value) is the cleanest solution. Product owners can update the model ID in the CDK configuration and redeploy to either environment without changing application code. This approach supports multiple environments from one codebase and makes FM switching trivial. Option A (multiple CodePipeline pipelines) adds deployment complexity without addressing the FM-switching requirement. Option B (separate CDK apps per environment) creates code duplication and makes FM changes harder to keep in sync. Option D (CDK app only for production) ignores the development environment requirement entirely.
Topics
Community Discussion
No community discussion yet for this question.