Topic overview
Two ideas that work together. Docker packages an application into an image that runs the same on a laptop, in CI, and in production. Kubernetes and the major clouds (AWS, Azure, and Google Cloud) then provide the machines, networking, storage, and scaling to run many of those containers reliably. This page covers the shared ground; the Docker & Kubernetes and Cloud Fundamentals guides go deeper on each half.
Core concepts
Images and containers: an image is a read-only, layered snapshot of a filesystem; a container is a running instance of it with its own writable layer.
Dockerfile layers and caching: instructions are cached in order, so putting the least-often-changed steps first keeps rebuilds fast. Multi-stage builds discard build-time dependencies and shrink the final image.
Volumes and networking: data written inside a container disappears with it, so use volumes (or bind mounts for host paths) for anything that must persist, and let containers reach each other over container networks.
Pods, deployments, and services: a pod wraps one or more tightly coupled containers with a shared network namespace. A deployment declares the desired state, such as replica count and image version, and Kubernetes reconciles toward it, handling rolling updates and rollbacks. A service gives pods a stable name and address while individual pods are replaced.
Scaling and configuration: horizontal pod autoscaling adds or removes replicas under load, and config maps and secrets keep configuration and credentials out of the image.
The compute spectrum: virtual machines (EC2, Azure VMs, Compute Engine), then managed containers (ECS, AKS, GKE), then serverless (Lambda, Azure Functions, Cloud Functions). Moving right trades control for less operational work.
Storage and databases: object storage (S3, Blob Storage, Cloud Storage) holds unstructured data, and managed databases remove most of the operational overhead of running your own.
Networking and IAM: virtual networks and load balancers connect and expose services, and least-privilege IAM roles and policies keep each workload to the permissions it needs.
Cost model: pay-for-what-you-use is the default, so right-size resources, shut down what is idle, and watch for services that quietly bill all month.
Why it matters
Containers give you consistency, orchestration gives you resilience, and the cloud gives you the building blocks. Almost every production system, including ML and AI pipelines, runs on this stack on one of the three big providers. Knowing the shared primitives, not just one vendor’s product names, lets you reason about a design on any cloud.
Interview relevance
Expect Docker questions on why layer order affects build speed, volumes versus bind mounts, and why multi-stage builds shrink images. Expect Kubernetes questions on why you would use a Deployment instead of bare pods, how a Service routes to healthy pods, and how a rolling update avoids downtime. For the cloud, expect choosing compute for steady, spiky, or event-driven work, how least-privilege IAM limits a breach, and how managed services trade control for lower operational burden.