Introduction to Prompt Management and Governance
Managing prompts as governed assets with Amazon Bedrock Prompt Management, auditing prompt changes and usage with CloudTrail and CloudWatch Logs, and assuring prompt quality with automated regression testing.
- 3 lessons
- Module quiz
In a production generative AI application, the prompt is as important as the code: a one-word change can alter behaviour for every user. Yet prompts are often stored as strings scattered through application code, changed without review and impossible to trace when something goes wrong. Treating prompts as governed production assets solves this.
Amazon Bedrock Prompt Management stores prompts as resources with variables, model settings and variants, and creates immutable versions that applications invoke by ARN. Approval workflows ensure that changes are reviewed before they reach production. Audit trails record who changed a prompt, through AWS CloudTrail, and what was actually sent to and returned by the model, through model invocation logs. Automated regression tests check every new version against a baseline before release.
What the exam expects
A frequently tested distinction is that CloudTrail records API calls, such as who updated a prompt, but not prompt content, which comes from model invocation logs. Questions also test invoking a managed prompt version and re-running prompt tests when the model changes, not only when the prompt does.
How this module is organised
Managing Prompts as Versioned Resources with Bedrock Prompt Management explains prompts, variables, variants and versions, and how applications invoke them. Governing Prompts with Approvals and Audit Trails explains approval workflows, template repositories and auditing. Regression Testing Prompts Before Release explains how prompt tests are designed and used to gate releases.