CLOUD & INFRASTRUCTURE / SYSTEM CONCEPT BRIEF

Cloud computing fundamentals

Cloud computing is renting computing resources (servers, storage, databases, networking, and higher-level services) on demand over the internet, paying for what you use instead of buying and running your own hardware.

BeginnerPhase 07 / Topic 1 of 17RequirementsTrade-offsFailure modes
01

Overview

Cloud computing is renting computing resources (servers, storage, databases, networking, and higher-level services) on demand over the internet, paying for what you use instead of buying and running your own hardware. Key characteristics are self-service provisioning, elasticity (scale up and down quickly), broad network access, resource pooling, and metered billing.

Services come in layers: IaaS (virtual machines and networks), PaaS (managed platforms like App Engine or managed databases), SaaS (complete applications like Gmail), and serverless/FaaS (run functions without managing servers). The shared responsibility model defines what the provider secures (physical infrastructure) and what you secure (your data, identities, and configuration).

Electricity from the grid

You do not build a power plant to turn on lights; you plug in and pay for the kilowatt-hours you use. Cloud computing does the same for servers and storage.

02

When to use it

  • Launching products quickly without buying hardware.
  • Workloads with variable or unpredictable demand.
  • Global reach through multiple regions.
  • Using managed services instead of operating databases and queues yourself.
03

Where it shows up in interviews

Choosing a service model

Recognize it when: should we run VMs, containers, or serverless?

  • Design a startup's backend on AWS
  • Migrate an on-prem app to the cloud
Elastic architecture

Recognize it when: traffic varies 10x between day and night.

  • Design a ticket sale platform
  • Design a batch analytics platform
04

Where it is used in real software

Netflix on AWS

Migrated fully to AWS to scale globally and use elastic capacity for streaming and encoding.

Major providers

AWS, Microsoft Azure, and Google Cloud dominate the market, each with 200+ services.

Hybrid and multi-cloud

Enterprises often keep some workloads on-premises and use multiple clouds for resilience or regulatory needs.

05

Key terms

IaaS / PaaS / SaaS
Infrastructure / Platform / Software as a Service.
Serverless
Run code or use services without managing servers; pay per use.
Region / availability zone
Geographic area / isolated data centers within a region.
Elasticity
Automatically adding and removing capacity.
Shared responsibility
Provider secures the cloud; you secure what you run in it.
06

How it works, step by step

  1. 1
    Pick regions

    Close to users and compliant with data residency.

  2. 2
    Design across availability zones

    Survive a data center failure.

  3. 3
    Prefer managed services

    Databases, queues, and caches reduce operations.

  4. 4
    Automate with code

    Infrastructure as Code and CI/CD.

  5. 5
    Control cost and security

    Tagging, budgets, least-privilege IAM, encryption.

07

Service models: who manages what

Layers you manage vs the provider

Step 1 / 4
LayerOn-premisesIaaSPaaSSaaS
ApplicationYouYouYouProvider
Runtime and OSYouYouProviderProvider
Virtualization and serversYouProviderProviderProvider
Networking and data centerYouProviderProviderProvider

NOWLayer: Application | On-premises: You | IaaS: You | PaaS: You | SaaS: Provider

Moving right trades control for less operational work. Most modern systems mix IaaS, PaaS, and serverless.

08

Implementation

# List regions and availability zonesaws ec2 describe-regions --query "Regions[].RegionName"aws ec2 describe-availability-zones --region us-east-1 --query "AvailabilityZones[].ZoneName" # Budget alert to avoid surprise billsaws budgets create-budget --account-id 123456789012 --budget '{  "BudgetName": "monthly", "BudgetLimit": {"Amount": "500", "Unit": "USD"},  "TimeUnit": "MONTHLY", "BudgetType": "COST"}'
09

Complexity and performance

Provisioning timeSeconds to minutes

vs weeks for hardware.

Typical SLA (multi-AZ)99.99%

Service dependent.

10

Trade-offs

Flexibility vs cost at steady scale

On-demand is flexible but can cost more than owned hardware for large, stable workloads; reserved and savings plans reduce cost.

Managed services vs lock-in

Managed services save operations but tie you to a provider's APIs.

11

Variants and related techniques

Public, private, hybrid cloud

Shared provider infrastructure, dedicated infrastructure, or a mix.

Edge computing

Run workloads near users (CloudFront Functions, Cloudflare Workers).

12

Common mistakes

  • Lift and shift without redesign.

    Fix: Adopt elasticity and managed services to get cloud benefits.

  • No cost monitoring.

    Fix: Tag resources, set budgets, and review spending regularly.

  • Public storage buckets and broad IAM.

    Fix: Least privilege and block public access by default.

13

Interview questions

What is the difference between IaaS, PaaS, and SaaS?

IaaS provides virtual machines, storage, and networks you manage; PaaS provides a managed runtime where you deploy code; SaaS is a complete application you use. Each step up removes operational work and control.

What is the shared responsibility model?

The provider is responsible for the security of the cloud (hardware, facilities, hypervisor); the customer is responsible for security in the cloud (data, IAM, network rules, OS patches on VMs, application code).

14

Practice problems

ProblemDifficultyWhat it trains
Map a web app to IaaS vs PaaS vs serverlessEasyService models.
Design a multi-AZ deployment for an APIMediumRegions and zones.