All jobs / DevOps / SRE / cloud / Containers

DevOps / SRE / cloud interview question · 1–3 years

A production image is 1.8 GB and includes a compiler. What do you do?

The strongest answer

Multi-stage: build in one stage, copy the runtime bits into a slim image — I do not ship the toolchain to prod

Why it works

Exactly. Slim runtime. A compiler in prod is attack surface and minutes on every pull.

What a good answer covers

Answers that fall short

Who gets asked this

More Containers questions