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
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.
- Cloud security is the #2 skill gap (36%) after AI skills (41%); 95% of teams report at least one gap. — ISC2 Cybersecurity Workforce Study 2025
- 82% of container users run Kubernetes in production; 66% of orgs hosting generative-AI models use it for inference. — CNCF Annual Cloud Native Survey
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.
| Concept | AWS | Google Cloud | Azure |
|---|---|---|---|
| Human identity | IAM Identity Center user / IAM user | Google account / Cloud Identity | Entra ID user |
| Workload identity | IAM role (assumed) | Service account | Managed identity / workload identity |
| Permission bundle | Policy (JSON) | Role (set of permissions) | Role definition |
| Granting | Attach policy to principal or resource | IAM binding on a resource | Role assignment at a scope |
| Org-wide guardrail | SCP / RCP | Organization policy / deny policy | Azure Policy |
| Keyless federation | AssumeRoleWithWebIdentity | Workload Identity Federation | Federated identity credentials |
| Audit trail | CloudTrail | Cloud Audit Logs | Activity 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:
- Everything starts as implicitly denied.
- An explicit
Denyin any policy ends the evaluation: denied. - Guardrails (SCPs and RCPs from AWS Organizations) must allow the action, or it’s denied.
- Permission boundaries and session policies cap what the principal can do.
- 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, andiss,aud,exp(andnbf). Skippingaudlets 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:
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:
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:
- Never trust the network. Being inside the VPC grants nothing; every call carries an identity (mTLS with SPIFFE IDs, or signed tokens).
- Verify explicitly, every time. Authenticate and authorise each request using identity, device and context.
- 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
- Software Eng.IaC, CI/CD and testing are software engineering applied to infrastructure. Treat Terraform like application code.
- ArchitectureWell-Architected reviews, private networking and resilience patterns are architecture decisions with cloud prices attached.
- Deep LearningTraining runs need GPU clusters, data buckets and model registries, each guarded by least-privilege IAM and keyless workload identity.
- Inference & GPUModel serving runs on Kubernetes with GPUs. Autoscaling, cost per token and private endpoints are cloud skills.
- AI Eng.Production AI apps sit behind API gateways with OAuth, quotas and secret management for model-provider keys.
- AI SecurityAgents holding cloud credentials are the new confused deputies. Scoped, short-lived, audited access is the main defence.
References
Original sources first: arXiv, official docs, university courses and lab blogs. Every link was checked on 7 Nov 2026.
Foundational & seminal papers(9)
- OpenID Connect Core 1.0
OpenID Foundation · openid.net
ID tokens and the identity layer that makes keyless federation work.
- RFC 6749: The OAuth 2.0 Authorization Framework
IETF · 2012 · rfc-editor.org
The base OAuth spec; learn the roles and grant types.
- BeyondCorp: A New Approach to Enterprise Security
Ward & Beyer, Google · 2014 · research.google
Where zero trust became practice: no trusted network, every request authenticated.
- RFC 7519: JSON Web Token (JWT)
IETF · 2015 · rfc-editor.org
The token format behind OIDC and most gateways.
- Zanzibar: Google's Consistent, Global Authorization System
Pang et al. · 2019 · usenix.org
Relationship-based access control (ReBAC) at planet scale.
- NIST SP 800-207: Zero Trust Architecture
Rose et al., NIST · 2020 · csrc.nist.gov
The reference definition of zero-trust architecture.
- RFC 8693: OAuth 2.0 Token Exchange
IETF · 2020 · rfc-editor.org
Delegation and impersonation; the basis of workload token exchange.
- 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.
- 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)
- The Cloud Resume Challenge
Forrest Brazeal · cloudresumechallenge.dev
The best first hands-on cloud project.
- AWS Certified Solutions Architect – Associate
AWS · aws.amazon.com
A structured tour of core services; good Intermediate milestone.
- AWS Certified Security – Specialty
AWS · aws.amazon.com
Deep IAM, logging and incident response; an Expert milestone.
- Google Cloud Professional Cloud Architect
Google Cloud · cloud.google.com
The GCP equivalent for design breadth.
- 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)
- Site Reliability Engineering & The Site Reliability Workbook
Google · sre.google
SLOs, error budgets and incident response, free online.
- 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)
- Policy evaluation logic
AWS IAM User Guide · docs.aws.amazon.com
The single most important IAM page. Read until you can draw it.
- Security best practices in IAM
AWS · docs.aws.amazon.com
Least privilege, temporary credentials and guardrails.
- IAM Access Analyzer
AWS · docs.aws.amazon.com
Find external and unused access; generate policies from activity.
- AssumeRoleWithWebIdentity
AWS STS API Reference · docs.aws.amazon.com
The OIDC federation primitive behind keyless CI and IRSA.
- IAM roles for service accounts (IRSA)
Amazon EKS · docs.aws.amazon.com
Pod-level AWS identity via OIDC.
- EKS Pod Identity
Amazon EKS · docs.aws.amazon.com
The newer, simpler alternative to IRSA.
- IAM overview
Google Cloud · cloud.google.com
Principals, roles and the resource hierarchy on GCP.
- Workload Identity Federation
Google Cloud · cloud.google.com
Keyless access to GCP from GitHub, AWS, Azure or any OIDC provider.
- About Workload Identity Federation for GKE
Google Cloud · cloud.google.com
Kubernetes service accounts acting as IAM principals.
- Microsoft Entra Workload ID
Microsoft · learn.microsoft.com
Azure's workload identity model.
- Security hardening with OpenID Connect
GitHub Docs · docs.github.com
How CI gets short-lived cloud tokens instead of stored secrets.
- SPIFFE overview
SPIFFE project · spiffe.io
Vendor-neutral workload identity for zero-trust service meshes.
- Using RBAC Authorization
Kubernetes · kubernetes.io
Roles, bindings and service accounts inside the cluster.
- Open Policy Agent documentation
OPA · openpolicyagent.org
Policy-as-code with Rego, for Kubernetes and apps.
- Cedar policy language
Cedar project · cedarpolicy.com
Try Cedar policies interactively.
- Terraform documentation
HashiCorp · developer.hashicorp.com
The most common IaC tool; learn state and modules properly.
- OpenTofu documentation
OpenTofu · opentofu.org
The open-source Terraform fork.
- AWS CDK v2 Developer Guide
AWS · docs.aws.amazon.com
IaC in TypeScript, Python or Java.
- Amazon API Gateway Developer Guide
AWS · docs.aws.amazon.com
Managed gateway: authorizers, throttling, private APIs.
- WSO2 API Manager documentation
WSO2 · apim.docs.wso2.com
Full API lifecycle management, key management and rate limiting.
- Apigee documentation
Google Cloud · cloud.google.com
Google's API management platform.
- Envoy proxy documentation
Envoy · envoyproxy.io
The proxy under many gateways and service meshes.
- Cilium documentation
Cilium · docs.cilium.io
eBPF networking and identity-aware network policy for Kubernetes.
- OWASP API Security Top 10 (2023)
OWASP · 2023 · owasp.org
The API threat model; broken object-level authorization is #1.
- AWS Well-Architected: Security Pillar
AWS · docs.aws.amazon.com
Security design principles applied to real workloads.
- FinOps Framework
FinOps Foundation · finops.org
Cost management as an engineering practice.
- CIS Benchmarks
Center for Internet Security · cisecurity.org
Hardening baselines for cloud accounts, Kubernetes and OSes.