Image Creation, Management, and Registry Questions
Practice questions for Image Creation, Management, and Registry topic in Docker Certified Associate. 40 questions covering this domain.
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...
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...
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...
An administrator enables the Docker Distribution registry and wants to understand image deletion behavior before changing any settings. What is the de...
A developer runs `docker image pull alpine` without specifying a tag. Which tag does Docker use by default?
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...
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...
A container image must always start `/usr/bin/myapp`, but operators should be able to append different arguments at runtime. Which Dockerfile pattern ...
What does the `EXPOSE 8080` instruction do in a Dockerfile?
A registry operator plans to run garbage collection and wants to reduce the chance of clients changing content during the cleanup. Which preparation s...
An administrator wants a Go template output that lists an image's content-addressable layers from inspection data. Which field is commonly used from `...
What hash format does the Distribution `htpasswd` authentication backend support for passwords?
A registry administrator is editing Distribution configuration and starts defining two different storage backends at once for redundancy. What does th...
What is the main purpose of the `FROM` instruction in a Dockerfile?
An operator wants simple local-user authentication for a Distribution registry without using an external token service. Which documented authenticatio...
Which command is most appropriate when an engineer wants to review the commands and layer-related history that produced an image?
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?
Which example best matches Docker's canonical image reference structure?
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...
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.