Timedora
Free Practice Quiz Question List

3 Containers and Containerization Online Quiz Questions

Use this free practice quiz with 20 questions to review 3 Containers and Containerization, test your knowledge, and prepare for your next test or exam.

20 questions
01
True or false
1 point

True or false: If a container is removed, data stored only in its writable layer may be lost.

  1. A

    True

  2. B

    False

02
True or false
1 point

True or false: Container isolation is an infallible security boundary, so host security and configuration do not matter.

  1. A

    True

  2. B

    False

03
Written response
1 point

In the Docker command docker run -p 8080:80 nginx:latest, which host port is mapped to port 80 in the container?

04
Written response
1 point

What kind of service stores and distributes container images?

05
Fill in the blank
1 point

Complete each sentence with the appropriate term: An is the packaged template used to create an application environment. A is an instance created from that template.

06
Fill in the blank
1 point

Complete each sentence with the appropriate term: A human-readable image version label is a . A identifies particular image content more precisely.

07
Choose one
1 point

A host already has an application image. Which task belongs to the container runtime when the host starts the application?

  1. A

    It stores and distributes images.

  2. B

    It configures a container's isolated environment and starts its application process.

  3. C

    It provides a guest operating system and kernel for every container.

  4. D

    It assigns a permanent version label to every image.

08
Choose one
1 point

A deployment must refer to particular image content as precisely as possible. Which image identifier is the best choice?

  1. A

    A tag, because it cannot be reassigned.

  2. B

    A tag, because it always identifies identical image content.

  3. C

    A digest, because it identifies particular image content more precisely.

  4. D

    Either one, because both guarantee the publisher is trustworthy.

09
Choose one
1 point

Which statement correctly compares the kernel arrangements of a typical container and a virtual machine?

  1. A

    A container boots its own guest operating system, while a VM shares the host kernel.

  2. B

    A container generally shares the host kernel, while a VM has a guest operating system and its own kernel.

  3. C

    Both a container and a VM always share the host kernel.

  4. D

    Both a container and a VM always run a separate guest operating system.

10
Choose all
1 point

Select all statements that correctly describe container registries and a typical image-distribution workflow.

  1. A

    A typical workflow can build an image, push it to a registry, and have a host pull it.

  2. B

    A registry is the process that starts the application inside a container.

  3. C

    A registry contains repositories, and repositories contain images.

  4. D

    Images in repositories can be identified by tags or digests.

11
Choose all
1 point

Select all statements that correctly describe typical differences between containers and virtual machines.

  1. A

    Containers generally share the host kernel.

  2. B

    Each container normally runs a full guest operating system with its own kernel.

  3. C

    Containers are usually quicker to start and more resource-efficient than full VMs.

  4. D

    Containers always provide a stronger isolation boundary than VMs.

12
Open ended
1 point

A team is choosing between containers and virtual machines for application workloads. Explain why containers are generally quicker to start and more resource-efficient, and describe one trade-off or limitation compared with VMs.

13
Choose one
1 point

A developer wants to run Linux containers on a macOS host. Which setup is commonly used to provide the compatible kernel?

  1. A

    They always run directly on the Windows or macOS kernel.

  2. B

    They are commonly run inside a Linux VM managed by the container software.

  3. C

    They must each include a complete Linux guest operating system.

  4. D

    They can run only if the computer is itself a cloud VM.

14
Choose one
1 point

A team runs its web application and database in separate containers. What is a practical benefit of this design?

  1. A

    They must share one runtime state.

  2. B

    They can be started, stopped, updated, and scaled independently.

  3. C

    They no longer require a host operating system.

  4. D

    They automatically provide a stronger security boundary than a virtual machine.

15
Written response
1 point

What example of separate persistent storage is given for data that should not be lost when a container is removed?

16
Choose one
1 point

An application running in a container modifies a file. What happens to the image from which the container was created?

  1. A

    The image changes to include every runtime modification.

  2. B

    The image is deleted when the container stops.

  3. C

    Runtime changes go into a separate writable layer, while the image remains unchanged.

  4. D

    The container creates a new guest operating system for each change.

17
Written response
1 point

What components of container images can be reused when building or downloading related images?

18
Choose one
1 point

A deployment needs to select the same image content reliably over time. Which approach best addresses the fact that image tags can be reassigned?

  1. A

    Use the tag alone, because tags cannot be reassigned.

  2. B

    Use the image name alone, because familiar names prove trustworthiness.

  3. C

    Use any tag, because it always selects the same image.

  4. D

    Use a digest when you need to identify particular image content more precisely.

19
Choose one
1 point

Which sequence describes a typical workflow for making a built image available to a host that will run it?

  1. A

    Build the image, push it to a registry, then have the host pull it before starting a container.

  2. B

    Push the running container to a registry, then build an image on the host.

  3. C

    Start a container first, then use the registry to install a guest operating system.

  4. D

    Store the image only in the host's writable layer, then pull it from the registry.

20
True or false
1 point

True or false: Because containers isolate processes, their security boundary can be treated as infallible regardless of configuration or host security.

  1. A

    True

  2. B

    False