The Well-Architected Framework

The six pillars, their design principles, the Well-Architected Tool, and a multi-AZ example.

What is it?

The AWS Well-Architected Framework is a set of best practices for reviewing and improving cloud architectures. It has six pillars, each with design principles:

  • Operational Excellence: run and monitor systems, and keep improving. Principles: perform operations as code, make frequent small reversible changes, refine operations procedures frequently, anticipate failure (pre-mortems, game days), learn from failures.
  • Security: protect data and systems. Principles: strong identity foundation, traceability, security at all layers, automate security, protect data in transit and at rest, keep people away from data (automate access instead of manual handling), no long-lived credentials, prepare for events.
  • Reliability: recover from failure and meet demand. Principles: automatically recover, test recovery procedures, scale horizontally (many small resources instead of one big one, so no single failure takes everything down), stop guessing capacity, manage change through automation.
  • Performance Efficiency: use resources efficiently as needs change. Principles: democratise advanced technologies, go global in minutes, use serverless, experiment more, consider mechanical sympathy (match the technology to how the data is accessed).
  • Cost Optimization: avoid unneeded spend. Principles: implement cloud financial management, adopt a consumption model, measure overall efficiency, stop spending on undifferentiated heavy lifting, analyse and attribute expenditure (tag costs to workload owners).
  • Sustainability: reduce environmental impact. Principles: understand your impact, set sustainability goals, maximise utilisation, adopt more efficient hardware and software, use managed services, reduce downstream impact.

Pillars involve trade-offs. You balance them; you do not max out each one on its own.

General design principles (across all pillars): stop guessing your capacity needs; test systems at production scale; automate to make architecture experiments cheap (infrastructure as code); allow for evolutionary architectures (CI/CD); drive architectures using data; improve through game days (practice failure events).

Architecture qualities to tell apart (a favourite exam topic):

- High availability: the service stays up. Remove single points of failure and keep performance steady; on AWS, run across multiple AZs. - Scalability: the system can grow to handle more load. - Elasticity: it grows and shrinks automatically with demand (Auto Scaling). - Fault tolerance: it keeps working while a component fails. - Disaster recovery: it can be restored after a major failure. Also ask how secure and how expensive a design is.

How the framework is organised: each pillar has its own whitepaper with design principles, definitions, best practices and resources. The Cloud Practitioner exam covers the design principles at a surface level.

  • A component is code, configuration and AWS resources.
  • A workload is a set of components that delivers business value.
  • Milestones mark key architecture changes over time.
  • The technology portfolio is all the workloads a business runs.

AWS's way of working: instead of a central architecture team, AWS prefers distributed teams that own their workloads. They are supported by practices (experts who raise the bar), mechanisms (automated standards checks) and the Amazon Leadership Principles.

The AWS Well-Architected Tool (in the console, free) guides a review of a workload against the pillars. Define a workload (environment such as production or pre-production, Regions) and pick one or more lenses: the core Well-Architected Framework lens, or specialised ones such as Serverless, SaaS or the Foundational Technical Review (FTR) lens. Answer questions such as OPS 1 "How do you determine what your priorities are?", each with inline help. The tool flags high and medium risks, tracks improvement items, and produces a report to share.

AWS Architecture Center: a portal of reference architectures and best practices, many with diagrams and deployable code (CloudFormation or CDK), to turn Well-Architected guidance into real designs.

Explain like I'm 10

Designing a building: you want it safe (security), sturdy in storms (reliability), easy to run day to day (operational excellence), quick to move around in (performance), affordable (cost) and kind to the planet (sustainability). A glass tower may look great and perform well but cost more to heat. The pillars are the checklist that makes you notice the trade-off.

Examples

Making a web app multi-AZ (reliability + performance)

Resources:
  WebASG:
    Type: AWS::AutoScaling::AutoScalingGroup
    Properties:
      MinSize: "2"
      MaxSize: "6"
      DesiredCapacity: "2"
      HealthCheckType: ELB
      HealthCheckGracePeriod: 120
      VPCZoneIdentifier:
        - !Ref PrivateSubnetA   # AZ a
        - !Ref PrivateSubnetB   # AZ b
      LaunchTemplate:
        LaunchTemplateId: !Ref WebLaunchTemplate
        Version: !GetAtt WebLaunchTemplate.LatestVersionNumber
      TargetGroupARNs:
        - !Ref WebTargetGroup
  Database:
    Type: AWS::RDS::DBInstance
    Properties:
      Engine: postgres
      DBInstanceClass: db.t4g.medium
      AllocatedStorage: "50"
      MultiAZ: true
      StorageEncrypted: true
      MasterUsername: appadmin
      ManageMasterUserPassword: true

Instances in two AZs behind a load balancer plus a Multi-AZ encrypted database means losing a data center does not take the app down. Required companion resources (VPC, subnets, launch template) are omitted for brevity.

Review checklist by pillar

Pillar                  Quick review question
----------------------  -----------------------------------------------------
Operational Excellence  Is everything deployed from code and observable?
Security                Least privilege, encryption, logging, MFA everywhere?
Reliability             What happens if an AZ fails? Have we tested restore?
Performance Efficiency  Are we using the right instance/storage/DB type?
Cost Optimization       Are resources right-sized and tagged? Commitments used?
Sustainability          Are we maximising utilisation and removing idle resources?

How it works

A Well-Architected Review asks questions per pillar about one workload, finds high and medium risk items, and produces an improvement plan. It is an ongoing practice, not a one-time pass/fail audit. The Well-Architected Tool stores the answers, tracks milestones and can generate a report. 'Lenses' extend the framework for specific industries and technologies, such as serverless or SaaS.

            +--------- Operational Excellence ---------+
            |  Security | Reliability | Performance    |
            |  Cost Optimization | Sustainability      |
            +------------------------------------------+
   Review -> find risks -> improve -> measure -> repeat

Why does it exist?

Teams keep making the same mistakes: single points of failure, wide permissions, forgotten costs. The framework sums up lessons from many customer reviews so you catch known problems before they become incidents.

When to use it

Review before launch, after major changes, and on a schedule for critical workloads. Use it as a design checklist and as shared language for engineers, managers and auditors.

When not to use it

It will not make decisions for you or guarantee compliance. Do not apply every best practice to the max on a small prototype; weigh cost and effort against business risk.

Common mistakes

  • Forgetting that there are six pillars - Sustainability was added after the original five.

  • Optimising one pillar (e.g. cost) while silently sacrificing another (reliability).

  • Treating the review as paperwork instead of acting on the findings.

  • Reviewing once and never again.

  • Confusing the Well-Architected Framework with the Cloud Adoption Framework.

  • Using 'scalable' and 'elastic' as synonyms - elasticity means scaling out and back in automatically.

  • Confusing fault tolerance (keeps running through a failure) with disaster recovery (restores after one).

  • Thinking the Well-Architected Tool is a paid audit - it is a free self-service questionnaire.

Practice exercises

  1. Easy:

    Name all six pillars and give one design principle for each.

  2. Medium:

    Take a simple architecture (single EC2 + RDS) and list risks by pillar.

  3. Medium:

    Show how adding multi-AZ affects reliability, cost and operational complexity.

  4. Hard:

    Choose between two designs (serverless vs EC2 fleet) using all six pillars and justify a recommendation.

  5. Easy:

    Define high availability, scalability, elasticity, fault tolerance and disaster recovery in one sentence each.

  6. Medium:

    Create a workload in the Well-Architected Tool, choose the Serverless lens, answer the first operational excellence questions and read the risks it flags.

Interview questions

What are the six pillars?

Operational Excellence, Security, Reliability, Performance Efficiency, Cost Optimization and Sustainability.

What does the Reliability pillar emphasise?

Recovering automatically from failures, testing recovery, scaling horizontally, and managing change.

What is the Well-Architected Tool?

A console service that helps you review workloads against the pillars and track improvements.

Exam-style: A company deploys across multiple AZs. Which pillar does this primarily support?

Reliability.

Exam-style: Which pillar covers using managed services and maximising utilisation to reduce environmental impact?

Sustainability.

Exam-style: 'Perform operations as code' is a design principle of which pillar?

Operational Excellence.

Exam-style: 'Democratize advanced technologies' and 'go global in minutes' belong to which pillar?

Performance Efficiency.

Exam-style: 'Stop spending money on undifferentiated heavy lifting' belongs to which pillar?

Cost Optimization.

Exam-style: 'Keep people away from data' and 'enable traceability' belong to which pillar?

Security.

Exam-style: A system automatically adds and removes instances as demand changes. Which quality is this?

Elasticity.

Exam-style: Which AWS resource offers reference architectures with deployable code?

The AWS Architecture Center.

What is a lens in the Well-Architected Tool?

An extra set of questions and best practices for a specific technology or industry, such as Serverless or SaaS.

What is a game day?

A planned exercise that simulates failures or events in production-like conditions to test people, processes and systems.