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.

EasyTechnical
22 practiced
You're running a containerized model server locally and need to map host port 5000 to container port 8080, mount a host directory /home/user/models into /models inside the container read-only, and set an environment variable MODEL_PATH=/models/latest.pt. Provide the docker run command that accomplishes this and explain each flag.
EasyTechnical
20 practiced
Describe the purpose of a Dockerfile. List at least eight common Dockerfile instructions (e.g., FROM, RUN, COPY) and explain briefly what each instruction does and why order matters, especially during iterative development of ML code.
MediumTechnical
19 practiced
You must deploy an inference container where the model file is updated weekly. Discuss strategies to update the model without rebuilding container images every time, while ensuring each deployed instance references the correct model version and can be rolled back if needed.
MediumSystem Design
39 practiced
Describe how you would configure monitoring for containerized ML services to capture both infrastructure-level metrics (CPU, memory, disk) and model-level metrics (prediction latency, request rate, accuracy drift). Which tools and exporters would you use and how would you correlate logs and metrics?
MediumTechnical
25 practiced
Write a multi-stage Dockerfile (Python 3.9) for a machine learning model server where the first stage builds wheels and installs heavy build dependencies, and the final stage contains only runtime dependencies and the application. Explain how the multi-stage build reduces final image size.

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.