CD6: Cloud foundations

Lesson 4 of 5 · reading 15–25 minutes; practice and project time is on the module page

Choosing compute and managed services

🎯You'll be able to

Choose between virtual machines, managed containers, Kubernetes and serverless functions, and decide when a managed database or storage service is worth its price.

🏠The everyday picture

For a family function you can cook everything yourself, hire a cook to use your kitchen, or order from a caterer who brings food, staff and plates. Each step up costs more per plate and saves you work and risk.

📘What it really is

📝A worked example

Input: compare running RouteRani's database in a container on a VM with Amazon RDS Multi-AZ.

Expected output:

Task Container on a VM RDS Multi-AZ
Backups and point-in-time restore you set up and test them built in; you choose retention
Standby in another zone and failover you build it built in, usually a minute or two
Operating system and PostgreSQL patches you the provider, in a maintenance window you choose
Monthly price lower higher
Engineer time several hours a month much less

🌍Where it's used

📝Case scenario

A school ERP company ran PostgreSQL on its own VM to save money. Backups had silently failed for two months when the disk failed; they lost a week of attendance records. Moving to a managed database with automatic backups and point-in-time restore cost more per month than the VM, but less than one day of the incident.

🖱️Try it

For each RouteRani piece (load balancer, API, database, booking-confirmation emails, nightly reports), pick a compute or managed service and write one sentence why. Success: each choice names a reason (managed, cost when idle, control, or limits).

⚠️Common mistakes

🛠️For your project

Your capstone's cloud design table should name the compute and database services you'd use for RouteRani, with reasons.

✅Quick check

What does a managed database take off your hands?

Show the answer

Backups, patching, standby copies and failover.

When do serverless functions fit well?

Show the answer

Small, event-driven or spiky tasks that can be idle much of the time.

← PreviousNetworks in the cloud
ProLearners Assist