GoConqr has a new look! Let us know what you think.

Quiz

Docker

Dan Fletcher 24 questions 3,156 views

Take the quiz

This quiz has question types that open in the usual player.

Questions in this quiz (24)

  1. 1What is Docker? Select the BEST explanation.
    1. ADocker is software that enables applications to be bundled into a single package including all its dependencies, configuration and even the OS the application needs to run on. This makes applications highly portable and easy to scale horizontially.
    2. BDocker is software that enables developers to easily spin up and tear down light-weight virtual machines called "containers". Since these VM's include everything the application needs to run, it makes the app highly portable and easy to scale horizontally.
    3. CDocker is software that enables applications to be bundled into a single package including all its dependencies, configuration and even the OS the application needs to run on. A caveat of this is that the container requires Docker to run, so this reduces portability.
    4. DDocker is a container orchestration platform that aims to make the lives of dev/ops engineers easier when scaling distributed systems.
  2. 2A container is a type of virtual machine.
    1. ATrue
    2. BFalse
  3. 3A Docker container only stays alive for as long as there is a running process.
    1. ATrue
    2. BFalse
  4. 4Which commands can be used to echo the words "Hello, world!" to the console through an Ubuntu Docker container? Select all that apply.
    1. Adocker run -it ubuntu echo "Hello, world!"
    2. Bdocker run -i ubuntu echo "Hello, world!"
    3. Cdocker exec -it ubuntu echo "Hello, world!"
    4. Ddocker exec -i ubuntu echo "Hello, world!"
    5. Edocker run ubuntu echo "Hello, world!"
  5. 5The following command will fail without first pulling the image: `docker run ubuntu echo "Hello, world!"`
    1. ATrue
    2. BFalse
  6. 6If you have a running container named "checker" you can see the logs of that container with `docker [blank_start]logs[blank_end] checker`
    1. Alogs
  7. 7A Docker container's PID is namespaced to the container itself. This means PID:1 in container A is not the same as PID:1 in container B. Furthermore, the PIDs of A and B can't be seen from the host OS nor can the containers list PID belonging to the host.
    1. ATrue
    2. BFalse
  8. 8A Docker container can have its PID's namespaced the host OS by adding the option [blank_start]--pid host[blank_end] when running the container.
    1. A--pid host
  9. 9Which flag allows one Docker container to talk to the other?
    1. AA Canadian flag.
    2. B--link <container_name>
    3. C--ref <container_name>
    4. D--join <container_name>
    5. E--pid <container_name>
  10. 10Why is a Docker container lighter in terms of resources compared to virtual machine?
    1. ADocker only needs to create one small virtual machine on which multiple containers can be built using much less resources than creating multiple VM's. This is possible because Docker containers are capable of sharing the same Kernel whereas VM's require the entire OS.
    2. BDocker containers are light weight because they usually are intended run only one thing. This means they usually have far fewer process than a virtual machine which tends to have a heavier workload and thus are usually associated with the cost of higher resource usage.
    3. CIt's a trick question. Docker containers are not necessarily any lighter on system resources than a virtual machine. The benefit of Docker isn't that containers are lighter than VM's it's just that they can be created more easily, which is what makes them so portable.

Information

Description
Dev/Ops Quiz on Docker, created by Dan Fletcher on 07/03/2019.
Language
English
Views
3,156
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?