Docker Certified Associate Test Review Questions Set 1 - Image Creation
Docker Certified Associate Test Review Questions Set 1 - Domain 2: Image Creation, Management, and Registry
Start
Congratulations - you have completed Docker Certified Associate Test Review Questions Set 1 - Image Creation.
You scored %%SCORE%% out of %%TOTAL%%.
Your performance has been rated as %%RATING%%
Your answers are highlighted below.
Question 1
What does docker image rm command do?
A
Remove unused images
B
Remove one or more images
C
Display detailed information on one or more images
D
Show the history of an image
Question 2
What Dockerfile option LABEL does?
A
Tells Docker how to test a container to check that it is still working
B
Provide defaults for an executing container
C
Label a container that will run as an executable
D
Adds metadata to an image
Question 3
Dockerfile option EXPOSE publish the port to external systems. True or false?
A
True
B
False
Question 4
What docker image prune command does?
A
Remove one or more images
B
Display detailed information on one or more images
C
Show the history of an image
D
Remove unused images
Question 5
Which of the following Dockerfile options creates a mount point with the specified name and marks it as holding externally mounted volumes from native host or other containers?
A
VOLUME
B
WORKDIR
C
ONBUILD
D
RUN
Question 6
Which of the following docker image commands display detailed information on one or more images?
A
docker image ls
B
docker image history
C
docker image inspect
D
docker image detail
Question 7
Which of the Dockerfile options executes any commands in a new layer on top of the current image and commit the results?
A
RUN
B
FROM
C
CMD
D
ONBUILD
Question 8
Which of the Dockerfile options initializes a new build stage and sets the base image for subsequent instructions?
A
ONBUILD
B
FROM
C
CMD
D
RUN
Question 8 Explanation:
see Dockerfile reference (https://docs.docker.com/engine/reference/builder/)
Question 9
Which of the following is NOT how to create an efficient image via a Dockerfile?
A
Start with an appropriate base image
B
Combine multiple applications into a single container
C
Avoid installing unnecessary packages
D
Use multi-stage builds
Question 10
What Dockerfile option EXPOSE does?
A
Label a container that will run as an executable
B
Adds metadata to an image
C
Expose defaults for an executing container
D
Informs Docker that the container listens on the specified network ports at runtime
Once you are finished, click the button below. Any items you have not completed will be marked incorrect.
Get Results
There are 10 questions to complete.
←
List
→
Return
Shaded items are complete.
1
2
3
4
5
6
7
8
9
10
End
Return
You have completed
questions
question
Your score is
Correct
Wrong
Partial-Credit
You have not finished your quiz. If you leave this page, your progress will be lost.