Question 1 · choose 1
Several applications use the same customer-letter prompt, which contains placeholders for the customer name, product and tone. Prompt changes are currently made in application code, so a wording change needs three deployments, and nobody can say which wording produced a complaint last month. The team wants one shared template with variables, side-by-side testing of alternative wordings, immutable snapshots that applications pin to, and invocation of the template directly through the Converse API. Which solution meets these requirements?
- AStore the template as a JSON file in a versioned Amazon S3 bucket and have each application download the latest version at startup
- BStore the template in an AWS Systems Manager Parameter Store parameter with a label for each approved wording
- CKeep the template in code but generate it with a shared library that every application imports as a dependency
- DUse Amazon Bedrock Prompt management with variables and variants, create versions, and call Converse with the version ARN
Show the answer and why
AStore the template as a JSON file in a versioned Amazon S3 bucket and have each application download the latest version at startup
Incorrect
S3 versioning keeps history, but there is no variant testing, and the applications still have to assemble the request because Converse cannot invoke a file in S3.
BStore the template in an AWS Systems Manager Parameter Store parameter with a label for each approved wording
Incorrect
Parameter Store can hold text with labels, but it offers no variant comparison and cannot be invoked as a prompt by the Converse API.
CKeep the template in code but generate it with a shared library that every application imports as a dependency
Incorrect
A shared library still ties every wording change to a build and deployment of each application.
DUse Amazon Bedrock Prompt management with variables and variants, create versions, and call Converse with the version ARN
Correct
Prompt management stores templates with variables, lets you compare variants, creates immutable versions, and Converse accepts a prompt ARN as the model ID with promptVariables to fill the placeholders.
Prompt management treats prompts as managed assets: variables, variants for comparison, a draft and immutable versions, and direct invocation by ARN. Pinning applications to a version answers "which wording produced this output", and the invocation logs record the requests.
AWS documentation