1 / 5
A Dockerfile uses a 'multi-stage build'. What is its main benefit?
-
-
-
-
Multi-stage builds discard build-time dependencies, producing a lean final image with only what runs.
2 / 5
What is an image 'layer'?
-
-
-
-
Each Dockerfile instruction creates a layer — a cached filesystem diff that can be reused across builds.
3 / 5
Switching to a 'slim' or 'alpine' base image aims to do what?
-
-
-
-
Minimal base images shrink size and reduce the number of packages that could carry vulnerabilities.
4 / 5
Why combine related RUN commands with '&&' in one layer?
-
-
-
-
Combining commands reduces layer count and lets you delete temp files before the layer is committed.
5 / 5
Which sentence correctly uses 'image bloat'?
-
-
-
-
Image bloat is unnecessary size from including files not needed at runtime.