DCA Container Practice Questions
The free DCA: Docker Certified Associate 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 #1
You have deployed a Docker container running a web service. After a few days, the container is not responding. What should you do first?
Correct answer: D
Explanation
Checking the container logs is the first step to diagnose what went wrong with the container.
Question #3
If you need a persistent volume to store the database data generated by a container, which command would you use to create it?
Correct answer: D
Explanation
The command 'docker volume create' is used to create a persistent volume in Docker.
Question #5
You're attempting to connect to a running container. What command would you use to access a bash shell inside it?
Correct answer: A
Explanation
'docker exec -it container_name /bin/bash' allows you to access an interactive shell inside a running container.
Question #6
You want to limit the CPU usage of a Docker container to 50%. Which flag should you use in your 'docker run' command?
Correct answer: A
Explanation
The --cpus flag allows you to specify the number of CPUs a container can use.
Question #10
If you need to inspect the details of a specific container, which command would you use?
Correct answer: B
Explanation
The 'docker inspect container_name' command returns detailed information about a particular container.
Continue with DCA: Docker Certified Associate
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in DCA: Docker Certified Associate, 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.
