Lesson 1 of 1 AWS Well-Architected Framework

Using the AWS Well-Architected Framework to Choose Between Designs

This lesson explains the AWS Well-Architected Framework, on which the exam guide says SAA-C03 solutions are based. Its pillars explain why one answer is better than another, so knowing them makes the reasoning behind many questions easier to follow.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe the six pillars of the Well-Architected Framework.
  • Use the pillars to choose between options that would all work.
  • Describe what the AWS Well-Architected Tool provides.

The six pillars

The AWS Well-Architected Framework describes best practices for designing and operating workloads in the cloud, organised into six pillars. Each pillar is a set of design principles and review questions about one quality of a workload. The four exam domains map closely to four of them: secure, resilient, high-performing and cost-optimised architectures correspond to the security, reliability, performance efficiency and cost optimisation pillars.

Operational excellence

Operational excellence concerns how a workload is run, monitored and improved. Its principles are to perform operations as code, so that infrastructure and procedures are defined in templates and scripts rather than carried out by hand; to make small, frequent and reversible changes, so that a faulty change affects little and can be undone; and to learn from failures. In an architecture, it appears as infrastructure as code, automated deployments and monitoring that leads to action.

Security

The security pillar concerns protecting data, systems and assets. Its foundation is identity: every person and workload has its own identity with only the permissions it needs (least privilege), preferably through IAM roles with temporary credentials. Traceability means that actions are logged and monitored, and security at all layers means that controls apply at the network, the instance, the application and the data, including encryption in transit and at rest.

Reliability

Reliability is the ability of a workload to perform its function correctly, recover from failures and meet demand. Its principles are to recover automatically, for example by replacing unhealthy instances; to scale horizontally, using many small resources so that the loss of one has little effect; to stop guessing capacity by scaling with demand; and to manage change through automation. In an architecture, it appears as deployments across several Availability Zones, health checks and the removal of single points of failure.

Performance efficiency

Performance efficiency concerns using computing resources efficiently as requirements and technology change. Its principles are to use managed and serverless services, which remove capacity management; to go global in minutes by deploying close to users; and to experiment with instance types, storage options and architectures to find the best fit for the workload.

Cost optimisation

Cost optimisation concerns delivering business value at the lowest price. Its principles are to pay only for what is used, to measure efficiency, to choose the pricing model that matches the usage pattern, such as Savings Plans for steady use and Spot Instances for interruptible work, and to attribute costs to their owners with tags so that teams can see what they spend.

Sustainability

Sustainability concerns reducing the environmental impact of a workload. Its principles are to maximise the utilisation of provisioned resources, to use managed services that share infrastructure efficiently, and to reduce the resources that each unit of work needs. Many sustainability measures, such as right-sizing and scaling to demand, also lower cost.

The following table summarises each pillar and the design principles most often reflected in exam answers.

PillarFocusTypical design principles
Operational excellenceRunning and monitoring systems and improving processesPerform operations as code; make small, frequent, reversible changes; learn from failures
SecurityProtecting data, systems and assetsStrong identity foundation and least privilege; traceability; security at all layers; encryption in transit and at rest
ReliabilityRecovering from failure and meeting demandRecover automatically; scale horizontally; stop guessing capacity; manage change through automation
Performance efficiencyUsing resources efficiently as demand changesUse managed and serverless services; go global in minutes; experiment with instance types and architectures
Cost optimisationAvoiding unnecessary costPay only for what you use; measure efficiency; use the right pricing model; attribute costs with tags
SustainabilityReducing environmental impactMaximise utilisation; use managed services; reduce the resources each unit of work needs

The following diagram shows the six pillars and the exam domains that correspond to four of them.

The six pillars of the AWS Well-Architected Framework: operational excellence, security, reliability, performance efficiency, cost optimisation and sustainability. The four SAA-C03 domains map to four of them: secure architectures to security, resilient to reliability, high-performing to performance efficiency and cost-optimised to cost optimisation.
Operational excellence and sustainability have no domain of their own, but their principles still appear in answers, such as automation and managed services.
Sort into groups

Which pillar?

Exam skills 2.1.6 · 2.2.4

Place each design principle in its Well-Architected pillar.

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

Using the pillars to answer questions

Many questions present several options that would all work, and the pillars explain which is best. When a question asks for the LEAST operational overhead, the operational excellence and performance efficiency principle of preferring managed and serverless services points to options such as Fargate, Lambda, Aurora or DynamoDB rather than self-managed software on EC2. When it asks for the MOST cost-effective option, the cost optimisation pillar points to matching the pricing model and storage tier to the usage pattern. When it asks for high availability, the reliability pillar points to multiple Availability Zones, automatic recovery and loose coupling. The following list gives common signals.

  • "Least operational overhead" or "fully managed": prefer managed and serverless services.
  • "Most cost-effective": match pricing models (Savings Plans, Spot, on-demand) and storage tiers to usage.
  • "Highly available" or "fault tolerant": multiple AZs, health checks, automatic replacement, no single points of failure.
  • "Least privilege" or "securely": IAM roles, scoped policies, encryption and private connectivity.
Scenario questions

Qualifiers and pillars

Exam skills 2.1.6 · 4.2.3

Use the qualifier in each requirement to pick the best design.

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

The AWS Well-Architected Tool

The AWS Well-Architected Tool is a free service in the console for reviewing a workload against the framework. A team answers the questions for each pillar, and the tool reports high-risk and medium-risk issues with links to guidance and produces an improvement plan. Lenses add questions for specific workload types, such as the Serverless Lens, and milestones record the state of a review over time so that progress can be tracked.

Worked example

A company runs a customer portal on a single large EC2 instance with a self-managed MySQL database on the same instance. A Well-Architected review finds high-risk issues in reliability and operational excellence. Which changes address them?

For reliability, the single instance is a single point of failure, so the web tier moves to an Auto Scaling group across two Availability Zones behind an Application Load Balancer, and the database moves to Amazon RDS with a Multi-AZ deployment, which fails over automatically. For operational excellence, RDS removes database patching and backups from the team's work, and the infrastructure is defined in CloudFormation so that changes are small, reviewed and reversible. Recording a milestone in the Well-Architected Tool before and after the changes shows the reduction in risks.

Check yourself

Which pillar does a requirement to recover automatically from an Availability Zone failure belong to?

Show answer

Reliability, which covers recovering from failures and meeting demand. Performance efficiency is about using resources efficiently, and operational excellence about running and improving workloads.

Exam Tips

Remember for the exam

  • The six pillars: operational excellence, security, reliability, performance efficiency, cost optimisation, sustainability.
  • "Least operational overhead" points to managed and serverless services.
  • Reliability means multiple AZs, automatic recovery, horizontal scaling and no single points of failure.
  • The Well-Architected Tool reviews a workload and produces high-risk issues and an improvement plan.