Skip to content

Image Creation, Management, and Registry Questions

Practice questions for Image Creation, Management, and Registry topic in Docker Certified Associate. 40 questions covering this domain.

40 questions8 easy24 medium8 hard
Q1
medium

A repository contains large test data that is never needed during container builds. Which file should be used to keep those files out of the build con...

Q2
hard

A company hosts a private registry at `registry.example.com:5000`. A developer built `myapp:2.1` locally and wants to push it there. What must be true...

Q3
medium

A build needs a temporary variable during image creation, but the final runtime container should not keep that value as part of its environment. Which...

Q4
medium

An administrator enables the Docker Distribution registry and wants to understand image deletion behavior before changing any settings. What is the de...

Q5
easy

A developer runs `docker image pull alpine` without specifying a tag. Which tag does Docker use by default?

Q6
medium

A team wants the smallest practical production image and does not want compilers or build tools included in the final artifact. Which Docker build app...

Q7
medium

A release engineer wants every deployment to use the exact same image content even if someone later retags the repository. Which reference should be u...

Q8
medium

A container image must always start `/usr/bin/myapp`, but operators should be able to append different arguments at runtime. Which Dockerfile pattern ...

Q9
easy

What does the `EXPOSE 8080` instruction do in a Dockerfile?

Q10
hard

A registry operator plans to run garbage collection and wants to reduce the chance of clients changing content during the cleanup. Which preparation s...

Q11
medium

An administrator wants a Go template output that lists an image's content-addressable layers from inspection data. Which field is commonly used from `...

Q12
medium

What hash format does the Distribution `htpasswd` authentication backend support for passwords?

Q13
hard

A registry administrator is editing Distribution configuration and starts defining two different storage backends at once for redundancy. What does th...

Q14
easy

What is the main purpose of the `FROM` instruction in a Dockerfile?

Q15
medium

An operator wants simple local-user authentication for a Distribution registry without using an external token service. Which documented authenticatio...

Q16
medium

Which command is most appropriate when an engineer wants to review the commands and layer-related history that produced an image?

Q17
medium

A repository has tags `1.0`, `1.1`, and `latest`, and the release engineer wants to push them all in one command. Which option should be used?

Q18
easy

Which example best matches Docker's canonical image reference structure?

Q19
hard

A Dockerfile uses `RUN apt-get update` in one layer and `RUN apt-get install -y curl` in a later layer. Why is this discouraged in Docker's build best...

Q20
medium

A build stage compiles an application, and the final stage should copy only the resulting binary from that earlier stage. Which Dockerfile feature sup...

Sign in to see all 40 questions

Create a free account to browse all questions — completely free during our launch phase.