InterviewStack.io LogoInterviewStack.io

Containerization Fundamentals Questions

Foundational knowledge of container technology, focused on Docker and container workflows. Topics include what containers are and how they differ from virtual machines, container images and registries, building and reading Dockerfiles, running containers, volume and file system mounting, basic container networking, image layering and size optimization, and common use cases such as reproducible deployments for machine learning and microservices. Candidates should be able to explain the container lifecycle, why containerization matters in DevOps, and demonstrate simple hands on tasks like writing a basic Dockerfile and running containers locally.

HardSystem Design
24 practiced
Explain how to convert a local Docker Compose setup (Jupyter notebook + model server + Redis) into Kubernetes manifests. What Kubernetes objects map to compose services, and what additional concerns (ingress, secrets, configMaps, storage) must you address?
MediumTechnical
21 practiced
A developer reports that builds on CI are nondeterministic: sometimes a different minor version of a dependency is installed. Propose a fix to the Docker build and dependency management process to guarantee deterministic and repeatable builds for a Python-based ML service.
EasyTechnical
21 practiced
You start a container but the application exits immediately. Describe the sequence of Docker commands you would use to inspect why it exited (including logs, exit code, and metadata) and the typical reasons a container might exit right after starting when packaging a model server.
HardTechnical
38 practiced
You observe that a containerized training job is repeatedly OOM-killed on a node. Outline a step-by-step investigation using Docker (or container runtime) tools and system metrics to identify whether the issue is caused by container limits, host contention, or application memory leak. Then list mitigations.
HardSystem Design
21 practiced
Propose a design for running distributed PyTorch training using Docker containers across multiple GPU nodes. Discuss networking (NCCL, TCP), shared file systems vs object store for checkpoints, container startup ordering, and how to handle node failures mid-job.

Unlock Full Question Bank

Get access to hundreds of Containerization Fundamentals interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.