Cloud Architecture — Designing Real Systems
What you'll learn
- How the pieces combine into a real architecture
- The pillars: reliability, cost, security, performance
- Cost awareness — the skill that gets you promoted
- You'll build a cloud cost calculator
Putting the LEGO together 🏗️
You now know the pieces: servers (EC2), storage (S3), databases (RDS), functions (Lambda), networks (VPC), containers, and IaC. Cloud architecture is combining them wisely into a system that is reliable, secure, fast, and affordable.
A well-architected web app often looks like:
Users
↓
CDN (cached copies worldwide, fast delivery)
↓
Load balancer (spreads traffic)
↓
Auto-scaling group of servers/containers (grows with demand)
↓
Database (with read replicas) + S3 (files) + cache (Redis)
Notice this reuses ideas from the whole course: load balancers and replicas (backend system design), caching (backend), VPC isolation (cloud networking), auto-scaling (cloud elasticity). Architecture is composition.
AWS's "Well-Architected Framework" names the pillars to balance — a great checklist for any design:
- Reliability — survives failures (multiple availability zones, backups).
- Security — least privilege, encryption, private subnets.
- Performance — right-sized resources, caching, CDNs.
- Cost optimization — don't pay for what you don't need.
- Operational excellence — monitoring, automation, IaC.
The pillar juniors ignore and seniors obsess over: COST. The cloud's pay-as-you-go is a double-edged sword — it's easy to accidentally run up a huge bill (a forgotten large server, un-deleted storage, a runaway function). Companies pay real money here, so an engineer who can estimate and control cloud costs is hugely valuable. Simple wins: shut down idle resources, right-size servers (don't run a giant machine for a tiny load), use serverless for spiky work, and set billing alerts.
Being able to answer "what will this design cost per month, and how do we cut it 30%?" is what turns a cloud practitioner into a cloud architect.
High availability: designing for failure 🛡️
Every piece of hardware eventually fails — disks die, servers reboot, entire data centers can lose power. High availability (HA) is the architecture discipline of designing systems that keep running despite individual failures, instead of hoping failures never happen.
The core technique is redundancy: never have a single point of failure. Concretely, this means:
- Multiple servers, not one — behind a load balancer, so if one crashes, traffic simply flows to the others.
- Multiple Availability Zones — as you learned in AWS Core Services, spreading servers across 2-3 AZs survives a whole data-center outage.
- Database replicas — a primary database plus one or more standby copies that can take over (failover) if the primary dies.
- Health checks — automated pings that detect a failed server and pull it out of rotation before users notice.
HA is measured in "nines" of uptime: 99.9% ("three nines") allows about 8.7 hours of downtime a year; 99.99% ("four nines") allows only about 52 minutes. Each additional nine is dramatically more expensive and complex to achieve — which is why the Well-Architected Framework's reliability pillar is a genuine engineering trade-off, not just "add more servers." A well-designed architecture picks the availability target that actually matches the business need, then builds redundancy to hit it — no more, no less.
Build a high-availability checker. Write isHighlyAvailable(numAzs, hasReplica) — numAzs is how many Availability Zones your servers run in, hasReplica is whether your database has a standby replica. Return true only if numAzs >= 2 AND hasReplica is true — otherwise false. This mirrors the real architecture-review checklist: redundant compute across AZs and a database that can fail over.
Build a cloud cost estimator. Write monthlyCost(servers, pricePerHour) that returns the monthly cost: servers × pricePerHour × 24 × 30 (assume a 30-day month).
Example: monthlyCost(2, 0.05) → 2 servers × $0.05/hr × 720 hrs = 72
Real-world case study: The 2021 Fastly outage 🔍
On June 8, 2021, a single customer somewhere in the world made a valid configuration change on Fastly, a major content-delivery-network (CDN) provider. That change triggered a latent software bug, and within about a minute, 85% of Fastly's global network started returning errors — knocking major sites like Amazon, Reddit, The New York Times, and the UK government's website offline or badly degraded for roughly an hour.
The architectural lesson is layered: these companies had done real work on reliability — multiple servers, multiple regions, redundant everything — but they had all placed a shared dependency on the same CDN layer in front of it all. When that one shared layer failed, all the redundancy behind it didn't matter, because the failure was upstream of it.
Fastly fixed the bug and rolled out the change globally within about 49 minutes, which is itself a case study in fast incident response. But the broader lesson for architects is that reliability isn't just "add redundant servers" — it requires mapping every dependency, including third-party ones like CDNs and DNS providers, and asking "if this fails, does everything downstream fail with it?"
Question 1 of 5
Cloud architecture is mainly about…
Question 2 of 5
Which skill separates a senior cloud engineer?
Question 3 of 5
A quick way to cut cloud costs is…
Question 4 of 5
What does 'high availability' (HA) mean in architecture?
Question 5 of 5
What was the deeper architectural lesson from the 2021 Fastly outage?
Track complete! 🎓
Your cloud foundation is built:
- IT fundamentals + cloud concepts (IaaS/PaaS/SaaS)
- AWS core services, networking (VPC), and IaC
- Security, serverless & containers, and architecture with cost awareness
- High availability (redundancy across servers, AZs, and databases) and why shared dependencies like CDNs still need scrutiny
Path to paid work: get a certification (start with AWS Cloud Practitioner, then Solutions Architect Associate), build a small architecture on the AWS Free Tier, define it with Terraform, and put it on GitHub. Cloud skills are among the highest-paid in tech, and cost-aware architects are always in demand. Combine with the "Getting Paid" lesson and go land a role! ☁️
Practice
Reading is not learning until you run something. Pick one.