lesson

Cloud Fundamentals

Compute, storage, networking, and IAM across AWS and GCP.

Cloud Fundamentals

The Three Pillars

Every cloud provider organises services around three pillars:

Compute

Run code without managing physical servers.

ServiceAWSGCPWhen to use
VMsEC2Compute EngineFull OS control, legacy apps
ContainersECS / EKSGKE / Cloud RunMicroservices, K8s workloads
ServerlessLambdaCloud FunctionsEvent-driven, short tasks
App hostingApp RunnerApp EngineSimple web apps

Storage

TypeAWSGCPUse case
ObjectS3Cloud StorageFiles, backups, data lake
BlockEBSPersistent DiskVM disks
FileEFSFilestoreShared filesystems

Networking

  • VPC — isolated network. Subnets = availability zones.
  • Load balancer — distributes traffic (ALB for HTTP, NLB for TCP).
  • DNS — Route 53 (AWS) / Cloud DNS (GCP).
  • CDN — CloudFront (AWS) / Cloud CDN (GCP).

  • IAM (Identity & Access Management)

    The #1 interview topic for cloud roles.

    Principle of least privilege: give only the permissions needed, nothing more.

    User → Role → Policy → Resource

  • Users: human identities
  • Service accounts: machine identities (apps, CI/CD)
  • Roles: collection of permissions (e.g. StorageAdmin)
  • Policies: JSON documents defining allow/deny rules
  • AWS IAM policy example:

    {
      "Effect": "Allow",
      "Action": ["s3:GetObject", "s3:PutObject"],
      "Resource": "arn:aws:s3:::my-bucket/*"
    }


    Interview Key Points

  • Always mention VPC design — public vs private subnets
  • Discuss multi-AZ / multi-region for high availability
  • Know the difference between horizontal vs vertical scaling
  • Be ready to draw a basic architecture on a whiteboard
  • Sign in to use the AI study buddy on this lesson.

    Resources