About this course
This is independent educational content. It is not affiliated with, sponsored by, or endorsed by Amazon Web Services (AWS) or Amazon.com, Inc. "AWS" and AWS service names are trademarks of Amazon.com, Inc. or its affiliates and are used here only to identify the subject matter. Service features, limits, and pricing change over time, so always confirm against the official AWS documentation before making important decisions.
Explain it simply
Explain it simply
Imagine asking an experienced building inspector to walk through a house before you move in. They do not redesign it. They ask structured questions — is the wiring safe, will the roof survive a storm, is the heating wasting money — and hand you a ranked list of things to fix.
The AWS Well-Architected Framework is that inspector for cloud workloads. It is a set of questions and best practices grouped into six pillars. You answer the questions honestly for one workload, the Well-Architected Tool marks each answer as high, medium or no risk, and you finish with a prioritized improvement plan instead of a vague feeling that something might be wrong.
Problem → Why → Solution
The problem — architectures accumulate instead of being designed
Most AWS architectures are not designed; they accumulate. A startup launches with one EC2 instance and a single-AZ database because that was fastest. A year later there are 40 services and three teams, and nobody can answer simple questions: what happens if us-east-1a fails, who gets paged, why did the bill jump 30% last month, and is any customer data stored unencrypted?
Without a shared checklist, every architecture review depends on whoever happens to be in the room. One senior engineer worries only about security, another only about cost, and the gaps between their personal checklists are exactly where incidents come from.
# Created during launch week "just to get it working" — never revisited.
aws rds create-db-instance \
--db-instance-identifier orders-db \
--db-instance-class db.t3.medium \
--engine postgres \
--master-username app \
--manage-master-user-password \
--allocated-storage 20 \
--no-multi-az \
--backup-retention-period 0 \
--publicly-accessible
# Single AZ, no automated backups, reachable from the internet.Why ad-hoc reviews fail
Ad-hoc reviews are inconsistent and leave no record. You cannot compare this quarter with last quarter, you cannot prove to an auditor that risks were considered, and the riskiest decisions — like the zero-backup database above — are usually made in a hurry and never revisited.
Core concept — six pillars and their trade-offs
The framework organizes architectural best practice into six pillars. Each pillar has design principles (the mindset) and review questions (the checks). A question such as 'How do you back up data?' offers several best-practice choices; the fewer you can honestly select, the higher the risk recorded for that question.
| Pillar | What it asks | Example best practice |
|---|---|---|
| Operational excellence | Can you run, observe and improve the workload? | Infrastructure as code, small reversible changes, runbooks |
| Security | Are identities, data and networks protected? | Least privilege, encryption at rest and in transit, traceability |
| Reliability | Does it recover from failure and meet demand? | Multi-AZ, tested backups, automatic recovery |
| Performance efficiency | Are you using the right resource types and sizes? | Load testing, choosing managed or serverless where it fits |
| Cost optimization | Are you paying only for value delivered? | Right-sizing, Savings Plans, deleting idle resources |
| Sustainability | Are you minimizing environmental impact? | Maximizing utilization, efficient hardware such as Graviton |
Above all pillars sit general design principles: stop guessing capacity, test at production scale, automate so experiments are cheap, allow architectures to evolve, drive decisions with data, and improve through game days that simulate real failures.
- High risk issue (HRI)
- A review finding where the architecture lacks a best practice whose absence could significantly hurt the business. A medium risk issue (MRI) is similar, with a smaller impact.
The pillars are not independent. Running a database in Multi-AZ improves reliability but roughly doubles the instance cost. Caching improves performance but adds a component to monitor. Strict network isolation improves security but can slow delivery. The framework does not pretend these tensions away; it asks you to make them visible and deliberate.
A common rule in AWS guidance is that security and operational excellence are rarely traded away, while reliability, performance and cost are balanced against business needs. An internal admin tool may accept single-AZ downtime to save money; a payment API should not. Sustainability usually moves with cost: an idle, oversized instance wastes both money and energy.
PILLAR TRADE-OFFS
-----------------
+-----------------------------+
| Business requirements |
| (RTO, budget, latency SLO) |
+--------------+--------------+
|
+------------------+------------------+
| | |
v v v
+-------------+ +-------------+ +-------------+
| Reliability |<-->| Performance |<-->| Cost |
| Multi-AZ | | caching | | right-size |
+-------------+ +-------------+ +------+------+
|
moves with --> Sustainability
---------------------------------------------------------
Foundation, rarely traded: Security + Operational Excellence- Define one workload
- Answer pillar questions
- Rank HRIs and MRIs
- Fix the top risks
- Save a milestone, repeat
A review is a snapshot, not a certificate. The value comes from repeating it every few months and watching the HRI count fall.
Run a review from the CLI
The Well-Architected Tool is usually used in the console, but every step has an API, which lets platform teams create workloads from a template and pull risk counts into dashboards. The script below registers a workload with the core framework lens plus the Serverless lens, then reads back the risk summary after the team has answered the questions in the console.
#!/usr/bin/env bash
set -euo pipefail
# 1. Register the workload: one system you can review as a unit
WORKLOAD_ID=$(aws wellarchitected create-workload \
--workload-name "orders-api-prod" \
--description "Order capture API: API Gateway, Lambda, DynamoDB" \
--environment PRODUCTION \
--aws-regions us-east-1 \
--review-owner "platform-team@example.com" \
--lenses wellarchitected serverless \
--query WorkloadId --output text)
echo "Workload: $WORKLOAD_ID"
# 2. The team answers the questions in the console, pillar by pillar.
# 3. High and medium risk counts per pillar (core framework lens)
COLS='[PillarId,RiskCounts.HIGH,RiskCounts.MEDIUM]'
aws wellarchitected get-lens-review \
--workload-id "$WORKLOAD_ID" \
--lens-alias wellarchitected \
--query "LensReview.PillarReviewSummaries[].$COLS" \
--output table
# 4. Which reliability questions are high risk?
aws wellarchitected list-lens-review-improvements \
--workload-id "$WORKLOAD_ID" \
--lens-alias wellarchitected \
--pillar-id reliability \
--query "ImprovementSummaries[?Risk=='HIGH'].QuestionTitle" \
--output text
# 5. Freeze today's state so the next review can be compared with it
aws wellarchitected create-milestone \
--workload-id "$WORKLOAD_ID" \
--milestone-name "2026-Q4-baseline"Code breakdown
- create-workload
--lenses wellarchitected serverlessA workload is one system with a clear owner and boundary. `wellarchitected` is the core six-pillar lens; `serverless` adds questions specific to Lambda and API Gateway designs.
- --environment
--environment PRODUCTIONEither PRODUCTION or PREPRODUCTION. Teams usually prioritize production workloads and review pre-production ones just before launch.
- get-lens-review
--query "LensReview.PillarReviewSummaries[].$COLS"Prints the HIGH and MEDIUM risk counts for each pillar as a table. Teams push these numbers into a dashboard to watch the trend over time.
- list-lens-review-improvements
--query "ImprovementSummaries[?Risk=='HIGH'].QuestionTitle"Filters the reliability pillar down to the HIGH risk questions. Each improvement summary also carries a link to the guidance for fixing it.
- create-milestone
--milestone-name "2026-Q4-baseline"Saves the current answers and risks as a read-only snapshot, so the next review can show exactly what improved.
Sample output (IDs and counts will differ)
Workload: 5c8a1e0f2b3d4a6e7f8091a2b3c4d5e6
-------------------------------------------
| GetLensReview |
+--------------------------+------+-------+
| operationalExcellence | 2 | 3 |
| security | 3 | 1 |
| reliability | 2 | 2 |
| performance | 0 | 2 |
| costOptimization | 1 | 4 |
| sustainability | 0 | 3 |
+--------------------------+------+-------+
How do you back up data? How do you design your workload to withstand component failures?
{
"WorkloadId": "5c8a1e0f2b3d4a6e7f8091a2b3c4d5e6",
"MilestoneNumber": 1
}Lenses — extra questions for specific workload types
The core framework lens is deliberately generic. A lens adds domain-specific questions on top of the six pillars. The Serverless lens, for example, asks how you control Lambda concurrency, whether functions are idempotent when an event source retries, and where failed events go — details that generic questions written with EC2 in mind can miss.
The lens catalog includes official AWS lenses such as SaaS, data analytics and machine learning. You can also write a custom lens in JSON that encodes your company's internal standards (for example, 'every service has an on-call rotation') and share it across accounts. Add lenses selectively: every irrelevant lens makes the review longer and fills it with 'not applicable' answers.
Turning findings into an improvement plan
The tool produces an improvement plan: a prioritized list of HRIs and MRIs with links to guidance. A list fixes nothing by itself, so effective teams follow a routine like this.
Triage the HRIs
For each HRI, decide whether to fix it or accept the risk. If you accept it, write the reason in the question's notes.
Attach an owner and a ticket
Turn every fix into a backlog ticket with one owner and a date. Findings without owners die inside the tool.
Fix it in infrastructure as code
Fix the problem in CloudFormation, CDK or Terraform rather than by hand, so every new environment inherits the fix.
Update the answer and save a new milestone
Once the fix is deployed, re-answer the question. The next milestone records the drop in risk count.
In production
In real production
In practice, companies run Well-Architected reviews at three moments: before a major launch, after a significant incident, and on a regular cadence (yearly or quarterly) for critical systems. A first review of a real production workload often takes half a day to a full day with the right people present — an engineer who knows the code, someone who carries the pager and someone who sees the bill. Reviews done by one architect alone from documents tend to record optimistic answers.
Mature platform teams scale reviews by encoding answers as guardrails. If every new account already has CloudTrail, GuardDuty and EBS encryption by default, dozens of security questions are answered once, centrally, instead of per workload. The review can then focus on what is genuinely unique to each workload: its data, its failure modes and its cost profile.
Results are often reported to leadership as an HRI trend, and engineering roadmaps reserve some capacity for this 'reliability debt'.
Common mistakes
Common mistakes
Treating the review as a pass/fail audit
Teams tick every best practice to 'look good', the risk count shows zero, and nothing about reality changes. Answer for what is true today — a review with honest HRIs is worth far more than a perfect score built on wishful answers.
Reviewing everything as one workload
If 'the whole platform' is one workload, the answers become vague — how do you answer the backup question when some services have backups and others do not? Define a workload as one system with a clear owner and boundary, such as the orders API.
Never revisiting
Running one review and calling it done is the most common failure. The architecture changes every month and an old review no longer describes the running system. Link every HRI to a ticket, save milestones, and re-review critical workloads on a schedule.
💰 Cost & Cleanup
The Well-Architected Tool itself has no charge, and this lab only creates a workload record, so it costs nothing. The improvements a review recommends (Multi-AZ, backups, extra monitoring) can cost money — that is a business decision you make per finding. Delete practice workloads so your workload list stays meaningful.
Clean up when you are done
# Remove the practice workload (its milestones are deleted with it)
aws wellarchitected delete-workload --workload-id "$WORKLOAD_ID"Mini challenge
Review a workload you know
Pick a system you have built (for example the static website or Lambda API from AWS Fundamentals) and run a Well-Architected review of its Reliability pillar.
- Create a PREPRODUCTION workload with the `wellarchitected` lens from the CLI
- Answer every Reliability question honestly in the console
- List the HIGH risk question titles of the Reliability pillar with the CLI
- Create a milestone named `baseline`
Expected: A list of HIGH risk question titles and a response showing `MilestoneNumber: 1`. You should be able to write one sentence per HRI saying whether you will fix it or accept it.
Show hint
Use the JMESPath filter `[?Risk=='HIGH']` in the `--query` of `list-lens-review-improvements`.
Show solution
WORKLOAD_ID=$(aws wellarchitected create-workload \
--workload-name "static-site-review" \
--description "S3 static website from AWS Fundamentals" \
--environment PREPRODUCTION \
--aws-regions us-east-1 \
--review-owner "me@example.com" \
--lenses wellarchitected \
--query WorkloadId --output text)
# ...answer the Reliability questions in the console...
aws wellarchitected list-lens-review-improvements \
--workload-id "$WORKLOAD_ID" \
--lens-alias wellarchitected \
--pillar-id reliability \
--query "ImprovementSummaries[?Risk=='HIGH'].QuestionTitle" \
--output text
aws wellarchitected create-milestone \
--workload-id "$WORKLOAD_ID" \
--milestone-name baselineQuick quiz 1 / 3
Quick quiz 2 / 3
Quick quiz 3 / 3
What to remember
- Six pillars: operational excellence, security, reliability, performance efficiency, cost optimization, sustainability
- Treat security and operational excellence as the foundation; trade reliability, performance and cost deliberately
- Lenses add workload-specific questions, and custom lenses can encode internal standards
- Turn every HRI into an owner, a ticket and an IaC fix, and measure progress with milestones
AWS Well-Architected Framework — AWS Documentation
AWS Well-Architected Tool User Guide — AWS Documentation
AWS Well-Architected overview — AWS Documentation