DCA Container Practice Questions
The free DCA: Docker Certified Associate (DCA) questions that deal with container, with answers and explanations. The full bank and the timed practice test cover every topic the exam asks about.
Question #8
Which one of the following commands will result in the volume being removed automatically once the container has exited?
Correct answer: C
Explanation
The --rm flag removes the container and its anonymous volumes automatically once it exits. --del, --remove and --read-only are not flags that clean up on exit.
Question #10
Which of the following is true about using the '-P' option when creating a new container?
Type your answer, then reveal.
Correct answer: AExplanationControllare
Explanation
The -P flag publishes every exposed container port to a randomly chosen ephemeral port on the host, on all host interfaces. Naming a specific host interface requires explicit -p bindings, and -P grants no extra privileges.
Continue with DCA: Docker Certified Associate (DCA) Exam
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in DCA: Docker Certified Associate (DCA) Exam, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
All DCA: Docker Certified Associate (DCA) practice questions →
