Well-Architected pillars and trade-offs
Review the workload, not the service list
Well-Architected is a framework for examining how a workload meets business and technical needs. Start with a fictional order service: 20 requests/s normally, 200 at peak, p95 response under 300 ms for accepting an order, 99.9% monthly availability, RPO 5 minutes, RTO 30 minutes and a modeled monthly budget of $400. Orders are internal data containing customer identifiers. These are targets, not observed results or AWS guarantees. Define the scope: order acceptance and status, not payment settlement. In a 30-day month, 99.9% time-based availability allows 43.2 minutes of downtime; a request-based SLI would instead count good requests over eligible requests. RTO applies to recovery from a disruption, not the monthly downtime allowance.
Six perspectives on one workload
Operational excellence: release safely, assign on-call ownership, and measure rollback. Security: classify data, isolate tenant access, use narrowly scoped roles and encryption, and test denial of cross-tenant access. Reliability: isolate Availability Zone failures, bound retries, and restore data against RPO/RTO. Performance efficiency: choose capacity for peak demand and measure tail latency, not just averages. Cost optimization: compare total recurring spend including logs, queues, network and idle resources against useful work. Sustainability: reduce unnecessary processing, retention and idle capacity, and measure resource use per completed order; a lower bill is not proof of lower carbon emissions. Each pillar adds questions, not a mandatory list of products.
Compare two designs with hard constraints
Design A uses API Gateway, Lambda, DynamoDB and SQS for deferred fulfillment. Design B uses ALB, ECS on Fargate and RDS with Multi-AZ deployment, plus SQS for background work. Assume A has estimated p95 180 ms, recovery 25 minutes, data loss 3 minutes and cost $240; B has 120 ms, 20 minutes, 2 minutes and $390. These invented values are not benchmarks or prices. Both fit these numerical constraints, but neither proves availability or security. A has less idle compute to manage and requires known key-based access patterns; B suits relational queries and container workloads but needs connection and capacity planning. If mandatory relational joins cannot be redesigned, A fails despite lower estimated cost. A queue absorbs bursts but introduces completion delay and duplicate-handling requirements.
{ "requirements": { "p95_ms": 300, "rto_min": 30, "rpo_min": 5, "budget_usd": 400, "joins": false }, "designs": [ { "id": "A", "p95_ms": 180, "rto_min": 25, "rpo_min": 3, "cost_usd": 240, "joins": false }, { "id": "B", "p95_ms": 120, "rto_min": 20, "rpo_min": 2, "cost_usd": 390, "joins": true } ], "risks": [ { "id": "restore", "likelihood": 3, "impact": 3, "mandatory": true, "owner": "data team" }, { "id": "queue", "likelihood": 3, "impact": 2, "mandatory": false, "owner": "application team" }, { "id": "logs", "likelihood": 1, "impact": 2, "mandatory": false, "owner": "operations team" } ]}Use lenses and verify assumptions
Use the base framework with a relevant lens, such as Serverless for A, and consult AWS Architecture Center and Prescriptive Guidance for patterns. A lens adds workload-specific questions rather than replacing requirements. Threat-model the public API, authorization boundary, queue consumer and data store; record unauthorized access, duplicate orders and regional disruption as risks. Compare EC2 when host control is required, ECS for managed container orchestration, EKS when Kubernetes capabilities justify its operational burden, and Lambda for bounded event-driven functions. Test concurrency, cold starts, failover and cost at peak before deciding. The offline exercise compares declared estimates only; it is not an official AWS review.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Well-Architected pillars and trade-offs — knowledge check
Compare architecture constraints, decisions and risk evidence.
What does a 99.9% time-based target allow in 30 days?
Which pillar examines useful work relative to resource consumption and environmental impact?
A requires key-based access but mandatory SQL joins cannot be redesigned. What happens?
What does a lens add?
What do the example latency values demonstrate?