Lesson 3 of 3 Designing Generative AI Solutions

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.

ComponentDelivered asStandardises
Knowledge base moduleCDK construct or CloudFormation templateVector store, chunking, KMS encryption, sync
Agent runtime blueprintService Catalog productIAM boundaries, observability, memory configuration
Prompt templatesPrompt Management versionsRole definitions, output formats
Guardrail configurationVersioned guardrail in a shared accountContent, topic and PII policies
Evaluation pipelineCodePipeline templateQuality gates and regression tests

The following diagram shows how approved components reach product teams.

Standardising through reusable components. A platform team publishes approved components, such as a knowledge base module as an infrastructure as code construct, an agent runtime blueprint as a Service Catalog product, and shared guardrails and prompt templates. Product teams launch them self-service, so every deployment gets the same security, observability and cost tracking.
Service Catalog constraints limit the parameters and the launch role.
Scenario questions

Making the standard the easy path

Exam skills 1.1.3

Practise choosing mechanisms that keep many teams' GenAI builds consistent.

Log in to try this activity Interactive activities are free with an account.
Worked example

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.

Check yourself

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.