SkillHack

How to become an AI Infrastructure Engineer

Step by step and free: 12 phases, 90 topics and 314 graded practice questions.

Practise this roadmap free

What is an AI Infrastructure Engineer?

An AI infrastructure engineer builds and runs the GPU platform that model training and inference depend on. They choose accelerators, schedule jobs on Kubernetes or Slurm, keep storage feeding the GPUs, operate distributed training with checkpointing and fault tolerance, and run LLM serving engines behind gateways and autoscalers. They answer for utilisation, cost, uptime and isolation, and treat ML and product teams as their internal customers.

Who this roadmap is for

Platform, SRE and DevOps engineers who already run Kubernetes and infrastructure as code in production and are now asked to support GPU workloads. Linux, networking and observability basics are assumed; you do not need to have trained a model. It is not for people who want to build AI features or tune model quality.

What you will be able to do

You will be able to size GPU memory for a model, schedule and share GPUs fairly across teams, keep distributed training running through hardware failure, configure inference engines, batching and KV cache capacity, autoscale and route LLM traffic, observe the stack against SLOs, attribute cost to teams, and secure tenants and model weights.

The AI Infrastructure Engineer roadmap

AI Infrastructure Engineer

  1. Phase 1 Foundations of AI infrastructure

  2. Phase 2 Accelerators and the GPU node

  3. Phase 3 Kubernetes and scheduling for GPUs

  4. Phase 4 Data infrastructure for training and serving

  5. Phase 5 Distributed training infrastructure

  6. Phase 6 LLM serving

  7. Phase 7 Gateways, routing and traffic

  8. Phase 8 Autoscaling and capacity planning

  9. Phase 9 Observability for AI infrastructure

  10. Phase 10 Cost and FinOps for AI

  11. Phase 11 Reliability and operations

  12. Phase 12 Security and isolation

All topics, in order

Mark each topic Learning, Done or Skip, and sign in to save your place to your account. Done is your own word, not passing: a topic is passed when you score 50 or more on its questions. This order is the study plan.

  1. Phase 1 · Foundations of AI infrastructure

    1. What an AI infrastructure engineer does

      An AI infrastructure engineer builds and runs the platform every model sits on: the GPU nodes, the clusters and schedulers that share them, the storage and network that feed training, the engines that serve models, and the cost, telemetry, reliability and security of all of it. Kernel tuning sits below you; the model and prompt lifecycle sits above. You are judged on whether ML teams get capacity when they need it, and whether it stays up.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    2. The platform as a product for ML teams

      Run the platform as a product whose customers are ML teams: shared, self-serve building blocks such as GPU compute, job submission, artefact and model storage and a standard deploy path, each with a documented contract. A team should get a training run or an endpoint without filing a ticket. Measure adoption, time to first job and reliability; if teams keep building their own path around you, the platform is failing them.

      Test yourself on this topic

      5 graded questions · scored out of 100 with feedback · free

      Start the 5 questions
    3. AI workloads and their resource shapes

      Each AI workload stresses something different. Pre-training runs for weeks on many nodes and depends on GPU-to-GPU bandwidth and checkpoint storage; fine-tuning has the same shape at smaller scale; online inference is latency-bound and bursty; batch inference wants throughput and can wait; agent traffic brings long chains of requests with large contexts. Name the shape before you choose the hardware, the scheduler or the storage.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    4. Matching compute and storage to the workload

      Match hardware and storage to how the workload computes and reads. Training is throughput-bound: pack small files into large sequential shards on object storage or a parallel file system, cache hot data on local NVMe and write checkpoints to durable storage. Serving is latency-bound: keep weights close to the GPU and replicas warm. Per-file reads, loading a whole dataset into RAM or one shared NFS server leave expensive GPUs waiting.

      Test yourself on this topic

      5 graded questions · scored out of 100 with feedback · free

      Start the 5 questions
    5. Containers for GPU workloads

      A GPU container carries the CUDA runtime and libraries such as cuDNN and NCCL, but the kernel driver stays on the host and the NVIDIA Container Toolkit exposes it to the container at start. The host driver must be compatible with the image's CUDA version under NVIDIA's rules, so pin both and test the pair. Build from a known base image with multi-stage builds, and keep model weights out of the image: a huge image slows every node start.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. Reproducibility

      Reproducibility means any past run can be rerun and audited. Record the code commit, data snapshot, dependency lockfile, container image digest (not a tag, which can move), configuration and seeds, keyed to the artefact the run produced. Pin the framework, CUDA and driver versions too: the same code on a different CUDA release or GPU generation can give different numbers, and some GPU kernels are nondeterministic unless you ask for determinism.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    7. Infrastructure as code for AI platforms

      Declare clusters, GPU node pools, networks and quotas in Terraform or OpenTofu modules instead of creating them by hand in a console. The state file is how the tool knows what it owns, so keep it in a remote backend with locking, and run plans on a schedule to catch drift from manual changes. GPU capacity is scarce and quota-bound; in code, a capacity change is a reviewed diff, and a lost cluster can be rebuilt in another region.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    8. GitOps and cluster configuration

      GitOps keeps the desired state of every cluster in Git, and an agent such as Argo CD or Flux pulls it in and keeps correcting drift, so the repository, not someone's terminal, records what runs. Package components with Helm or Kustomize, keep one base with small per-environment overlays, and promote a change from dev to production by moving the same commit forward. Rolling back is then a revert.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions

    Chapter 1 lab

    Instruct an assistant to plan a team's first training job on the shared platform

    A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.

    Start the lab
  2. Phase 2 · Accelerators and the GPU node

    1. How a GPU runs AI work

      A GPU runs thousands of threads across its streaming multiprocessors, and its tensor cores do the matrix multiplies that dominate AI work, faster at lower precisions such as BF16 and FP8 (and, on NVIDIA Blackwell, FP4). Every operation is compute-bound or memory-bound, depending on how much math it does per byte it reads from HBM. Large matrix multiplies are compute-bound; elementwise ops and LLM decode are memory-bound, so for them bandwidth matters more than peak FLOPS.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    2. GPU memory arithmetic

      Size a job on paper before you launch it. Serving needs the weights (parameters times bytes per value, 2 bytes in BF16) plus a KV cache that grows with batch size and context length. Mixed-precision training with Adam needs about 16 bytes per parameter for weights, gradients and optimizer state before any activations, so a 7B model needs roughly 112 GB unsharded. The total tells you whether to shard, recompute activations or use bigger GPUs.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    3. Choosing accelerators

      Compare accelerators on what your workload needs: memory capacity and bandwidth, the interconnect between chips, supported precisions and, above all, software maturity. NVIDIA's CUDA stack has the widest framework and kernel support; AMD Instinct (ROCm), Google TPU (JAX and XLA) and AWS Trainium (Neuron) can cost less per unit of work if your stack runs well on them. Price the whole run, and check you can actually get the capacity.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. The GPU software stack

      A GPU node runs a layered stack: the kernel driver, the CUDA libraries inside each container, the container toolkit that connects them, Fabric Manager on NVSwitch systems, and on Kubernetes the GPU Operator, which installs and upgrades the driver, toolkit, device plugin and DCGM exporter. Each layer has compatibility rules with its neighbours, so treat the stack as one tested set of versions and roll it out on canary nodes, never piece by piece.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. GPU utilisation, honestly

      The utilisation figure in nvidia-smi is the share of time at least one kernel was running, so a single small kernel can read 100 percent while most of the chip sits idle. For real activity, collect DCGM profiling metrics such as SM activity and tensor pipe activity; for training, track model FLOPs utilisation (MFU), achieved model FLOPs divided by the hardware peak. Report MFU to teams and treat the nvidia-smi figure as a sign of life.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. Sharing one GPU: MIG, time-slicing and MPS

      Small jobs waste whole GPUs, so share them, choosing by the isolation you need. MIG splits a supported GPU into up to seven instances with dedicated memory and compute and hardware fault isolation, which suits multi-tenant inference. Time-slicing lets pods take turns with no memory or fault isolation, fine for notebooks and development. MPS runs processes side by side for throughput, but a fatal fault in one client can take down others on that GPU.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    7. GPU health and hardware failure

      At scale, GPUs fail often: Meta reported 419 unexpected interruptions in 54 days of Llama 3 pre-training on up to 16K GPUs, about 78 percent from hardware. Watch driver Xid errors, ECC and row-remapping counts, and thermal or power throttling, and run DCGM diagnostics as a burn-in before a node joins and after every repair. Automate the response: cordon the node, drain it and send it for repair before the next job lands on it.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
  3. Phase 3 · Kubernetes and scheduling for GPUs

    1. GPUs in Kubernetes

      Kubernetes learns about GPUs from a device plugin, which advertises them on each node as an extended resource such as nvidia.com/gpu. A pod asks for whole GPUs in its limits, and the scheduler places it only where enough are free; this way GPUs cannot be overcommitted or requested in fractions. Label GPU nodes by model and taint them, so only pods that tolerate the taint, and really need a GPU, land there.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    2. Dynamic Resource Allocation

      Dynamic Resource Allocation (DRA) replaces a GPU count with a claim: a pod references a ResourceClaim that picks devices from a DeviceClass by attributes such as model or memory, and drivers publish what each node offers in ResourceSlices. A claim can be shared between pods or ask for a partition, which a count cannot express. As of November 2026 the core API is GA (since Kubernetes v1.34), and NVIDIA's DRA driver lives under kubernetes-sigs.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. Gang scheduling and batch queueing

      A distributed job is useless until every pod runs, yet the default scheduler places pods one at a time, so two half-placed jobs can each hold GPUs while waiting forever for the rest. Gang scheduling admits all of a job's pods or none. Put a queue in front: Kueue or Volcano holds a job until quota for the whole of it is free, then admits it. As of November 2026 Kubernetes' own PodGroup API with a gang policy is beta and off by default.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. Quotas, fair sharing and preemption

      Give each team a guaranteed GPU quota, then let idle quota be borrowed so the cluster stays full: in Kueue, ClusterQueues in a cohort lend unused capacity and reclaim it by preempting the borrowers when the owner needs it. Priority classes order work within a team. Preemption throws away everything since the last checkpoint, so preempt the lowest-priority, most recently started work first, and require borrowers to checkpoint often.

      Reading

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    5. Topology-aware placement

      Where a job's pods land matters as much as how many GPUs it gets: pods spread across racks or network blocks send their collectives through more switch hops, and the whole job runs at the pace of the slowest link. Label nodes with their topology (block, rack, host) and have the scheduler keep a job inside one domain. As of November 2026 Kueue's topology-aware scheduling is beta and on by default, with required and preferred modes.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. Multi-node jobs: JobSet, LeaderWorkerSet and Ray

      A plain Job or Deployment does not know that a group of pods is one program. JobSet runs distributed training as related groups of Jobs with stable hostnames for rendezvous and a failure policy that restarts the whole set; LeaderWorkerSet treats a leader and its workers as one replica for multi-host inference; KubeRay runs Ray clusters for mixed data, training and serving work. Pick the controller whose failure and restart model matches your job.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    7. Slurm for training clusters

      Slurm is the HPC batch scheduler that many large training clusters run. Jobs go to partitions (sets of nodes), are charged to accounts and are ordered by a fair-share priority based on each account's recent use; GPUs are scheduled as generic resources (GRES), and a health-check program can drain a bad node before jobs land on it. Researchers get whole-job allocation and srun out of the box. Slinky runs Slurm on Kubernetes when you need both.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    8. Multi-tenancy on a shared GPU cluster

      One shared GPU cluster is cheaper than one per team, but it needs isolation: a namespace per team, RBAC that confines each team to its own, network policies that block traffic between tenants by default, and quotas so nobody takes every GPU. Tenants still share the network, storage and node disks, so watch for noisy neighbours. When a tenant needs its own CRDs, cluster-admin rights or a hard security boundary, give it a virtual or separate cluster.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    9. GPU node lifecycle

      GPU nodes are provisioned, burned in, labelled, upgraded and retired, and no step should kill running work. Node autoscalers such as Cluster Autoscaler or Karpenter add nodes for pending GPU pods and remove idle ones, but GPU nodes start slowly, so keep a small warm buffer. For a driver or OS upgrade, cordon the node, let jobs finish or checkpoint, then drain it; pod disruption budgets stop a drain taking out too many serving replicas.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
  4. Phase 4 · Data infrastructure for training and serving

    1. Storage systems for AI

      Each storage tier has one job. Object storage is cheap, durable and scales very far, but every request carries latency, so read it in large sequential chunks. Parallel file systems such as Lustre stripe files over many servers to give many GPUs high shared throughput, at a higher price. Local NVMe is fastest and dies with the node, so use it as a cache. GPUDirect Storage moves data by DMA between storage and GPU memory, skipping the CPU bounce buffer.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    2. Keeping the GPUs fed

      A training step should never wait for data. Read large shards (WebDataset tar files or MosaicML Streaming shards) rather than millions of small files, decode with enough parallel loader workers, pin memory and prefetch upcoming batches, and cache shards on local NVMe. To spot a starved job, compare step time with time spent waiting on the loader: low GPU activity while loader CPUs are pegged means input, not compute, is the bottleneck.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. Running data pipelines that survive failure

      A pipeline will fail halfway, so make rerunning it safe. Write each partition idempotently: stage the output, then swap it in atomically, keyed by run or partition id, so a retry replaces data instead of duplicating it. Gate each stage on schema and row-count checks, and run backfills partition by partition with capped concurrency so they cannot swamp shared storage. Blind retries on appending writes are how datasets quietly double.

      Test yourself on this topic

      7 graded questions · scored out of 100 with feedback · free

      Start the 7 questions
    4. Operating a feature store

      A feature store defines each feature once and materialises it to an offline store for training and an online store for low-latency serving, so both use the same logic and training-serving skew is removed at its source. Operating one means running the materialisation jobs, serving point-in-time correct training sets, and setting a TTL that bounds how old a value may be. Alert on materialisation lag and staleness, not only on job failure.

      Test yourself on this topic

      5 graded questions · scored out of 100 with feedback · free

      Start the 5 questions
    5. Data quality gates

      Catch bad data at ingestion, before it reaches a training run or a serving index. Check each batch against a schema and statistical expectations (types, ranges, null rates, volumes and distributions), then quarantine what fails and alert the data's owner instead of passing it on. A silent upstream change, such as a field switching units, can surface weeks later only as a worse model, so automate the check at the boundary.

      Reading

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    6. Running vector databases in production

      A vector database is a stateful service, so run it like one. Size memory from vector count, dimensions and bytes per value plus index overhead (HNSW graphs live in RAM), and reach for quantisation or on-disk indexes when that is too much. Shard for size, replicate for availability and read throughput, and snapshot to object storage on a schedule. Rebuild an index into a new collection, then switch an alias to it, so queries never hit a half-built index.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions

    Chapter 4 lab

    Write the instruction for an agent that proposes an expectation suite

    A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.

    Start the lab
  5. Phase 5 · Distributed training infrastructure

    1. Anatomy of a distributed training job

      A distributed training job is one program started as many ranks, usually one per GPU, by torchrun, Slurm or a Kubernetes controller. Before step one every rank must find the others through a rendezvous, learn the world size and its own rank, and reach the same image, data and checkpoint storage. Most failed launches are platform faults (a missing variable, a blocked port, one slow node), so make those pieces standard and visible.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    2. Data parallel and sharded training from the infra seat

      Data parallel training (DDP) keeps a full model copy on every GPU and all-reduces gradients each step, so weights, gradients and optimizer state must fit on one GPU. Sharded data parallel (FSDP, or DeepSpeed ZeRO stages 1 to 3) splits optimizer state, then gradients, then weights across ranks. The first two cost about the same traffic as DDP; sharding weights adds roughly half again every step, so fully sharded jobs lean on the fabric.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. Tensor, pipeline and expert parallelism from the infra seat

      Tensor parallelism splits every layer across GPUs and exchanges activations several times per layer, so it belongs inside one NVLink domain. Pipeline parallelism passes activations only between stages and tolerates the slower network between nodes; expert parallelism moves tokens with all-to-all traffic that punishes thin bisection bandwidth. So keep each tensor parallel group on GPUs sharing the fastest link, and let pipeline and data parallel groups cross the network.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. The training fabric

      Large training jobs talk over a dedicated back-end network, InfiniBand or RoCE (RDMA over Ethernet), and GPUDirect RDMA lets the network card read GPU memory without going through the CPU. Rail-optimised designs wire GPU n of every node to the same leaf switch, so most collective traffic stays one hop away. Oversubscribed upper tiers save switches but slow every collective that crosses them, so place jobs to fit the topology before blaming software.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. Collectives and NCCL

      NCCL runs collectives such as all-reduce, all-gather and reduce-scatter between GPUs, choosing algorithms, transports and network interfaces from what it detects. Run nccl-tests on new or repaired nodes and compare bus bandwidth with what the fabric should deliver; set NCCL_DEBUG=INFO on a slow job to confirm it picked the right interfaces. A hang usually means one rank never reached a collective, so find that rank before restarting the whole job.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    6. Checkpointing at scale

      Checkpoints let a long job survive failure, and at scale a naive save can stall every GPU for minutes. Sharded checkpoints let each rank write its own piece in parallel, and asynchronous saves copy state to host memory and write it in the background, so training resumes in seconds. Set the interval by arithmetic: a classic estimate is the square root of twice the save time times the mean time between failures, recomputed as the cluster grows.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    7. Fault tolerance and elastic training

      At thousands of GPUs failure is routine: Meta reported 419 unexpected interruptions in 54 days of Llama 3 405B pre-training on up to 16K GPUs, about 78% of them hardware. Plan for automatic detection and restart from the last checkpoint, hot spare nodes that replace a bad one without a fresh queue wait, and fast startup. Elastic or per-step recovery (torchrun elastic, torchft) keeps training on fewer replicas, at the cost of a changing batch.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    8. Goodput: measuring training efficiency

      Model FLOPs utilisation (MFU) is the share of the GPUs' peak arithmetic a job turns into useful model math, and well-tuned large runs often report under 50%. Goodput is wider: the fraction of paid time that produced training progress, after queue waits, startup, checkpoint saves, failures and work redone since the last checkpoint. Track badput by cause, because a job with excellent MFU can still lose a fifth of its reservation to restarts.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    9. Post-training and RL workloads

      Post-training has its own shape: fine-tuning and LoRA runs are short, numerous and often fit on one node, so queueing, quotas and fast startup matter more than the fabric. Reinforcement learning loops alternate generating rollouts on an inference engine with updating weights in a trainer, then push new weights back to the generators. Plan for that on one cluster: shared or split GPU pools, a fast weight sync path, and idle time while one side waits.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
  6. Phase 6 · LLM serving

    1. Serving shapes: online, batch and async

      Serve each workload on a path shaped to its latency and throughput needs. Interactive traffic gets warm, autoscaled online endpoints; bulk scoring and offline generation get a batch path tuned for throughput; long or bursty jobs go through an async queue that returns results later. A billion-row job pushed through a low-latency endpoint competes with users and wastes money, and one static fleet sized for peak sits idle most of the day.

      Test yourself on this topic

      6 graded questions · scored out of 100 with feedback · free

      Start the 6 questions
    2. How LLM inference loads a GPU

      LLM inference has two phases. Prefill processes the whole prompt in parallel, is compute-bound and sets time to first token; decode emits one token per step per sequence, rereading weights and KV cache each time, so it is bound by memory bandwidth and sets inter-token latency. That is why batching more sequences raises throughput almost for free until memory or latency runs out, and why long prompts and long outputs are planned separately.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    3. Inference engines

      An inference engine such as vLLM, SGLang or TensorRT-LLM runs the model on the GPU: batching, KV cache, parallelism and quantised kernels. Around it sit serving layers: KServe or Triton manage deployments, while NVIDIA Dynamo and llm-d add cluster-wide routing, KV cache awareness and disaggregated serving across replicas. Pick the engine on model and hardware support and measured throughput at your latency target, and keep the layer above swappable.

      Reading

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    4. Continuous batching and engine settings

      Continuous batching adds new requests to the running batch at every decode step instead of waiting for the batch to finish, which is how modern engines reach high throughput. The engine's limits set the trade: maximum batched tokens per step and maximum concurrent sequences cap each step's work, and chunked prefill splits long prompts so they do not stall everyone's decoding. Raise the limits until inter-token latency at your target percentile slips, then stop.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. KV cache capacity

      Each active sequence holds keys and values for every layer and token, and that KV cache, not the weights, usually decides how many requests fit. Per token it costs 2 times layers times KV heads times head dimension times bytes per value; multiply by context length and concurrency. Paged allocation removes fragmentation, and when memory runs out the engine preempts sequences, so watch preemptions and consider offloading cold cache to CPU memory or storage.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    6. Serving quantised models

      Quantised weights in FP8, INT8, INT4 or FP4 shrink memory, so a model fits on fewer GPUs with more room for KV cache, and with native hardware support the math gets faster too. Check the engine's table of formats per GPU generation: on an older card a format may save memory without saving time, or not run at all. Treat a quantised model as a new model: run your evaluations before the swap and canary it like any release.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    7. Multi-GPU and multi-node serving

      A model too big for one GPU is split with tensor parallelism across one node's GPUs, where NVLink makes per-layer exchanges cheap; beyond a node you add pipeline stages or run a multi-host replica managed as one unit, for example with LeaderWorkerSet. Mixture-of-experts models add expert parallelism, routing tokens to experts with all-to-all traffic. Use the smallest parallel degree that fits with KV headroom, then scale out with replicas.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    8. Disaggregated prefill and decode

      Disaggregated serving runs prefill and decode on separate GPU pools, so long prompts stop interrupting token generation and each pool is sized for its own phase. The price is moving each request's KV cache from prefill to decode GPU, which needs a fast path (NVLink or RDMA, via a library such as NIXL) and a router that knows both pools. It pays at scale with long prompts and tight latency targets; small fleets do better with chunked prefill.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    9. Multi-model and adapter serving

      Serving many fine-tunes as LoRA adapters on one shared base model costs a fraction of a dedicated deployment each, because adapters are small and engines batch requests for different adapters together. Cap how many adapters stay on the GPU, keep the rest in CPU memory or storage, and route one adapter's requests to the same replicas. Rarely called whole models can load on demand and accept a cold start, or sit on a scale-to-zero tier.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
  7. Phase 7 · Gateways, routing and traffic

    1. Model gateways

      A model gateway is the single front door through which applications reach every model, self-hosted or from an API provider. Run as infrastructure, it holds provider credentials, authenticates callers with their own keys, logs and meters usage per team, and maps one API shape onto each backend. Keep it stateless, horizontally scaled and under its own SLO: once every AI request passes through it, a gateway outage is everyone's outage.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    2. Load-aware and cache-aware routing

      Round-robin assumes every request costs the same, but LLM requests vary enormously in prompt and output length, so one replica saturates while its neighbour idles. Route on live engine state instead: queue depth, running requests, KV cache use and prefix match, which sends a request to the replica already holding its prompt prefix in cache. The Gateway API Inference Extension, llm-d and Dynamo do this; compare tail latency and cache hit rate.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. Caching across the serving stack

      Caching cuts inference cost and latency, but no one cache fits every request. Layer an exact-match response cache for identical repeats, a cache of costly reusable intermediates such as embeddings keyed on exact inputs, and the engine's prefix cache, which reuses KV state for shared prompt prefixes. Give callers a no-cache flag for must-be-fresh requests, keep tenants' entries apart, and be wary of semantic caching, which can return a near-miss answer.

      Test yourself on this topic

      6 graded questions · scored out of 100 with feedback · free

      Start the 6 questions
    4. Token rate limits and quotas

      One LLM request can cost a hundred tokens or a hundred thousand, so request limits alone protect neither capacity nor budget. Limit tokens per minute per tenant too, counting input at admission and settling output when the response ends, with a token bucket so short bursts pass but sustained overuse is held back. When a limit hits, return 429 with a retry-after hint and the remaining quota, so clients back off instead of retrying blindly.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. Priority, admission control and load shedding

      When demand exceeds capacity, decide who waits before the GPUs decide for you. Put interactive traffic ahead of batch, admit requests only while queue depth and KV cache headroom allow, and reject the rest early with a clear retryable error, which is cheaper than accepting work that will time out. Retries multiply load in an incident, so cap them with retry budgets, backoff and jitter at the gateway, and shed the lowest priority first.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. Failover across replicas, regions and providers

      Failover moves traffic off an unhealthy replica, region or provider, judged by active health checks plus passive signals such as rising errors or latency. Fix the fallback order in advance and know what changes along it: another region adds latency, and another model or provider changes outputs, context limits and price. Keep spare capacity at the destination, test failover on a schedule, and fail back gradually rather than all at once.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    7. Streaming traffic through the network

      LLM responses stream token by token over server-sent events or gRPC, holding connections open for minutes. Set load balancer and proxy idle timeouts above the longest gap between tokens, turn off response buffering so tokens pass as they arrive, and use keepalives on long gRPC streams. On deploys, drain: stop routing new requests to the pod, let in-flight streams finish within a grace period sized for the longest generation, then stop it.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
  8. Phase 8 · Autoscaling and capacity planning

    1. Autoscaling inference on the right signal

      Scale GPU inference on signals that track inference load: queue depth, requests in flight or a latency metric. CPU utilisation barely moves when a GPU saturates, and GPU utilisation reads high long before a replica is actually full. A new GPU replica can take minutes to become ready, so keep a warm buffer, scale up early and down slowly to avoid flapping, and treat scale to zero as a cost choice that accepts a cold start.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    2. Cold starts and fast replica start

      A new inference replica must get a node, pull a multi-gigabyte image, fetch tens or hundreds of gigabytes of weights, load them onto the GPU and warm up, and each step can take minutes. Shorten each one: pre-pull or stream images, cache weights on local disk or a nearby volume, stream safetensors straight into GPU memory, and keep a small warm pool of nodes. Time each phase separately; the slowest is rarely the one the team expects.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. Load testing inference

      Load test inference with traffic that looks like production: real prompt and output length distributions, shared prefixes if your users have them, and streaming on. Sweep concurrency or request rate upward and record throughput with time to first token and inter-token latency at your SLO's percentiles. The answer you want is the saturation point, the highest load that still meets the SLO, per configuration and again after every engine upgrade.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. Capacity planning for inference

      Capacity planning turns a traffic forecast into a GPU count. Load test to learn how many tokens per second one replica sustains inside your latency SLO, divide peak demand in tokens per second by that figure, then add headroom for failures, deploys and forecast error. Plan for the peak, not the mean, because interactive traffic swings widely across the day, and fill the troughs with batch work rather than leaving them idle.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    5. Getting GPU capacity

      Scarce accelerators make capacity a procurement problem. On-demand is flexible but may be unavailable for large GPUs; reservations and capacity blocks guarantee GPUs for a set window, paid for whether used or not; neocloud contracts and on-prem clusters can cost less per hour but commit you for months or years and take time to arrive. Match each commitment to a forecast, and keep some flexible capacity for what the forecast missed.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. Spot and preemptible GPUs

      Spot GPUs cost far less than on-demand but can be reclaimed at short notice: as of November 2026, AWS warns two minutes ahead, and Google Cloud Spot VMs get a best-effort shutdown of up to 30 seconds unless you set a 120-second notice. Use them for work that can stop and resume (batch inference, evals, checkpointed training), not latency-critical serving. Catch the notice, checkpoint or drain, and let the scheduler requeue the work.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    7. Batch inference at scale

      Batch inference covers offline jobs such as scoring a dataset, generating synthetic data or running evaluations, where throughput and cost matter and latency does not. Run them in the engine's offline mode or a framework like Ray Data at large batch sizes, on idle or spot capacity, at low priority so serving can reclaim the GPUs. For API models, as of November 2026 OpenAI's and Anthropic's batch APIs charge half price for results within 24 hours.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions

    Chapter 8 lab

    Write the instruction for an agent that proposes an autoscaling policy

    A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.

    Start the lab
  9. Phase 9 · Observability for AI infrastructure

    1. Metrics pipelines

      A metrics pipeline runs from exporters through a scraper such as Prometheus to a time series store and the alerts on top. Every distinct combination of label values is its own series, so a label holding request or user ids multiplies memory until the server falls over. Keep labels to bounded sets such as model, node and tenant, keep raw local data short (Prometheus keeps 15 days by default) and send long history to downsampled remote storage.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    2. GPU telemetry

      NVIDIA's DCGM reads per-GPU health and performance counters, and its exporter publishes them to Prometheus. Collect more than the basic utilisation figure: SM and tensor activity, memory bandwidth, power, throttling, ECC and Xid errors, NVLink traffic. The exporter collects only the fields in its counters file, so add profiling fields on purpose, and turn on its pod mapping so each series names the pod and namespace that used the GPU.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    3. LLM serving signals

      An LLM server is judged on time to first token, inter-token latency, tokens per second and end-to-end latency, read as percentiles, not averages. The engine also shows why they move: requests running and waiting, KV cache use, preemptions and prefix cache hits. Read them together: a growing queue with a full KV cache means you are out of memory, while a growing queue with spare cache points at batching limits or compute.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. Alerting on SLOs, not resources

      Page people on what users feel: an SLO on availability or latency at a chosen percentile, alerted on error budget burn rate over a long and a short window, so a fast burn pages within minutes and a slow leak opens a ticket. Resource metrics such as GPU utilisation, memory and queue length are for diagnosis once you are paged: a busy GPU is not an outage, and an idle one can hide one. Every page should need a human to act now.

      Test yourself on this topic

      5 graded questions · scored out of 100 with feedback · free

      Start the 5 questions
    5. Tracing a request across the inference path

      A request to an AI service crosses a gateway, a router, perhaps retrieval, then the engine's queue, prefill and decode. Distributed tracing carries one trace context (the W3C traceparent header) through every hop, so any slow request can be rebuilt span by span. Put the attributes that explain delay on the spans: model and version, replica, queue wait, input and output tokens, cache hit. Write the trace id into every log line so logs and traces join.

      Test yourself on this topic

      5 graded questions · scored out of 100 with feedback · free

      Start the 5 questions
    6. OpenTelemetry for AI services

      OpenTelemetry gives you vendor-neutral SDKs and a Collector that processes and exports traces, metrics and logs, so you can change backend without re-instrumenting. Its generative AI semantic conventions name fields such as token usage; as of November 2026 they are marked Development in their own repository, so pin a version and expect renames. Capturing prompts is opt-in, since they carry user data. Sample in the Collector, keeping errors and slow traces.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    7. Watching training jobs

      Step time is a training job's heartbeat. Synchronous training runs at the pace of its slowest worker, so a creeping step time often means one straggler: a throttling GPU, a flaky link. A hang shows as no step progress while GPUs may still look busy in a collective, so alert on time since the last step and keep collective traces (PyTorch's Flight Recorder) to find the rank that stopped. Loss spikes can be bad hardware, not only bad data.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions

    Chapter 9 lab

    Write the instruction for an agent auditing inference-path instrumentation

    A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.

    Start the lab
  10. Phase 10 · Cost and FinOps for AI

    1. Cost attribution and showback

      Before you can control AI spend you have to see whose it is. Label every GPU node, pod, job and API key with team, project and model, split shared costs such as idle capacity and the platform itself by an agreed rule, and show each owner their own number (showback) before you bill them for it (chargeback). Spend nobody owns is spend nobody cuts, and an org-wide freeze punishes the teams that were already careful.

      Test yourself on this topic

      5 graded questions · scored out of 100 with feedback · free

      Start the 5 questions
    2. Unit economics of AI workloads

      Unit economics turns a bill into a cost per thing the business cares about: per million tokens served, per training run, per useful GPU-hour. For serving, cost per token is the GPU cost per hour divided by the tokens per hour actually delivered within the latency target, so batching, quantisation, cache hits and utilisation move it more than the hourly price does. Track the unit over time, because a falling total bill can hide a rising cost per request.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. Utilisation is the bill

      A GPU costs the same whether it is training or idle, so utilisation is the biggest cost lever you have. Hunt the waste: notebooks holding a GPU overnight, inference replicas sized for a peak that comes once a week, reservations nobody scheduled onto, and pods asking for eight GPUs to use one. Fix it with idle culling, bin-packing and node consolidation, queues that let other teams borrow unused quota, and MIG or time-slicing for small workloads.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. Commitments and pricing models

      Cloud GPUs come on demand (flexible, dearest), under reservations, savings plans or committed use discounts (cheaper for a one or three year promise), as fixed-term capacity blocks for a training run, and as spot (deep discounts, can be taken back). Commit only the steady base you can forecast; run peaks on demand and interruptible work on spot. GPU generations turn over within a typical term, so a long deal can lock in last year's price-performance.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. Self-hosting versus model APIs

      A model API charges per token and nothing when idle; self-hosting charges per GPU-hour whether traffic comes or not. Divide the fully loaded monthly cost of self-hosting (GPUs at real utilisation, redundancy, headroom and the engineers who run it) by the tokens you will actually serve, and compare that with the API price for equal quality. Self-hosting tends to win on steady high volume, strict residency or a model you must control.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. Budgets and spend guardrails

      A budget protects you only if something happens when it is crossed. Give each team a budget with alerts at set thresholds of actual and forecast spend, tie cluster quotas and API key limits to money so nobody can pass their share without asking, and turn on anomaly detection so a runaway job or a leaked key is caught in hours, not at month end. Billing data lags by hours, so pair it with near real time signals such as GPU-hours used and tokens consumed.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    7. FinOps practice and cost data

      FinOps is engineering, finance and product making spend decisions together from the same data. That data starts with each provider's detailed billing export, normalised to the FOCUS specification so cloud, SaaS and AI provider bills share one schema (FOCUS 1.4 was ratified in June 2026), plus allocation inside shared Kubernetes clusters from a tool such as OpenCost. Then hold a regular review with each team on its trend, its unit cost and its largest waste.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    8. Power and energy

      For a large GPU fleet, power is often the real ceiling: a site has fixed megawatts and each GPU generation draws more per rack, so the facility decides how many you can run. Measure performance per watt, not only per dollar. Capping GPU power often costs little speed: one study cut training energy by about 15 percent for a marginal slowdown. Big synchronous jobs swing power hard as they start, stop or checkpoint; Meta reported swings of tens of megawatts.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
  11. Phase 11 · Reliability and operations

    1. SLOs for an AI platform

      An AI platform serves two kinds of customer, so it needs two kinds of SLO. Inference endpoints get the familiar ones: availability, time to first token and latency percentiles. The training platform needs its own: how long a job waits for promised capacity, the share of jobs that finish without an infrastructure failure, and goodput, the fraction of reserved GPU time that produced kept training progress. Agree each target with the teams who rely on it.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    2. Rollout and rollback

      Ship a new model, engine version or config progressively: send a small canary slice of real traffic, compare it with the current version on errors, latency, throughput and quality signals, halt and roll back automatically when it regresses, and widen in steps. Keep the previous version deployed and warm, because reloading tens of gigabytes of weights is not a fast rollback. Offline tests miss live-only problems, and one big switch exposes everyone at once.

      Test yourself on this topic

      7 graded questions · scored out of 100 with feedback · free

      Start the 7 questions
    3. Upgrading the platform safely

      The GPU stack is a chain of versions that must agree: host driver, the CUDA runtime in each image, container toolkit, Kubernetes, GPU Operator and engine. Check each upgrade against the compatibility rules (a newer driver runs images built for older CUDA, not the reverse without extra compatibility packages), roll it to a few canary nodes, run burn-in and a real workload, then widen slowly with cordon and drain. Keep the old version installable.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. Failure modes of GPU platforms

      At scale, failure is routine: over 54 days of Llama 3 405B pre-training Meta logged 466 job interruptions, about 78 percent of the unexpected ones from confirmed or suspected hardware. The worst are correlated: a bad driver rollout, a fabric partition, a storage brown-out during checkpoints, a collective that hangs every rank. One bad GPU can stall a synchronous job of thousands, so detect fast, take the node out, and cap how many nodes any change touches at once.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. Incident response

      When something breaks, declare an incident early, name one incident commander who coordinates while others fix, set severity from user and business impact, and work from runbooks for known failures such as a bad node, a full KV cache or a failed rollout. Mitigate first (roll back, drain, shift traffic) and diagnose after. Then write a blameless postmortem whose action items have owners and dates, because blame teaches people to hide the next problem.

      Test yourself on this topic

      5 graded questions · scored out of 100 with feedback · free

      Start the 5 questions
    6. Backup and disaster recovery

      Decide first what must survive and how much you can lose. Checkpoints, weights and the registry, cluster configuration and secrets each need a recovery point objective (how much loss is acceptable) and a recovery time objective (how long until it is back). Keep copies in another region and account, versioned or locked against deletion, and test restores, since spare GPU capacity in the fallback region may not exist when you need it.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
  12. Phase 12 · Security and isolation

    1. Least privilege and workload identity

      Every workload, from a training job to a notebook, should run as its own identity with only the permissions it needs: a Kubernetes service account bound to a cloud role through workload identity, scoped to the buckets, registries and secrets that job uses. That replaces shared keys, so a compromised job cannot reach another tenant's data. Segregate tenants with namespaces, RBAC and network policy, and keep audit logs of who accessed what.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    2. Secrets on an AI platform

      An AI platform is full of credentials: model provider API keys, registry and storage tokens, cluster certificates. Keep them in a managed vault and deliver them at runtime, through an external secrets operator or a mounted volume, never in image layers or notebook cells. Rotate on a schedule and at once after any exposure, and scan code, images and logs for leaks. Prefer short-lived credentials from workload identity, which leave nothing long-lived to steal.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. Isolating tenants and untrusted code

      Ordinary containers share the host kernel, so code written by an agent, a user or a model should not run in one. Use a sandboxed runtime chosen through a RuntimeClass: gVisor answers system calls from a user-space kernel; Kata Containers and Firecracker give each workload a lightweight VM. GPUs weaken the boundary: the driver is shared and time-slicing isolates no memory, so give untrusted tenants whole GPUs or MIG slices. Add default-deny network policy.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. Supply chain for images and dependencies

      Every image and package you run is code someone else wrote, and CUDA and ML stacks pull in a great deal of it. Build images in CI with an SBOM of what is inside, sign them (Sigstore's cosign is the common tool), record build provenance as SLSA describes, and reference them by digest rather than a tag that can move. Then let an admission policy reject any image that is unsigned or from an unapproved registry, and pin and scan Python dependencies too.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. Model artefact integrity

      Treat a model file as code until proven otherwise: pickle-based formats, PyTorch's own checkpoint files included, can run arbitrary code when loaded. Prefer safetensors, which holds only tensors, or PyTorch's weights-only loading. Scan files from outside, sign models as they leave training (the OpenSSF model signing project builds on Sigstore), and verify signature and hashes before a server loads them, so what is served is provably what was trained and approved.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    6. Protecting model weights and data

      Trained weights can be among a company's most valuable assets, and training data may be personal or licensed. Encrypt both at rest with keys you control (envelope encryption through a key service), limit reads to the training and serving identities that need them, and log and alert on bulk downloads and copies to new places. Close quiet exits such as debug endpoints and broad bucket policies. Confidential computing protects data in use, releasing keys only after attestation.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions

    Chapter 12 lab

    Write the instruction for a least-privilege access review agent

    A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.

    Start the lab

Practise the AI Infrastructure Engineer roadmap

314 questions, each graded on the server out of 100. Free · no card.

All career paths