Well-Architected & Reference Architectures
Designing on AWS — the six pillars of the Well-Architected Framework, disaster recovery strategies with RTO and RPO (backup and restore, pilot light, warm standby, multi-site active-active), cell-based and multi-region architectures, reference designs for a three-tier web app, a serverless API, an event-driven pipeline and a data lake, plus how to approach AWS interview and certification questions.
Knowing individual services is half the job; the other half is combining them into systems that are reliable, secure, efficient and affordable. AWS codifies its experience in the Well-Architected Framework, and a handful of reference architectures cover most real systems. This lesson ties the track together — and doubles as preparation for AWS architecture interviews and the Solutions Architect certifications.
The six pillars
| Pillar | Core question | Key practices |
|---|---|---|
| Operational excellence | Can we run and improve it? | Infrastructure as code, small reversible changes, observability, runbooks, post-incident learning (CloudFormation and CDK) |
| Security | Is data and access protected? | Strong identity, least privilege, traceability, encryption, defence in depth, automated response (Security on AWS) |
| Reliability | Does it recover from failure and meet demand? | Multi-AZ, automatic recovery, scaling, tested backups, limits management (Reliability patterns) |
| Performance efficiency | Are we using the right resources? | Managed and serverless services, right instance types, caching, measuring and experimenting |
| Cost optimisation | Are we paying only for value? | Visibility, right-sizing, commitments, Spot, ownership (Cost optimisation) |
| Sustainability | Are we minimising environmental impact? | High utilisation, efficient hardware (Graviton), scaling to zero, data lifecycle |
The pillars trade off against each other — multi-region active-active improves reliability but costs more and complicates operations. The framework's value is making those trade-offs explicit. The Well-Architected Tool in the console walks a workload through the questions and records risks; lenses add guidance for serverless, SaaS, machine learning and more.
Some design principles from the framework worth memorising:
- Stop guessing capacity — scale with demand.
- Test systems at production scale; automate to make experimentation easy.
- Design for failure: assume components fail and recover automatically.
- Prefer managed services so AWS carries undifferentiated operational work.
- Use data to drive architectural decisions.
Disaster recovery
Two numbers define requirements:
- RTO (Recovery Time Objective): how long the system can be down.
- RPO (Recovery Point Objective): how much data (measured in time) you can afford to lose.
Lower RTO and RPO cost more. Match the strategy to the business impact of each workload — not everything needs active-active.
Building blocks per layer:
| Layer | Cross-region mechanisms |
|---|---|
| Data | S3 Cross-Region Replication, DynamoDB global tables, Aurora Global Database, RDS cross-region replicas, AWS Backup copies |
| Compute | IaC to deploy identical stacks; AMIs and container images replicated (ECR replication) |
| Traffic | Route 53 failover or latency records with health checks; Global Accelerator; CloudFront origin failover (Route 53 and CloudFront) |
| Orchestration | Application Recovery Controller for readiness checks and controlled failover; Elastic Disaster Recovery for server replication |
The rule that matters most: a DR plan you haven't exercised doesn't work. Run game days, fail over for real, and use AWS Fault Injection Service to inject failures safely.
Static stability and cells
Two advanced ideas behind AWS's own services:
- Static stability: the system keeps working during a failure without needing to make changes — e.g. run enough capacity in each AZ to absorb the loss of one before it happens, rather than relying on launching instances during an incident (when the control plane may be impaired).
- Cell-based architecture: split the workload into independent, identical cells (each a full stack serving a subset of customers), with a thin routing layer. A bad deploy or poison request affects one cell, not everyone — limiting blast radius.
Reference architectures
1. Classic three-tier web application
Stateless app tier across three AZs, sessions and hot data in ElastiCache, Aurora with Multi-AZ replicas, static assets on S3 via CloudFront, secrets in Secrets Manager, everything in IaC. Covers most business applications (Load balancing and auto scaling, RDS and Aurora).
2. Serverless API
CloudFront → API Gateway (JWT auth with Cognito) → Lambda → DynamoDB, with EventBridge for domain events and Step Functions for multi-step workflows. Scales to zero, minimal operations (API Gateway and Step Functions, DynamoDB).
3. Event-driven processing pipeline
Buffered, retryable, independently scalable; outputs land in another bucket or table and emit their own events (SQS, SNS and EventBridge).
4. Data lake and analytics
Ingest with Kinesis/Firehose, DMS (database change data capture) or batch uploads into S3 → catalogue with Glue Data Catalog → transform with Glue, EMR or Athena SQL into Parquet/Iceberg tables → query with Athena or Redshift, visualise with QuickSight → govern with Lake Formation permissions. Storage and compute scale independently.
5. Generative AI application
Amazon Bedrock gives API access to foundation models (including Anthropic's Claude) with knowledge bases for retrieval-augmented generation over documents in S3, guardrails, and agents that call tools; SageMaker covers training and hosting your own models (Embeddings and RAG, MLOps).
Approaching AWS design questions
- Clarify requirements: users and traffic, latency targets, availability (RTO/RPO), data size and growth, compliance, budget, team skills (Intro to system design).
- Sketch the simplest architecture that works, preferring managed services.
- Walk the pillars: how does it fail (AZ loss, region loss, bad deploy, dependency outage)? How is it secured? How does it scale? What does it cost?
- Justify each choice with a trade-off: "DynamoDB because access patterns are key-based and traffic is spiky; Aurora if we need ad-hoc queries".
- Discuss operations: IaC, CI/CD, monitoring and alarms, runbooks.
Certification paths, if you want them: Cloud Practitioner (foundations) → Solutions Architect – Associate (the most popular, covering most of this track) → Developer or SysOps Associate → Solutions Architect – Professional or specialty certifications (security, networking, machine learning). Hands-on building matters more than the badge — but the Associate exam is a good structured forcing function.
QWhat is the difference between RTO and RPO, and how do they drive DR design?easy
RTO is the maximum acceptable time to restore service after a disaster; RPO is the maximum acceptable data loss measured in time. Low RPO requires continuous replication of data to another region (Aurora Global Database, DynamoDB global tables, S3 replication) rather than periodic backups; low RTO requires infrastructure already running or quickly scalable in the recovery region plus automated traffic failover. Together they select a strategy from backup-and-restore through pilot light and warm standby to multi-site active-active, with cost rising as both shrink.
QDesign a highly available web application on AWS.medium
Route 53 pointing at CloudFront with WAF; an Application Load Balancer in public subnets across three availability zones; a stateless application tier on ECS Fargate or an Auto Scaling group in private subnets with target-tracking scaling and health checks; sessions and hot data in ElastiCache; Aurora with replicas in other AZs for automatic failover; static content and uploads in S3 served through CloudFront; secrets in Secrets Manager; outbound access via NAT gateways per AZ and VPC endpoints; everything defined in IaC and deployed through a pipeline with blue/green or rolling deployments; CloudWatch alarms on error rate and latency. For regional disasters, add cross-region replication and a DR strategy that matches the RTO and RPO.
QWhat does static stability mean?hard
A statically stable system continues to operate correctly through a failure without needing to make changes or call control-plane APIs during the event. For example, rather than relying on Auto Scaling to launch replacement instances when an AZ fails — which may be slow or impaired precisely during a large event — you pre-provision enough capacity in each remaining AZ to absorb the loss. Data-plane operations keep running even if control planes are degraded.
- The Well-Architected Framework's six pillars — operational excellence, security, reliability, performance efficiency, cost optimisation, sustainability — make trade-offs explicit.
- RTO and RPO select a DR strategy: backup and restore, pilot light, warm standby or multi-site active-active; test it regularly.
- Static stability and cell-based architectures limit the impact of failures.
- A few reference architectures — three-tier, serverless API, event-driven pipeline, data lake, generative AI — cover most systems.
- In interviews, clarify requirements, start simple with managed services, walk the pillars and justify every choice with its trade-off.