Sub topic 1
What the Well-Architected Framework Is and Why It Exists
Prerequisites
This chapter assumes you have:
- Basic familiarity with core AWS services such as EC2, S3, IAM and VPC.
- A general understanding of cloud computing concepts, such as on-demand resources and pay-as-you-go pricing.
- An idea of how a typical multi-tier application (web, application and database layers) is deployed and operated.
You do not need to have run a review before. This chapter explains what the framework is, why AWS publishes it, and how the rest of this tutorial is organized.
The problem the framework addresses
Building a workload on AWS is easy. Building one that is secure, reliable, fast and affordable is harder, and teams often discover the gaps only after an outage, a breach or a surprising bill.
Early architecture decisions are cheap to change on a whiteboard and expensive to change in production. A single-AZ database, a shared administrator account, or a missing alarm each looks harmless on day one. The same choices can cause serious incidents later.
AWS has reviewed a very large number of customer architectures. The AWS Well-Architected Framework is the distilled result: a set of questions, design principles and best practices that describe what good looks like and help you compare your own workload against it.
A workload is a collection of resources and code that together deliver business value, such as an orders API with its database, queues and monitoring. The workload is the unit you review.
What the framework contains
The framework is documentation and a review method. It is not a service you deploy and it does not change your resources. It has these parts:
- Six pillars. Each pillar is a focus area: operational excellence, security, reliability, performance efficiency, cost optimization and sustainability.
- Design principles. Short statements for each pillar, such as "automate changes" or "stop guessing capacity".
- Questions. Each pillar asks questions, such as how you manage identities or how you design for failure.
- Best practices. Under each question sit concrete practices. Your answers record which ones you follow.
- Risk levels. Based on your answers, the review flags issues as high risk or medium risk.
The following table shows how these pieces relate.
| Element | What it is | Example |
|---|---|---|
| Pillar | A top-level area of concern | Security |
| Question | A prompt inside a pillar | How do you protect your data in transit? |
| Best practice | A practice you may or may not follow | Enforce encryption in transit |
| Risk level | The result of missing practices | High risk |
The six pillars at a glance
Later chapters cover each pillar in depth. For now, learn the goal of each one.
| Pillar | Goal |
|---|---|
| Operational Excellence | Run workloads effectively, gain insight into operations and keep improving processes |
| Security | Protect data, systems and assets |
| Reliability | Recover from failures and meet demand |
| Performance Efficiency | Use computing resources efficiently as needs and technology change |
| Cost Optimization | Deliver business value at the lowest price point |
| Sustainability | Reduce the environmental impact of running workloads |
The six pillars are not independent. A choice that improves one often costs something in another. Running a database across several Availability Zones raises reliability and also raises cost. A later chapter on trade-offs covers how to make these decisions deliberately instead of by accident.
Shared responsibility shapes the framework
AWS and the customer divide the work of security and operations. AWS is responsible for the security of the cloud, meaning the facilities, hardware and managed service infrastructure. You are responsible for security and resilience in the cloud, meaning your data, identity configuration, network rules and application code.
This matters for the framework because every best practice is aimed at the part you control. When you review a workload, you are judging your decisions, not AWS's data centers. The next chapter covers this model in detail.
Why the framework exists
There are four practical reasons to use it.
- A common vocabulary. Teams, managers and auditors can discuss "a high risk issue in the reliability pillar" and mean the same thing.
- Early detection. Reviewing a design before launch, and again at major changes, finds problems while they are cheap to fix.
- Prioritization. Risk levels turn a long list of possible improvements into an ordered one, so you fix what matters first.
- Measurable progress. Recorded results let you show that the number of risks went down between reviews.
The framework is not a checklist to pass
A common mistake is to treat a review as a certification. It is not. There is no pass or fail score, and a workload with zero flagged risks is not guaranteed to be correct. The framework is a structured conversation that surfaces risks, and your team decides which ones to accept, defer or fix.
Other common misunderstandings:
- "It only applies to new designs." Reviews are most useful on running workloads too, and they are meant to repeat over the workload's life.
- "It is only for architects." Developers, operations staff, security engineers and product owners all hold part of the answers.
- "Every best practice must be followed." Some practices cost more than the risk they remove. You may knowingly accept a risk if you record the reason.
How a review works, in outline
A review is a repeating cycle. Later chapters give the details.
The AWS Well-Architected Tool is the free AWS service that records this process. It stores your answers, calculates risk counts, suggests improvement items and keeps milestones. A lens adds questions for a specific kind of workload, such as serverless or SaaS applications.
A first look at the tool
You can define a workload with the AWS CLI. This command registers an example orders API so it can be reviewed against the core framework lens.
aws wellarchitected create-workload \
--workload-name "orders-api" \
--description "Customer order processing API" \
--environment PRODUCTION \
--lenses wellarchitected \
--aws-regions us-east-1 \
--review-owner "[email protected]"Here is what the options do:
--workload-nameand--descriptionidentify the workload in the tool.--environmentisPRODUCTIONorPREPRODUCTION. It records how critical the workload is.--lenses wellarchitectedapplies the core framework. The aliaswellarchitectedmeans the AWS Well-Architected Framework lens.--aws-regionslists the Regions where the workload runs.--review-ownernames the person accountable for the review.
The command returns a workload ID. You need that ID for later commands such as listing answers.
A concrete example of a best practice
Best practices are specific enough to act on. Under the Security pillar, one practice is to protect data in transit. For S3, a bucket policy can deny any request that does not use TLS:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DenyInsecureTransport",
"Effect": "Deny",
"Principal": "*",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::example-bucket",
"arn:aws:s3:::example-bucket/*"
],
"Condition": {
"Bool": { "aws:SecureTransport": "false" }
}
}
]
}The aws:SecureTransport condition key is false when a request uses plain HTTP. The policy denies those requests for both the bucket and the objects in it. In a review, you would answer the data-in-transit question by pointing to controls like this one.
Not every best practice maps to one policy or one setting. Many are about process, such as holding a post-incident review or testing a recovery plan. The framework covers people and process as well as technology.
Common errors when starting out
- Reviewing too much at once. A whole company is not a workload. Pick one workload with a clear boundary.
- Answering from memory or assumption. Check the actual configuration. A belief that "we encrypt everything" should be confirmed.
- Having one person answer alone. Questions span development, operations and security. Gather the right people.
- Reviewing once and stopping. Architectures drift. Plan to repeat the review after major changes.
- Ignoring trade-offs. Fixing every risk in one pillar can raise cost or complexity elsewhere.
Where this chapter fits
The remaining chapters follow this order. First the shared responsibility model, then each pillar, then the trade-offs between them. After that come questions and best practices, risk levels, the review process, the Well-Architected Tool, lenses, and finally turning findings into an improvement plan with milestones.
Exercise
A colleague says, "We passed our Well-Architected review, so our orders API is secure and we never need to review it again." Give two reasons this statement is wrong.
Show answer
First, a review has no pass or fail result. It surfaces risks, and a low risk count does not prove a workload is secure. Second, architectures and threats change, so reviews are meant to repeat after major changes, with milestones used to measure progress. Also, the tool only records the team's own answers, so inaccurate answers give a misleading result.
Exercise
Name the six pillars, and state which of them a decision to run a database across multiple Availability Zones mainly improves and which it may worsen.
Show answer
The pillars are Operational Excellence, Security, Reliability, Performance Efficiency, Cost Optimization and Sustainability. A multi-AZ database mainly improves Reliability. It may worsen Cost Optimization, because you pay for additional capacity, and it can affect Sustainability through extra resource use.