












































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The Docker Foundations Professional Certificate Ultimate Exam is designed for beginners and intermediate learners aiming to build a solid foundation in containerization using Docker. This exam evaluates understanding of Docker architecture, containers vs. virtual machines, image creation, container deployment, and basic orchestration. It also introduces DevOps workflows, CI/CD integration, and microservices architecture. The Ultimate Exam provides a structured pathway to mastering Docker fundamentals and prepares learners for professional-level certification and real-world application deployment.
Typology: Exams
1 / 84
This page cannot be seen from the preview
Don't miss anything!













































































1. What is Docker, and what is its primary function? A) Docker is a containerization platform that allows developers to package their applications and dependencies into a single container. B) Docker is an operating system that provides a lightweight virtualization solution. C) Docker is a cloud-based platform that provides a suite of tools for DevOps. D) Docker is a programming language used for building and deploying applications. Answer: A) Docker is a containerization platform that allows developers to package their applications and dependencies into a single container. 2. What is the difference between a container and a virtual machine? A) A container runs on a single machine, while a virtual machine runs on multiple machines. B) A container is more lightweight and portable than a virtual machine. C) A container shares the same kernel as the host machine, while a virtual machine runs a separate kernel. D) A container is more secure than a virtual machine. Answer: C) A container shares the same kernel as the host machine, while a virtual machine runs a separate kernel. 3. What is the primary benefit of using Docker containers? A) Improved security B) Increased scalability C) Faster deployment times D) Better resource utilization
Answer: C) Faster deployment times 4. What is the Dockerfile, and what is its purpose? A) The Dockerfile is a text file that contains commands to build an image. B) The Dockerfile is a graphical interface that allows users to build and deploy containers. C) The Dockerfile is a command-line tool that allows users to manage containers. D) The Dockerfile is a database that stores container metadata. Answer: A) The Dockerfile is a text file that contains commands to build an image. 5. How do you create a new Docker container using the Docker CLI? A) docker create -t myimage B) docker run -t myimage C) docker start -t myimage D) docker stop -t myimage Answer: B) docker run -t myimage 6. What is the purpose of the Docker registry? A) To store and manage Docker images B) To run and manage Docker containers C) To build and deploy Docker applications D) To monitor and troubleshoot Docker environments
C) A Docker image is a binary package that contains the application code and dependencies, while a Docker container is a running instance of the image. D) A Docker image is a running instance of the application, while a Docker container is a binary package that contains the application code and dependencies. Answer: A) A Docker image is a binary package that contains the application code, while a Docker container is a running instance of the image. 10. What is the purpose of the Docker compose file? A) To build and deploy Docker applications B) To run and manage Docker services C) To store and manage Docker images D) To monitor and troubleshoot Docker environments Answer: B) To run and manage Docker services 11. How do you start a Docker service using the Docker compose file? A) docker-compose up B) docker-compose down C) docker-compose run D) docker-compose restart Answer: A) docker-compose up 12. What is the purpose of the Docker network?
A) To connect Docker containers and services B) To isolate Docker containers and services C) To configure Docker containers and services D) To monitor and troubleshoot Docker environments Answer: A) To connect Docker containers and services 13. How do you create a new Docker network using the Docker CLI? A) docker network create mynetwork B) docker network rm mynetwork C) docker network inspect mynetwork D) docker network attach mynetwork Answer: A) docker network create mynetwork 14. What is the purpose of the Docker volume? A) To persist data in Docker containers B) To share data between Docker containers C) To configure Docker containers D) To monitor and troubleshoot Docker environments Answer: A) To persist data in Docker containers 15. How do you create a new Docker volume using the Docker CLI?
A) To run and manage Docker services B) To configure Docker containers C) To monitor and troubleshoot Docker environments D) To persist data in Docker containers Answer: A) To run and manage Docker services 19. How do you create a new Docker service using the Docker CLI? A) docker service create myservice B) docker service rm myservice C) docker service inspect myservice D) docker service scale myservice Answer: A) docker service create myservice 20. What is the purpose of the Docker stack? A) To deploy and manage Docker applications B) To run and manage Docker services C) To store and manage Docker images D) To monitor and troubleshoot Docker environments Answer: A) To deploy and manage Docker applications 21. How do you create a new Docker stack using the Docker CLI?
A) docker stack deploy mystack B) docker stack rm mystack C) docker stack inspect mystack D) docker stack scale mystack Answer: A) docker stack deploy mystack 22. What is the purpose of the Docker secrets? A) To persist data in Docker containers B) To share data between Docker containers C) To configure Docker containers D) To manage and secure Docker applications Answer: D) To manage and secure Docker applications 23. How do you create a new Docker secret using the Docker CLI? A) docker secret create mysecret mysecretvalue B) docker secret rm mysecret C) docker secret inspect mysecret D) docker secret attach mysecret Answer: A) docker secret create mysecret mysecretvalue 24. What is the purpose of the Docker init?
A) docker swarm join B) docker swarm leave C) docker swarm inspect D) docker swarm init Answer: A) docker swarm join 28. What is the purpose of the Docker leave? A) To leave a Docker swarm B) To inspect a Docker swarm C) To initialize a new Docker swarm D) To join a Docker swarm Answer: A) To leave a Docker swarm 29. How do you leave a Docker swarm using the Docker CLI? A) docker swarm leave B) docker swarm join C) docker swarm inspect D) docker swarm init Answer: A) docker swarm leave 30. What is the purpose of the Docker inspect?
A) To inspect a Docker swarm B) To inspect a Docker image C) To inspect a Docker container D) To inspect a Docker service Answer: A) To inspect a Docker swarm 31. How do you inspect a Docker swarm using the Docker CLI? A) docker swarm inspect B) docker image inspect C) docker container inspect D) docker service inspect Answer: A) docker swarm inspect 32. What is the purpose of the Docker image? A) To build and deploy Docker applications B) To run and manage Docker services C) To store and manage Docker images D) To monitor and troubleshoot Docker environments Answer: C) To store and manage Docker images 33. How do you create a new Docker image using the Docker CLI?
A) To run and manage Docker services B) To configure Docker containers C) To persist data in Docker containers D) To monitor and troubleshoot Docker environments Answer: A) To run and manage Docker services 37. How do you create a new Docker service using the Docker CLI? A) docker service create myservice B) docker service rm myservice C) docker service inspect myservice D) docker service scale myservice Answer: A) docker service create myservice 38. What is the purpose of the Docker stack? A) To deploy and manage Docker applications B) To run and manage Docker services C) To store and manage Docker images D) To monitor and troubleshoot Docker environments Answer: A) To deploy and manage Docker applications 39. How do you create a new Docker stack using the Docker CLI?
A) docker stack deploy mystack B) docker stack rm mystack C) docker stack inspect mystack D) docker stack scale mystack Answer: A) docker stack deploy mystack 40. What is the purpose of the Docker secrets? A) To persist data in Docker containers B) To share data between Docker containers C) To configure Docker containers D) To manage and secure Docker applications Answer: D) To manage and secure Docker applications 41. How do you create a new Docker secret using the Docker CLI? A) docker secret create mysecret mysecretvalue B) docker secret rm mysecret C) docker secret inspect mysecret D) docker secret attach mysecret Answer: A) docker secret create mysecret mysecretvalue 42. What is the purpose of the Docker init?
A) docker swarm join B) docker swarm leave C) docker swarm inspect D) docker swarm init Answer: A) docker swarm join 46. What is the purpose of the Docker leave? A) To leave a Docker swarm B) To inspect a Docker swarm C) To initialize a new Docker swarm D) To join a Docker swarm Answer: A) To leave a Docker swarm 47. How do you leave a Docker swarm using the Docker CLI? A) docker swarm leave B) docker swarm join C) docker swarm inspect D) docker swarm init Answer: A) docker swarm leave 48. What is the purpose of the Docker inspect?
A) To inspect a Docker swarm B) To inspect a Docker image C) To inspect a Docker container D) To inspect a Docker service Answer: A) To inspect a Docker swarm 49. How do you inspect a Docker swarm using the Docker CLI? A) docker swarm inspect B) docker image inspect C) docker container inspect D) docker service inspect Answer: A) docker swarm inspect 50. What is the purpose of the Docker logs? A) To view the logs of a Docker container B) To view the logs of a Docker service C) To view the logs of a Docker image D) To view the logs of a Docker swarm Answer: A) To view the logs of a Docker container 51. How do you view the logs of a Docker container using the Docker CLI?
A) To connect Docker containers and services B) To isolate Docker containers and services C) To configure Docker containers and services D) To monitor and troubleshoot Docker environments Answer: A) To connect Docker containers and services 55. How do you create a new Docker network using the Docker CLI? A) docker network create mynetwork B) docker network rm mynetwork C) docker network inspect mynetwork D) docker network attach mynetwork Answer: A) docker network create mynetwork 56. What is the purpose of the Docker volume? A) To persist data in Docker containers B) To share data between Docker containers C) To configure Docker containers D) To monitor and troubleshoot Docker environments Answer: A) To persist data in Docker containers 57. How do you create a new Docker volume using the Docker CLI?
A) docker volume create myvolume B) docker volume rm myvolume C) docker volume inspect myvolume D) docker volume attach myvolume Answer: A) docker volume create myvolume 58. What is the purpose of the Docker service? A) To run and manage Docker services B) To configure Docker containers C) To persist data in Docker containers D) To monitor and troubleshoot Docker environments Answer: A) To run and manage Docker services 59. How do you create a new Docker service using the Docker CLI? A) docker service create myservice B) docker service rm myservice C) docker service inspect myservice D) docker service scale myservice Answer: A) docker service create myservice 60. What is the purpose of the Docker stack?