Skip to content
Sajith JeewanthaSoftware Engineer

Track 04 · Core

Cloud Engineering & IAM

Design, secure and run systems in the cloud: compute, networking, storage, API gateways, infrastructure as code and cost, with identity and access management (IAM) in depth, from least-privilege policies to keyless workload identity and federation.

Last updated
Total effort
960 h · ≈ 96 weeks
Your progress

Overview

Cloud engineering is the discipline of building on rented infrastructure well: picking the right compute (VMs, containers, serverless, GPUs), wiring private networks, choosing storage, exposing services safely through API gateways, and describing all of it as code so it can be reviewed, repeated and torn down. Underneath every one of those decisions sits identity and access management: who (or what) can do which action on which resource, under which conditions. Most real cloud breaches are not exotic exploits; they are over-broad permissions, long-lived keys checked into Git, or a public bucket. This track therefore treats IAM as the core skill: policies and their evaluation logic, temporary credentials, workload identity, OIDC federation, policy-as-code and zero trust.

Why it matters heading into 2027

AI workloads are moving into production on cloud platforms, and they are attractive targets: model weights, training data and inference endpoints all need protecting. The ISC2 2025 workforce study ranks cloud security as the second-largest skill gap, right after AI skills, and the CNCF reports Kubernetes is now the default platform for running generative-AI inference. Agents make it sharper still: an AI agent holding credentials is a new kind of principal, and least privilege, short-lived tokens and auditable federation are exactly the skills needed to keep it safe. Being the engineer who can say this service gets exactly these permissions, with no static keys is valuable in every team.

Prerequisites

  • Linux command line, SSH, processes and file permissions (Missing Semester covers it).
  • Networking basics: IP addresses, ports, DNS, HTTP and TLS at a conceptual level.
  • Software Engineering Beginner stage: Git, a backend in Python or Java, Docker basics.
  • A free-tier AWS or Google Cloud account with a billing alert set on day one.

Learning path

How the stages build on each other, and where this track hands off to others.

flowchart TB
  P["Prereqs: Linux · networking · Docker"] --> B
  subgraph B["1 · Beginner — core services"]
    direction LR
    B1["compute · storage"] --> B2["VPC basics"] --> B3["IAM users, roles, policies"]
  end
  subgraph I["2 · Intermediate — build it as code"]
    direction LR
    I1["Terraform / OpenTofu"] --> I2["private networking"] --> I3["API gateway"] --> I4["CI/CD with OIDC"]
  end
  subgraph A["3 · Advanced — identity in depth"]
    direction LR
    A1["policy evaluation"] --> A2["workload identity"] --> A3["federation · OAuth/OIDC"] --> A4["Kubernetes RBAC"]
  end
  subgraph E["4 · Expert — platform & zero trust"]
    direction LR
    E1["multi-account guardrails"] --> E2["policy-as-code"] --> E3["zero trust · SPIFFE"] --> E4["FinOps · incident response"]
  end
  B --> I --> A --> E
  A -.-> SERVE["Secure model serving"]
  E -.-> SEC["AI Security & Safety"]
  I -.-> ARCH["Software Architecture"]

Stages

Tick items as you go — progress is saved in this browser only. Times are focused hours (reading + building); the week estimates follow the study time you pick above.

01Beginner120 h · ≈ 12 weeksLearn the core building blocks of one cloud (AWS or Google Cloud) and the IAM basics, then deploy something real and cheap.

Key concepts

Build these

Ready for the next stage when…

02Intermediate200 h · ≈ 20 weeksDescribe everything as code, build private networks, put an API gateway in front of services, and deploy from CI without any stored secrets.

Key concepts

Build these

Ready for the next stage when…

03Advanced280 h · ≈ 28 weeksGo deep on identity: how policies are evaluated, how workloads get identity without keys, how federation and OAuth fit together, and how to prove least privilege.

Key concepts

Build these

Ready for the next stage when…

04Expert360 h · ≈ 36 weeksDesign a secure multi-account platform: organisation guardrails, policy-as-code, zero-trust service identity, cost governance and incident response, including for AI workloads.

Key concepts

Build these

Ready for the next stage when…

Field guide

The ideas behind the checklist, with diagrams and the math where it helps.

The shape of a secure cloud deployment

Before the details, keep one picture in mind. Traffic enters through a few controlled doors (load balancer, API gateway). Services live in private subnets. Every service has its own identity, and that identity gets exactly the permissions it needs, nothing else. Credentials are short-lived and issued on demand.

flowchart TB
  U["users / client apps"] --> GW["API gateway<br/>OAuth / JWT · rate limits · WAF"]
  subgraph VPC["VPC — private subnets"]
    direction LR
    SVC["inference service<br/>(Kubernetes pod)"] --> MODEL["model server<br/>GPU node pool"]
  end
  GW -- "private link / internal LB" --> SVC
  SVC -. "workload identity<br/>short-lived token" .-> STS["cloud IAM / STS"]
  STS -. "scoped credentials" .-> SVC
  SVC -- "read-only, one prefix" --> BUCKET[("model bucket<br/>encrypted")]
  SVC --> LOGS["audit logs · metrics"]
  GW --> LOGS

Read the arrows as questions you must be able to answer: who is calling, how is that proven, and what exactly can they do?

IAM vocabulary across clouds

The ideas are shared; the names are not.

ConceptAWSGoogle CloudAzure
Human identityIAM Identity Center user / IAM userGoogle account / Cloud IdentityEntra ID user
Workload identityIAM role (assumed)Service accountManaged identity / workload identity
Permission bundlePolicy (JSON)Role (set of permissions)Role definition
GrantingAttach policy to principal or resourceIAM binding on a resourceRole assignment at a scope
Org-wide guardrailSCP / RCPOrganization policy / deny policyAzure Policy
Keyless federationAssumeRoleWithWebIdentityWorkload Identity FederationFederated identity credentials
Audit trailCloudTrailCloud Audit LogsActivity log

How AWS decides: policy evaluation

When a request arrives, AWS gathers every policy that applies and evaluates them together. The rules are simple to state and easy to get wrong:

  1. Everything starts as implicitly denied.
  2. An explicit Deny in any policy ends the evaluation: denied.
  3. Guardrails (SCPs and RCPs from AWS Organizations) must allow the action, or it’s denied.
  4. Permission boundaries and session policies cap what the principal can do.
  5. An identity-based or (within an account) resource-based policy must actually grant it.
flowchart TB
  R["request: principal · action · resource · context"] --> D{"explicit Deny<br/>in any policy?"}
  D -- yes --> DENY["❌ Deny"]
  D -- no --> O{"SCPs and RCPs<br/>allow it?"}
  O -- no --> DENY
  O -- yes --> RB{"resource-based policy<br/>allows it?"}
  RB -- "yes (same account)" --> ALLOW["✅ Allow"]
  RB -- no --> PB{"permission boundary<br/>allows it?"}
  PB -- no --> DENY
  PB -- yes --> SP{"session policy<br/>allows it?"}
  SP -- no --> DENY
  SP -- yes --> ID{"identity-based policy<br/>allows it?"}
  ID -- yes --> ALLOW
  ID -- no --> IMPL["❌ implicit deny"]

This is a simplified view. Cross-account requests need both sides to allow, and some resource-policy cases differ, so keep the official evaluation-logic page open while you learn. The habit that matters: when something is denied, walk the layers in order instead of adding * until it works.

Least privilege, written down

A good policy names specific actions, specific resources and conditions. This one lets an inference service read model files under one prefix, only over TLS and only through the VPC endpoint:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "ReadModelWeights",
      "Effect": "Allow",
      "Action": ["s3:GetObject"],
      "Resource": "arn:aws:s3:::acme-models/sentiment/v3/*",
      "Condition": {
        "Bool": { "aws:SecureTransport": "true" },
        "StringEquals": { "aws:SourceVpce": "vpce-0abc123def4567890" }
      }
    },
    {
      "Sid": "ListOnlyThatPrefix",
      "Effect": "Allow",
      "Action": ["s3:ListBucket"],
      "Resource": "arn:aws:s3:::acme-models",
      "Condition": { "StringLike": { "s3:prefix": ["sentiment/v3/*"] } }
    }
  ]
}

Notice what’s missing: no s3:*, no PutObject, no other buckets. To get there in practice, start broad in a sandbox, let IAM Access Analyzer generate a policy from real CloudTrail activity, then tighten and test the denials too.

Keyless CI/CD with OIDC federation

The old way stored an access key as a CI secret: long-lived, copyable, and rarely rotated. The modern way lets the CI platform prove who it is with a signed OIDC token and swaps that token for short-lived cloud credentials.

sequenceDiagram
  autonumber
  participant GH as GitHub Actions job
  participant OIDC as GitHub OIDC provider
  participant STS as AWS STS
  participant S3 as AWS resources
  GH->>OIDC: request ID token (audience sts.amazonaws.com)
  OIDC-->>GH: signed JWT (iss, sub = repo:org/app:ref:refs/heads/main, aud)
  GH->>STS: AssumeRoleWithWebIdentity(role ARN, JWT)
  STS->>STS: verify signature via provider JWKS · check trust policy conditions on aud and sub
  STS-->>GH: temporary credentials (expire in ~1 hour)
  GH->>S3: deploy using temporary credentials

The security lives in the role’s trust policy: it must check aud and pin sub to your repository and branch (or environment). A trust policy that only checks the issuer would let any GitHub repository assume your role. Google Cloud’s Workload Identity Federation follows the same pattern with an attribute condition on the pool provider.

The same idea powers workload identity inside Kubernetes: EKS (IRSA or Pod Identity) and GKE Workload Identity Federation let a pod’s service account become a cloud principal, so no node ever holds a key.

OAuth 2.0, OIDC and JWTs in one page

  • OAuth 2.0 is about delegated authorization: a client gets an access token to call an API on someone’s behalf, with limited scopes.
  • OpenID Connect adds authentication on top: an ID token (a JWT) says who the user is, for the client to read.
  • A JWT is header.payload.signature. Validating it means checking the signature against the issuer’s keys, and iss, aud, exp (and nbf). Skipping aud lets a token minted for another app be replayed against yours.
  • Token exchange (RFC 8693) lets a service trade one token for another with narrower scope or a different audience. That’s useful when an agent or service calls a downstream API on behalf of a user.
  • Follow RFC 9700: use authorization code + PKCE, no implicit grant, short-lived tokens, exact redirect-URI matching.

API gateways such as WSO2 API Manager, Apigee and AWS API Gateway do this validation at the edge, but services behind them should still check the claims they rely on.

Authorization beyond IAM: RBAC, ABAC, ReBAC

Cloud IAM protects cloud resources. Your application needs its own authorization model:

  • RBAC: permissions attached to roles (admin, editor). Simple, but role explosion follows.
  • ABAC: decisions on attributes (department == resource.department). Flexible, harder to audit.
  • ReBAC: decisions on relationships (user is editor of folder, folder contains doc). This is Google Zanzibar’s model, and it fits sharing features well.

Keep these rules out of if statements scattered through the code. Put them in a policy engine (OPA/Rego or Cedar), test them in CI, and log every decision.

Availability and cost: the arithmetic

Components in series multiply their availabilities; redundant replicas in parallel multiply their failure probabilities:

Aseries=∏iAiAparallel=1−∏i(1−Ai)A_{\text{series}} = \prod_{i} A_i \qquad\qquad A_{\text{parallel}} = 1 - \prod_{i} \left(1 - A_i\right)

A gateway (99.95%) → service (99.9%) → database (99.95%) chain gives about 99.8%, or roughly 17.5 hours of downtime a year. Two independent service replicas at 99.9% each give 99.9999% for that tier.

For cost, think in unit economics, not monthly totals:

cost per 1k requests=instance cost per hourrequests served per hour×1000\text{cost per 1k requests} = \frac{\text{instance cost per hour}}{\text{requests served per hour}} \times 1000

Unit costs make the levers obvious: right-size the instance, raise utilisation (batching, autoscaling), or buy cheaper capacity (commitments, spot). For GPU inference, the same formula with tokens instead of requests drives most decisions in the Inference & GPU track.

Zero trust in practice

Zero trust is not a product. It is three habits:

  1. Never trust the network. Being inside the VPC grants nothing; every call carries an identity (mTLS with SPIFFE IDs, or signed tokens).
  2. Verify explicitly, every time. Authenticate and authorise each request using identity, device and context.
  3. Assume breach. Small blast radius per identity, short-lived credentials, full audit logs, and practised incident response.

BeyondCorp showed this works for a whole company; NIST SP 800-207 is the vocabulary for designing it. For AI agents, it becomes the rule that an agent gets its own scoped identity, never a human’s broad credentials.

How this track connects

References

Original sources first: arXiv, official docs, university courses and lab blogs. Every link was checked on 7 Nov 2026.

Foundational & seminal papers(9)

  1. OpenID Connect Core 1.0

    OpenID Foundation · openid.net

    ID tokens and the identity layer that makes keyless federation work.

  2. RFC 6749: The OAuth 2.0 Authorization Framework

    IETF · 2012 · rfc-editor.org

    The base OAuth spec; learn the roles and grant types.

  3. BeyondCorp: A New Approach to Enterprise Security

    Ward & Beyer, Google · 2014 · research.google

    Where zero trust became practice: no trusted network, every request authenticated.

  4. RFC 7519: JSON Web Token (JWT)

    IETF · 2015 · rfc-editor.org

    The token format behind OIDC and most gateways.

  5. Zanzibar: Google's Consistent, Global Authorization System

    Pang et al. · 2019 · usenix.org

    Relationship-based access control (ReBAC) at planet scale.

  6. NIST SP 800-207: Zero Trust Architecture

    Rose et al., NIST · 2020 · csrc.nist.gov

    The reference definition of zero-trust architecture.

  7. RFC 8693: OAuth 2.0 Token Exchange

    IETF · 2020 · rfc-editor.org

    Delegation and impersonation; the basis of workload token exchange.

  8. Cedar: A New Language for Expressive, Fast, Safe, and Analyzable Authorization

    Cutler et al. · 2024 · arxiv.org

    How a verified, analysable policy language is designed.

  9. RFC 9700: Best Current Practice for OAuth 2.0 Security

    IETF · 2025 · rfc-editor.org

    Today's OAuth hardening rules: PKCE, no implicit grant, sender-constrained tokens.

Courses & videos(5)

  1. The Cloud Resume Challenge

    Forrest Brazeal · cloudresumechallenge.dev

    The best first hands-on cloud project.

  2. AWS Certified Solutions Architect – Associate

    AWS · aws.amazon.com

    A structured tour of core services; good Intermediate milestone.

  3. AWS Certified Security – Specialty

    AWS · aws.amazon.com

    Deep IAM, logging and incident response; an Expert milestone.

  4. Google Cloud Professional Cloud Architect

    Google Cloud · cloud.google.com

    The GCP equivalent for design breadth.

  5. The Missing Semester of Your CS Education

    MIT CSAIL · missing.csail.mit.edu

    Shell, SSH and tooling fluency you need before touching cloud.

Books(2)

  1. Site Reliability Engineering & The Site Reliability Workbook

    Google · sre.google

    SLOs, error budgets and incident response, free online.

  2. Designing Data-Intensive Applications (2nd ed.)

    Kleppmann & Riccomini · 2026 · dataintensive.net

    The data-systems knowledge behind choosing cloud storage and databases.

Articles, blogs & official docs(27)

  1. Policy evaluation logic

    AWS IAM User Guide · docs.aws.amazon.com

    The single most important IAM page. Read until you can draw it.

  2. Security best practices in IAM

    AWS · docs.aws.amazon.com

    Least privilege, temporary credentials and guardrails.

  3. IAM Access Analyzer

    AWS · docs.aws.amazon.com

    Find external and unused access; generate policies from activity.

  4. AssumeRoleWithWebIdentity

    AWS STS API Reference · docs.aws.amazon.com

    The OIDC federation primitive behind keyless CI and IRSA.

  5. IAM roles for service accounts (IRSA)

    Amazon EKS · docs.aws.amazon.com

    Pod-level AWS identity via OIDC.

  6. EKS Pod Identity

    Amazon EKS · docs.aws.amazon.com

    The newer, simpler alternative to IRSA.

  7. IAM overview

    Google Cloud · cloud.google.com

    Principals, roles and the resource hierarchy on GCP.

  8. Workload Identity Federation

    Google Cloud · cloud.google.com

    Keyless access to GCP from GitHub, AWS, Azure or any OIDC provider.

  9. About Workload Identity Federation for GKE

    Google Cloud · cloud.google.com

    Kubernetes service accounts acting as IAM principals.

  10. Microsoft Entra Workload ID

    Microsoft · learn.microsoft.com

    Azure's workload identity model.

  11. Security hardening with OpenID Connect

    GitHub Docs · docs.github.com

    How CI gets short-lived cloud tokens instead of stored secrets.

  12. SPIFFE overview

    SPIFFE project · spiffe.io

    Vendor-neutral workload identity for zero-trust service meshes.

  13. Using RBAC Authorization

    Kubernetes · kubernetes.io

    Roles, bindings and service accounts inside the cluster.

  14. Open Policy Agent documentation

    OPA · openpolicyagent.org

    Policy-as-code with Rego, for Kubernetes and apps.

  15. Cedar policy language

    Cedar project · cedarpolicy.com

    Try Cedar policies interactively.

  16. Terraform documentation

    HashiCorp · developer.hashicorp.com

    The most common IaC tool; learn state and modules properly.

  17. OpenTofu documentation

    OpenTofu · opentofu.org

    The open-source Terraform fork.

  18. AWS CDK v2 Developer Guide

    AWS · docs.aws.amazon.com

    IaC in TypeScript, Python or Java.

  19. Amazon API Gateway Developer Guide

    AWS · docs.aws.amazon.com

    Managed gateway: authorizers, throttling, private APIs.

  20. WSO2 API Manager documentation

    WSO2 · apim.docs.wso2.com

    Full API lifecycle management, key management and rate limiting.

  21. Apigee documentation

    Google Cloud · cloud.google.com

    Google's API management platform.

  22. Envoy proxy documentation

    Envoy · envoyproxy.io

    The proxy under many gateways and service meshes.

  23. Cilium documentation

    Cilium · docs.cilium.io

    eBPF networking and identity-aware network policy for Kubernetes.

  24. OWASP API Security Top 10 (2023)

    OWASP · 2023 · owasp.org

    The API threat model; broken object-level authorization is #1.

  25. AWS Well-Architected: Security Pillar

    AWS · docs.aws.amazon.com

    Security design principles applied to real workloads.

  26. FinOps Framework

    FinOps Foundation · finops.org

    Cost management as an engineering practice.

  27. CIS Benchmarks

    Center for Internet Security · cisecurity.org

    Hardening baselines for cloud accounts, Kubernetes and OSes.