Standardizing Workloads with the Well-Architected Generative AI Lens
This lesson explains how the AWS Well-Architected Framework, its Generative AI Lens and reusable components give many teams a shared standard for security, cost and quality.
Learning outcomes
After completing this lesson, you will be able to:
- Describe the Well-Architected pillars and the Generative AI Lens.
- Review workloads with the AWS Well-Architected Tool.
- Explain how reusable components and Service Catalog products make the compliant design the easiest one to use.
The Well-Architected Framework and its lenses
The AWS Well-Architected Framework describes design principles and best practices in six pillars: operational excellence, security, reliability, performance efficiency, cost optimisation and sustainability. A lens extends the framework for a workload type with additional questions and practices. The Generative AI Lens covers the generative AI lifecycle: scoping, model selection, customisation, development and integration, deployment, and continuous improvement.
Examples of lens guidance include evaluating models against task-specific criteria rather than general benchmarks, protecting prompts and responses with guardrails, implementing least privilege for agents and tools, monitoring token usage and cost per request, using prompt caching and right-sized models, designing for model and Regional failure, and collecting user feedback for continuous improvement.
Reviewing workloads with the AWS Well-Architected Tool
The AWS Well-Architected Tool in the console records a workload, applies the framework and selected lenses (the Generative AI Lens is available from the lens catalogue), and walks the team through the questions. Answers identify high-risk and medium-risk issues, and the tool produces an improvement plan and a report. Milestones save the state of a review so progress can be tracked over time. Organisations can also create custom lenses that encode their own generative AI policies, such as approved models or mandatory guardrails, and share them with all accounts.
Standardized technical components
A standard is followed when the compliant way is also the easiest way. Platform teams therefore publish reusable components: AWS CDK constructs or CloudFormation modules that create a knowledge base with approved chunking and encryption, an agent runtime with logging and IAM boundaries, or a GenAI gateway; shared prompt templates in Prompt Management; organization-wide guardrail configurations; and evaluation pipelines.
AWS Service Catalog distributes approved architectures as products that teams launch self-service, with constraints on parameters and the IAM role used to launch. Using the same components across deployment scenarios, such as internal assistants, customer-facing chat and batch document processing, produces consistent security, observability and cost tracking. The following table lists typical components and what they standardise.
| Component | Delivered as | Standardises |
|---|---|---|
| Knowledge base module | CDK construct or CloudFormation template | Vector store, chunking, KMS encryption, sync |
| Agent runtime blueprint | Service Catalog product | IAM boundaries, observability, memory configuration |
| Prompt templates | Prompt Management versions | Role definitions, output formats |
| Guardrail configuration | Versioned guardrail in a shared account | Content, topic and PII policies |
| Evaluation pipeline | CodePipeline template | Quality gates and regression tests |
The following diagram shows how approved components reach product teams.

Making the standard the easy path
Consistency across teams
Five product teams are building RAG assistants. An audit finds different vector stores, unencrypted indexes in two teams and no guardrails in three. The company wants consistent implementations with the least ongoing review effort.
Reviewing each workload manually would find issues but not prevent them. The better answer is to review the architecture against the Generative AI Lens, then publish a hardened RAG pattern (knowledge base with encryption, approved guardrail, logging) as an IaC construct and a Service Catalog product, and require teams to use it. Future reviews then focus on what differs from the standard.
Where are Generative AI Lens reviews run and their improvements tracked?
Show answer
In the AWS Well-Architected Tool, which records the review, the risks found and milestones over time.
Exam Tips
Remember for the exam
- The Generative AI Lens adds generative AI best practices to the six Well-Architected pillars.
- Run lens reviews in the Well-Architected Tool and track milestones.
- Make the compliant path the easy path: IaC constructs and Service Catalog products.
- Custom lenses encode organization-specific generative AI policies.